[releng] Xtext comment regeneration
diff --git a/plugins/org.eclipse.ocl.xtext.base/src-gen/org/eclipse/ocl/xtext/base/services/BaseGrammarAccess.java b/plugins/org.eclipse.ocl.xtext.base/src-gen/org/eclipse/ocl/xtext/base/services/BaseGrammarAccess.java
index f2fbad7..6cb659c 100644
--- a/plugins/org.eclipse.ocl.xtext.base/src-gen/org/eclipse/ocl/xtext/base/services/BaseGrammarAccess.java
+++ b/plugins/org.eclipse.ocl.xtext.base/src-gen/org/eclipse/ocl/xtext/base/services/BaseGrammarAccess.java
@@ -451,7 +451,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overridden
- // UnrestrictedName
+ //UnrestrictedName
public RuleCall getUnrestrictedNameParserRuleCall() { return cUnrestrictedNameParserRuleCall; }
}
@@ -464,7 +464,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overridden
- // Identifier
+ //Identifier
public RuleCall getIdentifierParserRuleCall() { return cIdentifierParserRuleCall; }
}
@@ -557,13 +557,12 @@
// * lookahead conflicts in simple lexers between a dot within a floating point number and the dot-dot in a CollectionLiteralPartCS. A
// * practical implementation should give high priority to a successful parse of INT ('.' INT)? (('e' | 'E') ('+' | '-')? INT)? than
// * to the unsuccessful partial parse of INT '..'. The type of the INT terminal is String to allow the floating point syntax to be used.
- // */
- //NUMBER_LITERAL BigNumber:
+ // */ NUMBER_LITERAL BigNumber:
// INT;
@Override public ParserRule getRule() { return rule; }
//// Not terminal to allow parser backtracking to sort out "5..7"
- // INT
+ //INT
public RuleCall getINTTerminalRuleCall() { return cINTTerminalRuleCall; }
}
@@ -572,7 +571,7 @@
private final RuleCall cSINGLE_QUOTED_STRINGTerminalRuleCall = (RuleCall)rule.eContents().get(1);
//// EssentialOCLTokenSource pieces this together ('.' INT)? (('e' | 'E') ('+' | '-')? INT)?;
- // StringLiteral:
+ //StringLiteral:
// SINGLE_QUOTED_STRING;
@Override public ParserRule getRule() { return rule; }
@@ -911,8 +910,7 @@
// * lookahead conflicts in simple lexers between a dot within a floating point number and the dot-dot in a CollectionLiteralPartCS. A
// * practical implementation should give high priority to a successful parse of INT ('.' INT)? (('e' | 'E') ('+' | '-')? INT)? than
// * to the unsuccessful partial parse of INT '..'. The type of the INT terminal is String to allow the floating point syntax to be used.
- // */
- //NUMBER_LITERAL BigNumber:
+ // */ NUMBER_LITERAL BigNumber:
// INT;
public NUMBER_LITERALElements getNUMBER_LITERALAccess() {
return pNUMBER_LITERAL;
@@ -923,7 +921,7 @@
}
//// EssentialOCLTokenSource pieces this together ('.' INT)? (('e' | 'E') ('+' | '-')? INT)?;
- // StringLiteral:
+ //StringLiteral:
// SINGLE_QUOTED_STRING;
public StringLiteralElements getStringLiteralAccess() {
return pStringLiteral;
diff --git a/plugins/org.eclipse.ocl.xtext.completeocl/src-gen/org/eclipse/ocl/xtext/completeocl/services/CompleteOCLGrammarAccess.java b/plugins/org.eclipse.ocl.xtext.completeocl/src-gen/org/eclipse/ocl/xtext/completeocl/services/CompleteOCLGrammarAccess.java
index 7443941..2297663 100644
--- a/plugins/org.eclipse.ocl.xtext.completeocl/src-gen/org/eclipse/ocl/xtext/completeocl/services/CompleteOCLGrammarAccess.java
+++ b/plugins/org.eclipse.ocl.xtext.completeocl/src-gen/org/eclipse/ocl/xtext/completeocl/services/CompleteOCLGrammarAccess.java
@@ -44,8 +44,7 @@
// * bullet[libraries to augment or override the OCL Standard Library]
// * bullet[package declarations for package-grouped declarations]
// * bullet[context declarations for independent declarations]
- // */
- //CompleteOCLDocumentCS:
+ // */ CompleteOCLDocumentCS:
// ownedImports+=ImportCS* (ownedPackages+=PackageDeclarationCS | ownedContexts+=ContextDeclCS)*;
@Override public ParserRule getRule() { return rule; }
@@ -113,8 +112,8 @@
private final RuleCall cOwnedDefinitionsDefCSParserRuleCall_4_1_0 = (RuleCall)cOwnedDefinitionsAssignment_4_1.eContents().get(0);
//ClassifierContextDeclCS:
- // 'context' ownedSignature=TemplateSignatureCS? selfName=UnrestrictedName? ownedPathName=PathNameCS ('inv'
- // ownedInvariants+=ConstraintCS | ownedDefinitions+=DefCS)+;
+ // 'context' ownedSignature=TemplateSignatureCS? selfName=UnrestrictedName?
+ // ownedPathName=PathNameCS ('inv' ownedInvariants+=ConstraintCS | ownedDefinitions+=DefCS)+;
@Override public ParserRule getRule() { return rule; }
//'context' ownedSignature=TemplateSignatureCS? selfName=UnrestrictedName? ownedPathName=PathNameCS ('inv'
@@ -187,8 +186,7 @@
// * comprises at least the OCL specification of the constraint. The constraint may
// * additionally have a name which may be followed by a parenthesized expression defining an OCL
// * expression to be evaluated to provide an error message.
- // */
- //ConstraintCS base::ConstraintCS:
+ // */ ConstraintCS base::ConstraintCS:
// (name=UnrestrictedName ('(' ownedMessageSpecification=SpecificationCS ')')?)? ':' ownedSpecification=SpecificationCS;
@Override public ParserRule getRule() { return rule; }
@@ -239,7 +237,9 @@
///*
// * A Context declaration can be a Classifier, Operation of Property Context declaration.
// */ ContextDeclCS:
- // PropertyContextDeclCS | ClassifierContextDeclCS | OperationContextDeclCS;
+ // PropertyContextDeclCS
+ // | ClassifierContextDeclCS
+ // | OperationContextDeclCS;
@Override public ParserRule getRule() { return rule; }
//PropertyContextDeclCS | ClassifierContextDeclCS | OperationContextDeclCS
@@ -314,11 +314,11 @@
// * The operation may have parameters and may be declared static in which case there is no oclText[self].
// *
// * For compatibility with invariants the definition may have a name that is never used.
- // */
- //DefOperationCS:
- // isStatic?='static'? 'def' UnrestrictedName? ':' ownedSignature=TemplateSignatureCS? name=UnrestrictedName '('
- // (ownedParameters+=DefParameterCS (',' ownedParameters+=DefParameterCS)*)? ')' ':' ownedType=TypeExpCS? '='
- // ownedSpecification=SpecificationCS;
+ // */ DefOperationCS:
+ // isStatic?='static'? 'def' UnrestrictedName? ':' ownedSignature=TemplateSignatureCS?
+ // name=UnrestrictedName '(' (ownedParameters+=DefParameterCS (',' ownedParameters+=DefParameterCS)*)? ')' ':'
+ // ownedType=TypeExpCS?
+ // '=' ownedSpecification=SpecificationCS;
@Override public ParserRule getRule() { return rule; }
//isStatic?='static'? 'def' UnrestrictedName? ':' ownedSignature=TemplateSignatureCS? name=UnrestrictedName '('
@@ -457,10 +457,9 @@
// * The property may be declared static in which case there is no oclText[self].
// *
// * For compatibility with invariants the definition may have a name that is never used.
- // */
- //DefPropertyCS:
- // isStatic?='static'? 'def' UnrestrictedName? ':' name=UnrestrictedName ':' ownedType=TypeExpCS '='
- // ownedSpecification=SpecificationCS;
+ // */ DefPropertyCS:
+ // isStatic?='static'? 'def' UnrestrictedName? ':' name=UnrestrictedName ':' ownedType=TypeExpCS
+ // '=' ownedSpecification=SpecificationCS;
@Override public ParserRule getRule() { return rule; }
//isStatic?='static'? 'def' UnrestrictedName? ':' name=UnrestrictedName ':' ownedType=TypeExpCS '='
@@ -618,11 +617,11 @@
// * and/or postconditions. It may also be followed by a body expression that defines the evaluation.
// *
// * For compatibility with invariants the body expression may have a name that is never used.
- // */
- //OperationContextDeclCS:
- // 'context' ownedSignature=TemplateSignatureCS? ownedPathName=PathNameCS '(' (ownedParameters+=ParameterCS (','
- // ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypeExpCS? ('pre' ownedPreconditions+=ConstraintCS | 'post'
- // ownedPostconditions+=ConstraintCS | 'body' UnrestrictedName? ':' ownedBodies+=SpecificationCS)*;
+ // */ OperationContextDeclCS:
+ // 'context' ownedSignature=TemplateSignatureCS? ownedPathName=PathNameCS
+ // '(' (ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypeExpCS? ('pre'
+ // ownedPreconditions+=ConstraintCS | 'post' ownedPostconditions+=ConstraintCS | 'body' UnrestrictedName? ':'
+ // ownedBodies+=SpecificationCS)*;
@Override public ParserRule getRule() { return rule; }
//'context' ownedSignature=TemplateSignatureCS? ownedPathName=PathNameCS '(' (ownedParameters+=ParameterCS (','
@@ -856,10 +855,9 @@
// *
// * For a derived property, an init expression defines the evaluation of the property, which
// * may vary from access to access even for read-only properties.
- // */
- //PropertyContextDeclCS:
- // 'context' ownedPathName=PathNameCS ':' ownedType=TypeExpCS ('derive' ownedDerivedInvariants+=ConstraintCS | 'init'
- // ':' ownedDefaultExpressions+=SpecificationCS)*;
+ // */ PropertyContextDeclCS:
+ // 'context' ownedPathName=PathNameCS ':' ownedType=TypeExpCS ('derive' ownedDerivedInvariants+=ConstraintCS | 'init' ':'
+ // ownedDefaultExpressions+=SpecificationCS)*;
@Override public ParserRule getRule() { return rule; }
//'context' ownedPathName=PathNameCS ':' ownedType=TypeExpCS ('derive' ownedDerivedInvariants+=ConstraintCS | 'init' ':'
@@ -966,11 +964,9 @@
private final Keyword cGreaterThanSignKeyword_1_3 = (Keyword)cGroup_1.eContents().get(3);
////---------------------------------------------------------------------------------
- // // Base overrides
- //
+ //// Base overrides
////---------------------------------------------------------------------------------
- // TemplateSignatureCS
- //base::TemplateSignatureCS:
+ //TemplateSignatureCS base::TemplateSignatureCS:
// '(' ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* ')' | '<'
// ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* '>';
@Override public ParserRule getRule() { return rule; }
@@ -1063,30 +1059,32 @@
private final Keyword cLibraryKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
//UnrestrictedName:
- // EssentialOCLUnrestrictedName //| 'body'
- // //| 'context'
- // //| 'def'
- // //| 'derive'
- // //| 'endpackage'
- // | 'import' |
- // 'include' //| 'init'
- // //| 'inv'
- // | 'library' //| 'package'
- // //| 'post'
- // //| 'pre'
- // //| 'static'
+ // EssentialOCLUnrestrictedName
+ // //| 'body'
+ // //| 'context'
+ // //| 'def'
+ // //| 'derive'
+ // //| 'endpackage'
+ // | 'import'
+ // | 'include'
+ // //| 'init'
+ // //| 'inv'
+ // | 'library'
+ // //| 'package'
+ // //| 'post'
+ // //| 'pre'
+ // //| 'static'
//;
@Override public ParserRule getRule() { return rule; }
//EssentialOCLUnrestrictedName //| 'body'
- // //| 'context'
- // //| 'def'
- // //| 'derive'
- // //| 'endpackage'
- // | 'import' |
- //'include' //| 'init'
- // //| 'inv'
- // | 'library'
+ ////| 'context'
+ ////| 'def'
+ ////| 'derive'
+ ////| 'endpackage'
+ //| 'import' | 'include' //| 'init'
+ ////| 'inv'
+ //| 'library'
public Alternatives getAlternatives() { return cAlternatives; }
//EssentialOCLUnrestrictedName
@@ -1111,11 +1109,9 @@
private final RuleCall cExpCSParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
////---------------------------------------------------------------------------------
- // // EssentialOCL overrides
- //
+ //// EssentialOCL overrides
////---------------------------------------------------------------------------------
- // NavigatingArgExpCS
- //essentialocl::ExpCS:
+ //NavigatingArgExpCS essentialocl::ExpCS:
// {OCLMessageArgCS} '?' | ExpCS;
@Override public ParserRule getRule() { return rule; }
@@ -1170,7 +1166,15 @@
private final Keyword cOclVoidKeyword_9 = (Keyword)cAlternatives.eContents().get(9);
//PrimitiveTypeIdentifier:
- // 'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclMessage' | 'OclState'
+ // 'Boolean'
+ // | 'Integer'
+ // | 'Real'
+ // | 'String'
+ // | 'UnlimitedNatural'
+ // | 'OclAny'
+ // | 'OclInvalid'
+ // | 'OclMessage'
+ // | 'OclState'
// | 'OclVoid';
@Override public ParserRule getRule() { return rule; }
@@ -1308,8 +1312,7 @@
// * bullet[libraries to augment or override the OCL Standard Library]
// * bullet[package declarations for package-grouped declarations]
// * bullet[context declarations for independent declarations]
- // */
- //CompleteOCLDocumentCS:
+ // */ CompleteOCLDocumentCS:
// ownedImports+=ImportCS* (ownedPackages+=PackageDeclarationCS | ownedContexts+=ContextDeclCS)*;
public CompleteOCLDocumentCSElements getCompleteOCLDocumentCSAccess() {
return pCompleteOCLDocumentCS;
@@ -1320,8 +1323,7 @@
}
//terminal UNQUOTED_STRING: // Never forward parsed; just provides a placeholder
- // '£$%^£$%^'
- // // for reverse serialisation of embedded OCL
+ // '£$%^£$%^' // for reverse serialisation of embedded OCL
//;
public TerminalRule getUNQUOTED_STRINGRule() {
return tUNQUOTED_STRING;
@@ -1338,8 +1340,8 @@
}
//ClassifierContextDeclCS:
- // 'context' ownedSignature=TemplateSignatureCS? selfName=UnrestrictedName? ownedPathName=PathNameCS ('inv'
- // ownedInvariants+=ConstraintCS | ownedDefinitions+=DefCS)+;
+ // 'context' ownedSignature=TemplateSignatureCS? selfName=UnrestrictedName?
+ // ownedPathName=PathNameCS ('inv' ownedInvariants+=ConstraintCS | ownedDefinitions+=DefCS)+;
public ClassifierContextDeclCSElements getClassifierContextDeclCSAccess() {
return pClassifierContextDeclCS;
}
@@ -1356,8 +1358,7 @@
// * comprises at least the OCL specification of the constraint. The constraint may
// * additionally have a name which may be followed by a parenthesized expression defining an OCL
// * expression to be evaluated to provide an error message.
- // */
- //ConstraintCS base::ConstraintCS:
+ // */ ConstraintCS base::ConstraintCS:
// (name=UnrestrictedName ('(' ownedMessageSpecification=SpecificationCS ')')?)? ':' ownedSpecification=SpecificationCS;
public ConstraintCSElements getConstraintCSAccess() {
return pConstraintCS;
@@ -1370,7 +1371,9 @@
///*
// * A Context declaration can be a Classifier, Operation of Property Context declaration.
// */ ContextDeclCS:
- // PropertyContextDeclCS | ClassifierContextDeclCS | OperationContextDeclCS;
+ // PropertyContextDeclCS
+ // | ClassifierContextDeclCS
+ // | OperationContextDeclCS;
public ContextDeclCSElements getContextDeclCSAccess() {
return pContextDeclCS;
}
@@ -1400,11 +1403,11 @@
// * The operation may have parameters and may be declared static in which case there is no oclText[self].
// *
// * For compatibility with invariants the definition may have a name that is never used.
- // */
- //DefOperationCS:
- // isStatic?='static'? 'def' UnrestrictedName? ':' ownedSignature=TemplateSignatureCS? name=UnrestrictedName '('
- // (ownedParameters+=DefParameterCS (',' ownedParameters+=DefParameterCS)*)? ')' ':' ownedType=TypeExpCS? '='
- // ownedSpecification=SpecificationCS;
+ // */ DefOperationCS:
+ // isStatic?='static'? 'def' UnrestrictedName? ':' ownedSignature=TemplateSignatureCS?
+ // name=UnrestrictedName '(' (ownedParameters+=DefParameterCS (',' ownedParameters+=DefParameterCS)*)? ')' ':'
+ // ownedType=TypeExpCS?
+ // '=' ownedSpecification=SpecificationCS;
public DefOperationCSElements getDefOperationCSAccess() {
return pDefOperationCS;
}
@@ -1432,10 +1435,9 @@
// * The property may be declared static in which case there is no oclText[self].
// *
// * For compatibility with invariants the definition may have a name that is never used.
- // */
- //DefPropertyCS:
- // isStatic?='static'? 'def' UnrestrictedName? ':' name=UnrestrictedName ':' ownedType=TypeExpCS '='
- // ownedSpecification=SpecificationCS;
+ // */ DefPropertyCS:
+ // isStatic?='static'? 'def' UnrestrictedName? ':' name=UnrestrictedName ':' ownedType=TypeExpCS
+ // '=' ownedSpecification=SpecificationCS;
public DefPropertyCSElements getDefPropertyCSAccess() {
return pDefPropertyCS;
}
@@ -1469,11 +1471,11 @@
// * and/or postconditions. It may also be followed by a body expression that defines the evaluation.
// *
// * For compatibility with invariants the body expression may have a name that is never used.
- // */
- //OperationContextDeclCS:
- // 'context' ownedSignature=TemplateSignatureCS? ownedPathName=PathNameCS '(' (ownedParameters+=ParameterCS (','
- // ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypeExpCS? ('pre' ownedPreconditions+=ConstraintCS | 'post'
- // ownedPostconditions+=ConstraintCS | 'body' UnrestrictedName? ':' ownedBodies+=SpecificationCS)*;
+ // */ OperationContextDeclCS:
+ // 'context' ownedSignature=TemplateSignatureCS? ownedPathName=PathNameCS
+ // '(' (ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypeExpCS? ('pre'
+ // ownedPreconditions+=ConstraintCS | 'post' ownedPostconditions+=ConstraintCS | 'body' UnrestrictedName? ':'
+ // ownedBodies+=SpecificationCS)*;
public OperationContextDeclCSElements getOperationContextDeclCSAccess() {
return pOperationContextDeclCS;
}
@@ -1522,10 +1524,9 @@
// *
// * For a derived property, an init expression defines the evaluation of the property, which
// * may vary from access to access even for read-only properties.
- // */
- //PropertyContextDeclCS:
- // 'context' ownedPathName=PathNameCS ':' ownedType=TypeExpCS ('derive' ownedDerivedInvariants+=ConstraintCS | 'init'
- // ':' ownedDefaultExpressions+=SpecificationCS)*;
+ // */ PropertyContextDeclCS:
+ // 'context' ownedPathName=PathNameCS ':' ownedType=TypeExpCS ('derive' ownedDerivedInvariants+=ConstraintCS | 'init' ':'
+ // ownedDefaultExpressions+=SpecificationCS)*;
public PropertyContextDeclCSElements getPropertyContextDeclCSAccess() {
return pPropertyContextDeclCS;
}
@@ -1545,11 +1546,9 @@
}
////---------------------------------------------------------------------------------
- // // Base overrides
- //
+ //// Base overrides
////---------------------------------------------------------------------------------
- // TemplateSignatureCS
- //base::TemplateSignatureCS:
+ //TemplateSignatureCS base::TemplateSignatureCS:
// '(' ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* ')' | '<'
// ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* '>';
public TemplateSignatureCSElements getTemplateSignatureCSAccess() {
@@ -1571,18 +1570,21 @@
}
//UnrestrictedName:
- // EssentialOCLUnrestrictedName //| 'body'
- // //| 'context'
- // //| 'def'
- // //| 'derive'
- // //| 'endpackage'
- // | 'import' |
- // 'include' //| 'init'
- // //| 'inv'
- // | 'library' //| 'package'
- // //| 'post'
- // //| 'pre'
- // //| 'static'
+ // EssentialOCLUnrestrictedName
+ // //| 'body'
+ // //| 'context'
+ // //| 'def'
+ // //| 'derive'
+ // //| 'endpackage'
+ // | 'import'
+ // | 'include'
+ // //| 'init'
+ // //| 'inv'
+ // | 'library'
+ // //| 'package'
+ // //| 'post'
+ // //| 'pre'
+ // //| 'static'
//;
public UnrestrictedNameElements getUnrestrictedNameAccess() {
return pUnrestrictedName;
@@ -1593,11 +1595,9 @@
}
////---------------------------------------------------------------------------------
- // // EssentialOCL overrides
- //
+ //// EssentialOCL overrides
////---------------------------------------------------------------------------------
- // NavigatingArgExpCS
- //essentialocl::ExpCS:
+ //NavigatingArgExpCS essentialocl::ExpCS:
// {OCLMessageArgCS} '?' | ExpCS;
public NavigatingArgExpCSElements getNavigatingArgExpCSAccess() {
return pNavigatingArgExpCS;
@@ -1618,7 +1618,15 @@
}
//PrimitiveTypeIdentifier:
- // 'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclMessage' | 'OclState'
+ // 'Boolean'
+ // | 'Integer'
+ // | 'Real'
+ // | 'String'
+ // | 'UnlimitedNatural'
+ // | 'OclAny'
+ // | 'OclInvalid'
+ // | 'OclMessage'
+ // | 'OclState'
// | 'OclVoid';
public PrimitiveTypeIdentifierElements getPrimitiveTypeIdentifierAccess() {
return pPrimitiveTypeIdentifier;
@@ -1629,7 +1637,7 @@
}
////generate essentialOCLCST "http://www.eclipse.org/ocl/3.0.0/EssentialOCLCST"
- // Model ContextCS:
+ //Model ContextCS:
// ownedExpression=ExpCS;
public EssentialOCLGrammarAccess.ModelElements getModelAccess() {
return gaEssentialOCL.getModelAccess();
@@ -1641,7 +1649,17 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLReservedKeyword:
- // 'and' | 'else' | 'endif' | 'if' | 'implies' | 'in' | 'let' | 'not' | 'or' | 'then' | 'xor';
+ // 'and'
+ // | 'else'
+ // | 'endif'
+ // | 'if'
+ // | 'implies'
+ // | 'in'
+ // | 'let'
+ // | 'not'
+ // | 'or'
+ // | 'then'
+ // | 'xor';
public EssentialOCLGrammarAccess.EssentialOCLReservedKeywordElements getEssentialOCLReservedKeywordAccess() {
return gaEssentialOCL.getEssentialOCLReservedKeywordAccess();
}
@@ -1714,10 +1732,8 @@
}
////---------------------------------------------------------------------
- // // Names
- //
+ //// Names
////---------------------------------------------------------------------
- //
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnrestrictedName:
// Identifier;
@@ -1731,7 +1747,11 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnreservedName:
- // super::UnrestrictedName | CollectionTypeIdentifier | super::PrimitiveTypeIdentifier | 'Map' | 'Tuple';
+ // super::UnrestrictedName
+ // | CollectionTypeIdentifier
+ // | super::PrimitiveTypeIdentifier
+ // | 'Map'
+ // | 'Tuple';
public EssentialOCLGrammarAccess.EssentialOCLUnreservedNameElements getEssentialOCLUnreservedNameAccess() {
return gaEssentialOCL.getEssentialOCLUnreservedNameAccess();
}
@@ -1792,7 +1812,11 @@
}
//CollectionTypeIdentifier:
- // 'Set' | 'Bag' | 'Sequence' | 'Collection' | 'OrderedSet';
+ // 'Set'
+ // | 'Bag'
+ // | 'Sequence'
+ // | 'Collection'
+ // | 'OrderedSet';
public EssentialOCLGrammarAccess.CollectionTypeIdentifierElements getCollectionTypeIdentifierAccess() {
return gaEssentialOCL.getCollectionTypeIdentifierAccess();
}
@@ -1843,11 +1867,12 @@
}
////---------------------------------------------------------------------
- // // Literals
- //
+ //// Literals
////---------------------------------------------------------------------
- // CollectionLiteralExpCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)? '}';
+ //CollectionLiteralExpCS:
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)?
+ // '}';
public EssentialOCLGrammarAccess.CollectionLiteralExpCSElements getCollectionLiteralExpCSAccess() {
return gaEssentialOCL.getCollectionLiteralExpCSAccess();
}
@@ -1867,8 +1892,9 @@
}
//CollectionPatternCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++'
- // restVariableName=Identifier))? '}';
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++' restVariableName=Identifier))?
+ // '}';
public EssentialOCLGrammarAccess.CollectionPatternCSElements getCollectionPatternCSAccess() {
return gaEssentialOCL.getCollectionPatternCSAccess();
}
@@ -1929,8 +1955,12 @@
}
//PrimitiveLiteralExpCS:
- // NumberLiteralExpCS | StringLiteralExpCS | BooleanLiteralExpCS | UnlimitedNaturalLiteralExpCS | InvalidLiteralExpCS |
- // NullLiteralExpCS;
+ // NumberLiteralExpCS
+ // | StringLiteralExpCS
+ // | BooleanLiteralExpCS
+ // | UnlimitedNaturalLiteralExpCS
+ // | InvalidLiteralExpCS
+ // | NullLiteralExpCS;
public EssentialOCLGrammarAccess.PrimitiveLiteralExpCSElements getPrimitiveLiteralExpCSAccess() {
return gaEssentialOCL.getPrimitiveLiteralExpCSAccess();
}
@@ -1980,7 +2010,8 @@
}
//BooleanLiteralExpCS:
- // symbol='true' | symbol='false';
+ // symbol='true'
+ // | symbol='false';
public EssentialOCLGrammarAccess.BooleanLiteralExpCSElements getBooleanLiteralExpCSAccess() {
return gaEssentialOCL.getBooleanLiteralExpCSAccess();
}
@@ -2020,7 +2051,10 @@
}
//TypeLiteralCS base::TypedRefCS:
- // PrimitiveTypeCS | CollectionTypeCS | MapTypeCS | TupleTypeCS;
+ // PrimitiveTypeCS
+ // | CollectionTypeCS
+ // | MapTypeCS
+ // | TupleTypeCS;
public EssentialOCLGrammarAccess.TypeLiteralCSElements getTypeLiteralCSAccess() {
return gaEssentialOCL.getTypeLiteralCSAccess();
}
@@ -2080,22 +2114,15 @@
}
////---------------------------------------------------------------------
- // // Expressions
- //
+ //// Expressions
////---------------------------------------------------------------------
- //
//// An ExpCS permits a LetExpCS only in the final term to ensure
- //
//// that let is right associative, whereas infix operators are left associative.
- //
//// a = 64 / 16 / let b : Integer in 8 / let c : Integer in 4
- // // is
- //
+ //// is
//// a = (64 / 16) / (let b : Integer in 8 / (let c : Integer in 4 ))
- //
///* An expression elaborates a prefixed expression with zero or more binary operator and expression suffixes.
- // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/
- //ExpCS:
+ // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/ ExpCS:
// PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS;
public EssentialOCLGrammarAccess.ExpCSElements getExpCSAccess() {
return gaEssentialOCL.getExpCSAccess();
@@ -2129,8 +2156,16 @@
///* A primary expression identifies the basic expressions from which more complex expressions may be constructed. */
//PrimaryExpCS ExpCS:
- // NestedExpCS | IfExpCS | SelfExpCS | PrimitiveLiteralExpCS | TupleLiteralExpCS | MapLiteralExpCS |
- // CollectionLiteralExpCS | LambdaLiteralExpCS | TypeLiteralExpCS | NameExpCS;
+ // NestedExpCS
+ // | IfExpCS
+ // | SelfExpCS
+ // | PrimitiveLiteralExpCS
+ // | TupleLiteralExpCS
+ // | MapLiteralExpCS
+ // | CollectionLiteralExpCS
+ // | LambdaLiteralExpCS
+ // | TypeLiteralExpCS
+ // | NameExpCS;
public EssentialOCLGrammarAccess.PrimaryExpCSElements getPrimaryExpCSAccess() {
return gaEssentialOCL.getPrimaryExpCSAccess();
}
@@ -2140,8 +2175,7 @@
}
///* A name expression is a generalised rule for expressions that start with a name and which may be followed by square, round or
- // * curly bracket clauses and optionally an @pre as well.*/
- //NameExpCS:
+ // * curly bracket clauses and optionally an @pre as well.*/ NameExpCS:
// ownedPathName=PathNameCS ownedSquareBracketedClauses+=SquareBracketedClauseCS*
// ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@'
// 'pre')?;
@@ -2187,12 +2221,12 @@
}
///* A navigating argument is a generalized rule for the first argument in a round bracket clause. This is typically the first operation
- // * parameter or an iterator. */
- //NavigatingArgCS:
+ // * parameter or an iterator. */ NavigatingArgCS:
// ownedNameExpression=super::NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('='
// ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('='
// ownedInitExpression=ExpCS)? | (':' ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in'
- // ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS;
+ // ownedInitExpression=ExpCS)?
+ // | ':' ownedType=TypeExpCS;
public EssentialOCLGrammarAccess.NavigatingArgCSElements getNavigatingArgCSAccess() {
return gaEssentialOCL.getNavigatingArgCSAccess();
}
@@ -2202,7 +2236,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating bar argument is a generalized rule for a bar-prefixed argument in a round bracket clause. This is typically the body of an iteration. */
//NavigatingBarArgCS NavigatingArgCS:
// prefix='|' ownedNameExpression=super::NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -2215,10 +2248,8 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating comma argument is a generalized rule for non-first argument in a round bracket clause. These are typically non-first operation
- // * parameters or a second iterator. */
- //NavigatingCommaArgCS NavigatingArgCS:
+ // * parameters or a second iterator. */ NavigatingCommaArgCS NavigatingArgCS:
// prefix=',' ownedNameExpression=super::NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('='
// ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('='
// ownedInitExpression=ExpCS)? | (':' ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in'
@@ -2232,7 +2263,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating semi argument is a generalized rule for a semicolon prefixed argument in a round bracket clause. This is typically an iterate accumulator. */
//NavigatingSemiArgCS NavigatingArgCS:
// prefix=';' ownedNameExpression=super::NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -2255,9 +2285,12 @@
}
//IfExpCS:
- // 'if' ownedCondition=(ExpCS | PatternExpCS) 'then' ownedThenExpression=ExpCS // ifThenExpressions+=IfThenExpCS
- //
- // ownedIfThenExpressions+=ElseIfThenExpCS* 'else' ownedElseExpression=ExpCS 'endif';
+ // 'if' ownedCondition=(ExpCS | PatternExpCS)
+ // 'then' ownedThenExpression=ExpCS
+ // // ifThenExpressions+=IfThenExpCS
+ // ownedIfThenExpressions+=ElseIfThenExpCS*
+ // 'else' ownedElseExpression=ExpCS
+ // 'endif';
public EssentialOCLGrammarAccess.IfExpCSElements getIfExpCSAccess() {
return gaEssentialOCL.getIfExpCSAccess();
}
@@ -2267,12 +2300,12 @@
}
////IfThenExpCS returns IfThenExpCS:
- // // 'if' condition=ExpCS
- // // 'then' thenExpression=ExpCS
- // //;
- // ElseIfThenExpCS
- //IfThenExpCS:
- // 'elseif' ownedCondition=ExpCS 'then' ownedThenExpression=ExpCS;
+ //// 'if' condition=ExpCS
+ //// 'then' thenExpression=ExpCS
+ ////;
+ //ElseIfThenExpCS IfThenExpCS:
+ // 'elseif' ownedCondition=ExpCS
+ // 'then' ownedThenExpression=ExpCS;
public EssentialOCLGrammarAccess.ElseIfThenExpCSElements getElseIfThenExpCSAccess() {
return gaEssentialOCL.getElseIfThenExpCSAccess();
}
@@ -2282,7 +2315,8 @@
}
//LetExpCS:
- // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)* 'in' ownedInExpression=ExpCS;
+ // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)*
+ // 'in' ownedInExpression=ExpCS;
public EssentialOCLGrammarAccess.LetExpCSElements getLetExpCSAccess() {
return gaEssentialOCL.getLetExpCSAccess();
}
@@ -2478,8 +2512,7 @@
// * lookahead conflicts in simple lexers between a dot within a floating point number and the dot-dot in a CollectionLiteralPartCS. A
// * practical implementation should give high priority to a successful parse of INT ('.' INT)? (('e' | 'E') ('+' | '-')? INT)? than
// * to the unsuccessful partial parse of INT '..'. The type of the INT terminal is String to allow the floating point syntax to be used.
- // */
- //NUMBER_LITERAL BigNumber:
+ // */ NUMBER_LITERAL BigNumber:
// INT;
public BaseGrammarAccess.NUMBER_LITERALElements getNUMBER_LITERALAccess() {
return gaBase.getNUMBER_LITERALAccess();
@@ -2490,7 +2523,7 @@
}
//// EssentialOCLTokenSource pieces this together ('.' INT)? (('e' | 'E') ('+' | '-')? INT)?;
- // StringLiteral:
+ //StringLiteral:
// SINGLE_QUOTED_STRING;
public BaseGrammarAccess.StringLiteralElements getStringLiteralAccess() {
return gaBase.getStringLiteralAccess();
diff --git a/plugins/org.eclipse.ocl.xtext.essentialocl/src-gen/org/eclipse/ocl/xtext/essentialocl/services/EssentialOCLGrammarAccess.java b/plugins/org.eclipse.ocl.xtext.essentialocl/src-gen/org/eclipse/ocl/xtext/essentialocl/services/EssentialOCLGrammarAccess.java
index 1cab109..c456043 100644
--- a/plugins/org.eclipse.ocl.xtext.essentialocl/src-gen/org/eclipse/ocl/xtext/essentialocl/services/EssentialOCLGrammarAccess.java
+++ b/plugins/org.eclipse.ocl.xtext.essentialocl/src-gen/org/eclipse/ocl/xtext/essentialocl/services/EssentialOCLGrammarAccess.java
@@ -31,7 +31,7 @@
private final RuleCall cOwnedExpressionExpCSParserRuleCall_0 = (RuleCall)cOwnedExpressionAssignment.eContents().get(0);
////generate essentialOCLCST "http://www.eclipse.org/ocl/3.0.0/EssentialOCLCST"
- // Model ContextCS:
+ //Model ContextCS:
// ownedExpression=ExpCS;
@Override public ParserRule getRule() { return rule; }
@@ -59,7 +59,17 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLReservedKeyword:
- // 'and' | 'else' | 'endif' | 'if' | 'implies' | 'in' | 'let' | 'not' | 'or' | 'then' | 'xor';
+ // 'and'
+ // | 'else'
+ // | 'endif'
+ // | 'if'
+ // | 'implies'
+ // | 'in'
+ // | 'let'
+ // | 'not'
+ // | 'or'
+ // | 'then'
+ // | 'xor';
@Override public ParserRule getRule() { return rule; }
//'and' | 'else' | 'endif' | 'if' | 'implies' | 'in' | 'let' | 'not' | 'or' | 'then' | 'xor'
@@ -247,7 +257,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overrideable
- // EssentialOCLInfixOperatorName
+ //EssentialOCLInfixOperatorName
public RuleCall getEssentialOCLInfixOperatorNameParserRuleCall() { return cEssentialOCLInfixOperatorNameParserRuleCall; }
}
@@ -260,7 +270,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overrideable
- // EssentialOCLNavigationOperatorName
+ //EssentialOCLNavigationOperatorName
public RuleCall getEssentialOCLNavigationOperatorNameParserRuleCall() { return cEssentialOCLNavigationOperatorNameParserRuleCall; }
}
@@ -273,7 +283,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overrideable
- // EssentialOCLUnaryOperatorName
+ //EssentialOCLUnaryOperatorName
public RuleCall getEssentialOCLUnaryOperatorNameParserRuleCall() { return cEssentialOCLUnaryOperatorNameParserRuleCall; }
}
@@ -282,10 +292,8 @@
private final RuleCall cIdentifierParserRuleCall = (RuleCall)rule.eContents().get(1);
////---------------------------------------------------------------------
- // // Names
- //
+ //// Names
////---------------------------------------------------------------------
- //
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnrestrictedName:
// Identifier;
@@ -304,7 +312,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overridden
- // EssentialOCLUnrestrictedName
+ //EssentialOCLUnrestrictedName
public RuleCall getEssentialOCLUnrestrictedNameParserRuleCall() { return cEssentialOCLUnrestrictedNameParserRuleCall; }
}
@@ -319,7 +327,11 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnreservedName:
- // UnrestrictedName | CollectionTypeIdentifier | PrimitiveTypeIdentifier | 'Map' | 'Tuple';
+ // UnrestrictedName
+ // | CollectionTypeIdentifier
+ // | PrimitiveTypeIdentifier
+ // | 'Map'
+ // | 'Tuple';
@Override public ParserRule getRule() { return rule; }
//UnrestrictedName | CollectionTypeIdentifier | PrimitiveTypeIdentifier | 'Map' | 'Tuple'
@@ -350,7 +362,7 @@
@Override public ParserRule getRule() { return rule; }
//// Intended to be overridden
- // EssentialOCLUnreservedName
+ //EssentialOCLUnreservedName
public RuleCall getEssentialOCLUnreservedNameParserRuleCall() { return cEssentialOCLUnreservedNameParserRuleCall; }
}
@@ -465,11 +477,17 @@
private final Keyword cOclVoidKeyword_7 = (Keyword)cAlternatives.eContents().get(7);
////---------------------------------------------------------------------
- // // Types
- //
+ //// Types
////---------------------------------------------------------------------
- // PrimitiveTypeIdentifier:
- // 'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclVoid';
+ //PrimitiveTypeIdentifier:
+ // 'Boolean'
+ // | 'Integer'
+ // | 'Real'
+ // | 'String'
+ // | 'UnlimitedNatural'
+ // | 'OclAny'
+ // | 'OclInvalid'
+ // | 'OclVoid';
@Override public ParserRule getRule() { return rule; }
//'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclVoid'
@@ -526,7 +544,11 @@
private final Keyword cOrderedSetKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
//CollectionTypeIdentifier:
- // 'Set' | 'Bag' | 'Sequence' | 'Collection' | 'OrderedSet';
+ // 'Set'
+ // | 'Bag'
+ // | 'Sequence'
+ // | 'Collection'
+ // | 'OrderedSet';
@Override public ParserRule getRule() { return rule; }
//'Set' | 'Bag' | 'Sequence' | 'Collection' | 'OrderedSet'
@@ -758,11 +780,12 @@
private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
////---------------------------------------------------------------------
- // // Literals
- //
+ //// Literals
////---------------------------------------------------------------------
- // CollectionLiteralExpCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)? '}';
+ //CollectionLiteralExpCS:
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)?
+ // '}';
@Override public ParserRule getRule() { return rule; }
//ownedType=CollectionTypeCS '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)? '}'
@@ -870,8 +893,9 @@
private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
//CollectionPatternCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++'
- // restVariableName=Identifier))? '}';
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++' restVariableName=Identifier))?
+ // '}';
@Override public ParserRule getRule() { return rule; }
//ownedType=CollectionTypeCS '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++'
@@ -945,12 +969,12 @@
@Override public ParserRule getRule() { return rule; }
//// PatternPartCS
- // referredProperty=[pivot::Property|UnrestrictedName] '=' ownedInitExpression=(ExpCS | PatternExpCS) |
+ //referredProperty=[pivot::Property|UnrestrictedName] '=' ownedInitExpression=(ExpCS | PatternExpCS) |
//ownedInitExpression=StringLiteralExpCS
public Alternatives getAlternatives() { return cAlternatives; }
//// PatternPartCS
- // referredProperty=[pivot::Property|UnrestrictedName] '=' ownedInitExpression=(ExpCS | PatternExpCS)
+ //referredProperty=[pivot::Property|UnrestrictedName] '=' ownedInitExpression=(ExpCS | PatternExpCS)
public Group getGroup_0() { return cGroup_0; }
//referredProperty=[pivot::Property|UnrestrictedName]
@@ -1147,8 +1171,12 @@
private final RuleCall cNullLiteralExpCSParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
//PrimitiveLiteralExpCS:
- // NumberLiteralExpCS | StringLiteralExpCS | BooleanLiteralExpCS | UnlimitedNaturalLiteralExpCS | InvalidLiteralExpCS |
- // NullLiteralExpCS;
+ // NumberLiteralExpCS
+ // | StringLiteralExpCS
+ // | BooleanLiteralExpCS
+ // | UnlimitedNaturalLiteralExpCS
+ // | InvalidLiteralExpCS
+ // | NullLiteralExpCS;
@Override public ParserRule getRule() { return rule; }
//NumberLiteralExpCS | StringLiteralExpCS | BooleanLiteralExpCS | UnlimitedNaturalLiteralExpCS | InvalidLiteralExpCS |
@@ -1311,7 +1339,8 @@
private final Keyword cSymbolFalseKeyword_1_0 = (Keyword)cSymbolAssignment_1.eContents().get(0);
//BooleanLiteralExpCS:
- // symbol='true' | symbol='false';
+ // symbol='true'
+ // | symbol='false';
@Override public ParserRule getRule() { return rule; }
//symbol='true' | symbol='false'
@@ -1399,7 +1428,10 @@
private final RuleCall cTupleTypeCSParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
//TypeLiteralCS base::TypedRefCS:
- // PrimitiveTypeCS | CollectionTypeCS | MapTypeCS | TupleTypeCS;
+ // PrimitiveTypeCS
+ // | CollectionTypeCS
+ // | MapTypeCS
+ // | TupleTypeCS;
@Override public ParserRule getRule() { return rule; }
//PrimitiveTypeCS | CollectionTypeCS | MapTypeCS | TupleTypeCS
@@ -1572,39 +1604,28 @@
private final RuleCall cPrefixedLetExpCSParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
////---------------------------------------------------------------------
- // // Expressions
- //
+ //// Expressions
////---------------------------------------------------------------------
- //
//// An ExpCS permits a LetExpCS only in the final term to ensure
- //
//// that let is right associative, whereas infix operators are left associative.
- //
//// a = 64 / 16 / let b : Integer in 8 / let c : Integer in 4
- // // is
- //
+ //// is
//// a = (64 / 16) / (let b : Integer in 8 / (let c : Integer in 4 ))
- //
///* An expression elaborates a prefixed expression with zero or more binary operator and expression suffixes.
- // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/
- //ExpCS:
+ // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/ ExpCS:
// PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS;
@Override public ParserRule getRule() { return rule; }
//// ({InfixExpCS} ownedSource=PrefixedExpCS name=BinaryOperatorName ownedArgument=ExpCS)
- // //| PrefixedExpCS
- //
+ ////| PrefixedExpCS
//// the above takes exponential or worse time for backtracking, below is fast
- // PrefixedPrimaryExpCS
- //({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS
+ //PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS
public Alternatives getAlternatives() { return cAlternatives; }
//// ({InfixExpCS} ownedSource=PrefixedExpCS name=BinaryOperatorName ownedArgument=ExpCS)
- // //| PrefixedExpCS
- //
+ ////| PrefixedExpCS
//// the above takes exponential or worse time for backtracking, below is fast
- // PrefixedPrimaryExpCS
- //({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)?
+ //PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)?
public Group getGroup_0() { return cGroup_0; }
//PrefixedPrimaryExpCS
@@ -1730,8 +1751,16 @@
///* A primary expression identifies the basic expressions from which more complex expressions may be constructed. */
//PrimaryExpCS ExpCS:
- // NestedExpCS | IfExpCS | SelfExpCS | PrimitiveLiteralExpCS | TupleLiteralExpCS | MapLiteralExpCS |
- // CollectionLiteralExpCS | LambdaLiteralExpCS | TypeLiteralExpCS | NameExpCS;
+ // NestedExpCS
+ // | IfExpCS
+ // | SelfExpCS
+ // | PrimitiveLiteralExpCS
+ // | TupleLiteralExpCS
+ // | MapLiteralExpCS
+ // | CollectionLiteralExpCS
+ // | LambdaLiteralExpCS
+ // | TypeLiteralExpCS
+ // | NameExpCS;
@Override public ParserRule getRule() { return rule; }
//NestedExpCS | IfExpCS | SelfExpCS | PrimitiveLiteralExpCS | TupleLiteralExpCS | MapLiteralExpCS | CollectionLiteralExpCS
@@ -1786,16 +1815,14 @@
private final Keyword cPreKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1);
///* A name expression is a generalised rule for expressions that start with a name and which may be followed by square, round or
- // * curly bracket clauses and optionally an @pre as well.*/
- //NameExpCS:
+ // * curly bracket clauses and optionally an @pre as well.*/ NameExpCS:
// ownedPathName=PathNameCS ownedSquareBracketedClauses+=SquareBracketedClauseCS*
// ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@'
// 'pre')?;
@Override public ParserRule getRule() { return rule; }
//ownedPathName=PathNameCS ownedSquareBracketedClauses+=SquareBracketedClauseCS*
- //ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@'
- //'pre')?
+ //ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@' 'pre')?
public Group getGroup() { return cGroup; }
//ownedPathName=PathNameCS
@@ -2036,12 +2063,11 @@
private final RuleCall cOwnedTypeTypeExpCSParserRuleCall_1_1_0 = (RuleCall)cOwnedTypeAssignment_1_1.eContents().get(0);
///* A navigating argument is a generalized rule for the first argument in a round bracket clause. This is typically the first operation
- // * parameter or an iterator. */
- //NavigatingArgCS:
+ // * parameter or an iterator. */ NavigatingArgCS:
// ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('=' ownedInitExpression=ExpCS)? |
// ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('=' ownedInitExpression=ExpCS)? | (':'
- // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)? | ':'
- // ownedType=TypeExpCS;
+ // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)?
+ // | ':' ownedType=TypeExpCS;
@Override public ParserRule getRule() { return rule; }
//ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('=' ownedInitExpression=ExpCS)? | ':'
@@ -2192,7 +2218,6 @@
private final RuleCall cOwnedInitExpressionExpCSParserRuleCall_2_2_1_0 = (RuleCall)cOwnedInitExpressionAssignment_2_2_1.eContents().get(0);
//// Type-less init is an illegal infix expression
- //
///* A navigating bar argument is a generalized rule for a bar-prefixed argument in a round bracket clause. This is typically the body of an iteration. */
//NavigatingBarArgCS NavigatingArgCS:
// prefix='|' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -2280,10 +2305,8 @@
private final RuleCall cOwnedInitExpressionExpCSParserRuleCall_2_2_3_0 = (RuleCall)cOwnedInitExpressionAssignment_2_2_3.eContents().get(0);
//// Type-less init is an illegal infix expression
- //
///* A navigating comma argument is a generalized rule for non-first argument in a round bracket clause. These are typically non-first operation
- // * parameters or a second iterator. */
- //NavigatingCommaArgCS NavigatingArgCS:
+ // * parameters or a second iterator. */ NavigatingCommaArgCS NavigatingArgCS:
// prefix=',' ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('='
// ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('='
// ownedInitExpression=ExpCS)? | (':' ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in'
@@ -2427,7 +2450,6 @@
private final RuleCall cOwnedInitExpressionExpCSParserRuleCall_2_2_1_0 = (RuleCall)cOwnedInitExpressionAssignment_2_2_1.eContents().get(0);
//// Type-less init is an illegal infix expression
- //
///* A navigating semi argument is a generalized rule for a semicolon prefixed argument in a round bracket clause. This is typically an iterate accumulator. */
//NavigatingSemiArgCS NavigatingArgCS:
// prefix=';' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -2478,13 +2500,14 @@
private final RuleCall cExpCSParserRuleCall = (RuleCall)rule.eContents().get(1);
//// Type-less init is an illegal infix expression
- // NavigatingArgExpCS ExpCS:
- // ExpCS // '?' -- defined by Complete OCL
+ //NavigatingArgExpCS ExpCS:
+ // ExpCS
+ // // '?' -- defined by Complete OCL
//;
@Override public ParserRule getRule() { return rule; }
//// Intended to be overridden
- // ExpCS
+ //ExpCS
public RuleCall getExpCSParserRuleCall() { return cExpCSParserRuleCall; }
}
@@ -2543,13 +2566,15 @@
private final Keyword cEndifKeyword_7 = (Keyword)cGroup.eContents().get(7);
//IfExpCS:
- // 'if' ownedCondition=(ExpCS | PatternExpCS) 'then' ownedThenExpression=ExpCS // ifThenExpressions+=IfThenExpCS
- //
- // ownedIfThenExpressions+=ElseIfThenExpCS* 'else' ownedElseExpression=ExpCS 'endif';
+ // 'if' ownedCondition=(ExpCS | PatternExpCS)
+ // 'then' ownedThenExpression=ExpCS
+ // // ifThenExpressions+=IfThenExpCS
+ // ownedIfThenExpressions+=ElseIfThenExpCS*
+ // 'else' ownedElseExpression=ExpCS
+ // 'endif';
@Override public ParserRule getRule() { return rule; }
//'if' ownedCondition=(ExpCS | PatternExpCS) 'then' ownedThenExpression=ExpCS // ifThenExpressions+=IfThenExpCS
- //
//ownedIfThenExpressions+=ElseIfThenExpCS* 'else' ownedElseExpression=ExpCS 'endif'
public Group getGroup() { return cGroup; }
@@ -2578,7 +2603,7 @@
public RuleCall getOwnedThenExpressionExpCSParserRuleCall_3_0() { return cOwnedThenExpressionExpCSParserRuleCall_3_0; }
//// ifThenExpressions+=IfThenExpCS
- // ownedIfThenExpressions+=ElseIfThenExpCS*
+ //ownedIfThenExpressions+=ElseIfThenExpCS*
public Assignment getOwnedIfThenExpressionsAssignment_4() { return cOwnedIfThenExpressionsAssignment_4; }
//ElseIfThenExpCS
@@ -2608,12 +2633,12 @@
private final RuleCall cOwnedThenExpressionExpCSParserRuleCall_3_0 = (RuleCall)cOwnedThenExpressionAssignment_3.eContents().get(0);
////IfThenExpCS returns IfThenExpCS:
- // // 'if' condition=ExpCS
- // // 'then' thenExpression=ExpCS
- // //;
- // ElseIfThenExpCS
- //IfThenExpCS:
- // 'elseif' ownedCondition=ExpCS 'then' ownedThenExpression=ExpCS;
+ //// 'if' condition=ExpCS
+ //// 'then' thenExpression=ExpCS
+ ////;
+ //ElseIfThenExpCS IfThenExpCS:
+ // 'elseif' ownedCondition=ExpCS
+ // 'then' ownedThenExpression=ExpCS;
@Override public ParserRule getRule() { return rule; }
//'elseif' ownedCondition=ExpCS 'then' ownedThenExpression=ExpCS
@@ -2653,7 +2678,8 @@
private final RuleCall cOwnedInExpressionExpCSParserRuleCall_4_0 = (RuleCall)cOwnedInExpressionAssignment_4.eContents().get(0);
//LetExpCS:
- // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)* 'in' ownedInExpression=ExpCS;
+ // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)*
+ // 'in' ownedInExpression=ExpCS;
@Override public ParserRule getRule() { return rule; }
//'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)* 'in' ownedInExpression=ExpCS
@@ -2969,7 +2995,7 @@
////generate essentialOCLCST "http://www.eclipse.org/ocl/3.0.0/EssentialOCLCST"
- // Model ContextCS:
+ //Model ContextCS:
// ownedExpression=ExpCS;
public ModelElements getModelAccess() {
return pModel;
@@ -2981,7 +3007,17 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLReservedKeyword:
- // 'and' | 'else' | 'endif' | 'if' | 'implies' | 'in' | 'let' | 'not' | 'or' | 'then' | 'xor';
+ // 'and'
+ // | 'else'
+ // | 'endif'
+ // | 'if'
+ // | 'implies'
+ // | 'in'
+ // | 'let'
+ // | 'not'
+ // | 'or'
+ // | 'then'
+ // | 'xor';
public EssentialOCLReservedKeywordElements getEssentialOCLReservedKeywordAccess() {
return pEssentialOCLReservedKeyword;
}
@@ -3064,10 +3100,8 @@
}
////---------------------------------------------------------------------
- // // Names
- //
+ //// Names
////---------------------------------------------------------------------
- //
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnrestrictedName:
// Identifier;
@@ -3091,7 +3125,11 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnreservedName:
- // UnrestrictedName | CollectionTypeIdentifier | PrimitiveTypeIdentifier | 'Map' | 'Tuple';
+ // UnrestrictedName
+ // | CollectionTypeIdentifier
+ // | PrimitiveTypeIdentifier
+ // | 'Map'
+ // | 'Tuple';
public EssentialOCLUnreservedNameElements getEssentialOCLUnreservedNameAccess() {
return pEssentialOCLUnreservedName;
}
@@ -3142,11 +3180,17 @@
}
////---------------------------------------------------------------------
- // // Types
- //
+ //// Types
////---------------------------------------------------------------------
- // PrimitiveTypeIdentifier:
- // 'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclVoid';
+ //PrimitiveTypeIdentifier:
+ // 'Boolean'
+ // | 'Integer'
+ // | 'Real'
+ // | 'String'
+ // | 'UnlimitedNatural'
+ // | 'OclAny'
+ // | 'OclInvalid'
+ // | 'OclVoid';
public PrimitiveTypeIdentifierElements getPrimitiveTypeIdentifierAccess() {
return pPrimitiveTypeIdentifier;
}
@@ -3166,7 +3210,11 @@
}
//CollectionTypeIdentifier:
- // 'Set' | 'Bag' | 'Sequence' | 'Collection' | 'OrderedSet';
+ // 'Set'
+ // | 'Bag'
+ // | 'Sequence'
+ // | 'Collection'
+ // | 'OrderedSet';
public CollectionTypeIdentifierElements getCollectionTypeIdentifierAccess() {
return pCollectionTypeIdentifier;
}
@@ -3217,11 +3265,12 @@
}
////---------------------------------------------------------------------
- // // Literals
- //
+ //// Literals
////---------------------------------------------------------------------
- // CollectionLiteralExpCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)? '}';
+ //CollectionLiteralExpCS:
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)?
+ // '}';
public CollectionLiteralExpCSElements getCollectionLiteralExpCSAccess() {
return pCollectionLiteralExpCS;
}
@@ -3241,8 +3290,9 @@
}
//CollectionPatternCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++'
- // restVariableName=Identifier))? '}';
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++' restVariableName=Identifier))?
+ // '}';
public CollectionPatternCSElements getCollectionPatternCSAccess() {
return pCollectionPatternCS;
}
@@ -3303,8 +3353,12 @@
}
//PrimitiveLiteralExpCS:
- // NumberLiteralExpCS | StringLiteralExpCS | BooleanLiteralExpCS | UnlimitedNaturalLiteralExpCS | InvalidLiteralExpCS |
- // NullLiteralExpCS;
+ // NumberLiteralExpCS
+ // | StringLiteralExpCS
+ // | BooleanLiteralExpCS
+ // | UnlimitedNaturalLiteralExpCS
+ // | InvalidLiteralExpCS
+ // | NullLiteralExpCS;
public PrimitiveLiteralExpCSElements getPrimitiveLiteralExpCSAccess() {
return pPrimitiveLiteralExpCS;
}
@@ -3354,7 +3408,8 @@
}
//BooleanLiteralExpCS:
- // symbol='true' | symbol='false';
+ // symbol='true'
+ // | symbol='false';
public BooleanLiteralExpCSElements getBooleanLiteralExpCSAccess() {
return pBooleanLiteralExpCS;
}
@@ -3394,7 +3449,10 @@
}
//TypeLiteralCS base::TypedRefCS:
- // PrimitiveTypeCS | CollectionTypeCS | MapTypeCS | TupleTypeCS;
+ // PrimitiveTypeCS
+ // | CollectionTypeCS
+ // | MapTypeCS
+ // | TupleTypeCS;
public TypeLiteralCSElements getTypeLiteralCSAccess() {
return pTypeLiteralCS;
}
@@ -3454,22 +3512,15 @@
}
////---------------------------------------------------------------------
- // // Expressions
- //
+ //// Expressions
////---------------------------------------------------------------------
- //
//// An ExpCS permits a LetExpCS only in the final term to ensure
- //
//// that let is right associative, whereas infix operators are left associative.
- //
//// a = 64 / 16 / let b : Integer in 8 / let c : Integer in 4
- // // is
- //
+ //// is
//// a = (64 / 16) / (let b : Integer in 8 / (let c : Integer in 4 ))
- //
///* An expression elaborates a prefixed expression with zero or more binary operator and expression suffixes.
- // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/
- //ExpCS:
+ // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/ ExpCS:
// PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS;
public ExpCSElements getExpCSAccess() {
return pExpCS;
@@ -3503,8 +3554,16 @@
///* A primary expression identifies the basic expressions from which more complex expressions may be constructed. */
//PrimaryExpCS ExpCS:
- // NestedExpCS | IfExpCS | SelfExpCS | PrimitiveLiteralExpCS | TupleLiteralExpCS | MapLiteralExpCS |
- // CollectionLiteralExpCS | LambdaLiteralExpCS | TypeLiteralExpCS | NameExpCS;
+ // NestedExpCS
+ // | IfExpCS
+ // | SelfExpCS
+ // | PrimitiveLiteralExpCS
+ // | TupleLiteralExpCS
+ // | MapLiteralExpCS
+ // | CollectionLiteralExpCS
+ // | LambdaLiteralExpCS
+ // | TypeLiteralExpCS
+ // | NameExpCS;
public PrimaryExpCSElements getPrimaryExpCSAccess() {
return pPrimaryExpCS;
}
@@ -3514,8 +3573,7 @@
}
///* A name expression is a generalised rule for expressions that start with a name and which may be followed by square, round or
- // * curly bracket clauses and optionally an @pre as well.*/
- //NameExpCS:
+ // * curly bracket clauses and optionally an @pre as well.*/ NameExpCS:
// ownedPathName=PathNameCS ownedSquareBracketedClauses+=SquareBracketedClauseCS*
// ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@'
// 'pre')?;
@@ -3561,12 +3619,11 @@
}
///* A navigating argument is a generalized rule for the first argument in a round bracket clause. This is typically the first operation
- // * parameter or an iterator. */
- //NavigatingArgCS:
+ // * parameter or an iterator. */ NavigatingArgCS:
// ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('=' ownedInitExpression=ExpCS)? |
// ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('=' ownedInitExpression=ExpCS)? | (':'
- // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)? | ':'
- // ownedType=TypeExpCS;
+ // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)?
+ // | ':' ownedType=TypeExpCS;
public NavigatingArgCSElements getNavigatingArgCSAccess() {
return pNavigatingArgCS;
}
@@ -3576,7 +3633,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating bar argument is a generalized rule for a bar-prefixed argument in a round bracket clause. This is typically the body of an iteration. */
//NavigatingBarArgCS NavigatingArgCS:
// prefix='|' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -3589,10 +3645,8 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating comma argument is a generalized rule for non-first argument in a round bracket clause. These are typically non-first operation
- // * parameters or a second iterator. */
- //NavigatingCommaArgCS NavigatingArgCS:
+ // * parameters or a second iterator. */ NavigatingCommaArgCS NavigatingArgCS:
// prefix=',' ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('='
// ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('='
// ownedInitExpression=ExpCS)? | (':' ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in'
@@ -3606,7 +3660,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating semi argument is a generalized rule for a semicolon prefixed argument in a round bracket clause. This is typically an iterate accumulator. */
//NavigatingSemiArgCS NavigatingArgCS:
// prefix=';' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -3619,8 +3672,9 @@
}
//// Type-less init is an illegal infix expression
- // NavigatingArgExpCS ExpCS:
- // ExpCS // '?' -- defined by Complete OCL
+ //NavigatingArgExpCS ExpCS:
+ // ExpCS
+ // // '?' -- defined by Complete OCL
//;
public NavigatingArgExpCSElements getNavigatingArgExpCSAccess() {
return pNavigatingArgExpCS;
@@ -3641,9 +3695,12 @@
}
//IfExpCS:
- // 'if' ownedCondition=(ExpCS | PatternExpCS) 'then' ownedThenExpression=ExpCS // ifThenExpressions+=IfThenExpCS
- //
- // ownedIfThenExpressions+=ElseIfThenExpCS* 'else' ownedElseExpression=ExpCS 'endif';
+ // 'if' ownedCondition=(ExpCS | PatternExpCS)
+ // 'then' ownedThenExpression=ExpCS
+ // // ifThenExpressions+=IfThenExpCS
+ // ownedIfThenExpressions+=ElseIfThenExpCS*
+ // 'else' ownedElseExpression=ExpCS
+ // 'endif';
public IfExpCSElements getIfExpCSAccess() {
return pIfExpCS;
}
@@ -3653,12 +3710,12 @@
}
////IfThenExpCS returns IfThenExpCS:
- // // 'if' condition=ExpCS
- // // 'then' thenExpression=ExpCS
- // //;
- // ElseIfThenExpCS
- //IfThenExpCS:
- // 'elseif' ownedCondition=ExpCS 'then' ownedThenExpression=ExpCS;
+ //// 'if' condition=ExpCS
+ //// 'then' thenExpression=ExpCS
+ ////;
+ //ElseIfThenExpCS IfThenExpCS:
+ // 'elseif' ownedCondition=ExpCS
+ // 'then' ownedThenExpression=ExpCS;
public ElseIfThenExpCSElements getElseIfThenExpCSAccess() {
return pElseIfThenExpCS;
}
@@ -3668,7 +3725,8 @@
}
//LetExpCS:
- // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)* 'in' ownedInExpression=ExpCS;
+ // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)*
+ // 'in' ownedInExpression=ExpCS;
public LetExpCSElements getLetExpCSAccess() {
return pLetExpCS;
}
@@ -3884,8 +3942,7 @@
// * lookahead conflicts in simple lexers between a dot within a floating point number and the dot-dot in a CollectionLiteralPartCS. A
// * practical implementation should give high priority to a successful parse of INT ('.' INT)? (('e' | 'E') ('+' | '-')? INT)? than
// * to the unsuccessful partial parse of INT '..'. The type of the INT terminal is String to allow the floating point syntax to be used.
- // */
- //NUMBER_LITERAL BigNumber:
+ // */ NUMBER_LITERAL BigNumber:
// INT;
public BaseGrammarAccess.NUMBER_LITERALElements getNUMBER_LITERALAccess() {
return gaBase.getNUMBER_LITERALAccess();
@@ -3896,7 +3953,7 @@
}
//// EssentialOCLTokenSource pieces this together ('.' INT)? (('e' | 'E') ('+' | '-')? INT)?;
- // StringLiteral:
+ //StringLiteral:
// SINGLE_QUOTED_STRING;
public BaseGrammarAccess.StringLiteralElements getStringLiteralAccess() {
return gaBase.getStringLiteralAccess();
diff --git a/plugins/org.eclipse.ocl.xtext.markup/src-gen/org/eclipse/ocl/xtext/markup/services/MarkupGrammarAccess.java b/plugins/org.eclipse.ocl.xtext.markup/src-gen/org/eclipse/ocl/xtext/markup/services/MarkupGrammarAccess.java
index e8dfaa6..a19cc8c 100644
--- a/plugins/org.eclipse.ocl.xtext.markup/src-gen/org/eclipse/ocl/xtext/markup/services/MarkupGrammarAccess.java
+++ b/plugins/org.eclipse.ocl.xtext.markup/src-gen/org/eclipse/ocl/xtext/markup/services/MarkupGrammarAccess.java
@@ -55,7 +55,16 @@
private final Keyword cOclTextKeyword_9 = (Keyword)cAlternatives.eContents().get(9);
//MarkupKeyword:
- // 'b' | 'e' | 'bullet' | 'figure' | 'figureRef' | 'footnote' | 'heading' | 'oclCode' | 'oclEval' | 'oclText';
+ // 'b'
+ // | 'e'
+ // | 'bullet'
+ // | 'figure'
+ // | 'figureRef'
+ // | 'footnote'
+ // | 'heading'
+ // | 'oclCode'
+ // | 'oclEval'
+ // | 'oclText';
@Override public ParserRule getRule() { return rule; }
//'b' | 'e' | 'bullet' | 'figure' | 'figureRef' | 'footnote' | 'heading' | 'oclCode' | 'oclEval' | 'oclText'
@@ -109,9 +118,18 @@
private final RuleCall cTextElementParserRuleCall_11 = (RuleCall)cAlternatives.eContents().get(11);
//MarkupElement:
- // FontElement | NewLineElement | BulletElement | FigureElement | FigureRefElement | FootnoteElement | HeadingElement |
- // NullElement | OCLCodeElement | OCLEvalElement | OCLTextElement | TextElement
- // // Last to give everything else a try first
+ // FontElement
+ // | NewLineElement
+ // | BulletElement
+ // | FigureElement
+ // | FigureRefElement
+ // | FootnoteElement
+ // | HeadingElement
+ // | NullElement
+ // | OCLCodeElement
+ // | OCLEvalElement
+ // | OCLTextElement
+ // | TextElement // Last to give everything else a try first
//;
@Override public ParserRule getRule() { return rule; }
@@ -853,7 +871,16 @@
}
//MarkupKeyword:
- // 'b' | 'e' | 'bullet' | 'figure' | 'figureRef' | 'footnote' | 'heading' | 'oclCode' | 'oclEval' | 'oclText';
+ // 'b'
+ // | 'e'
+ // | 'bullet'
+ // | 'figure'
+ // | 'figureRef'
+ // | 'footnote'
+ // | 'heading'
+ // | 'oclCode'
+ // | 'oclEval'
+ // | 'oclText';
public MarkupKeywordElements getMarkupKeywordAccess() {
return pMarkupKeyword;
}
@@ -863,9 +890,18 @@
}
//MarkupElement:
- // FontElement | NewLineElement | BulletElement | FigureElement | FigureRefElement | FootnoteElement | HeadingElement |
- // NullElement | OCLCodeElement | OCLEvalElement | OCLTextElement | TextElement
- // // Last to give everything else a try first
+ // FontElement
+ // | NewLineElement
+ // | BulletElement
+ // | FigureElement
+ // | FigureRefElement
+ // | FootnoteElement
+ // | HeadingElement
+ // | NullElement
+ // | OCLCodeElement
+ // | OCLEvalElement
+ // | OCLTextElement
+ // | TextElement // Last to give everything else a try first
//;
public MarkupElementElements getMarkupElementAccess() {
return pMarkupElement;
diff --git a/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/serializer/AbstractOCLinEcoreSemanticSequencer.java b/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/serializer/AbstractOCLinEcoreSemanticSequencer.java
index f9be9d3..6a0027a 100644
--- a/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/serializer/AbstractOCLinEcoreSemanticSequencer.java
+++ b/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/serializer/AbstractOCLinEcoreSemanticSequencer.java
@@ -833,7 +833,7 @@
* referredOpposite=[Property|UnrestrictedName]?
* ownedType=TypedMultiplicityRefCS?
* default=SINGLE_QUOTED_STRING?
- * qualifiers+='unique'?
+ * qualifiers+='volatile'?
* (
* (
* qualifiers+='composes' |
@@ -848,13 +848,13 @@
* qualifiers+='!resolve' |
* qualifiers+='transient' |
* qualifiers+='!transient' |
+ * qualifiers+='unique' |
* qualifiers+='!unique' |
* qualifiers+='unsettable' |
* qualifiers+='!unsettable' |
- * qualifiers+='volatile' |
* qualifiers+='!volatile'
* )?
- * qualifiers+='unique'?
+ * qualifiers+='volatile'?
* )*
* (
* (ownedAnnotations+=AnnotationElementCS | ownedDefaultExpressions+=SpecificationCS | ownedDefaultExpressions+=SpecificationCS)?
diff --git a/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/services/OCLinEcoreGrammarAccess.java b/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/services/OCLinEcoreGrammarAccess.java
index c3f39ed..1d79ceb 100644
--- a/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/services/OCLinEcoreGrammarAccess.java
+++ b/plugins/org.eclipse.ocl.xtext.oclinecore/src-gen/org/eclipse/ocl/xtext/oclinecore/services/OCLinEcoreGrammarAccess.java
@@ -39,8 +39,10 @@
private final RuleCall cOwnedPackagesPackageCSParserRuleCall_3_0 = (RuleCall)cOwnedPackagesAssignment_3.eContents().get(0);
////generate oclinEcore2 "http://www.eclipse.org/ocl/examples/xtext/oclinecore/OCLinEcore"
- // TopLevelCS:
- // {TopLevelCS} ('module' UnrestrictedName)? ownedImports+=ImportCS* ownedPackages+=PackageCS*;
+ //TopLevelCS:
+ // {TopLevelCS} ('module' UnrestrictedName)?
+ // ownedImports+=ImportCS*
+ // ownedPackages+=PackageCS*;
@Override public ParserRule getRule() { return rule; }
//{TopLevelCS} ('module' UnrestrictedName)? ownedImports+=ImportCS* ownedPackages+=PackageCS*
@@ -144,11 +146,42 @@
private final Keyword cVolatileKeyword_35 = (Keyword)cAlternatives.eContents().get(35);
//EnumerationLiteralName:
- // EssentialOCLUnrestrictedName | 'abstract' | 'attribute' | 'body' | 'callable' | 'class' | 'composes' | 'datatype' |
- // 'definition' | 'derivation' | 'derived' | 'enum' | 'extends' | 'id' | 'import' | 'initial' | 'interface' | 'key' |
- // 'library' | 'module' | 'operation' | 'ordered' | 'package' | 'postcondition' | 'precondition' | 'primitive' |
- // 'property' | 'readonly' | 'reference' | 'resolve' | 'static' | 'throws' | 'transient' | 'unique' | 'unsettable' |
- // 'volatile';
+ // EssentialOCLUnrestrictedName
+ // | 'abstract'
+ // | 'attribute'
+ // | 'body'
+ // | 'callable'
+ // | 'class'
+ // | 'composes'
+ // | 'datatype'
+ // | 'definition'
+ // | 'derivation'
+ // | 'derived'
+ // | 'enum'
+ // | 'extends'
+ // | 'id'
+ // | 'import'
+ // | 'initial'
+ // | 'interface'
+ // | 'key'
+ // | 'library'
+ // | 'module'
+ // | 'operation'
+ // | 'ordered'
+ // | 'package'
+ // | 'postcondition'
+ // | 'precondition'
+ // | 'primitive'
+ // | 'property'
+ // | 'readonly'
+ // | 'reference'
+ // | 'resolve'
+ // | 'static'
+ // | 'throws'
+ // | 'transient'
+ // | 'unique'
+ // | 'unsettable'
+ // | 'volatile';
@Override public ParserRule getRule() { return rule; }
//EssentialOCLUnrestrictedName | 'abstract' | 'attribute' | 'body' | 'callable' | 'class' | 'composes' | 'datatype' |
@@ -530,8 +563,9 @@
//AnnotationCS base::AnnotationCS:
// {base::AnnotationCS} 'annotation' name=(UnrestrictedName | SINGLE_QUOTED_STRING)? ('(' ownedDetails+=DetailCS (','
- // ownedDetails+=DetailCS)* ')')? ('{' (ownedAnnotations+=AnnotationElementCS | ownedContents+=ModelElementCS |
- // ownedReferences+=ModelElementRefCS)+ '}' | ';');
+ // ownedDetails+=DetailCS)* ')')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedContents+=ModelElementCS
+ // | ownedReferences+=ModelElementRefCS)+ '}' | ';');
@Override public ParserRule getRule() { return rule; }
//{base::AnnotationCS} 'annotation' name=(UnrestrictedName | SINGLE_QUOTED_STRING)? ('(' ownedDetails+=DetailCS (','
@@ -733,14 +767,15 @@
private final Keyword cSemicolonKeyword_6_1 = (Keyword)cAlternatives_6.eContents().get(1);
//AttributeCS base::AttributeCS:
- // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'attribute'
- // name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('=' default=SINGLE_QUOTED_STRING)? ('{'
+ // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)?
+ // 'attribute' name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('=' default=SINGLE_QUOTED_STRING)? ('{'
// ((qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='id' | qualifiers+='!id' | qualifiers+='ordered' |
// qualifiers+='!ordered' | qualifiers+='readonly' | qualifiers+='!readonly' | qualifiers+='transient' |
// qualifiers+='!transient' | qualifiers+='unique' | qualifiers+='!unique' | qualifiers+='unsettable' |
- // qualifiers+='!unsettable' | qualifiers+='volatile' | qualifiers+='!volatile') ','?)+ '}')? ('{'
- // (ownedAnnotations+=AnnotationElementCS | 'initial' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS?
- // ';' | 'derivation' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS? ';')* '}' | ';');
+ // qualifiers+='!unsettable' | qualifiers+='volatile' | qualifiers+='!volatile') ','?)+
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | 'initial' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS? ';' | 'derivation' UnrestrictedName? ':'
+ // ownedDefaultExpressions+=SpecificationCS? ';')* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//(qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'attribute'
@@ -1069,9 +1104,10 @@
private final Keyword cSemicolonKeyword_6_1 = (Keyword)cAlternatives_6.eContents().get(1);
//DataTypeCS base::DataTypeCS:
- // isPrimitive?='primitive'? 'datatype' name=UnrestrictedName ownedSignature=TemplateSignatureCS? (':'
- // instanceClassName=SINGLE_QUOTED_STRING)? ('{' (isSerializable?='serializable' | '!serializable')? '}')? ('{'
- // (ownedAnnotations+=AnnotationElementCS | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
+ // isPrimitive?='primitive'? 'datatype' name=UnrestrictedName
+ // ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{' (isSerializable?='serializable'
+ // | '!serializable')? '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//isPrimitive?='primitive'? 'datatype' name=UnrestrictedName ownedSignature=TemplateSignatureCS? (':'
@@ -1232,7 +1268,8 @@
//DocumentationCS base::DocumentationCS:
// {base::DocumentationCS} 'documentation' value=SINGLE_QUOTED_STRING? ('(' ownedDetails+=DetailCS (','
- // ownedDetails+=DetailCS)* ')')? ';';
+ // ownedDetails+=DetailCS)* ')')?
+ // ';';
@Override public ParserRule getRule() { return rule; }
//{base::DocumentationCS} 'documentation' value=SINGLE_QUOTED_STRING? ('(' ownedDetails+=DetailCS (','
@@ -1315,9 +1352,11 @@
private final Keyword cSemicolonKeyword_5_1 = (Keyword)cAlternatives_5.eContents().get(1);
//EnumerationCS base::EnumerationCS:
- // 'enum' name=UnrestrictedName ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{'
- // (isSerializable?='serializable' | '!serializable')? '}')? ('{' (ownedAnnotations+=AnnotationElementCS |
- // ownedLiterals+=EnumerationLiteralCS | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
+ // 'enum' name=UnrestrictedName
+ // ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{' (isSerializable?='serializable'
+ // | '!serializable')? '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedLiterals+=EnumerationLiteralCS
+ // | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//'enum' name=UnrestrictedName ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{'
@@ -1717,20 +1756,22 @@
private final Keyword cSemicolonKeyword_10_1 = (Keyword)cAlternatives_10.eContents().get(1);
//OperationCS base::OperationCS:
- // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'operation'
- // ownedSignature=TemplateSignatureCS? name=UnrestrictedName '(' (ownedParameters+=ParameterCS (','
- // ownedParameters+=ParameterCS)*)? ')' (':' ownedType=TypedMultiplicityRefCS)? ('throws' ownedExceptions+=TypedRefCS
- // (',' ownedExceptions+=TypedRefCS)*)? ('{' ((qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='ordered' |
- // qualifiers+='!ordered' | qualifiers+='transient' | qualifiers+='!transient' | qualifiers+='unique' |
- // qualifiers+='!unique') ','?)+ '}')? ('{' (ownedAnnotations+=AnnotationElementCS |
- // ownedPreconditions+=PreconditionConstraintCS | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS?
- // ';' | ownedPostconditions+=PostconditionConstraintCS)* '}' | ';');
+ // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)?
+ // 'operation' ownedSignature=TemplateSignatureCS? name=UnrestrictedName
+ // '(' (ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')' (':' ownedType=TypedMultiplicityRefCS)?
+ // ('throws' ownedExceptions+=TypedRefCS (',' ownedExceptions+=TypedRefCS)*)? ('{' ((qualifiers+='derived' |
+ // qualifiers+='!derived' | qualifiers+='ordered' | qualifiers+='!ordered' | qualifiers+='transient' |
+ // qualifiers+='!transient' | qualifiers+='unique' | qualifiers+='!unique') ','?)+
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedPreconditions+=PreconditionConstraintCS
+ // | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS? ';' |
+ // ownedPostconditions+=PostconditionConstraintCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//(qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'operation'
//ownedSignature=TemplateSignatureCS? name=UnrestrictedName '(' (ownedParameters+=ParameterCS (','
- //ownedParameters+=ParameterCS)*)? ')' (':' ownedType=TypedMultiplicityRefCS)? ('throws' ownedExceptions+=TypedRefCS
- //(',' ownedExceptions+=TypedRefCS)*)? ('{' ((qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='ordered' |
+ //ownedParameters+=ParameterCS)*)? ')' (':' ownedType=TypedMultiplicityRefCS)? ('throws' ownedExceptions+=TypedRefCS (','
+ //ownedExceptions+=TypedRefCS)*)? ('{' ((qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='ordered' |
//qualifiers+='!ordered' | qualifiers+='transient' | qualifiers+='!transient' | qualifiers+='unique' |
//qualifiers+='!unique') ','?)+ '}')? ('{' (ownedAnnotations+=AnnotationElementCS |
//ownedPreconditions+=PreconditionConstraintCS | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS? ';'
@@ -2007,7 +2048,8 @@
//PackageCS base::PackageCS:
// 'package' name=UnrestrictedName (':' nsPrefix=UnrestrictedName)? ('=' nsURI=URI)? ('{'
- // (ownedAnnotations+=AnnotationElementCS | ownedPackages+=PackageCS | ownedClasses+=ClassCS)* '}' | ';');
+ // (ownedAnnotations+=AnnotationElementCS | ownedPackages+=PackageCS | ownedClasses+=ClassCS)*
+ // '}' | ';');
@Override public ParserRule getRule() { return rule; }
//'package' name=UnrestrictedName (':' nsPrefix=UnrestrictedName)? ('=' nsURI=URI)? ('{'
@@ -2115,7 +2157,8 @@
//ParameterCS base::ParameterCS:
// name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('{' ((qualifiers+='ordered' | qualifiers+='!ordered' |
- // qualifiers+='unique' | qualifiers+='!unique') ','?)+ '}')? ('{' ownedAnnotations+=AnnotationElementCS* '}')?;
+ // qualifiers+='unique' | qualifiers+='!unique') ','?)+
+ // '}')? ('{' ownedAnnotations+=AnnotationElementCS* '}')?;
@Override public ParserRule getRule() { return rule; }
//name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('{' ((qualifiers+='ordered' | qualifiers+='!ordered' |
@@ -2305,15 +2348,16 @@
private final Keyword cSemicolonKeyword_7_1 = (Keyword)cAlternatives_7.eContents().get(1);
//ReferenceCS base::ReferenceCS:
- // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'property'
- // name=UnrestrictedName ('#' referredOpposite=[pivot::Property|UnrestrictedName])? (':'
+ // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)?
+ // 'property' name=UnrestrictedName ('#' referredOpposite=[pivot::Property|UnrestrictedName])? (':'
// ownedType=TypedMultiplicityRefCS)? ('=' default=SINGLE_QUOTED_STRING)? ('{' ((qualifiers+='composes' |
// qualifiers+='!composes' | qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='ordered' |
// qualifiers+='!ordered' | qualifiers+='readonly' | qualifiers+='!readonly' | qualifiers+='resolve' |
// qualifiers+='!resolve' | qualifiers+='transient' | qualifiers+='!transient' | qualifiers+='unique' |
// qualifiers+='!unique' | qualifiers+='unsettable' | qualifiers+='!unsettable' | qualifiers+='volatile' |
- // qualifiers+='!volatile') ','?)+ '}')? ('{' (ownedAnnotations+=AnnotationElementCS | 'key'
- // referredKeys+=[pivot::Property|UnrestrictedName] (',' referredKeys+=[pivot::Property|UnrestrictedName])* ';' |
+ // qualifiers+='!volatile') ','?)+
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | 'key' referredKeys+=[pivot::Property|UnrestrictedName] (',' referredKeys+=[pivot::Property|UnrestrictedName])* ';' |
// 'initial' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS? ';' | 'derivation' UnrestrictedName? ':'
// ownedDefaultExpressions+=SpecificationCS? ';')* '}' | ';');
@Override public ParserRule getRule() { return rule; }
@@ -2730,10 +2774,14 @@
private final Keyword cSemicolonKeyword_7_1 = (Keyword)cAlternatives_7.eContents().get(1);
//StructuredClassCS base::StructuredClassCS:
- // isAbstract?='abstract'? 'class' name=UnrestrictedName ownedSignature=TemplateSignatureCS? ('extends'
- // ownedSuperTypes+=TypedRefCS (',' ownedSuperTypes+=TypedRefCS)*)? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{'
- // isInterface?='interface'? '}')? ('{' (ownedAnnotations+=AnnotationElementCS | ownedOperations+=OperationCS |
- // ownedProperties+=StructuralFeatureCS | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
+ // isAbstract?='abstract'?
+ // 'class' name=UnrestrictedName
+ // ownedSignature=TemplateSignatureCS? ('extends' ownedSuperTypes+=TypedRefCS (',' ownedSuperTypes+=TypedRefCS)*)? (':'
+ // instanceClassName=SINGLE_QUOTED_STRING)? ('{' isInterface?='interface'?
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedOperations+=OperationCS
+ // | ownedProperties+=StructuralFeatureCS
+ // | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//isAbstract?='abstract'? 'class' name=UnrestrictedName ownedSignature=TemplateSignatureCS? ('extends'
@@ -2955,7 +3003,8 @@
private final RuleCall cPrimitiveTypeIdentifierParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
//TypeIdentifier:
- // UnrestrictedName | PrimitiveTypeIdentifier;
+ // UnrestrictedName
+ // | PrimitiveTypeIdentifier;
@Override public ParserRule getRule() { return rule; }
//UnrestrictedName | PrimitiveTypeIdentifier
@@ -3015,11 +3064,9 @@
private final Keyword cGreaterThanSignKeyword_1_3 = (Keyword)cGroup_1.eContents().get(3);
////---------------------------------------------------------------------------------
- // // Base overrides
- //
+ //// Base overrides
////---------------------------------------------------------------------------------
- // TemplateSignatureCS
- //base::TemplateSignatureCS:
+ //TemplateSignatureCS base::TemplateSignatureCS:
// '(' ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* ')' | '<'
// ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* '>';
@Override public ParserRule getRule() { return rule; }
@@ -3179,7 +3226,13 @@
private final Keyword cSysmlKeyword_6 = (Keyword)cAlternatives.eContents().get(6);
//UnrestrictedName:
- // EnumerationLiteralName | 'annotation' | 'documentation' | 'invariant' | 'literal' | 'serializable' | 'sysml';
+ // EnumerationLiteralName
+ // | 'annotation'
+ // | 'documentation'
+ // | 'invariant'
+ // | 'literal'
+ // | 'serializable'
+ // | 'sysml';
@Override public ParserRule getRule() { return rule; }
//EnumerationLiteralName | 'annotation' | 'documentation' | 'invariant' | 'literal' | 'serializable' | 'sysml'
@@ -3324,8 +3377,10 @@
////generate oclinEcore2 "http://www.eclipse.org/ocl/examples/xtext/oclinecore/OCLinEcore"
- // TopLevelCS:
- // {TopLevelCS} ('module' UnrestrictedName)? ownedImports+=ImportCS* ownedPackages+=PackageCS*;
+ //TopLevelCS:
+ // {TopLevelCS} ('module' UnrestrictedName)?
+ // ownedImports+=ImportCS*
+ // ownedPackages+=PackageCS*;
public TopLevelCSElements getTopLevelCSAccess() {
return pTopLevelCS;
}
@@ -3335,8 +3390,7 @@
}
//terminal UNQUOTED_STRING: // Never forward parsed; just provides a placeholder
- // '£$%^£$%^'
- // // for reverse serialisation of embedded OCL
+ // '£$%^£$%^' // for reverse serialisation of embedded OCL
//;
public TerminalRule getUNQUOTED_STRINGRule() {
return tUNQUOTED_STRING;
@@ -3363,11 +3417,42 @@
}
//EnumerationLiteralName:
- // EssentialOCLUnrestrictedName | 'abstract' | 'attribute' | 'body' | 'callable' | 'class' | 'composes' | 'datatype' |
- // 'definition' | 'derivation' | 'derived' | 'enum' | 'extends' | 'id' | 'import' | 'initial' | 'interface' | 'key' |
- // 'library' | 'module' | 'operation' | 'ordered' | 'package' | 'postcondition' | 'precondition' | 'primitive' |
- // 'property' | 'readonly' | 'reference' | 'resolve' | 'static' | 'throws' | 'transient' | 'unique' | 'unsettable' |
- // 'volatile';
+ // EssentialOCLUnrestrictedName
+ // | 'abstract'
+ // | 'attribute'
+ // | 'body'
+ // | 'callable'
+ // | 'class'
+ // | 'composes'
+ // | 'datatype'
+ // | 'definition'
+ // | 'derivation'
+ // | 'derived'
+ // | 'enum'
+ // | 'extends'
+ // | 'id'
+ // | 'import'
+ // | 'initial'
+ // | 'interface'
+ // | 'key'
+ // | 'library'
+ // | 'module'
+ // | 'operation'
+ // | 'ordered'
+ // | 'package'
+ // | 'postcondition'
+ // | 'precondition'
+ // | 'primitive'
+ // | 'property'
+ // | 'readonly'
+ // | 'reference'
+ // | 'resolve'
+ // | 'static'
+ // | 'throws'
+ // | 'transient'
+ // | 'unique'
+ // | 'unsettable'
+ // | 'volatile';
public EnumerationLiteralNameElements getEnumerationLiteralNameAccess() {
return pEnumerationLiteralName;
}
@@ -3411,8 +3496,9 @@
//AnnotationCS base::AnnotationCS:
// {base::AnnotationCS} 'annotation' name=(UnrestrictedName | SINGLE_QUOTED_STRING)? ('(' ownedDetails+=DetailCS (','
- // ownedDetails+=DetailCS)* ')')? ('{' (ownedAnnotations+=AnnotationElementCS | ownedContents+=ModelElementCS |
- // ownedReferences+=ModelElementRefCS)+ '}' | ';');
+ // ownedDetails+=DetailCS)* ')')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedContents+=ModelElementCS
+ // | ownedReferences+=ModelElementRefCS)+ '}' | ';');
public AnnotationCSElements getAnnotationCSAccess() {
return pAnnotationCS;
}
@@ -3432,14 +3518,15 @@
}
//AttributeCS base::AttributeCS:
- // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'attribute'
- // name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('=' default=SINGLE_QUOTED_STRING)? ('{'
+ // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)?
+ // 'attribute' name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('=' default=SINGLE_QUOTED_STRING)? ('{'
// ((qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='id' | qualifiers+='!id' | qualifiers+='ordered' |
// qualifiers+='!ordered' | qualifiers+='readonly' | qualifiers+='!readonly' | qualifiers+='transient' |
// qualifiers+='!transient' | qualifiers+='unique' | qualifiers+='!unique' | qualifiers+='unsettable' |
- // qualifiers+='!unsettable' | qualifiers+='volatile' | qualifiers+='!volatile') ','?)+ '}')? ('{'
- // (ownedAnnotations+=AnnotationElementCS | 'initial' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS?
- // ';' | 'derivation' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS? ';')* '}' | ';');
+ // qualifiers+='!unsettable' | qualifiers+='volatile' | qualifiers+='!volatile') ','?)+
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | 'initial' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS? ';' | 'derivation' UnrestrictedName? ':'
+ // ownedDefaultExpressions+=SpecificationCS? ';')* '}' | ';');
public AttributeCSElements getAttributeCSAccess() {
return pAttributeCS;
}
@@ -3459,9 +3546,10 @@
}
//DataTypeCS base::DataTypeCS:
- // isPrimitive?='primitive'? 'datatype' name=UnrestrictedName ownedSignature=TemplateSignatureCS? (':'
- // instanceClassName=SINGLE_QUOTED_STRING)? ('{' (isSerializable?='serializable' | '!serializable')? '}')? ('{'
- // (ownedAnnotations+=AnnotationElementCS | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
+ // isPrimitive?='primitive'? 'datatype' name=UnrestrictedName
+ // ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{' (isSerializable?='serializable'
+ // | '!serializable')? '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
public DataTypeCSElements getDataTypeCSAccess() {
return pDataTypeCS;
}
@@ -3482,7 +3570,8 @@
//DocumentationCS base::DocumentationCS:
// {base::DocumentationCS} 'documentation' value=SINGLE_QUOTED_STRING? ('(' ownedDetails+=DetailCS (','
- // ownedDetails+=DetailCS)* ')')? ';';
+ // ownedDetails+=DetailCS)* ')')?
+ // ';';
public DocumentationCSElements getDocumentationCSAccess() {
return pDocumentationCS;
}
@@ -3492,9 +3581,11 @@
}
//EnumerationCS base::EnumerationCS:
- // 'enum' name=UnrestrictedName ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{'
- // (isSerializable?='serializable' | '!serializable')? '}')? ('{' (ownedAnnotations+=AnnotationElementCS |
- // ownedLiterals+=EnumerationLiteralCS | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
+ // 'enum' name=UnrestrictedName
+ // ownedSignature=TemplateSignatureCS? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{' (isSerializable?='serializable'
+ // | '!serializable')? '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedLiterals+=EnumerationLiteralCS
+ // | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
public EnumerationCSElements getEnumerationCSAccess() {
return pEnumerationCS;
}
@@ -3545,14 +3636,16 @@
}
//OperationCS base::OperationCS:
- // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'operation'
- // ownedSignature=TemplateSignatureCS? name=UnrestrictedName '(' (ownedParameters+=ParameterCS (','
- // ownedParameters+=ParameterCS)*)? ')' (':' ownedType=TypedMultiplicityRefCS)? ('throws' ownedExceptions+=TypedRefCS
- // (',' ownedExceptions+=TypedRefCS)*)? ('{' ((qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='ordered' |
- // qualifiers+='!ordered' | qualifiers+='transient' | qualifiers+='!transient' | qualifiers+='unique' |
- // qualifiers+='!unique') ','?)+ '}')? ('{' (ownedAnnotations+=AnnotationElementCS |
- // ownedPreconditions+=PreconditionConstraintCS | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS?
- // ';' | ownedPostconditions+=PostconditionConstraintCS)* '}' | ';');
+ // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)?
+ // 'operation' ownedSignature=TemplateSignatureCS? name=UnrestrictedName
+ // '(' (ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')' (':' ownedType=TypedMultiplicityRefCS)?
+ // ('throws' ownedExceptions+=TypedRefCS (',' ownedExceptions+=TypedRefCS)*)? ('{' ((qualifiers+='derived' |
+ // qualifiers+='!derived' | qualifiers+='ordered' | qualifiers+='!ordered' | qualifiers+='transient' |
+ // qualifiers+='!transient' | qualifiers+='unique' | qualifiers+='!unique') ','?)+
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedPreconditions+=PreconditionConstraintCS
+ // | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS? ';' |
+ // ownedPostconditions+=PostconditionConstraintCS)* '}' | ';');
public OperationCSElements getOperationCSAccess() {
return pOperationCS;
}
@@ -3563,7 +3656,8 @@
//PackageCS base::PackageCS:
// 'package' name=UnrestrictedName (':' nsPrefix=UnrestrictedName)? ('=' nsURI=URI)? ('{'
- // (ownedAnnotations+=AnnotationElementCS | ownedPackages+=PackageCS | ownedClasses+=ClassCS)* '}' | ';');
+ // (ownedAnnotations+=AnnotationElementCS | ownedPackages+=PackageCS | ownedClasses+=ClassCS)*
+ // '}' | ';');
public PackageCSElements getPackageCSAccess() {
return pPackageCS;
}
@@ -3574,7 +3668,8 @@
//ParameterCS base::ParameterCS:
// name=UnrestrictedName (':' ownedType=TypedMultiplicityRefCS)? ('{' ((qualifiers+='ordered' | qualifiers+='!ordered' |
- // qualifiers+='unique' | qualifiers+='!unique') ','?)+ '}')? ('{' ownedAnnotations+=AnnotationElementCS* '}')?;
+ // qualifiers+='unique' | qualifiers+='!unique') ','?)+
+ // '}')? ('{' ownedAnnotations+=AnnotationElementCS* '}')?;
public ParameterCSElements getParameterCSAccess() {
return pParameterCS;
}
@@ -3584,15 +3679,16 @@
}
//ReferenceCS base::ReferenceCS:
- // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)? 'property'
- // name=UnrestrictedName ('#' referredOpposite=[pivot::Property|UnrestrictedName])? (':'
+ // (qualifiers+='static' qualifiers+='definition'? | qualifiers+='definition' qualifiers+='static'?)?
+ // 'property' name=UnrestrictedName ('#' referredOpposite=[pivot::Property|UnrestrictedName])? (':'
// ownedType=TypedMultiplicityRefCS)? ('=' default=SINGLE_QUOTED_STRING)? ('{' ((qualifiers+='composes' |
// qualifiers+='!composes' | qualifiers+='derived' | qualifiers+='!derived' | qualifiers+='ordered' |
// qualifiers+='!ordered' | qualifiers+='readonly' | qualifiers+='!readonly' | qualifiers+='resolve' |
// qualifiers+='!resolve' | qualifiers+='transient' | qualifiers+='!transient' | qualifiers+='unique' |
// qualifiers+='!unique' | qualifiers+='unsettable' | qualifiers+='!unsettable' | qualifiers+='volatile' |
- // qualifiers+='!volatile') ','?)+ '}')? ('{' (ownedAnnotations+=AnnotationElementCS | 'key'
- // referredKeys+=[pivot::Property|UnrestrictedName] (',' referredKeys+=[pivot::Property|UnrestrictedName])* ';' |
+ // qualifiers+='!volatile') ','?)+
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | 'key' referredKeys+=[pivot::Property|UnrestrictedName] (',' referredKeys+=[pivot::Property|UnrestrictedName])* ';' |
// 'initial' UnrestrictedName? ':' ownedDefaultExpressions+=SpecificationCS? ';' | 'derivation' UnrestrictedName? ':'
// ownedDefaultExpressions+=SpecificationCS? ';')* '}' | ';');
public ReferenceCSElements getReferenceCSAccess() {
@@ -3614,10 +3710,14 @@
}
//StructuredClassCS base::StructuredClassCS:
- // isAbstract?='abstract'? 'class' name=UnrestrictedName ownedSignature=TemplateSignatureCS? ('extends'
- // ownedSuperTypes+=TypedRefCS (',' ownedSuperTypes+=TypedRefCS)*)? (':' instanceClassName=SINGLE_QUOTED_STRING)? ('{'
- // isInterface?='interface'? '}')? ('{' (ownedAnnotations+=AnnotationElementCS | ownedOperations+=OperationCS |
- // ownedProperties+=StructuralFeatureCS | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
+ // isAbstract?='abstract'?
+ // 'class' name=UnrestrictedName
+ // ownedSignature=TemplateSignatureCS? ('extends' ownedSuperTypes+=TypedRefCS (',' ownedSuperTypes+=TypedRefCS)*)? (':'
+ // instanceClassName=SINGLE_QUOTED_STRING)? ('{' isInterface?='interface'?
+ // '}')? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedOperations+=OperationCS
+ // | ownedProperties+=StructuralFeatureCS
+ // | ownedConstraints+=InvariantConstraintCS)* '}' | ';');
public StructuredClassCSElements getStructuredClassCSAccess() {
return pStructuredClassCS;
}
@@ -3647,7 +3747,8 @@
}
//TypeIdentifier:
- // UnrestrictedName | PrimitiveTypeIdentifier;
+ // UnrestrictedName
+ // | PrimitiveTypeIdentifier;
public TypeIdentifierElements getTypeIdentifierAccess() {
return pTypeIdentifier;
}
@@ -3667,11 +3768,9 @@
}
////---------------------------------------------------------------------------------
- // // Base overrides
- //
+ //// Base overrides
////---------------------------------------------------------------------------------
- // TemplateSignatureCS
- //base::TemplateSignatureCS:
+ //TemplateSignatureCS base::TemplateSignatureCS:
// '(' ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* ')' | '<'
// ownedParameters+=TypeParameterCS (',' ownedParameters+=TypeParameterCS)* '>';
public TemplateSignatureCSElements getTemplateSignatureCSAccess() {
@@ -3703,7 +3802,13 @@
}
//UnrestrictedName:
- // EnumerationLiteralName | 'annotation' | 'documentation' | 'invariant' | 'literal' | 'serializable' | 'sysml';
+ // EnumerationLiteralName
+ // | 'annotation'
+ // | 'documentation'
+ // | 'invariant'
+ // | 'literal'
+ // | 'serializable'
+ // | 'sysml';
public UnrestrictedNameElements getUnrestrictedNameAccess() {
return pUnrestrictedName;
}
@@ -3713,7 +3818,7 @@
}
////generate essentialOCLCST "http://www.eclipse.org/ocl/3.0.0/EssentialOCLCST"
- // Model ContextCS:
+ //Model ContextCS:
// ownedExpression=ExpCS;
public EssentialOCLGrammarAccess.ModelElements getModelAccess() {
return gaEssentialOCL.getModelAccess();
@@ -3725,7 +3830,17 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLReservedKeyword:
- // 'and' | 'else' | 'endif' | 'if' | 'implies' | 'in' | 'let' | 'not' | 'or' | 'then' | 'xor';
+ // 'and'
+ // | 'else'
+ // | 'endif'
+ // | 'if'
+ // | 'implies'
+ // | 'in'
+ // | 'let'
+ // | 'not'
+ // | 'or'
+ // | 'then'
+ // | 'xor';
public EssentialOCLGrammarAccess.EssentialOCLReservedKeywordElements getEssentialOCLReservedKeywordAccess() {
return gaEssentialOCL.getEssentialOCLReservedKeywordAccess();
}
@@ -3808,10 +3923,8 @@
}
////---------------------------------------------------------------------
- // // Names
- //
+ //// Names
////---------------------------------------------------------------------
- //
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnrestrictedName:
// Identifier;
@@ -3825,7 +3938,11 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnreservedName:
- // super::UnrestrictedName | CollectionTypeIdentifier | PrimitiveTypeIdentifier | 'Map' | 'Tuple';
+ // super::UnrestrictedName
+ // | CollectionTypeIdentifier
+ // | PrimitiveTypeIdentifier
+ // | 'Map'
+ // | 'Tuple';
public EssentialOCLGrammarAccess.EssentialOCLUnreservedNameElements getEssentialOCLUnreservedNameAccess() {
return gaEssentialOCL.getEssentialOCLUnreservedNameAccess();
}
@@ -3876,11 +3993,17 @@
}
////---------------------------------------------------------------------
- // // Types
- //
+ //// Types
////---------------------------------------------------------------------
- // PrimitiveTypeIdentifier:
- // 'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclVoid';
+ //PrimitiveTypeIdentifier:
+ // 'Boolean'
+ // | 'Integer'
+ // | 'Real'
+ // | 'String'
+ // | 'UnlimitedNatural'
+ // | 'OclAny'
+ // | 'OclInvalid'
+ // | 'OclVoid';
public EssentialOCLGrammarAccess.PrimitiveTypeIdentifierElements getPrimitiveTypeIdentifierAccess() {
return gaEssentialOCL.getPrimitiveTypeIdentifierAccess();
}
@@ -3900,7 +4023,11 @@
}
//CollectionTypeIdentifier:
- // 'Set' | 'Bag' | 'Sequence' | 'Collection' | 'OrderedSet';
+ // 'Set'
+ // | 'Bag'
+ // | 'Sequence'
+ // | 'Collection'
+ // | 'OrderedSet';
public EssentialOCLGrammarAccess.CollectionTypeIdentifierElements getCollectionTypeIdentifierAccess() {
return gaEssentialOCL.getCollectionTypeIdentifierAccess();
}
@@ -3951,11 +4078,12 @@
}
////---------------------------------------------------------------------
- // // Literals
- //
+ //// Literals
////---------------------------------------------------------------------
- // CollectionLiteralExpCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)? '}';
+ //CollectionLiteralExpCS:
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)?
+ // '}';
public EssentialOCLGrammarAccess.CollectionLiteralExpCSElements getCollectionLiteralExpCSAccess() {
return gaEssentialOCL.getCollectionLiteralExpCSAccess();
}
@@ -3975,8 +4103,9 @@
}
//CollectionPatternCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++'
- // restVariableName=Identifier))? '}';
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++' restVariableName=Identifier))?
+ // '}';
public EssentialOCLGrammarAccess.CollectionPatternCSElements getCollectionPatternCSAccess() {
return gaEssentialOCL.getCollectionPatternCSAccess();
}
@@ -4037,8 +4166,12 @@
}
//PrimitiveLiteralExpCS:
- // NumberLiteralExpCS | StringLiteralExpCS | BooleanLiteralExpCS | UnlimitedNaturalLiteralExpCS | InvalidLiteralExpCS |
- // NullLiteralExpCS;
+ // NumberLiteralExpCS
+ // | StringLiteralExpCS
+ // | BooleanLiteralExpCS
+ // | UnlimitedNaturalLiteralExpCS
+ // | InvalidLiteralExpCS
+ // | NullLiteralExpCS;
public EssentialOCLGrammarAccess.PrimitiveLiteralExpCSElements getPrimitiveLiteralExpCSAccess() {
return gaEssentialOCL.getPrimitiveLiteralExpCSAccess();
}
@@ -4088,7 +4221,8 @@
}
//BooleanLiteralExpCS:
- // symbol='true' | symbol='false';
+ // symbol='true'
+ // | symbol='false';
public EssentialOCLGrammarAccess.BooleanLiteralExpCSElements getBooleanLiteralExpCSAccess() {
return gaEssentialOCL.getBooleanLiteralExpCSAccess();
}
@@ -4128,7 +4262,10 @@
}
//TypeLiteralCS base::TypedRefCS:
- // PrimitiveTypeCS | CollectionTypeCS | MapTypeCS | TupleTypeCS;
+ // PrimitiveTypeCS
+ // | CollectionTypeCS
+ // | MapTypeCS
+ // | TupleTypeCS;
public EssentialOCLGrammarAccess.TypeLiteralCSElements getTypeLiteralCSAccess() {
return gaEssentialOCL.getTypeLiteralCSAccess();
}
@@ -4188,22 +4325,15 @@
}
////---------------------------------------------------------------------
- // // Expressions
- //
+ //// Expressions
////---------------------------------------------------------------------
- //
//// An ExpCS permits a LetExpCS only in the final term to ensure
- //
//// that let is right associative, whereas infix operators are left associative.
- //
//// a = 64 / 16 / let b : Integer in 8 / let c : Integer in 4
- // // is
- //
+ //// is
//// a = (64 / 16) / (let b : Integer in 8 / (let c : Integer in 4 ))
- //
///* An expression elaborates a prefixed expression with zero or more binary operator and expression suffixes.
- // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/
- //ExpCS:
+ // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/ ExpCS:
// PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS;
public EssentialOCLGrammarAccess.ExpCSElements getExpCSAccess() {
return gaEssentialOCL.getExpCSAccess();
@@ -4237,8 +4367,16 @@
///* A primary expression identifies the basic expressions from which more complex expressions may be constructed. */
//PrimaryExpCS ExpCS:
- // NestedExpCS | IfExpCS | SelfExpCS | PrimitiveLiteralExpCS | TupleLiteralExpCS | MapLiteralExpCS |
- // CollectionLiteralExpCS | LambdaLiteralExpCS | TypeLiteralExpCS | NameExpCS;
+ // NestedExpCS
+ // | IfExpCS
+ // | SelfExpCS
+ // | PrimitiveLiteralExpCS
+ // | TupleLiteralExpCS
+ // | MapLiteralExpCS
+ // | CollectionLiteralExpCS
+ // | LambdaLiteralExpCS
+ // | TypeLiteralExpCS
+ // | NameExpCS;
public EssentialOCLGrammarAccess.PrimaryExpCSElements getPrimaryExpCSAccess() {
return gaEssentialOCL.getPrimaryExpCSAccess();
}
@@ -4248,8 +4386,7 @@
}
///* A name expression is a generalised rule for expressions that start with a name and which may be followed by square, round or
- // * curly bracket clauses and optionally an @pre as well.*/
- //NameExpCS:
+ // * curly bracket clauses and optionally an @pre as well.*/ NameExpCS:
// ownedPathName=PathNameCS ownedSquareBracketedClauses+=SquareBracketedClauseCS*
// ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@'
// 'pre')?;
@@ -4295,12 +4432,11 @@
}
///* A navigating argument is a generalized rule for the first argument in a round bracket clause. This is typically the first operation
- // * parameter or an iterator. */
- //NavigatingArgCS:
+ // * parameter or an iterator. */ NavigatingArgCS:
// ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('=' ownedInitExpression=ExpCS)? |
// ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('=' ownedInitExpression=ExpCS)? | (':'
- // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)? | ':'
- // ownedType=TypeExpCS;
+ // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)?
+ // | ':' ownedType=TypeExpCS;
public EssentialOCLGrammarAccess.NavigatingArgCSElements getNavigatingArgCSAccess() {
return gaEssentialOCL.getNavigatingArgCSAccess();
}
@@ -4310,7 +4446,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating bar argument is a generalized rule for a bar-prefixed argument in a round bracket clause. This is typically the body of an iteration. */
//NavigatingBarArgCS NavigatingArgCS:
// prefix='|' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -4323,10 +4458,8 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating comma argument is a generalized rule for non-first argument in a round bracket clause. These are typically non-first operation
- // * parameters or a second iterator. */
- //NavigatingCommaArgCS NavigatingArgCS:
+ // * parameters or a second iterator. */ NavigatingCommaArgCS NavigatingArgCS:
// prefix=',' ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('='
// ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('='
// ownedInitExpression=ExpCS)? | (':' ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in'
@@ -4340,7 +4473,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating semi argument is a generalized rule for a semicolon prefixed argument in a round bracket clause. This is typically an iterate accumulator. */
//NavigatingSemiArgCS NavigatingArgCS:
// prefix=';' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -4353,8 +4485,9 @@
}
//// Type-less init is an illegal infix expression
- // NavigatingArgExpCS ExpCS:
- // ExpCS // '?' -- defined by Complete OCL
+ //NavigatingArgExpCS ExpCS:
+ // ExpCS
+ // // '?' -- defined by Complete OCL
//;
public EssentialOCLGrammarAccess.NavigatingArgExpCSElements getNavigatingArgExpCSAccess() {
return gaEssentialOCL.getNavigatingArgExpCSAccess();
@@ -4375,9 +4508,12 @@
}
//IfExpCS:
- // 'if' ownedCondition=(ExpCS | PatternExpCS) 'then' ownedThenExpression=ExpCS // ifThenExpressions+=IfThenExpCS
- //
- // ownedIfThenExpressions+=ElseIfThenExpCS* 'else' ownedElseExpression=ExpCS 'endif';
+ // 'if' ownedCondition=(ExpCS | PatternExpCS)
+ // 'then' ownedThenExpression=ExpCS
+ // // ifThenExpressions+=IfThenExpCS
+ // ownedIfThenExpressions+=ElseIfThenExpCS*
+ // 'else' ownedElseExpression=ExpCS
+ // 'endif';
public EssentialOCLGrammarAccess.IfExpCSElements getIfExpCSAccess() {
return gaEssentialOCL.getIfExpCSAccess();
}
@@ -4387,12 +4523,12 @@
}
////IfThenExpCS returns IfThenExpCS:
- // // 'if' condition=ExpCS
- // // 'then' thenExpression=ExpCS
- // //;
- // ElseIfThenExpCS
- //IfThenExpCS:
- // 'elseif' ownedCondition=ExpCS 'then' ownedThenExpression=ExpCS;
+ //// 'if' condition=ExpCS
+ //// 'then' thenExpression=ExpCS
+ ////;
+ //ElseIfThenExpCS IfThenExpCS:
+ // 'elseif' ownedCondition=ExpCS
+ // 'then' ownedThenExpression=ExpCS;
public EssentialOCLGrammarAccess.ElseIfThenExpCSElements getElseIfThenExpCSAccess() {
return gaEssentialOCL.getElseIfThenExpCSAccess();
}
@@ -4402,7 +4538,8 @@
}
//LetExpCS:
- // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)* 'in' ownedInExpression=ExpCS;
+ // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)*
+ // 'in' ownedInExpression=ExpCS;
public EssentialOCLGrammarAccess.LetExpCSElements getLetExpCSAccess() {
return gaEssentialOCL.getLetExpCSAccess();
}
@@ -4588,8 +4725,7 @@
// * lookahead conflicts in simple lexers between a dot within a floating point number and the dot-dot in a CollectionLiteralPartCS. A
// * practical implementation should give high priority to a successful parse of INT ('.' INT)? (('e' | 'E') ('+' | '-')? INT)? than
// * to the unsuccessful partial parse of INT '..'. The type of the INT terminal is String to allow the floating point syntax to be used.
- // */
- //NUMBER_LITERAL BigNumber:
+ // */ NUMBER_LITERAL BigNumber:
// INT;
public BaseGrammarAccess.NUMBER_LITERALElements getNUMBER_LITERALAccess() {
return gaBase.getNUMBER_LITERALAccess();
@@ -4600,7 +4736,7 @@
}
//// EssentialOCLTokenSource pieces this together ('.' INT)? (('e' | 'E') ('+' | '-')? INT)?;
- // StringLiteral:
+ //StringLiteral:
// SINGLE_QUOTED_STRING;
public BaseGrammarAccess.StringLiteralElements getStringLiteralAccess() {
return gaBase.getStringLiteralAccess();
diff --git a/plugins/org.eclipse.ocl.xtext.oclstdlib/src-gen/org/eclipse/ocl/xtext/oclstdlib/services/OCLstdlibGrammarAccess.java b/plugins/org.eclipse.ocl.xtext.oclstdlib/src-gen/org/eclipse/ocl/xtext/oclstdlib/services/OCLstdlibGrammarAccess.java
index 2344a17..6b797dc 100644
--- a/plugins/org.eclipse.ocl.xtext.oclstdlib/src-gen/org/eclipse/ocl/xtext/oclstdlib/services/OCLstdlibGrammarAccess.java
+++ b/plugins/org.eclipse.ocl.xtext.oclstdlib/src-gen/org/eclipse/ocl/xtext/oclstdlib/services/OCLstdlibGrammarAccess.java
@@ -37,8 +37,9 @@
private final RuleCall cOwnedPackagesLibPackageCSParserRuleCall_1_0 = (RuleCall)cOwnedPackagesAssignment_1.eContents().get(0);
////generate OCLstdlib "http://www.eclipse.org/ocl/examples/xtext/oclstdlib/OCLstdlibCST"
- // Library LibRootPackageCS:
- // (ownedImports+=ImportCS ';')* ownedPackages+=LibPackageCS*;
+ //Library LibRootPackageCS:
+ // (ownedImports+=ImportCS ';')*
+ // ownedPackages+=LibPackageCS*;
@Override public ParserRule getRule() { return rule; }
//(ownedImports+=ImportCS ';')* ownedPackages+=LibPackageCS*
@@ -70,7 +71,8 @@
private final RuleCall cRestrictedKeywordsParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
//Identifier:
- // ID | RestrictedKeywords;
+ // ID
+ // | RestrictedKeywords;
@Override public ParserRule getRule() { return rule; }
//ID | RestrictedKeywords
@@ -109,18 +111,37 @@
private final Keyword cValidatingKeyword_20 = (Keyword)cAlternatives.eContents().get(20);
//RestrictedKeywords:
- // 'abstract' | 'annotation' | 'conformsTo' | 'documentation' | 'extends' | 'import' | 'inv' | 'invalidating' |
- // 'iteration' | 'left' | 'library' | 'operation' | 'package' | 'post' | 'pre' | 'precedence' | 'property' | 'right' |
- // 'static' | 'type' //| 'typeof'
- // | 'validating' //| 'Lambda'
- // //| 'Tuple'
+ // 'abstract'
+ // | 'annotation'
+ // | 'conformsTo'
+ // | 'documentation'
+ // | 'extends'
+ // | 'import'
+ // | 'inv'
+ // | 'invalidating'
+ // | 'iteration'
+ // | 'left'
+ // | 'library'
+ // | 'operation'
+ // | 'package'
+ // | 'post'
+ // | 'pre'
+ // | 'precedence'
+ // | 'property'
+ // | 'right'
+ // | 'static'
+ // | 'type'
+ // //| 'typeof'
+ // | 'validating'
+ // //| 'Lambda'
+ // //| 'Tuple'
//;
@Override public ParserRule getRule() { return rule; }
//'abstract' | 'annotation' | 'conformsTo' | 'documentation' | 'extends' | 'import' | 'inv' | 'invalidating' | 'iteration'
//| 'left' | 'library' | 'operation' | 'package' | 'post' | 'pre' | 'precedence' | 'property' | 'right' | 'static' |
//'type' //| 'typeof'
- // | 'validating'
+ //| 'validating'
public Alternatives getAlternatives() { return cAlternatives; }
//'abstract'
@@ -197,7 +218,11 @@
private final RuleCall cCollectionTypeIdentifierParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
//Name:
- // Identifier | DOUBLE_QUOTED_STRING | EssentialOCLReservedKeyword | PrimitiveTypeIdentifier | CollectionTypeIdentifier;
+ // Identifier
+ // | DOUBLE_QUOTED_STRING
+ // | EssentialOCLReservedKeyword
+ // | PrimitiveTypeIdentifier
+ // | CollectionTypeIdentifier;
@Override public ParserRule getRule() { return rule; }
//Identifier | DOUBLE_QUOTED_STRING | EssentialOCLReservedKeyword | PrimitiveTypeIdentifier | CollectionTypeIdentifier
@@ -228,7 +253,10 @@
private final Keyword cTupleKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
//AnyName:
- // Name | 'Lambda' | 'Map' | 'Tuple';
+ // Name
+ // | 'Lambda'
+ // | 'Map'
+ // | 'Tuple';
@Override public ParserRule getRule() { return rule; }
//Name | 'Lambda' | 'Map' | 'Tuple'
@@ -489,10 +517,13 @@
private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
//LibClassCS:
- // isAbstract?='abstract'? 'type' name=AnyName ownedSignature=TemplateSignatureCS? (':'
- // metaclassName=[MetaclassNameCS|AnyName])? ('conformsTo' ownedSuperTypes+=TypedRefCS (','
- // ownedSuperTypes+=TypedRefCS)*)? '{' (ownedOperations+=OperationCS | ownedProperties+=LibPropertyCS |
- // ownedConstraints+=InvCS | ownedAnnotations+=AnnotationElementCS)* '}';
+ // isAbstract?='abstract'? 'type' name=AnyName
+ // ownedSignature=TemplateSignatureCS? (':' metaclassName=[MetaclassNameCS|AnyName])? ('conformsTo'
+ // ownedSuperTypes+=TypedRefCS (',' ownedSuperTypes+=TypedRefCS)*)?
+ // '{' (ownedOperations+=OperationCS
+ // | ownedProperties+=LibPropertyCS
+ // | ownedConstraints+=InvCS
+ // | ownedAnnotations+=AnnotationElementCS)* '}';
@Override public ParserRule getRule() { return rule; }
//isAbstract?='abstract'? 'type' name=AnyName ownedSignature=TemplateSignatureCS? (':'
@@ -676,7 +707,8 @@
//DocumentationCS base::DocumentationCS:
// {base::DocumentationCS} 'documentation' value=SINGLE_QUOTED_STRING? ('(' ownedDetails+=DetailCS (','
- // ownedDetails+=DetailCS)* ')')? ';';
+ // ownedDetails+=DetailCS)* ')')?
+ // ';';
@Override public ParserRule getRule() { return rule; }
//{base::DocumentationCS} 'documentation' value=SINGLE_QUOTED_STRING? ('(' ownedDetails+=DetailCS (','
@@ -875,8 +907,9 @@
//LibCoercionCS:
// 'coercion' name=Name '(' ')' ':' ownedType=TypedMultiplicityRefCS ('=>'
- // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS |
- // ownedPreconditions+=PostCS | ownedPostconditions+=PreCS)* '}' | ';');
+ // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedPreconditions+=PostCS
+ // | ownedPostconditions+=PreCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//'coercion' name=Name '(' ')' ':' ownedType=TypedMultiplicityRefCS ('=>'
@@ -1018,11 +1051,17 @@
private final Keyword cSemicolonKeyword_14_1 = (Keyword)cAlternatives_14.eContents().get(1);
//LibIterationCS:
- // 'iteration' name=Name ownedSignature=TemplateSignatureCS? '(' ownedIterators+=IteratorCS (','
- // ownedIterators+=IteratorCS)* (';' ownedAccumulators+=AccumulatorCS (',' ownedAccumulators+=AccumulatorCS)*)? ('|'
- // ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypedMultiplicityRefCS
- // isInvalidating?='invalidating'? isValidating?='validating'? ('=>' implementation=[JavaClassCS|SINGLE_QUOTED_STRING])?
- // ('{' (ownedAnnotations+=AnnotationElementCS | ownedPreconditions+=PostCS | ownedPostconditions+=PreCS)* '}' | ';');
+ // 'iteration' name=Name
+ // ownedSignature=TemplateSignatureCS?
+ // '(' ownedIterators+=IteratorCS (',' ownedIterators+=IteratorCS)* (';' ownedAccumulators+=AccumulatorCS (','
+ // ownedAccumulators+=AccumulatorCS)*)? ('|' ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)?
+ // ')'
+ // ':' ownedType=TypedMultiplicityRefCS
+ // isInvalidating?='invalidating'?
+ // isValidating?='validating'? ('=>' implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{'
+ // (ownedAnnotations+=AnnotationElementCS
+ // | ownedPreconditions+=PostCS
+ // | ownedPostconditions+=PreCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//'iteration' name=Name ownedSignature=TemplateSignatureCS? '(' ownedIterators+=IteratorCS (','
@@ -1247,9 +1286,9 @@
private final RuleCall cOwnedResultTypeTypedRefCSParserRuleCall_7_0 = (RuleCall)cOwnedResultTypeAssignment_7.eContents().get(0);
//LambdaTypeCS base::LambdaTypeCS:
- // name='Lambda' ownedSignature=TemplateSignatureCS? ownedContextType=LambdaContextTypeRefCS '('
- // (ownedParameterTypes+=TypedMultiplicityRefCS (',' ownedParameterTypes+=TypedMultiplicityRefCS)*)? ')' ':'
- // ownedResultType=TypedRefCS;
+ // name='Lambda' ownedSignature=TemplateSignatureCS? ownedContextType=LambdaContextTypeRefCS
+ // '(' (ownedParameterTypes+=TypedMultiplicityRefCS (',' ownedParameterTypes+=TypedMultiplicityRefCS)*)? ')'
+ // ':' ownedResultType=TypedRefCS;
@Override public ParserRule getRule() { return rule; }
//name='Lambda' ownedSignature=TemplateSignatureCS? ownedContextType=LambdaContextTypeRefCS '('
@@ -1410,12 +1449,15 @@
private final Keyword cSemicolonKeyword_13_1 = (Keyword)cAlternatives_13.eContents().get(1);
//LibOperationCS:
- // isStatic?='static'? 'operation' name=Name ownedSignature=TemplateSignatureCS? '(' (ownedParameters+=ParameterCS (','
- // ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypedMultiplicityRefCS isValidating?='validating'?
+ // isStatic?='static'? 'operation' name=Name
+ // ownedSignature=TemplateSignatureCS?
+ // '(' (ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')'
+ // ':' ownedType=TypedMultiplicityRefCS
+ // isValidating?='validating'?
// isInvalidating?='invalidating'? ('precedence' '=' precedence=[pivot::Precedence|Name])? ('=>'
- // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS | 'body'
- // UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS ';' | ownedPostconditions+=PostCS |
- // ownedPreconditions+=PreCS)* '}' | ';');
+ // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS ';' | ownedPostconditions+=PostCS
+ // | ownedPreconditions+=PreCS)* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//isStatic?='static'? 'operation' name=Name ownedSignature=TemplateSignatureCS? '(' (ownedParameters+=ParameterCS (','
@@ -1618,8 +1660,11 @@
private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
//LibPackageCS:
- // 'library' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)? '{' (ownedPackages+=PackageCS | 'precedence'
- // ownedPrecedences+=PrecedenceCS+ ';' | ownedClasses+=ClassCS | ownedAnnotations+=AnnotationElementCS)* '}';
+ // 'library' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)?
+ // '{' (ownedPackages+=PackageCS
+ // | 'precedence' ownedPrecedences+=PrecedenceCS+ ';' | ownedClasses+=ClassCS
+ // | ownedAnnotations+=AnnotationElementCS)*
+ // '}';
@Override public ParserRule getRule() { return rule; }
//'library' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)? '{' (ownedPackages+=PackageCS | 'precedence'
@@ -1724,8 +1769,11 @@
private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
//PackageCS base::PackageCS:
- // 'package' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)? '{' (ownedPackages+=PackageCS | ownedClasses+=ClassCS |
- // ownedAnnotations+=AnnotationElementCS)* '}';
+ // 'package' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)?
+ // '{' (ownedPackages+=PackageCS
+ // | ownedClasses+=ClassCS
+ // | ownedAnnotations+=AnnotationElementCS)*
+ // '}';
@Override public ParserRule getRule() { return rule; }
//'package' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)? '{' (ownedPackages+=PackageCS | ownedClasses+=ClassCS |
@@ -1847,8 +1895,9 @@
private final Keyword cSemicolonKeyword_6_1 = (Keyword)cAlternatives_6.eContents().get(1);
//LibPropertyCS:
- // isStatic?='static'? 'property' name=Name ':' ownedType=TypedMultiplicityRefCS ('=>'
- // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' ownedAnnotations+=AnnotationElementCS* '}' | ';');
+ // isStatic?='static'? 'property' name=Name
+ // ':' ownedType=TypedMultiplicityRefCS ('=>' implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{'
+ // ownedAnnotations+=AnnotationElementCS* '}' | ';');
@Override public ParserRule getRule() { return rule; }
//isStatic?='static'? 'property' name=Name ':' ownedType=TypedMultiplicityRefCS ('=>'
@@ -2161,10 +2210,9 @@
private final RuleCall cLambdaTypeCSParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
////---------------------------------------------------------------------------------
- // // Base overrides
- //
+ //// Base overrides
////---------------------------------------------------------------------------------
- // TypedRefCS base::TypedRefCS:
+ //TypedRefCS base::TypedRefCS:
// MapTypeCS | TupleTypeCS | TypedTypeRefCS | LambdaTypeCS;
@Override public ParserRule getRule() { return rule; }
@@ -2268,10 +2316,9 @@
private final RuleCall cOwnedTypeTypedMultiplicityRefCSParserRuleCall_2_0 = (RuleCall)cOwnedTypeAssignment_2.eContents().get(0);
////---------------------------------------------------------------------------------
- // // EssentialOCL overrides
- //
+ //// EssentialOCL overrides
////---------------------------------------------------------------------------------
- // TuplePartCS base::TuplePartCS:
+ //TuplePartCS base::TuplePartCS:
// name=Identifier ':' ownedType=TypedMultiplicityRefCS;
@Override public ParserRule getRule() { return rule; }
@@ -2413,8 +2460,9 @@
////generate OCLstdlib "http://www.eclipse.org/ocl/examples/xtext/oclstdlib/OCLstdlibCST"
- // Library LibRootPackageCS:
- // (ownedImports+=ImportCS ';')* ownedPackages+=LibPackageCS*;
+ //Library LibRootPackageCS:
+ // (ownedImports+=ImportCS ';')*
+ // ownedPackages+=LibPackageCS*;
public LibraryElements getLibraryAccess() {
return pLibrary;
}
@@ -2424,7 +2472,8 @@
}
//Identifier:
- // ID | RestrictedKeywords;
+ // ID
+ // | RestrictedKeywords;
public IdentifierElements getIdentifierAccess() {
return pIdentifier;
}
@@ -2434,11 +2483,30 @@
}
//RestrictedKeywords:
- // 'abstract' | 'annotation' | 'conformsTo' | 'documentation' | 'extends' | 'import' | 'inv' | 'invalidating' |
- // 'iteration' | 'left' | 'library' | 'operation' | 'package' | 'post' | 'pre' | 'precedence' | 'property' | 'right' |
- // 'static' | 'type' //| 'typeof'
- // | 'validating' //| 'Lambda'
- // //| 'Tuple'
+ // 'abstract'
+ // | 'annotation'
+ // | 'conformsTo'
+ // | 'documentation'
+ // | 'extends'
+ // | 'import'
+ // | 'inv'
+ // | 'invalidating'
+ // | 'iteration'
+ // | 'left'
+ // | 'library'
+ // | 'operation'
+ // | 'package'
+ // | 'post'
+ // | 'pre'
+ // | 'precedence'
+ // | 'property'
+ // | 'right'
+ // | 'static'
+ // | 'type'
+ // //| 'typeof'
+ // | 'validating'
+ // //| 'Lambda'
+ // //| 'Tuple'
//;
public RestrictedKeywordsElements getRestrictedKeywordsAccess() {
return pRestrictedKeywords;
@@ -2449,7 +2517,11 @@
}
//Name:
- // Identifier | DOUBLE_QUOTED_STRING | EssentialOCLReservedKeyword | PrimitiveTypeIdentifier | CollectionTypeIdentifier;
+ // Identifier
+ // | DOUBLE_QUOTED_STRING
+ // | EssentialOCLReservedKeyword
+ // | PrimitiveTypeIdentifier
+ // | CollectionTypeIdentifier;
public NameElements getNameAccess() {
return pName;
}
@@ -2459,7 +2531,10 @@
}
//AnyName:
- // Name | 'Lambda' | 'Map' | 'Tuple';
+ // Name
+ // | 'Lambda'
+ // | 'Map'
+ // | 'Tuple';
public AnyNameElements getAnyNameAccess() {
return pAnyName;
}
@@ -2520,10 +2595,13 @@
}
//LibClassCS:
- // isAbstract?='abstract'? 'type' name=AnyName ownedSignature=TemplateSignatureCS? (':'
- // metaclassName=[MetaclassNameCS|AnyName])? ('conformsTo' ownedSuperTypes+=TypedRefCS (','
- // ownedSuperTypes+=TypedRefCS)*)? '{' (ownedOperations+=OperationCS | ownedProperties+=LibPropertyCS |
- // ownedConstraints+=InvCS | ownedAnnotations+=AnnotationElementCS)* '}';
+ // isAbstract?='abstract'? 'type' name=AnyName
+ // ownedSignature=TemplateSignatureCS? (':' metaclassName=[MetaclassNameCS|AnyName])? ('conformsTo'
+ // ownedSuperTypes+=TypedRefCS (',' ownedSuperTypes+=TypedRefCS)*)?
+ // '{' (ownedOperations+=OperationCS
+ // | ownedProperties+=LibPropertyCS
+ // | ownedConstraints+=InvCS
+ // | ownedAnnotations+=AnnotationElementCS)* '}';
public LibClassCSElements getLibClassCSAccess() {
return pLibClassCS;
}
@@ -2554,7 +2632,8 @@
//DocumentationCS base::DocumentationCS:
// {base::DocumentationCS} 'documentation' value=SINGLE_QUOTED_STRING? ('(' ownedDetails+=DetailCS (','
- // ownedDetails+=DetailCS)* ')')? ';';
+ // ownedDetails+=DetailCS)* ')')?
+ // ';';
public DocumentationCSElements getDocumentationCSAccess() {
return pDocumentationCS;
}
@@ -2586,8 +2665,9 @@
//LibCoercionCS:
// 'coercion' name=Name '(' ')' ':' ownedType=TypedMultiplicityRefCS ('=>'
- // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS |
- // ownedPreconditions+=PostCS | ownedPostconditions+=PreCS)* '}' | ';');
+ // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | ownedPreconditions+=PostCS
+ // | ownedPostconditions+=PreCS)* '}' | ';');
public LibCoercionCSElements getLibCoercionCSAccess() {
return pLibCoercionCS;
}
@@ -2597,11 +2677,17 @@
}
//LibIterationCS:
- // 'iteration' name=Name ownedSignature=TemplateSignatureCS? '(' ownedIterators+=IteratorCS (','
- // ownedIterators+=IteratorCS)* (';' ownedAccumulators+=AccumulatorCS (',' ownedAccumulators+=AccumulatorCS)*)? ('|'
- // ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypedMultiplicityRefCS
- // isInvalidating?='invalidating'? isValidating?='validating'? ('=>' implementation=[JavaClassCS|SINGLE_QUOTED_STRING])?
- // ('{' (ownedAnnotations+=AnnotationElementCS | ownedPreconditions+=PostCS | ownedPostconditions+=PreCS)* '}' | ';');
+ // 'iteration' name=Name
+ // ownedSignature=TemplateSignatureCS?
+ // '(' ownedIterators+=IteratorCS (',' ownedIterators+=IteratorCS)* (';' ownedAccumulators+=AccumulatorCS (','
+ // ownedAccumulators+=AccumulatorCS)*)? ('|' ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)?
+ // ')'
+ // ':' ownedType=TypedMultiplicityRefCS
+ // isInvalidating?='invalidating'?
+ // isValidating?='validating'? ('=>' implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{'
+ // (ownedAnnotations+=AnnotationElementCS
+ // | ownedPreconditions+=PostCS
+ // | ownedPostconditions+=PreCS)* '}' | ';');
public LibIterationCSElements getLibIterationCSAccess() {
return pLibIterationCS;
}
@@ -2621,9 +2707,9 @@
}
//LambdaTypeCS base::LambdaTypeCS:
- // name='Lambda' ownedSignature=TemplateSignatureCS? ownedContextType=LambdaContextTypeRefCS '('
- // (ownedParameterTypes+=TypedMultiplicityRefCS (',' ownedParameterTypes+=TypedMultiplicityRefCS)*)? ')' ':'
- // ownedResultType=TypedRefCS;
+ // name='Lambda' ownedSignature=TemplateSignatureCS? ownedContextType=LambdaContextTypeRefCS
+ // '(' (ownedParameterTypes+=TypedMultiplicityRefCS (',' ownedParameterTypes+=TypedMultiplicityRefCS)*)? ')'
+ // ':' ownedResultType=TypedRefCS;
public LambdaTypeCSElements getLambdaTypeCSAccess() {
return pLambdaTypeCS;
}
@@ -2653,12 +2739,15 @@
}
//LibOperationCS:
- // isStatic?='static'? 'operation' name=Name ownedSignature=TemplateSignatureCS? '(' (ownedParameters+=ParameterCS (','
- // ownedParameters+=ParameterCS)*)? ')' ':' ownedType=TypedMultiplicityRefCS isValidating?='validating'?
+ // isStatic?='static'? 'operation' name=Name
+ // ownedSignature=TemplateSignatureCS?
+ // '(' (ownedParameters+=ParameterCS (',' ownedParameters+=ParameterCS)*)? ')'
+ // ':' ownedType=TypedMultiplicityRefCS
+ // isValidating?='validating'?
// isInvalidating?='invalidating'? ('precedence' '=' precedence=[pivot::Precedence|Name])? ('=>'
- // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS | 'body'
- // UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS ';' | ownedPostconditions+=PostCS |
- // ownedPreconditions+=PreCS)* '}' | ';');
+ // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' (ownedAnnotations+=AnnotationElementCS
+ // | 'body' UnrestrictedName? ':' ownedBodyExpressions+=SpecificationCS ';' | ownedPostconditions+=PostCS
+ // | ownedPreconditions+=PreCS)* '}' | ';');
public LibOperationCSElements getLibOperationCSAccess() {
return pLibOperationCS;
}
@@ -2668,8 +2757,11 @@
}
//LibPackageCS:
- // 'library' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)? '{' (ownedPackages+=PackageCS | 'precedence'
- // ownedPrecedences+=PrecedenceCS+ ';' | ownedClasses+=ClassCS | ownedAnnotations+=AnnotationElementCS)* '}';
+ // 'library' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)?
+ // '{' (ownedPackages+=PackageCS
+ // | 'precedence' ownedPrecedences+=PrecedenceCS+ ';' | ownedClasses+=ClassCS
+ // | ownedAnnotations+=AnnotationElementCS)*
+ // '}';
public LibPackageCSElements getLibPackageCSAccess() {
return pLibPackageCS;
}
@@ -2679,8 +2771,11 @@
}
//PackageCS base::PackageCS:
- // 'package' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)? '{' (ownedPackages+=PackageCS | ownedClasses+=ClassCS |
- // ownedAnnotations+=AnnotationElementCS)* '}';
+ // 'package' name=Name (':' nsPrefix=Identifier '=' nsURI=URI)?
+ // '{' (ownedPackages+=PackageCS
+ // | ownedClasses+=ClassCS
+ // | ownedAnnotations+=AnnotationElementCS)*
+ // '}';
public PackageCSElements getPackageCSAccess() {
return pPackageCS;
}
@@ -2700,8 +2795,9 @@
}
//LibPropertyCS:
- // isStatic?='static'? 'property' name=Name ':' ownedType=TypedMultiplicityRefCS ('=>'
- // implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{' ownedAnnotations+=AnnotationElementCS* '}' | ';');
+ // isStatic?='static'? 'property' name=Name
+ // ':' ownedType=TypedMultiplicityRefCS ('=>' implementation=[JavaClassCS|SINGLE_QUOTED_STRING])? ('{'
+ // ownedAnnotations+=AnnotationElementCS* '}' | ';');
public LibPropertyCSElements getLibPropertyCSAccess() {
return pLibPropertyCS;
}
@@ -2763,10 +2859,9 @@
}
////---------------------------------------------------------------------------------
- // // Base overrides
- //
+ //// Base overrides
////---------------------------------------------------------------------------------
- // TypedRefCS base::TypedRefCS:
+ //TypedRefCS base::TypedRefCS:
// MapTypeCS | TupleTypeCS | TypedTypeRefCS | LambdaTypeCS;
public TypedRefCSElements getTypedRefCSAccess() {
return pTypedRefCS;
@@ -2788,10 +2883,9 @@
}
////---------------------------------------------------------------------------------
- // // EssentialOCL overrides
- //
+ //// EssentialOCL overrides
////---------------------------------------------------------------------------------
- // TuplePartCS base::TuplePartCS:
+ //TuplePartCS base::TuplePartCS:
// name=Identifier ':' ownedType=TypedMultiplicityRefCS;
public TuplePartCSElements getTuplePartCSAccess() {
return pTuplePartCS;
@@ -2802,7 +2896,7 @@
}
////generate essentialOCLCST "http://www.eclipse.org/ocl/3.0.0/EssentialOCLCST"
- // Model ContextCS:
+ //Model ContextCS:
// ownedExpression=ExpCS;
public EssentialOCLGrammarAccess.ModelElements getModelAccess() {
return gaEssentialOCL.getModelAccess();
@@ -2814,7 +2908,17 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLReservedKeyword:
- // 'and' | 'else' | 'endif' | 'if' | 'implies' | 'in' | 'let' | 'not' | 'or' | 'then' | 'xor';
+ // 'and'
+ // | 'else'
+ // | 'endif'
+ // | 'if'
+ // | 'implies'
+ // | 'in'
+ // | 'let'
+ // | 'not'
+ // | 'or'
+ // | 'then'
+ // | 'xor';
public EssentialOCLGrammarAccess.EssentialOCLReservedKeywordElements getEssentialOCLReservedKeywordAccess() {
return gaEssentialOCL.getEssentialOCLReservedKeywordAccess();
}
@@ -2897,10 +3001,8 @@
}
////---------------------------------------------------------------------
- // // Names
- //
+ //// Names
////---------------------------------------------------------------------
- //
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnrestrictedName:
// super::Identifier;
@@ -2924,7 +3026,11 @@
///** <<<This is a join point for derived grammars - replace with a more disciplined grammar extensibility>>> */
//EssentialOCLUnreservedName:
- // UnrestrictedName | CollectionTypeIdentifier | PrimitiveTypeIdentifier | 'Map' | 'Tuple';
+ // UnrestrictedName
+ // | CollectionTypeIdentifier
+ // | PrimitiveTypeIdentifier
+ // | 'Map'
+ // | 'Tuple';
public EssentialOCLGrammarAccess.EssentialOCLUnreservedNameElements getEssentialOCLUnreservedNameAccess() {
return gaEssentialOCL.getEssentialOCLUnreservedNameAccess();
}
@@ -2975,11 +3081,17 @@
}
////---------------------------------------------------------------------
- // // Types
- //
+ //// Types
////---------------------------------------------------------------------
- // PrimitiveTypeIdentifier:
- // 'Boolean' | 'Integer' | 'Real' | 'String' | 'UnlimitedNatural' | 'OclAny' | 'OclInvalid' | 'OclVoid';
+ //PrimitiveTypeIdentifier:
+ // 'Boolean'
+ // | 'Integer'
+ // | 'Real'
+ // | 'String'
+ // | 'UnlimitedNatural'
+ // | 'OclAny'
+ // | 'OclInvalid'
+ // | 'OclVoid';
public EssentialOCLGrammarAccess.PrimitiveTypeIdentifierElements getPrimitiveTypeIdentifierAccess() {
return gaEssentialOCL.getPrimitiveTypeIdentifierAccess();
}
@@ -2999,7 +3111,11 @@
}
//CollectionTypeIdentifier:
- // 'Set' | 'Bag' | 'Sequence' | 'Collection' | 'OrderedSet';
+ // 'Set'
+ // | 'Bag'
+ // | 'Sequence'
+ // | 'Collection'
+ // | 'OrderedSet';
public EssentialOCLGrammarAccess.CollectionTypeIdentifierElements getCollectionTypeIdentifierAccess() {
return gaEssentialOCL.getCollectionTypeIdentifierAccess();
}
@@ -3040,11 +3156,12 @@
}
////---------------------------------------------------------------------
- // // Literals
- //
+ //// Literals
////---------------------------------------------------------------------
- // CollectionLiteralExpCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)? '}';
+ //CollectionLiteralExpCS:
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=CollectionLiteralPartCS (',' ownedParts+=CollectionLiteralPartCS)*)?
+ // '}';
public EssentialOCLGrammarAccess.CollectionLiteralExpCSElements getCollectionLiteralExpCSAccess() {
return gaEssentialOCL.getCollectionLiteralExpCSAccess();
}
@@ -3064,8 +3181,9 @@
}
//CollectionPatternCS:
- // ownedType=CollectionTypeCS '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++'
- // restVariableName=super::Identifier))? '}';
+ // ownedType=CollectionTypeCS
+ // '{' (ownedParts+=PatternExpCS (',' ownedParts+=PatternExpCS)* ('++' restVariableName=super::Identifier))?
+ // '}';
public EssentialOCLGrammarAccess.CollectionPatternCSElements getCollectionPatternCSAccess() {
return gaEssentialOCL.getCollectionPatternCSAccess();
}
@@ -3126,8 +3244,12 @@
}
//PrimitiveLiteralExpCS:
- // NumberLiteralExpCS | StringLiteralExpCS | BooleanLiteralExpCS | UnlimitedNaturalLiteralExpCS | InvalidLiteralExpCS |
- // NullLiteralExpCS;
+ // NumberLiteralExpCS
+ // | StringLiteralExpCS
+ // | BooleanLiteralExpCS
+ // | UnlimitedNaturalLiteralExpCS
+ // | InvalidLiteralExpCS
+ // | NullLiteralExpCS;
public EssentialOCLGrammarAccess.PrimitiveLiteralExpCSElements getPrimitiveLiteralExpCSAccess() {
return gaEssentialOCL.getPrimitiveLiteralExpCSAccess();
}
@@ -3177,7 +3299,8 @@
}
//BooleanLiteralExpCS:
- // symbol='true' | symbol='false';
+ // symbol='true'
+ // | symbol='false';
public EssentialOCLGrammarAccess.BooleanLiteralExpCSElements getBooleanLiteralExpCSAccess() {
return gaEssentialOCL.getBooleanLiteralExpCSAccess();
}
@@ -3217,7 +3340,10 @@
}
//TypeLiteralCS base::TypedRefCS:
- // PrimitiveTypeCS | CollectionTypeCS | MapTypeCS | TupleTypeCS;
+ // PrimitiveTypeCS
+ // | CollectionTypeCS
+ // | MapTypeCS
+ // | TupleTypeCS;
public EssentialOCLGrammarAccess.TypeLiteralCSElements getTypeLiteralCSAccess() {
return gaEssentialOCL.getTypeLiteralCSAccess();
}
@@ -3277,22 +3403,15 @@
}
////---------------------------------------------------------------------
- // // Expressions
- //
+ //// Expressions
////---------------------------------------------------------------------
- //
//// An ExpCS permits a LetExpCS only in the final term to ensure
- //
//// that let is right associative, whereas infix operators are left associative.
- //
//// a = 64 / 16 / let b : Integer in 8 / let c : Integer in 4
- // // is
- //
+ //// is
//// a = (64 / 16) / (let b : Integer in 8 / (let c : Integer in 4 ))
- //
///* An expression elaborates a prefixed expression with zero or more binary operator and expression suffixes.
- // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/
- //ExpCS:
+ // * An optionally prefixed let expression is permitted except when suffixed with further expressions.*/ ExpCS:
// PrefixedPrimaryExpCS ({InfixExpCS.ownedLeft=current} name=BinaryOperatorName ownedRight=ExpCS)? | PrefixedLetExpCS;
public EssentialOCLGrammarAccess.ExpCSElements getExpCSAccess() {
return gaEssentialOCL.getExpCSAccess();
@@ -3326,8 +3445,16 @@
///* A primary expression identifies the basic expressions from which more complex expressions may be constructed. */
//PrimaryExpCS ExpCS:
- // NestedExpCS | IfExpCS | SelfExpCS | PrimitiveLiteralExpCS | TupleLiteralExpCS | MapLiteralExpCS |
- // CollectionLiteralExpCS | LambdaLiteralExpCS | TypeLiteralExpCS | NameExpCS;
+ // NestedExpCS
+ // | IfExpCS
+ // | SelfExpCS
+ // | PrimitiveLiteralExpCS
+ // | TupleLiteralExpCS
+ // | MapLiteralExpCS
+ // | CollectionLiteralExpCS
+ // | LambdaLiteralExpCS
+ // | TypeLiteralExpCS
+ // | NameExpCS;
public EssentialOCLGrammarAccess.PrimaryExpCSElements getPrimaryExpCSAccess() {
return gaEssentialOCL.getPrimaryExpCSAccess();
}
@@ -3337,8 +3464,7 @@
}
///* A name expression is a generalised rule for expressions that start with a name and which may be followed by square, round or
- // * curly bracket clauses and optionally an @pre as well.*/
- //NameExpCS:
+ // * curly bracket clauses and optionally an @pre as well.*/ NameExpCS:
// ownedPathName=PathNameCS ownedSquareBracketedClauses+=SquareBracketedClauseCS*
// ownedRoundBracketedClause=RoundBracketedClauseCS? ownedCurlyBracketedClause=CurlyBracketedClauseCS? (isPre?='@'
// 'pre')?;
@@ -3384,12 +3510,11 @@
}
///* A navigating argument is a generalized rule for the first argument in a round bracket clause. This is typically the first operation
- // * parameter or an iterator. */
- //NavigatingArgCS:
+ // * parameter or an iterator. */ NavigatingArgCS:
// ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('=' ownedInitExpression=ExpCS)? |
// ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('=' ownedInitExpression=ExpCS)? | (':'
- // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)? | ':'
- // ownedType=TypeExpCS;
+ // ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in' ownedInitExpression=ExpCS)?
+ // | ':' ownedType=TypeExpCS;
public EssentialOCLGrammarAccess.NavigatingArgCSElements getNavigatingArgCSAccess() {
return gaEssentialOCL.getNavigatingArgCSAccess();
}
@@ -3399,7 +3524,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating bar argument is a generalized rule for a bar-prefixed argument in a round bracket clause. This is typically the body of an iteration. */
//NavigatingBarArgCS NavigatingArgCS:
// prefix='|' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -3412,10 +3536,8 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating comma argument is a generalized rule for non-first argument in a round bracket clause. These are typically non-first operation
- // * parameters or a second iterator. */
- //NavigatingCommaArgCS NavigatingArgCS:
+ // * parameters or a second iterator. */ NavigatingCommaArgCS NavigatingArgCS:
// prefix=',' ownedNameExpression=NavigatingArgExpCS ('<-' ownedCoIterator=CoIteratorVariableCS ('='
// ownedInitExpression=ExpCS)? | ':' ownedType=TypeExpCS ('<-' ownedCoIterator=CoIteratorVariableCS)? ('='
// ownedInitExpression=ExpCS)? | (':' ownedType=TypeExpCS)? ('<-' ownedCoIterator=CoIteratorVariableCS)? 'in'
@@ -3429,7 +3551,6 @@
}
//// Type-less init is an illegal infix expression
- //
///* A navigating semi argument is a generalized rule for a semicolon prefixed argument in a round bracket clause. This is typically an iterate accumulator. */
//NavigatingSemiArgCS NavigatingArgCS:
// prefix=';' ownedNameExpression=NavigatingArgExpCS (':' ownedType=TypeExpCS ('=' ownedInitExpression=ExpCS)?)?;
@@ -3442,8 +3563,9 @@
}
//// Type-less init is an illegal infix expression
- // NavigatingArgExpCS ExpCS:
- // ExpCS // '?' -- defined by Complete OCL
+ //NavigatingArgExpCS ExpCS:
+ // ExpCS
+ // // '?' -- defined by Complete OCL
//;
public EssentialOCLGrammarAccess.NavigatingArgExpCSElements getNavigatingArgExpCSAccess() {
return gaEssentialOCL.getNavigatingArgExpCSAccess();
@@ -3464,9 +3586,12 @@
}
//IfExpCS:
- // 'if' ownedCondition=(ExpCS | PatternExpCS) 'then' ownedThenExpression=ExpCS // ifThenExpressions+=IfThenExpCS
- //
- // ownedIfThenExpressions+=ElseIfThenExpCS* 'else' ownedElseExpression=ExpCS 'endif';
+ // 'if' ownedCondition=(ExpCS | PatternExpCS)
+ // 'then' ownedThenExpression=ExpCS
+ // // ifThenExpressions+=IfThenExpCS
+ // ownedIfThenExpressions+=ElseIfThenExpCS*
+ // 'else' ownedElseExpression=ExpCS
+ // 'endif';
public EssentialOCLGrammarAccess.IfExpCSElements getIfExpCSAccess() {
return gaEssentialOCL.getIfExpCSAccess();
}
@@ -3476,12 +3601,12 @@
}
////IfThenExpCS returns IfThenExpCS:
- // // 'if' condition=ExpCS
- // // 'then' thenExpression=ExpCS
- // //;
- // ElseIfThenExpCS
- //IfThenExpCS:
- // 'elseif' ownedCondition=ExpCS 'then' ownedThenExpression=ExpCS;
+ //// 'if' condition=ExpCS
+ //// 'then' thenExpression=ExpCS
+ ////;
+ //ElseIfThenExpCS IfThenExpCS:
+ // 'elseif' ownedCondition=ExpCS
+ // 'then' ownedThenExpression=ExpCS;
public EssentialOCLGrammarAccess.ElseIfThenExpCSElements getElseIfThenExpCSAccess() {
return gaEssentialOCL.getElseIfThenExpCSAccess();
}
@@ -3491,7 +3616,8 @@
}
//LetExpCS:
- // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)* 'in' ownedInExpression=ExpCS;
+ // 'let' ownedVariables+=LetVariableCS (',' ownedVariables+=LetVariableCS)*
+ // 'in' ownedInExpression=ExpCS;
public EssentialOCLGrammarAccess.LetExpCSElements getLetExpCSAccess() {
return gaEssentialOCL.getLetExpCSAccess();
}
@@ -3677,8 +3803,7 @@
// * lookahead conflicts in simple lexers between a dot within a floating point number and the dot-dot in a CollectionLiteralPartCS. A
// * practical implementation should give high priority to a successful parse of INT ('.' INT)? (('e' | 'E') ('+' | '-')? INT)? than
// * to the unsuccessful partial parse of INT '..'. The type of the INT terminal is String to allow the floating point syntax to be used.
- // */
- //NUMBER_LITERAL BigNumber:
+ // */ NUMBER_LITERAL BigNumber:
// INT;
public BaseGrammarAccess.NUMBER_LITERALElements getNUMBER_LITERALAccess() {
return gaBase.getNUMBER_LITERALAccess();
@@ -3689,7 +3814,7 @@
}
//// EssentialOCLTokenSource pieces this together ('.' INT)? (('e' | 'E') ('+' | '-')? INT)?;
- // StringLiteral:
+ //StringLiteral:
// SINGLE_QUOTED_STRING;
public BaseGrammarAccess.StringLiteralElements getStringLiteralAccess() {
return gaBase.getStringLiteralAccess();