[antlr-interest] Re: CLI with ANTLR - best practice

thierryj8 thierryj8 at yahoo.com
Fri Apr 9 11:10:15 PDT 2004


I assume you have a main with a loop, then the .g file with parser and
lexer.

For NEWLINE('\r' '\n' | '\r' | '\n'), do you apply
$setType(Token.EOF_TYPE); so that all carriage return makes the line a
full file

Do you loop in your main? Do you apply a (command)+ for looping.

To answer your question: I set defaultErrorHandler = false; in the lexer.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list