[antlr-interest] Why ANTLR doesn't check existence of lexical symbols?

Hrvoje Nezic hrvoje.nezic at envox-lab.hr
Wed Jun 11 02:11:39 PDT 2003


Hi,

If some lexical symbol is referenced in parser grammar, 
but is not actually defined in lexer, ANTLR doesn't
generate error or warning messages, so this can be detected
only at runtime on parser testing.
I find it very inconvenient, because you have to check 
existence of token symbols manually.
Is there any reason why ANTLR behaves like this, and 
is there any workaround?

Regards,
Hrvoje Nezic



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list