[antlr-interest] Command Line Switch parsing

Martin Probst mail at martin-probst.com
Wed Sep 15 22:59:29 PDT 2004


Hi,
have you looked at the GNU getopts package? It's largely used for
exactly that - and I'm pretty sure it's available for a lot of
languages.

mfg
Martin

Am Mi, den 15.09.2004 schrieb georgehernando um 22:47:
> I am new to ANTLR.
> I would like to parse and reformat data in some batch files that 
> currently are calling command line executables.
> They look like:
> 
> cmdA -b xyz cvb -c "Hello Text" -dnx -fgx llll
> cmdB -b xyz cvb -p dfc -O -a -vx FFF
> 
> I'd like to start with an existing grammar that was written to parse 
> a command line like this with variable switches.
> 
> Is there something out there already?
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 



 
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