-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Antlr 3 to Antlr 4 Migration Guide #464
Comments
Hi. I think we should create one. ok, got something started here: https://theantlrguy.atlassian.net/wiki/pages/viewpage.action?pageId=1900596 |
Thank you for the page, it already helped. I have one more question: If hypothetical grammar does not uses ast |
There is no more "hoisting" in the fashion that ANTLR 3 had it. Predicates located at the left edge of a decision (i.e. the left edge of a rule or block with more than one alternative) are evaluated as part of making that decision. Other predicates are ignored. |
@sharwell Thank you. |
Thanks for starting the migration guide. Just tried to construct my own grammar. It was damn easy. ANTLR 4 scares me. It just works :) You mention that ASTs are no longer possible. What should I do if i'd like to write a compiler. Are parse trees equivalent to ASTs? Some additional hints on this topic would be great. |
For writing a compiler, either generate LLVM-type static-single-assignment form stuff or construct an AST from the parse tree or using actions in grammar, turning off auto-parse-tree construction. |
Thanks this is nice. |
Updated the wiki page a bit more with links etc... |
I am planning on upgrading to V4 from V3, I tried following the link Terence shared, but seemingly it does not exist anymore. Is there any source that I could follow to complete this upgrade? Thanks in advance. |
all doc has moved to repo https://github.com/antlr/antlr4/tree/master/doc not sure how much info on upgrading is there. Try the faq https://github.com/antlr/antlr4/blob/master/doc/faq/general.md |
I read through it and unfortunately did not find what's pertinent to what I am trying to do. I have asked a question here though, that is specific to what I am struggling to solve. http://stackoverflow.com/questions/36858750/converting-from-antlr3-to-antlr4 |
The best place for discussion is the google group.
|
Hi @ericvergnaud - can you share the google group in here? |
https://groups.google.com/forum/#!forum/antlr-discussion <https://groups.google.com/forum/#!forum/antlr-discussion>
… Le 25 sept. 2017 à 20:56, Filipe Miranda ***@***.***> a écrit :
Hi @ericvergnaud <https://github.com/ericvergnaud> - can you share the google group in here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#464 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADLYJOUO_bQq5b3e4UMOqLlV94cUbWc2ks5sl6LygaJpZM4Bh3UK>.
|
The link from the comment #464 (comment) is no longer valid. Where one can find the migration guide now ? |
It doesn't look like anything exists beyond that faq entry |
Upgrading from 2 to 3 had a nice migration guide (thanks for that). It would be helpful if there were one included for the upgrade from 3 to 4, either as a wiki page or referenced in the readme.
The text was updated successfully, but these errors were encountered: