Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for direct left recursive? #591

Closed
wormtql opened this issue Apr 9, 2022 · 1 comment
Closed

Support for direct left recursive? #591

wormtql opened this issue Apr 9, 2022 · 1 comment

Comments

@wormtql
Copy link

wormtql commented Apr 9, 2022

In ANTLR, you can have direct left recursive,

expression
   : outerAttribute+ expression                         # AttributedExpression // technical, remove left recursive
   | literalExpression                                  # LiteralExpression_
   | pathExpression                                     # PathExpression_
   | expression '.' pathExprSegment '(' callParams? ')' # MethodCallExpression   // 8.2.10
   | expression '.' identifier                          # FieldExpression  // 8.2.11
   | expression '.' tupleIndex                          # TupleIndexingExpression   // 8.2.7
   ...

which makes it easy to implement any expression with precedence

@tomtau
Copy link
Contributor

tomtau commented Jul 14, 2022

duplicate of #460

@tomtau tomtau closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants