HI Thomas!

Thomas Guest wrote:
Thomas Guest <thomas.guest <at> gmail.com> writes:

I've been making (slow) progress with this and thought I should report back
before proceeding any further. The proposal is to replace the hardcoded
syntax_highlight.hpp with a dynamically loaded syntax highlight scheme.


This scheme is based around boost::regex's capabilities.  A first draft of the
C++ syntax highlight scheme is appended to this email.

Pros:
As Eric says, users can create highlight schemes for other languages without
having to write a new parser.

Cons:
An extra build dependency (on boost regex)

That's ok. I see no problem with that.

Creating the regexes is no easier than defining a new parser

Ahh regexes! That's the price for dynamic loading. A long time ago, in a galaxy far away, Spirit grammars and rules used to be defined from strings. Maybe someday, I'll resurrect that capability. Hmmm, I should do that with Spirit 2.

Need to work out where to put the built-in highlight scheme

Details please?

Any comments or thoughts?

I like it. A bit pythonish, but it's ok ;-)

[...]

Thanks!
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to