Neil Hodgson wrote:
For those that think user-definable lexers are a good idea, there
is an interesting post in Eric Promislow's blog about adding new
languages to ActiveState's Komodo IDE:
http://blogs.activestate.com/ericp/2007/01/kid_adding_a_ne.html
I haven't read this article yet, I will look into it with interest.
I am exploring a way using Pegs (Parsing Expression Grammar)
<http://en.wikipedia.org/wiki/Parsing_expression_grammar>, which I
discovered with Lua's LPeg.
I am only at the state of writing specifications for a generic Peg C
library, so I fear it is only vaporware right now. But I try to design
my library with Scintilla lexers in mind (but not only!).
If I ever reach a usable state, it might be a very interesting
technology, that might replace most lexers except, perhaps, the most
complex ones (Perl...)
And I find the language quite easy to learn. Well, probably not as easy
as syntax highlighting syntaxes in most editors, but much more flexible.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest