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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address