For example
i have a grammar like this one:
Bundle:
'Bundle'
name= ID '{'
car+=Car+
service +=Service*
'}'
;
Car:
'Car'
name=ID
extra+=Extra*
'}'
;
Extra:
name= ID '=' type=STRING
;
Service:
'Service' att=STRING 'for' ref+=Reference*
;
Reference:
//Ref to car oder Ref to Car.Extra
;
In my model i want to create a Service like:
Service "ServiceName" for car1
Service "ServiceName" for car2 (extra1 extra2)
How can i resolve the reference to Extras of a Car?