[antlr-interest] Change in output location with 3.0b7

Terence Parr parrt at cs.usfca.edu
Mon Apr 16 13:18:21 PDT 2007


On Apr 16, 2007, at 12:52 PM, Jim Idle wrote:

> Ter,
>
> We had some discussions of this and you made a second option that  
> would
> always ignore subdirectories, intending that the -o option would  
> mirror
> the input directories. It could be that you did it the other way  
> around
> etc.
>
> however, I needed this because Visual Studio build rules can't cope  
> with
> making the subdirectories in the output. Hence I think that we already
> have what we need (was the option -od or something?).

Oh, right!  We have

   -o outputDir          specify output directory where all output is  
generated
   -fo outputDir         same as -o but force even files with  
relative paths to dir

So, if -o is doing as Martin suggests then either I have these  
backwards or I introduced a bug!

Damn...looks like -o does not add the subdir.

$ java org.antlr.Tool -o /tmp subdir/T.g

$ java org.antlr.Tool -fo /tmp subdir/T.g

both put TParser.java into /tmp.  Crap.  Apparently my intention in - 
depend is as we had before:

$ java org.antlr.Tool -depend -o /tmp subdir/T.g
ANTLR Parser Generator  Version 3.0b8 (??, 2007)  1989-2007
/tmp/subdir/TParser.java : subdir/T.g
/tmp/subdir/T.tokens : subdir/T.g
/tmp/subdir/TLexer.java : subdir/T.g

$ java org.antlr.Tool -depend -fo /tmp subdir/T.g
ANTLR Parser Generator  Version 3.0b8 (??, 2007)  1989-2007
/tmp/TParser.java : subdir/T.g
/tmp/T.tokens : subdir/T.g
/tmp/TLexer.java : subdir/T.g

Ok, I see the problem.  Added a bug report to fix asap.  Gotta  
prepare for a meeting tonight.

Ter



More information about the antlr-interest mailing list