[antlr-interest] Error in generating tree walk [and one little suggestion for Prof. Terence]
Peizhao Hu
peizhao at itee.uq.edu.au
Fri Oct 19 04:26:29 PDT 2007
Thanks a lot!
for future reference to anyone else have the same problem.
My problem is that I have a rule written as
assignment_rule: equal^ assignment ;
so I changed back to
assignment_rule : ^(equal assignment) ;
the problem fixed.
regards;
Peizhao
Gavin Lambert wrote:
> At 18:03 19/10/2007, Peizhao Hu wrote:
> >Could anyone tell me what is the following error message about?
> >I checked the parser and tree grammar without any error or warning
> >message.
> >
> >Not sure about the ruleRefRuleRoot.st??
> >
> >
> >[15:00:24] error(10): internal error:
> >/Users/phu/programming/Autonomic_CMS_Repository/antlr-grammars/TEDS
> >templateWalker.g
> >: java.lang.IllegalArgumentException: Can't find template
> >ruleRefRuleRoot.st
>
> Usually these kinds of errors occur when you've got some kind of illegal
> syntax in your grammar.
>
> I *think* this one is where you've mixed an AST rewrite with a ^-flagged
> left half. (Or possibly it's the one where a rewrite is mixed with a !,
> but I think that one mentioned a different template.)
>
More information about the antlr-interest
mailing list