Hello - I followed all of the steps in "How to build an ANTLR code
generation target" (at least I think I did), but when I give it a go
(on Windows) against a grammar file "T.g":

java -classpath "C:\AntlrV3\antlr-3.1\lib\antlr-3.1.jar"
"org.antlr.Tool"  "C:\AntlrV3\antlr-3.1\runtime\XYZ\T.g"

the result is:

ANTLR Parser Generator  Version 3.1 (August 12, 2008)  1989-2008
error(10):  internal error: no such group file XYZ.stg
error(20):  cannot find code generation templates XYZ.stg

I copied Java.stg to XYZ.stg which is sitting in a directory
"C:\AntlrV3\antlr-3.1\src\org\antlr\codegen\templates"

Do I need to invoke java while in a particular directory? How is
antlrV3 looking for the .stg file?

Thanks...
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to