[antlr-interest] ast rewrite
Potje rode kool
everttigchelaar at gmail.com
Tue Jul 8 13:01:42 PDT 2008
Hello,
I created a gramar and it works but I am parsing the following line:
import *javax*.swing.*;
The ast is created but it creates a CommonTree for every part of the import.
I use
importDeclaration
: 'import' qualifiedName ('.' '*')? ';'
-> ^('import' qualifiedName ('.' '*')? ';')
;
Is it posible to rewrite the ast so I get only one CommonTree?
Thanks,
Evert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080708/74e4b76f/attachment.html
More information about the antlr-interest
mailing list