Hi, I'm trying to get custom AST from Java grammar
importDeclaration
: 'import' 'static'? qualifiedName ('.' '*')? ';' -> qualifiedName
;
qualifiedName
: Identifier ('.' Identifier)*
;
How can I get single tree node for the whole import statement?
For example
org.antlr.runtime.ANTLRFileStream instead of
org
.
antlr
.
runtime
.
ANTLRFileStream
--
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