-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allowing empty string in lexer islands? #83
Comments
You are right.. The warning should not be treated as an error. I will check what is wrong. |
Does your .csproj have a |
Yes, indeed. |
Antlr4BuildTasks is a thin layer on top of the Java Antlr4 Tool. The package creates a process for |
Thanks for clarification. I'll keep an ey on that As for empty tokens, I realized that the lexer should never handle those. It's the task for the parser! |
Using
Antlr4.Runtime.Standard 4.13.1
andAntlr4BuildTasks 12.8
.Please consider the grammar below. For input
[]
I expect tokensSTART VALUE("") END
.It will produce an
ANT01
warning which is then treated as an error:My understanding is that this warning should be ignored in this case. Under no circumstances will it cause an infinite loop in the lexer. Please see antlr/antlr4#180.
How can I get my parser to compile?
The text was updated successfully, but these errors were encountered: