-- However, do you have some particular reason to make the tree look like
that? It is just as easy to deal with: ^(DECL type ^(VARS A B C)) in a walker.
The method we're using for creating nodes only allows one node to be created at
a time and I want the ability to do something like
getRecordType("foo").getDefs() and have this return 3 definitions (in your A,
B, C example).
Indhu - that method works well in this situation, but do you know how I could
make it work when identifiers are on the left? For example if decl were this
rule:
decl
scope {
Token typeTkn;
}
: varList type {$decl::typeTkn=$type.start;}
-> varList
;
Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
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