Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Xtext 2.3] Split *.xtext file up into multiple files?
[Xtext 2.3] Split *.xtext file up into multiple files? [message #1040428] Sat, 13 April 2013 15:16 Go to next message
Alan DW is currently offline Alan DWFriend
Messages: 119
Registered: March 2012
Senior Member
Hello everyone,

I'm working on a rather complex grammar in Xtext 2.3. The system itself and also the resulting editor are working very nicely, no complaints, but since I'm already having over 100 individual rules in my *.xtext file, I'd like to know if there is a way to organize my rules not only in a single file, but in multiple files instead, that form a single grammar together. Now, I am aware that there is stuff like grammar mixins, the "import" and "with" statements and so on, but that all seems way to sophisticated for my purposes.

Is there a way to do this?

Thanks,


Alan


PS: Yes, I did use the forum search before posting this. But the most recent topic I've found dates back about 1 year ago, and also does not really provide a solution.

[Updated on: Sat, 13 April 2013 15:20]

Report message to a moderator

Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1040433 is a reply to message #1040428] Sat, 13 April 2013 15:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Simple answer: No

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1040461 is a reply to message #1040433] Sat, 13 April 2013 16:25 Go to previous messageGo to next message
Alan DW is currently offline Alan DWFriend
Messages: 119
Registered: March 2012
Senior Member
Oh, that's a shame. Well, I guess it can't be helped... good thing we have an outline and "go to definition" ^^
Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1040468 is a reply to message #1040461] Sat, 13 April 2013 16:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Is there a specific Reason for Not using mixin/inheritance

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Sat, 13 April 2013 16:38]

Report message to a moderator

Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1041503 is a reply to message #1040428] Mon, 15 April 2013 07:21 Go to previous message
Claudio Heeg is currently offline Claudio HeegFriend
Messages: 75
Registered: April 2013
Member
Alan DW wrote on Sat, 13 April 2013 17:16
Now, I am aware that there is stuff like grammar mixins, the "import" and "with" statements and so on, but that all seems way to sophisticated for my purposes.

Especially "with"-Statements are not that sophisticated a thing I'd say, so probably, if you look to split up your grammar, you should actually go that way.
Doing that requires you to know what you are doing, though, as you'll have to be sure of what you have to leave where.
Previous Topic:Xtext Custom Lexer
Next Topic:Xtext Nature vs. Custom Nature
Goto Forum:
  


Current Time: Fri Apr 19 03:39:25 GMT 2024

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

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

Back to the top