Sorry, I didn't quote the correct directory - it is indeed actually in
" src\org\antlr\codegen\templates\XZY", and still I get the error:

>> error(10):  internal error: no such group file XYZ.stg
>> error(20):  cannot find code generation templates XYZ.stg

I tried looking at the source to see if that would help, but I was
unable to glean any clues.

On Sat, Apr 11, 2009 at 2:37 PM, Terence Parr <[email protected]> wrote:
> Hi John, it looks for the XYZ stuff in
>
> src\org\antlr\codegen\templates\XZY
>
> not
>
> src\org\antlr\codegen\templates
>
> try adding one more dir :)
> Ter
> On Apr 10, 2009, at 10:30 AM, John Lynn wrote:
>
>> 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
>
>
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to