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

SLL decisions #124

Closed
wants to merge 2 commits into from
Closed

SLL decisions #124

wants to merge 2 commits into from

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Jan 3, 2013

  • Allow restriction of individual decisions to SLL prediction
  • Blocks in parsers support an sll=true; option to explicitly specify

Here is an example:

ifStmt
  : 'if' '(' expr ')' stmt
    ( options{sll=true;}: 'else' stmt
    | /*empty*/
    )
  ;

@ghost ghost assigned sharwell and parrt Jan 3, 2013
@sharwell
Copy link
Member Author

sharwell commented Jan 3, 2013

This update provides a much cleaner solution to #42.

@parrt
Copy link
Member

parrt commented May 18, 2013

This would make expressions non-LL per force but you'd have to be sure they are not stack sensitive.

@parrt parrt closed this Jul 1, 2014
KvanTTT pushed a commit to KvanTTT/antlr4 that referenced this pull request Jan 22, 2024
Port additional runtime fixes and apply minor cleanups
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

Successfully merging this pull request may close these issues.

None yet

2 participants