-
Notifications
You must be signed in to change notification settings - Fork 170
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
C target broken in antlr >= 3.5 #175
Comments
We seem to see similar with cvc4 and belle-sip. Ultimately leads to errors like:
|
Dear Orion, I was getting these kinds of errors even before too and fixed them (in my @lexer::includes { Its a pity that the C target is in such a bad shape (and reason why we are Milos 2015-09-01 4:25 GMT+02:00 Orion Poplawski [email protected]:
|
Thanks, that may be helpful for cvc4, bit in the belle-sip case, we can't get around the antlr template error:
|
I see lots of people reporting that error as a warning. Not sure why it appears as an error for belle-sip. |
That is what changed from 3.4 to 3.5: it was a warning, now it is an error.
|
I think this regression shown up between 3.5 releases. Maybe 3.5.1 => 3.5.2. It has something to do with StringTemplate library used internally by Antlr. About year ago I went through C++ target and have fixed these warnings at least for this one. If somebody is willing to fix this, I recommend to go though these commits (it should be easy to port these fixes back into the C target). https://github.com/ibre5041/antlr3/commits/master?page=3. Also this patch significantly improves performance of generated parser (when using predicates): ibre5041@e36baba |
The C target is entirely broken in antlr >= 3.5. In earlier versions there was a warning which became an error in antlr >= 3.5:
error(24): template error: context [/outputFile /parser] 1:1 could not pass through undefined attribute filterMode
making antlr not producing lexer code.
The text was updated successfully, but these errors were encountered: