Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generate Antlr grammar from Xtext
Generate Antlr grammar from Xtext [message #1730829] Thu, 28 April 2016 18:58 Go to next message
Filipe Varjão is currently offline Filipe VarjãoFriend
Messages: 2
Registered: April 2016
Junior Member
Following the documentation of Xtext we can see that Xtext can convert the grammar to Antlr. "Converts the Xtext grammar to an AntLR grammar"

How can I do that ?

Many thanks.
Re: Generate Antlr grammar from Xtext [message #1730876 is a reply to message #1730829] Fri, 29 April 2016 12:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13192
Registered: July 2009
Senior Member
Hi in Xtext 2.9.x you can add

parserGenerator = {
debugGrammar = true
}

to the language section of the workflow

in <= 2.8.4 you can use

fragment = parser.antlr.DebugAntlrGeneratorFragment {}


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Generate Antlr grammar from Xtext [message #1731356 is a reply to message #1730876] Wed, 04 May 2016 14:53 Go to previous message
Filipe Varjão is currently offline Filipe VarjãoFriend
Messages: 2
Registered: April 2016
Junior Member
Thank you, I'll try it.

[]s
Previous Topic:Xtend error
Next Topic:Xbase, Using XbaseBatchScopeProvider
Goto Forum:
  


Current Time: Fri Nov 15 12:41:34 GMT 2019

Powered by FUDForum. Page generated in 0.02155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top