|
|
|
|
Re: Xtext and antlr4? [message #1745259 is a reply to message #1235657] |
Fri, 07 October 2016 05:51 |
|
We can discuss / consider this at any time, for sure. We only need to compile a good list of reasons to do it. Currently I only see contra arguments, so please help explain why it is critical for you.
As I see it today:
Pro:
- claiming we run on Antlr 4 (which is actively supported by Terence and is perceived as the latest and greatest)
Against:
- Massively breaking change (requires major increment, which has a lot of bad effects especially for Eclipse clients. I.e. you cannot run Xtext 2.x and Xtext 3.x in the same IDE)
- Lots of work (we are talking months here)
IMHO the main benefit in Antlr 4 over Antlr 3 is the more user friendly API which is nothing Xtext users would benefit from, as we always had a user friendly API on top
But please lets start a discussion and come up with reasons to do it or not to do it.
Sven
|
|
|
|
|
|
|
Re: Xtext and antlr4? [message #1759773 is a reply to message #1759681] |
Tue, 18 April 2017 03:38 |
|
Ed Willink wrote on Sat, 15 April 2017 12:44
Observation: The massively breaking change may not be that serious/it already exists.
What are you talking about? Why would it not be serious and why does it already exist?
Ed Willink wrote on Sat, 15 April 2017 12:44
Xtext (antlr 3.2), Epsilon (antlr 3.1b), ATL (antlr 3.0) are already incompatible. The conflicts only show up when two versions are used at once as I found when loading+parsing ATL, transforming to QVTrAS then serializing using Xtext to QVTr Text all in one JUnit test. Bang, conflicting Antlr versions.
That is not what I meant. Bumping antlr to 4 in Xtext will not only have an effect on APIs but it will change the parsing behavior. So the same grammars will likely do different things, especially for broken files.
Ed Willink wrote on Sat, 15 April 2017 12:44
So Xtext incompatibilities should only arise for users of two different Xtext variants in the same application.
That is not possible anyway and unrelated to the question of upgrading the antlr dependency.
Ed Willink wrote on Sat, 15 April 2017 12:44
As one of the more versatile SimRel contributions, Xtext's failure to support antlr4 inhibits others from using antrl4.
Why?
Just to make it clear, I am not against this, but we should not play down the effects it will have for the better and worse. Also, it is a huge undertaking.
Sven
|
|
|
Powered by
FUDForum. Page generated in 0.04420 seconds