Compiler tests for multi-DSLs? [message #1780733] |
Fri, 26 January 2018 06:53  |
Eclipse User |
|
|
|
I found some nice resources how to use 2 DSLs: e.g.
That also helped me to get all parsing tests working.
Example:
in project xtext-multi-dsl we have MyDslA which does not know anything about MyDslB.
MyDslB on the other hand imports MyDslA (and thus depends on MyDslA).
In this case I can write a simple compiler tests-working for the MyDslA.
But how can we write compiler tests for the MyDslB (which is dependent on MyDslA)?
e.g. I think I'd need to:
- first load the sub-dsl model file
- trigger the sub-dsl generator
- put the generated files on the classpath
- load the super-dsl model file
- and finally generate and check the generated super-dsl files
Maybe there is already some example project for such tests?
[Updated on: Fri, 26 January 2018 07:36] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24519 seconds