I am trying to create a DSL in the following syntax :
alias date java.util.Date;
so what I have in my grammar is something like this :
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as jvmTypes
Model:
(types+= Type)*;
Type:
Alias | Class;
PackageName:
ID ('.' ID)*;
Alias:
'alias' name = ID javaType=[jvmTypes::JvmType|PackageName] ';' ;
This doesn't seem to be working.
I am looking at the article : http://www.eclipse.org/Xtext/documentation/2_0_0/199a-jvmtypes.php which does something very similar. Not sure what I am missing here.