[antlr-interest] token file directory

Mark Volkmann mark at ociweb.com
Thu Oct 4 11:10:38 PDT 2007


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?

---
Mark Volkmann


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071004/3c620a58/attachment.html 


More information about the antlr-interest mailing list