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

xtext entity example, primitive type


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -