[antlr-interest] ANTLR for command line interface

thierryj8 thierryj8 at yahoo.com
Fri Apr 9 08:50:31 PDT 2004


I am currently writing a command line interface using ANTLR.

Currently I am able to parse and produce correct production, a problem
is left. A command of the form

>list *
which carries to "list * production" has the same effect as
>list
>*

Requesting a NEWLINE at the end of the command creates some other
problems. Questions:

- What is the effect of the "interactive" mode (Supposed to be for CLI)?
- Should look ahead entries be cancelled after a NEWLINE & HOW?
- Are there examples of CLIs with ANTLR?

Because there is a parser, a lexer, and the usage of code in Java,
there are several ways of soving problems. Is there a best practice
standard?




 
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