[SOLVED] model query with xTend [message #637104] |
Thu, 04 November 2010 08:46 |
Philipp Missing name Messages: 7 Registered: November 2010 |
Junior Member |
|
|
I have problems to determine whether a collection contains a certain element.
I use the following grammar (it is shown only partly).
gcsDefinitions: {gcsDefinitions}
(datatypes+=Datatype)*
'attributes' (attributes+=Attribute)* 'end'
'timerAttributes' '{' (timerAttributes+=TimerAttribute)+ '}'
;
TimerAttribute:
name=ID;
Timer:
'timer' name=ID
('attributes' (timerAttributes+=[TimerAttribute])*)?
'timeconfig' (timeConfigPar=[ParTag]
|timerValue=TimeValue|'stateDefined')
('IN' in=[Tag])?
'end_timer';
The model looks like:
timerAttributes {ton withOutputTag withParameter restartable recalcable}
timer TransitionTime
attributes ton recalcable withOutputTag
timeconfig stateDefined
end_timer
The question is now, how can I check with xPand/xText whether a timer has a particular attribute?
[Updated on: Thu, 04 November 2010 10:07] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02047 seconds