[antlr-interest] Parsing a command line?

kedar mhaswade kedar.mhaswade at gmail.com
Thu Feb 19 16:10:13 PST 2009


I am writing a command line interface program in Java. The syntax of the
command line is sort of defined, but is not really formally defined in terms
of an EBNF or railroad diagram. My questions are:

- Is ANTLR (and ANTLRWorks) the right tool to define the grammar and write
the parser to parse the command line?

- An implementation of the command line parsing works, but there are rather
too many hacks and although I haven't done any parsing course in school, it
occurs to me that that is not the right way of doing things.  Should I be
investing into ANTLR for this problem?

- Has anyone done this kind of thing?

Thanks,
Kedar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090219/3f2c5a25/attachment.html 


More information about the antlr-interest mailing list