我有这个语法
MyEStructuralFeature returns ecore::EStructuralFeature:
{ecore::EAttribute} name=ID ':' (eType=[ ecore::EDataType|MyDefaultDataType] (defaultValueLiteral=MyValue)?)
| {ecore::EReference} name=ID ':' (eType=[ecore::EClass])
;
MyEClass returns ecore::EClass:
{ecore::EClass} name=ID (NEWLINE eStructuralFeatures+=MyEStructuralFeature)+;
MyDataType returns ecore::EDataType:
{Boolean} name='Boolean'
| {Integer} name='Integer'
| {Number} name='Number'
| {String} name='String'
| {UUID} name='UUID';
MyDefaultDataType:
'Boolean' | 'Integer' | 'Number' | 'String' | 'UUID';
这个语法的问题是我无法创建任何EAttribute以及定义类型的代码辅助(MyDataType) 那么如何使这个工作
Student
age:String //getting error here as it can't resolve String
School
students:Student
谢谢