[antlr-interest] Concatenating child nodes into one
Elnur Cabarov
elnur.j at gmail.com
Thu Aug 20 21:27:26 PDT 2009
This method doesn't work for me. I have to use rewrite rules, not tree
operators, because I insert imaginary nodes.
Being precise I need this
importDeclaration
: 'import' 'static'? qualifiedName ('.' '*')? ';' -> ^(REF
IMPORTS qualifiedName)
;
And when I change literals to lexer rules I get:
The following token definitions can never be matched because prior tokens
match the same input: IMPORT,STATIC
Thank you
--
Elnur Cabarov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090821/1a8113cc/attachment.html
More information about the antlr-interest
mailing list