[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lexer and syntax highlighter powered by LPeg
- From: "Jose Luis Hidalgo" <joseluis.hidalgo@...>
- Date: Fri, 6 Apr 2007 13:19:24 +0200
This is amazing (both LPeg and your lua lexer), much kudos to you!
I would try to do the same for GLSL which actually I need. A place in
the wiki will be great, and hope others do lexers for other languages
( I'm sure there are many lua powered editors out there that will get
benefited from this ).
2007/4/6, Peter Odding <firstname.lastname@example.org>:
Hi all! Despite my interest in LPeg it took me till last week to try it out.
First evaluation: it rocks :). I think LPeg can be for Lua what regex are for
Perl. That is, in popularity, because LPeg's flexibility and speed are already
amazing. This says *a lot*. As a test for myself and LPeg I wrote a
lexer/tokenizer based on the BNF at lua.org/manual/5.1 and a syntax
highlighter to try it out. Both are public domain, so if anyone wants to put
them on the wiki or if Roberto wants to include the lexer as an example with
LPeg, that's fine with me.
As noted in the readme for the lexer I think it should handle all syntax but I
might have missed a number format or something. Corrections welcome.
Thank you Roberto for this most wonderful library!
Jose L. Hidalgo Valiño (PpluX)
---- http://www.pplux.com ----