Hello
I've got this antlr2 rule which I'm trying to convert that goes like this:
================================================================
application![int tokenType, String tokenText]
: c:canonical a:annotation { #application = #([tokenType,tokenText], c,
a); }
;
================================================================
My attempt is:
================================================================
application[int tokenType, String tokenText]
: c=canonical a=annotation -> ^({$tokenType;}[{$tokenText;}] $c $a)
;
================================================================
But the ANTLR3 parser returns the following errors:
syntax error: antlr: AmbientTalk.g:310:46: expecting RPAREN, found
'{$tokenText}'
syntax error: antlr: AmbientTalk.g:310:66: expecting SEMI, found ')'
Any thoughts / suggestions?
Regards
Ben C.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.