For the scopedClause rule below, I'm getting this error(132):
"$scopedClause is ambiguous; rule scopedClause is enclosing rule and
referenced in the production (assuming enclosing rule)"

I've had a similar rule working before.  I also tried Jim's suggestion
of just rewriting it inline and changing the .type of the Token to OR
but got a "cannot write to read-only attribute problem".  Hopefully,
below is enough for someone to gather what I'm attempting to achieve?
Thanks,
--tim

scopedClause:   
        LPAREN (scopedClause->scopedClause) ((OR_TOKEN s2=scopedClause) ->
^(OR $scopedClause $s2))+ RPAREN
    | LPAREN (scopedClause->scopedClause) ((AND_TOKEN s2=scopedClause)
-> ^(AND $scopedClause $s2))+ RPAREN
    | LPAREN (scopedClause->scopedClause) ((NOT_TOKEN s2=scopedClause)
-> ^(NOT $scopedClause $s2))+ RPAREN
        | searchClause
                -> searchClause
        ;

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to