[antlr-interest] ANTLR C++ Lexer

Micheal J open.zone at virgin.net
Wed Nov 29 06:46:53 PST 2006


Hi,

> I'm evaluating ANTLR for a research project so in order to 
> learn it I'm 
> planning to build some very small samples to experiment with. 
> I've started with a lexer-only demo, and here are some questions:

Since you're using ANTLR and C++, you are likely using ANTLR2 (perhaps
2.7.7?). In that case I would advise using a Flex lexer or similar rather
than an ANTLR2 lexer in conjunction with your ANTLR2 parsers/treeparsers. 

This is purely from a performance perspective. ANTLR2 lexers have better
support for error handling for instance.


Micheal


-----------------------
The best way to contact me is via the list/forum. My time is very limited.



More information about the antlr-interest mailing list