Marc Van Cauwenberghe a écrit :
a bit clearer now. It seems that what ever I will choose, I still will have to
build a lexer if the language has a unique syntax. Using the control will not
help me there, will it?
I depends on the language you are targeting.
If it looks like another language (C, Basic, SQL, whatever), you can
play with its properties file and tweak some settings (like what chars
are part of word), hoping it doesn't look too bad.
For example, we used the C lexer for PoV-Ray syntax, and ASM lexer for
AutoHotkey, before they got their own lexer. Some stuff isn't correctly
handled, but it is better than nothing...
If your is very original in its syntax, indeed, you have to write a
lexer by yourself. The easiest way is to pick up the closest language,
and use its lexer as a base to hack.
Someday, one of us will be able to write (and release) a more generic
lexer, based on some simple, properties based rules, but this has yet to
be done.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest