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

idontwantanidwith2000init idontwantanidwith2000init at yahoo.com
Fri Apr 9 10:52:11 PDT 2004


Hi,
If I remember correctly you shouldn't use unput.
But I haven't have to face such problem.

I'm developing a small CLI.
Do you know how to replace the parser error messages?

Tal.

--- In antlr-interest at yahoogroups.com, "thierryj8" <thierryj8 at y...> 
wrote:
> Best practice for CLI in Lex&Yacc, O'Reilly:
> 
> ".. In order to scan the command line rather than a file, we must
> rewrite input() and unput()..." (p38), 
> 
> "...The input routine handles calls from the lexer to obtain
> characters" (p41),
> 
> "...The unput() routine handles calls from the lexer to "push back"
> characters into the input stream." (p41)
> 
> Input() treats the CLI end of line as the end of file. Is there an
> equivalent in ANTLR?



 
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