On 07/06/2007 12:49, instanton wrote:
Writing a new lexer is not that difficult as it first sounds to be.
[...]
> I was able to produce a new lexer for the
graphics drawing language Asymptote in less an hour. So please be
encouraged to try it!
Interesting language <http://asymptote.sourceforge.net/>
Well, the fact it is very close of C probably helped a lot. For a
language with unusual syntax, it can be harder. That's why I advised to
try and find a similar language which has already a lexer, it would
provide a sound and easy base.
You can also mix code: for POV-Ray language, I used the C lexer, but
took the code to handle nested comments in another lexer (Lua?).
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest