Skip to main content



      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 11:16 Go to next message
Eclipse UserFriend
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 11:20] by Moderator

Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1040433 is a reply to message #1040428] Sat, 13 April 2013 11:24 Go to previous messageGo to next message
Eclipse UserFriend
Simple answer: No
Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1040461 is a reply to message #1040433] Sat, 13 April 2013 12:25 Go to previous messageGo to next message
Eclipse UserFriend
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 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Is there a specific Reason for Not using mixin/inheritance

[Updated on: Sat, 13 April 2013 12:38] by Moderator

Re: [Xtext 2.3] Split *.xtext file up into multiple files? [message #1041503 is a reply to message #1040428] Mon, 15 April 2013 03:21 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 07:18:00 EDT 2025

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

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

Back to the top