Hi
I have this left recursive problem which i cannot figure out how to solve and
ANTLR WORKS cannot recognize the left recursive problem.
Is there any way to fix this?
methodInvocation
: methodName LPAREN argumentList? RPAREN
| primary DOT IDENT LPAREN argumentList? RPAREN
| SUPER DOT IDENT LPAREN argumentList? RPAREN
;
fieldAccess
: primary DOT IDENT
| SUPER DOT IDENT
;
primary
: primaryNoNewArray
| arrayCreationExpression
;
primaryNoNewArray
: literal
| THIS
| LPAREN expression RPAREN
| classInstanceCreationExpression
| fieldAccess
| methodInvocation
| arrayAccess
;
arrayAccess
: expressionName LBRACK expression RBRACK
| primaryNoNewArray LBRACK expression RBRACK
;
Thanks for any help,
Glen
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1
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.