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

Parser.setProfile() should keep settings like prediction mode #809

Closed
parrt opened this issue Jan 31, 2015 · 0 comments · Fixed by #811
Closed

Parser.setProfile() should keep settings like prediction mode #809

parrt opened this issue Jan 31, 2015 · 0 comments · Fixed by #811

Comments

@parrt
Copy link
Member

parrt commented Jan 31, 2015

Doing

parser.getInterpreter().setPredictionMode(PredictionMode.LL_EXACT_AMBIG_DETECTION);
parser.setProfile(true);

Does not set LL_EXACT_AMBIG_DETECTION mode. setProfile() creates new ATN interp, which wipes mode.

parrt added a commit to parrt/antlr4 that referenced this issue Jan 31, 2015
@parrt parrt mentioned this issue Jan 31, 2015
@parrt parrt added this to the 4.5.1 milestone May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant