I've checked the Migration Wiki and it's a little unclear on how handle
the following. The general form is taken from bison.g:
V2:
rhs : rhs_alt
{ ## = #( [ALT, "alt"], #rhs ); }
( OR^ rhs_alt )*;
V3:
rhs : (a=rhs_alt -> $rhs ) (OR b=rhs)*
;
error(132) reference $rhs is ambiguous; rule rhs is enclosing rule and
referenced in the production (assuming enclosing rule)
V3 - not even sure if this form is legal ...
rhs : rhs_alt
{ $$ = $([OR,"or"],$rhs); }
(OR^ rhs_alt)*
;
error(117): missing attribute access on rule scope: rhs
Thx++
Jerry.
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.