[antlr-interest] org.antlr.Tool options

Gavin Lambert antlr at mirality.co.nz
Mon Jan 21 10:54:51 PST 2008


At 03:33 22/01/2008, Mark Volkmann wrote:
 >
 >If I understand correctly, the -o options tells it where
 >to write generated .java and .tokens files and the -lib
 >option tells it where the generated code should look for
 >.tokens files.
 >
 >When would you every want the values for -o and -lib to be
 >different?

Maybe you've got the lexer and parser grammars in different 
folders, and want to keep it that way?  Maybe you've got 
lexer/parser in one folder, and tree parsers in different 
folders?  Perhaps there's some common tree parser shared by 
multiple lexer/parsers, so it's in the "common" folder rather than 
the "app-specific" folder?



More information about the antlr-interest mailing list