grammar modularization within one project [message #1768440] |
Tue, 18 July 2017 14:17  |
Eclipse User |
|
|
|
Greetings,
is there a recommended way to modularize the grammar definition?
I found the possibilities to seperate the grammar definition with import mechanism or with grammar mixin. Grammar mixin only allows to use one other grammar and imports seem only to work for Cross-Referencing.
Transitive grammar mixin does not seem to be a good solution if I want to keep the project open for extension.
Example:
Example: Feature1 | Feature2 | Feature3;
Feature1: ...;
Feature2: ...;
Feature3: ...;
Now I want to seperate this enormous grammar definition into three files and want to have something like:
BaseDsl.xtext:
Example: Feature1 | Feature2Dsl:Feature2 | Feature3Dsl:Feature3;
Feature1: ...;
Feature2Dsl.xtext
Feature2: ...;
Feature3Dsl.xtext
Feature3: ...;
____________
Note: I am new to xtext
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04367 seconds