diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src/org/eclipse/viatra/solver/language/GenerateSolverLanguage.mwe2')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src/org/eclipse/viatra/solver/language/GenerateSolverLanguage.mwe2 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src/org/eclipse/viatra/solver/language/GenerateSolverLanguage.mwe2 b/Application/org.eclipse.viatra.solver.language/src/org/eclipse/viatra/solver/language/GenerateSolverLanguage.mwe2 new file mode 100644 index 00000000..7f95e737 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/src/org/eclipse/viatra/solver/language/GenerateSolverLanguage.mwe2 | |||
@@ -0,0 +1,49 @@ | |||
1 | module org.eclipse.viatra.solver.language.GenerateSolverLanguage | ||
2 | |||
3 | import org.eclipse.xtext.xtext.generator.* | ||
4 | import org.eclipse.xtext.xtext.generator.model.project.* | ||
5 | |||
6 | var rootPath = ".." | ||
7 | |||
8 | Workflow { | ||
9 | |||
10 | component = XtextGenerator { | ||
11 | configuration = { | ||
12 | project = StandardProjectConfig { | ||
13 | baseName = "org.eclipse.viatra.solver.language" | ||
14 | rootPath = rootPath | ||
15 | runtimeTest = { | ||
16 | enabled = true | ||
17 | } | ||
18 | eclipsePlugin = { | ||
19 | enabled = true | ||
20 | } | ||
21 | eclipsePluginTest = { | ||
22 | enabled = true | ||
23 | } | ||
24 | createEclipseMetaData = true | ||
25 | } | ||
26 | code = { | ||
27 | encoding = "UTF-8" | ||
28 | lineDelimiter = "\r\n" | ||
29 | fileHeader = "/*\n * generated by Xtext \${version}\n */" | ||
30 | } | ||
31 | } | ||
32 | language = StandardLanguage { | ||
33 | name = "org.eclipse.viatra.solver.language.SolverLanguage" | ||
34 | fileExtensions = "vsc" | ||
35 | |||
36 | serializer = { | ||
37 | generateStub = false | ||
38 | } | ||
39 | validator = { | ||
40 | // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" | ||
41 | // Generates checks for @Deprecated grammar annotations, an IssueProvider and a corresponding PropertyPage | ||
42 | generateDeprecationValidation = true | ||
43 | } | ||
44 | junitSupport = { | ||
45 | junitVersion = "5" | ||
46 | } | ||
47 | } | ||
48 | } | ||
49 | } | ||