In my DSL, I want to have a code that looks like:
SomeType varName;
Where SomeType
is a Java class.
Later on, if lets say SomeType is an enum java-class, and someone writes
varName=SOME_VALUE
I want to do a validation to see if SomeType.java actually has SOME_VALUE
as a value in its enum.
I saw this tutorial
https://eclipse.org/Xtext/documentation/305_xbase.html
but I'm not sure this is what I need (I need to import .mydsl files, not only jvm). Any help would be appreciated. Thanks.