|
|
|
Re: Antlr4 to xtext [message #1755203 is a reply to message #1755183] |
Wed, 01 March 2017 07:01 |
|
hint for the flag:
language = StandardLanguage {
...
parserGenerator = {
debugGrammar = true
}
...
}
But I also think this is not what you want. What you actually want is not really possible with Xtext.
Writing such a plugin your own is the right way to do, but this is really huge effort. That's why it isoften a good idea to use Xtext, this is already done for you by the framework.
Good luck.
|
|
|
|
|
|
|
|
Re: Antlr4 to xtext [message #1767965 is a reply to message #1767964] |
Wed, 12 July 2017 12:43 |
|
We have discussed this topic at Xtext Summit 2017 and it was decided that we do not take action here. One of the reasons is that Xtext has high requirements on performance which ANTLR 4 cannot guarantee, another is development effort and further that there is no actual benefit for users besides left recursion, which can be avoided with left-factoring.
|
|
|
|
|
Re: Antlr4 to xtext [message #1783643 is a reply to message #1783622] |
Wed, 14 March 2018 20:19 |
|
Or in other words: The relation between effort and benefit is not to argue the invest. We have decided not to take action here. The effort here is easily underestimated.
If your need is urgent and you are willing to invest here, we can get into talk.
|
|
|
Re: Antlr4 to xtext [message #1790140 is a reply to message #1783643] |
Tue, 05 June 2018 20:37 |
|
As part of our research we have developed a ANTLR4 based "parser/unparser" + modeling technology. It doesn't give you an eclipse editor. But it is well suited for transforming text&code. We have working ANTLR4 grammars for Java8, JSON, Mini-C, Mini-Java and many inhouse DSLs. We use it for building JavaFX-based visual programming editors for our VRL-Studio IDE.
Anyone interested, let me know.
|
|
|
|
Re: Antlr4 to xtext [message #1790353 is a reply to message #1790302] |
Fri, 08 June 2018 13:52 |
|
Hi Ed,
I don't think I can. I work in an academic environment and we don't have a large customer base that we'd have to migrate etc. And the Xtext developers are certainly aware of the potential benefits of ANTLR4. I am not sure if those benefits are enough to justify a migration.
That being said, ANTLR4 certainly has huge benefits. One of many reasons to develop our ANTLR4 based modeling infrastructure is that ANTLR4 simplifies grammar development a lot. We tested with several grammars from the https://github.com/antlr/grammars-v4 repository. I had a basic Java8 language infrastructure up and running in about 2-3 hours (we basically just added labels to the ANTLR4 grammar). While ANTLR3 is often faster, new grammars are more likely to be developed for ANTLR4.
Regards
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.02553 seconds