Loading plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/TDLan2.xtext +43 −18 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ AnnotationType returns tdl::AnnotationType: {tdl::AnnotationType} 'Annotation' name=Identifier (extension=Extension)? ('with' '{' (comment+=Comment (comment+=Comment)*)? Loading Loading @@ -183,7 +184,7 @@ Behaviour returns tdl::Behaviour: | UnboundedLoopBehaviour | ConditionalBehaviour | CompoundBehaviour //| OptionalBehaviour | OptionalBehaviour | DefaultBehaviour | InterruptBehaviour | VerdictAssignment Loading Loading @@ -328,6 +329,7 @@ ComponentType returns tdl::ComponentType: {tdl::ComponentType} 'Component' 'Type' name=Identifier (extension=Extension)? 'having' '{' (timer+=Timer)* Loading Loading @@ -698,6 +700,7 @@ GateType returns tdl::GateType: (kind=GateTypeKind)? 'Gate' 'Type' name=Identifier (extension=Extension)? 'accepts' dataType+=[tdl::DataType|Identifier] ( "," dataType+=[tdl::DataType|Identifier])* ('with' Loading Loading @@ -841,21 +844,21 @@ OmitValue returns tdl::OmitValue: '}')?; //OptionalBehaviour returns tdl::OptionalBehaviour: // 'optionally' // block=Block // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('test' 'objectives' ':' testObjective+=[tdl::TestObjective|Identifier] ( "," testObjective+=[tdl::TestObjective|Identifier])* ';')? // ('name' name=Identifier)? // '}')? // (exceptional+=ExceptionalBehaviour ( exceptional+=ExceptionalBehaviour)*)? // (periodic+=PeriodicBehaviour ( periodic+=PeriodicBehaviour)* )? // ';' // ; OptionalBehaviour returns tdl::OptionalBehaviour: 'optionally' block=Block ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('test' 'objectives' ':' testObjective+=[tdl::TestObjective|Identifier] ( "," testObjective+=[tdl::TestObjective|Identifier])* ';')? ('name' name=Identifier)? '}')? (exceptional+=ExceptionalBehaviour ( exceptional+=ExceptionalBehaviour)*)? (periodic+=PeriodicBehaviour ( periodic+=PeriodicBehaviour)* )? ';' ; Loading Loading @@ -987,7 +990,7 @@ SimpleDataType_Impl returns tdl::SimpleDataType: ; StaticDataUse returns tdl::StaticDataUse: DataInstanceUse | AnyValue | AnyValueOrOmit | OmitValue; DataInstanceUse | AnyValue | AnyValueOrOmit | OmitValue | LiteralValueUse; Stop returns tdl::Stop: {tdl::Stop} Loading Loading @@ -1032,6 +1035,7 @@ StructuredDataType returns tdl::StructuredDataType: //'Structured' 'Data' 'Type' 'Type' name=Identifier (extension=Extension)? ('(' member+=Member ( "," member+=Member)* ')')? ( 'with' Loading Loading @@ -1350,3 +1354,24 @@ Wait returns tdl::Wait: NumberAsIdentifier returns ecore::EString: '-'? INT ('.' INT)?; Extension returns tdl::Extension: 'extends' extending=[tdl::PackageableElement|Identifier] ; LiteralValueUse returns tdl::LiteralValueUse: {tdl::LiteralValueUse} value=String0 ( 'of' 'type' dataType=[tdl::DataType|Identifier] )? ('with' '{' ('name' name=Identifier)? (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? '}')? ; Loading
plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/TDLan2.xtext +43 −18 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ AnnotationType returns tdl::AnnotationType: {tdl::AnnotationType} 'Annotation' name=Identifier (extension=Extension)? ('with' '{' (comment+=Comment (comment+=Comment)*)? Loading Loading @@ -183,7 +184,7 @@ Behaviour returns tdl::Behaviour: | UnboundedLoopBehaviour | ConditionalBehaviour | CompoundBehaviour //| OptionalBehaviour | OptionalBehaviour | DefaultBehaviour | InterruptBehaviour | VerdictAssignment Loading Loading @@ -328,6 +329,7 @@ ComponentType returns tdl::ComponentType: {tdl::ComponentType} 'Component' 'Type' name=Identifier (extension=Extension)? 'having' '{' (timer+=Timer)* Loading Loading @@ -698,6 +700,7 @@ GateType returns tdl::GateType: (kind=GateTypeKind)? 'Gate' 'Type' name=Identifier (extension=Extension)? 'accepts' dataType+=[tdl::DataType|Identifier] ( "," dataType+=[tdl::DataType|Identifier])* ('with' Loading Loading @@ -841,21 +844,21 @@ OmitValue returns tdl::OmitValue: '}')?; //OptionalBehaviour returns tdl::OptionalBehaviour: // 'optionally' // block=Block // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('test' 'objectives' ':' testObjective+=[tdl::TestObjective|Identifier] ( "," testObjective+=[tdl::TestObjective|Identifier])* ';')? // ('name' name=Identifier)? // '}')? // (exceptional+=ExceptionalBehaviour ( exceptional+=ExceptionalBehaviour)*)? // (periodic+=PeriodicBehaviour ( periodic+=PeriodicBehaviour)* )? // ';' // ; OptionalBehaviour returns tdl::OptionalBehaviour: 'optionally' block=Block ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('test' 'objectives' ':' testObjective+=[tdl::TestObjective|Identifier] ( "," testObjective+=[tdl::TestObjective|Identifier])* ';')? ('name' name=Identifier)? '}')? (exceptional+=ExceptionalBehaviour ( exceptional+=ExceptionalBehaviour)*)? (periodic+=PeriodicBehaviour ( periodic+=PeriodicBehaviour)* )? ';' ; Loading Loading @@ -987,7 +990,7 @@ SimpleDataType_Impl returns tdl::SimpleDataType: ; StaticDataUse returns tdl::StaticDataUse: DataInstanceUse | AnyValue | AnyValueOrOmit | OmitValue; DataInstanceUse | AnyValue | AnyValueOrOmit | OmitValue | LiteralValueUse; Stop returns tdl::Stop: {tdl::Stop} Loading Loading @@ -1032,6 +1035,7 @@ StructuredDataType returns tdl::StructuredDataType: //'Structured' 'Data' 'Type' 'Type' name=Identifier (extension=Extension)? ('(' member+=Member ( "," member+=Member)* ')')? ( 'with' Loading Loading @@ -1350,3 +1354,24 @@ Wait returns tdl::Wait: NumberAsIdentifier returns ecore::EString: '-'? INT ('.' INT)?; Extension returns tdl::Extension: 'extends' extending=[tdl::PackageableElement|Identifier] ; LiteralValueUse returns tdl::LiteralValueUse: {tdl::LiteralValueUse} value=String0 ( 'of' 'type' dataType=[tdl::DataType|Identifier] )? ('with' '{' ('name' name=Identifier)? (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? '}')? ;