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

grammar option problem #62

Closed
wurongxin opened this issue Jun 25, 2012 · 1 comment
Closed

grammar option problem #62

wurongxin opened this issue Jun 25, 2012 · 1 comment

Comments

@wurongxin
Copy link

It seems that, when setting the options {backtrack=true;}, the AST tree cannot be built normally. Is it a bug? I tried the java.g file which is provided in the url http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g . And I added {output=AST;} in the options. However, when I used the generating source code to parse the java code, the AST tree seems abnormal.

@parrt
Copy link
Member

parrt commented Jun 25, 2012

That grammar is "special". use the one at antlr.org
T
PS did you use -Xconversiontimeout 100000?

@parrt parrt closed this as completed Jun 25, 2012
parrt pushed a commit that referenced this issue Jun 30, 2015
Mark the parser generator NuGet packages as development dependencies.
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