At 20:55 9/05/2009, Floris van Nee wrote:
>There's one more error left though, in rules like:
>type_qualifier returns [List<string> ids]
>:v=VOID
>{
>$ids = new List<String>() { "System", "Void" };
>}
>|qual=qualifier
>{
>$ids = qual;
>}
>;
>
>Here I want to assign the value of qual (which should be of type
>List<string>) to $ids. In output=AST mode qual is of type
>qualifier_return, instead of List<string>, but in normal mode it
>compiles correctly. What am I doing wrong here then?
Assuming that the 'qualifier' rule is defined similarly, then you
should be using this instead:
$ids = $qual.ids;
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---