Loading plugins/org.etsi.mts.tdl.graphical.labels.data/src/org/etsi/mts/tdl/graphical/labels/Data.xtext +23 −9 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ grammar org.etsi.mts.tdl.graphical.labels.Data with org.eclipse.xtext.common.Terminals //import "http://www.eclipse.org/uml2/4.0.0/Types" import "http://www.etsi.org/spec/TDL/1.4.0" import "http://www.etsi.org/spec/TDL/1.4.1" //import "http://www.eclipse.org/uml2/5.0.0/Types" as types import "http://www.eclipse.org/emf/2002/Ecore" as ecore //import "http://www.etsi.org/spec/TDL/STABLE" as tdl Loading Loading @@ -103,6 +103,7 @@ AnyValue returns AnyValue: ; AnyNoneValue returns AnyValueOrOmit: {AnyValueOrOmit} '*' ; Loading Loading @@ -180,7 +181,7 @@ Function returns Function: Member returns Member: (isOptional=Optional)? name=EString 'of type' 'of' 'type' dataType=[DataType|EString] ( 'with' Loading Loading @@ -261,7 +262,7 @@ Parameter returns Parameter: FormalParameter returns FormalParameter: name=EString 'of type' 'of' 'type' dataType=[DataType|EString] ( 'with' Loading Loading @@ -369,7 +370,7 @@ TimeLabel returns TimeLabel: Variable returns Variable: 'variable' name=EString 'of type' 'of' 'type' dataType=[DataType|EString] ('with' '{' Loading Loading @@ -530,7 +531,7 @@ Interaction returns Message: '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('test objectives' ':' testObjective+=[TestObjective|EString] ( "," testObjective+=[TestObjective|EString])* ';')? ('test' 'objectives' ':' testObjective+=[TestObjective|EString] ( "," testObjective+=[TestObjective|EString])* ';')? ('name' name=EString)? //USE FOR STEPS? ('time' 'label' timeLabel=TimeLabel)? ('time' 'constraints' ':' timeConstraint+=TimeConstraint ( "," timeConstraint+=TimeConstraint)* ';' )? Loading @@ -544,7 +545,7 @@ Trigger returns ecore::EBoolean : Target returns Target: targetGate=[GateReference|EStringDot] ('where it is' 'assigned' 'to' variable=[Variable|EString])? (valueAssignment+=ValueAssignmentMessage)? ( 'with' '{' Loading @@ -554,8 +555,21 @@ Target returns Target: '}')? ; ValueAssignmentMessage returns ValueAssignment: //TODO: check what the correct syntax shall be 'where' 'it' 'is' 'assigned' 'to' variable=[Variable|EString] ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=EString)? '}')? ; VerdictAssignment returns VerdictAssignment: 'set verdict' 'to' 'set' 'verdict' 'to' verdict=DataUse ; Loading @@ -572,7 +586,7 @@ Quiescence returns Quiescence: ; TestDescription returns TestDescription: 'Test Description' 'Test' 'Description' name=EString ('(' formalParameter+=FormalParameter ( "," formalParameter+=FormalParameter)* ')')? ('uses' 'configuration' testConfiguration=[TestConfiguration|EString]) Loading @@ -582,7 +596,7 @@ TestDescription returns TestDescription: TestDescriptionReference returns TestDescriptionReference: testDescription=[TestDescription|EString] ('(' actualParameter+=DataUse ( "," actualParameter+=DataUse)* ')' )? ('(' actualParameter+=ParameterBinding ( "," actualParameter+=ParameterBinding)* ')' )? (componentInstanceBinding+=ComponentInstanceBinding ( "," componentInstanceBinding+=ComponentInstanceBinding)*)? ; Loading Loading
plugins/org.etsi.mts.tdl.graphical.labels.data/src/org/etsi/mts/tdl/graphical/labels/Data.xtext +23 −9 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ grammar org.etsi.mts.tdl.graphical.labels.Data with org.eclipse.xtext.common.Terminals //import "http://www.eclipse.org/uml2/4.0.0/Types" import "http://www.etsi.org/spec/TDL/1.4.0" import "http://www.etsi.org/spec/TDL/1.4.1" //import "http://www.eclipse.org/uml2/5.0.0/Types" as types import "http://www.eclipse.org/emf/2002/Ecore" as ecore //import "http://www.etsi.org/spec/TDL/STABLE" as tdl Loading Loading @@ -103,6 +103,7 @@ AnyValue returns AnyValue: ; AnyNoneValue returns AnyValueOrOmit: {AnyValueOrOmit} '*' ; Loading Loading @@ -180,7 +181,7 @@ Function returns Function: Member returns Member: (isOptional=Optional)? name=EString 'of type' 'of' 'type' dataType=[DataType|EString] ( 'with' Loading Loading @@ -261,7 +262,7 @@ Parameter returns Parameter: FormalParameter returns FormalParameter: name=EString 'of type' 'of' 'type' dataType=[DataType|EString] ( 'with' Loading Loading @@ -369,7 +370,7 @@ TimeLabel returns TimeLabel: Variable returns Variable: 'variable' name=EString 'of type' 'of' 'type' dataType=[DataType|EString] ('with' '{' Loading Loading @@ -530,7 +531,7 @@ Interaction returns Message: '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('test objectives' ':' testObjective+=[TestObjective|EString] ( "," testObjective+=[TestObjective|EString])* ';')? ('test' 'objectives' ':' testObjective+=[TestObjective|EString] ( "," testObjective+=[TestObjective|EString])* ';')? ('name' name=EString)? //USE FOR STEPS? ('time' 'label' timeLabel=TimeLabel)? ('time' 'constraints' ':' timeConstraint+=TimeConstraint ( "," timeConstraint+=TimeConstraint)* ';' )? Loading @@ -544,7 +545,7 @@ Trigger returns ecore::EBoolean : Target returns Target: targetGate=[GateReference|EStringDot] ('where it is' 'assigned' 'to' variable=[Variable|EString])? (valueAssignment+=ValueAssignmentMessage)? ( 'with' '{' Loading @@ -554,8 +555,21 @@ Target returns Target: '}')? ; ValueAssignmentMessage returns ValueAssignment: //TODO: check what the correct syntax shall be 'where' 'it' 'is' 'assigned' 'to' variable=[Variable|EString] ( 'with' '{' (comment+=Comment (comment+=Comment)*)? (annotation+=Annotation (annotation+=Annotation)*)? ('name' name=EString)? '}')? ; VerdictAssignment returns VerdictAssignment: 'set verdict' 'to' 'set' 'verdict' 'to' verdict=DataUse ; Loading @@ -572,7 +586,7 @@ Quiescence returns Quiescence: ; TestDescription returns TestDescription: 'Test Description' 'Test' 'Description' name=EString ('(' formalParameter+=FormalParameter ( "," formalParameter+=FormalParameter)* ')')? ('uses' 'configuration' testConfiguration=[TestConfiguration|EString]) Loading @@ -582,7 +596,7 @@ TestDescription returns TestDescription: TestDescriptionReference returns TestDescriptionReference: testDescription=[TestDescription|EString] ('(' actualParameter+=DataUse ( "," actualParameter+=DataUse)* ')' )? ('(' actualParameter+=ParameterBinding ( "," actualParameter+=ParameterBinding)* ')' )? (componentInstanceBinding+=ComponentInstanceBinding ( "," componentInstanceBinding+=ComponentInstanceBinding)*)? ; Loading