Loading plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/TDLan2.xtext +37 −38 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ Action returns tdl::Action: ActionReference returns tdl::ActionReference: 'perform' 'action' action=[tdl::Action|Identifier] ('(' actualParameter+=ParameterBinding ( "," actualParameter+=ParameterBinding)* ')' )? ('(' argument+=ParameterBinding ( "," argument+=ParameterBinding)* ')' )? ('on' componentInstance=[tdl::ComponentInstance|Identifier])? ( 'with' Loading Loading @@ -97,14 +97,13 @@ AnnotationType returns tdl::AnnotationType: AnyValueOrOmit returns tdl::AnyValueOrOmit: {tdl::AnyValueOrOmit} '*' name='*' //('(' argument+=ParameterBinding ( "," argument+=ParameterBinding)* ')' )? ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? ; Loading Loading @@ -154,8 +153,8 @@ Assertion returns tdl::Assertion: ';'; Assignment returns tdl::Assignment: //TODO: shall be mandatory (componentInstance=[tdl::ComponentInstance|Identifier] '->')? //DONE: shall be mandatory -> updated MM superclass //(componentInstance=[tdl::ComponentInstance|Identifier] '->')? variable=VariableUse '=' expression=DataUse Loading Loading @@ -541,6 +540,7 @@ CollectionDataInstance returns tdl::CollectionDataInstance: dataType=[tdl::DataType|Identifier] name=Identifier (unassignedMember=UnassignedMemberTreatment)? 'containing' '{' (item+=StaticDataUse ("," item+=StaticDataUse)*)? '}' Loading Loading @@ -580,7 +580,7 @@ QIdentifier returns ecore::EString: PredefinedIdentifierBinary returns ecore::EString: '+' | '-' | '*' | '/' | 'mod' | '>' | '<' | '>=' | '<=' | '>=' | '>' | '<' | '>=' | '<=' | '==' | '!=' | 'and' | 'or' | 'xor' ; Loading Loading @@ -874,14 +874,13 @@ ParameterMapping returns tdl::ParameterMapping: OmitValue returns tdl::OmitValue: {tdl::OmitValue} 'omit' name='omit' ( 'with' '{' ('argument' '{' argument+=ParameterBinding ( "," argument+=ParameterBinding)* '}' )? (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')?; Loading Loading @@ -1078,7 +1077,7 @@ StructuredDataType returns tdl::StructuredDataType: 'Type' name=Identifier ('{' constraint+=Constraint '}')* (extension=Extension)? (extension+=Extension (',' extension+=Extension)*)? '(' ( member+=Member ( "," member+=Member)* )? ')' ( 'with' Loading @@ -1092,52 +1091,52 @@ TargetMessage returns tdl::Target: targetGate=[tdl::GateReference|IdentifierDot] //TODO: check what the correct syntax shall be (valueAssignment+=ValueAssignmentMessage)? ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; TargetProcedure returns tdl::Target: targetGate=[tdl::GateReference|IdentifierDot] //TODO: check what the correct syntax shall be (valueAssignment+=ValueAssignmentProcedure ("," valueAssignment+=ValueAssignmentProcedure)*)? ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; ValueAssignmentMessage returns tdl::ValueAssignment: //TODO: check what the correct syntax shall be 'where' 'it' 'is' 'assigned' 'to' variable=[tdl::Variable|Identifier] ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; ValueAssignmentProcedure returns tdl::ValueAssignment: //TODO: check what the correct syntax shall be 'where' parameter=[tdl::Parameter|Identifier] 'is' 'assigned' 'to' variable=[tdl::Variable|Identifier] ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; Loading Loading @@ -1174,7 +1173,7 @@ TestDescription returns tdl::TestDescription: TestDescriptionReference returns tdl::TestDescriptionReference: 'execute' testDescription=[tdl::TestDescription|Identifier] ('(' actualParameter+=ParameterBinding ( "," actualParameter+=ParameterBinding)* ')' )? ('(' argument+=ParameterBinding ( "," argument+=ParameterBinding)* ')' )? ('with' '{' ('bindings' '{' componentInstanceBinding+=ComponentInstanceBinding ( "," componentInstanceBinding+=ComponentInstanceBinding)* '}' )? Loading Loading
plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/TDLan2.xtext +37 −38 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ Action returns tdl::Action: ActionReference returns tdl::ActionReference: 'perform' 'action' action=[tdl::Action|Identifier] ('(' actualParameter+=ParameterBinding ( "," actualParameter+=ParameterBinding)* ')' )? ('(' argument+=ParameterBinding ( "," argument+=ParameterBinding)* ')' )? ('on' componentInstance=[tdl::ComponentInstance|Identifier])? ( 'with' Loading Loading @@ -97,14 +97,13 @@ AnnotationType returns tdl::AnnotationType: AnyValueOrOmit returns tdl::AnyValueOrOmit: {tdl::AnyValueOrOmit} '*' name='*' //('(' argument+=ParameterBinding ( "," argument+=ParameterBinding)* ')' )? ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? ; Loading Loading @@ -154,8 +153,8 @@ Assertion returns tdl::Assertion: ';'; Assignment returns tdl::Assignment: //TODO: shall be mandatory (componentInstance=[tdl::ComponentInstance|Identifier] '->')? //DONE: shall be mandatory -> updated MM superclass //(componentInstance=[tdl::ComponentInstance|Identifier] '->')? variable=VariableUse '=' expression=DataUse Loading Loading @@ -541,6 +540,7 @@ CollectionDataInstance returns tdl::CollectionDataInstance: dataType=[tdl::DataType|Identifier] name=Identifier (unassignedMember=UnassignedMemberTreatment)? 'containing' '{' (item+=StaticDataUse ("," item+=StaticDataUse)*)? '}' Loading Loading @@ -580,7 +580,7 @@ QIdentifier returns ecore::EString: PredefinedIdentifierBinary returns ecore::EString: '+' | '-' | '*' | '/' | 'mod' | '>' | '<' | '>=' | '<=' | '>=' | '>' | '<' | '>=' | '<=' | '==' | '!=' | 'and' | 'or' | 'xor' ; Loading Loading @@ -874,14 +874,13 @@ ParameterMapping returns tdl::ParameterMapping: OmitValue returns tdl::OmitValue: {tdl::OmitValue} 'omit' name='omit' ( 'with' '{' ('argument' '{' argument+=ParameterBinding ( "," argument+=ParameterBinding)* '}' )? (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')?; Loading Loading @@ -1078,7 +1077,7 @@ StructuredDataType returns tdl::StructuredDataType: 'Type' name=Identifier ('{' constraint+=Constraint '}')* (extension=Extension)? (extension+=Extension (',' extension+=Extension)*)? '(' ( member+=Member ( "," member+=Member)* )? ')' ( 'with' Loading @@ -1092,52 +1091,52 @@ TargetMessage returns tdl::Target: targetGate=[tdl::GateReference|IdentifierDot] //TODO: check what the correct syntax shall be (valueAssignment+=ValueAssignmentMessage)? ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; TargetProcedure returns tdl::Target: targetGate=[tdl::GateReference|IdentifierDot] //TODO: check what the correct syntax shall be (valueAssignment+=ValueAssignmentProcedure ("," valueAssignment+=ValueAssignmentProcedure)*)? ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; ValueAssignmentMessage returns tdl::ValueAssignment: //TODO: check what the correct syntax shall be 'where' 'it' 'is' 'assigned' 'to' variable=[tdl::Variable|Identifier] ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; ValueAssignmentProcedure returns tdl::ValueAssignment: //TODO: check what the correct syntax shall be 'where' parameter=[tdl::Parameter|Identifier] 'is' 'assigned' 'to' variable=[tdl::Variable|Identifier] ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=Identifier)? '}')? // ( // 'with' // '{' // (comment+=Comment (comment+=Comment)*)? // (annotation+=Annotation (annotation+=Annotation)*)? // ('name' name=Identifier)? // '}')? ; Loading Loading @@ -1174,7 +1173,7 @@ TestDescription returns tdl::TestDescription: TestDescriptionReference returns tdl::TestDescriptionReference: 'execute' testDescription=[tdl::TestDescription|Identifier] ('(' actualParameter+=ParameterBinding ( "," actualParameter+=ParameterBinding)* ')' )? ('(' argument+=ParameterBinding ( "," argument+=ParameterBinding)* ')' )? ('with' '{' ('bindings' '{' componentInstanceBinding+=ComponentInstanceBinding ( "," componentInstanceBinding+=ComponentInstanceBinding)* '}' )? Loading