The repository contains 2 xtext projects:
.a
: grammar a which is independent.b
: grammar b, which references grammar a
and 2 simple demo-project that use the grammars and have each a very simple model file:
demo/demoA
: uses grammar.a
(which is independent)demo/demoB
: uses grammar.b
(which references grammar a) and is dependent ondemoA
- just execute
gradlew build install
in the root project - it will install the projects to the local maven repository
in the demo
folder, execute gradlew build
An example how to use DerivedStateComputer is in the DerivedStateComputer branch
Links:
- Xtext forum discussion: Compiler tests for multi-DSLs?