Crossreferencing in xtext - also for native types -
i'm trying set xtext grammar has following characteristics.
sketch(!):
class: properties += property* ; resource: properties += property* ; link : // no classes here, no common resource , class [resource] <-> [resource] ; basictype: 'int' | 'long' ; property: // not supported name ':' basictype | [resource] | [class] // tried // name ':' eobject ;
my question is:
how can solve situation, crossreference property type 'resource' or 'class' or basictype?
i tried eobject basetype , resolve crossreferences in custom scopeprovider , dont know how use basictypes (int or long) type properties.
first can introduce common supertypes defining rule dont call
parent: child1 | child2
then can reference things defined somewhere else. have define them explicitely or change grammar
Comments
Post a Comment