[antlr-interest] Can't find template tokenRefBangTrack.st
David Holroyd
dave at badgers-in-foil.co.uk
Sat Aug 12 11:57:46 PDT 2006
On Sat, Aug 12, 2006 at 06:28:43PM +0000, David Holroyd wrote:
> On Sat, Aug 12, 2006 at 10:34:37AM -0700, Terence Parr wrote:
> >
> > On Aug 12, 2006, at 9:48 AM, David Holroyd wrote:
> >
> > >
> > >I have,
> > >
> > >options {
> > > k = 2;
> > > output=AST;
> > > ASTLabelType=CommonTree;
> > >}
> > >
> > >Is that what you mean by an output option?
> >
> > Ah. if that is the case, then you probably have label+=FOO! which I
> > don't think I've implemented yet.
>
> Actually, I has some productions which were using both tree operators
> and rewrite rules. I think I've fixed those, and now instead I see a
> stacktrace with the message "Can't find template matchSetTrack.st".
Oops, I see that this is an FAQ,
http://www.antlr.org/pipermail/antlr-interest/2006-July/017102.html
I fixed it so the one instance I had of decl=('var|'const') is changed
to,
variableDefinition[AST mods]
: (decl='var'|decl='const') variableDeclarator
(COMMA variableDeclarator)*
-> ^($decl variableDeclarator+ {$mods})
;
however I still get the "Can't find template matchSetTrack.st" error.
> Do I actually need to convert the entire grammar over to use the ->
> syntax, or can I alternate this production-by-production?
any ideas?
dave
--
http://david.holroyd.me.uk/
More information about the antlr-interest
mailing list