[antlr-interest] How to tell antlr to use stg in generated __Test__.java?

John Leung jklemail at gmail.com
Fri Aug 3 11:08:54 PDT 2007


Hi,
  I tried the simple T.g grammar in chapter 9 of the book that uses stg.
When I debug it, it gives me the error "Can't find template assign.st" (from
rule ... -> assign(x=...); ).  I know I can specify it to use "T.stg"
instead in __Test__.java, but everytime I do that, it overwrites my editing
when I run debug.  Is there anyway to tell antlrworks to debug using my
Test.java instead?   Better yet, why can't antlr generate a __Test__.java
that uses stg instead of st, or at least let me specify it to do so..  I
couldn't believe that no one's been asking this yet (I can't find it).
Maybe I'm just missing something here?

thanks so much,
john
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070803/cfd16b4f/attachment.html 


More information about the antlr-interest mailing list