[antlr-interest] token file directory

Mark Volkmann mark at ociweb.com
Fri Oct 5 09:06:26 PDT 2007


On 10/4/07, Mark Volkmann <mark at ociweb.com> wrote:
 >  I'm following along with the example in Chapter 3 of "The  
Definitive ANTLR
 > Reference".
 > On page 64 it shows using tokenVocab to specify the name of the  
tokens file
 > ("Expr") to be used by the tree grammar ("Eval.g").
 > When I generate that from my parser grammar ("Expr.g"), I use the  
"-o"
 > option to put all the generated files in a subdirectory named "gen".
 > When I try to process the tree grammar, it tries to find the  
tokens file in
 > the current directory.
 > How can I tell it to look in the "gen" directory?

I found the answer. I needed to include the command-line option "-lib  
gen" when running org.antlr.Tool.

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071005/08e85fb5/attachment.html 


More information about the antlr-interest mailing list