Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Can I write my DSL grammar in several .xtext files? (My DSL xtext grammar is too long to change in Eclipse. )
Can I write my DSL grammar in several .xtext files? [message #721151] Thu, 01 September 2011 02:43 Go to next message
lulu  is currently offline lulu Friend
Messages: 19
Registered: August 2011
Junior Member
Hi, All,

I have a long .xtext grammar file which change from ANTLR 3.0. It is not easy to rewrite my grammar in Eclipse because it need to validation xtext grammar after every change.

It need more time.

An other problem:
How can I stop the Xtext validation after xtext grammar change?

Thnaks
Re: Can I write my DSL grammar in several .xtext files? [message #721196 is a reply to message #721151] Thu, 01 September 2011 07:18 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
How big is your grammar?
Xtext supports single inheritance of grammars. So you could split the grammar up into a hierarchy of grammars.

[Updated on: Thu, 01 September 2011 07:18]

Report message to a moderator

Re: Can I write my DSL grammar in several .xtext files? [message #721215 is a reply to message #721196] Thu, 01 September 2011 07:50 Go to previous message
lulu  is currently offline lulu Friend
Messages: 19
Registered: August 2011
Junior Member
To Sven:
I rewrite MySQL grammar from YACC grammar to ANTLR grammar in version 3.3.
It is nearly 10,000 lines including little action code.
Now, I want to rewrite in xtext grammar for my application. Now, I only write some simple queries, such as create database,insert, load and drop except expression. it is difficult to review grammar in eclipse because of the xtext validation.
And some other questions.

By the way, Is there any reference for the inheritance of grammar?

Thanks very much.


Previous Topic:language elements must have 'name' attribute?
Next Topic:Could not serialize EObject via backtracking.
Goto Forum:
  


Current Time: Wed May 08 06:18:06 GMT 2024

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

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

Back to the top