summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkohnlein2008-03-06 10:35:10 (EST)
committerjkohnlein2008-03-06 10:35:10 (EST)
commitb4d5433b05aec9105a9c19c2d5e3d36d8694cdf7 (patch)
tree17e2a8ad77af07fc27a3df592516184306bcf5c7
parentc60389fc284be84915a07d7ef2bf1e643598c91a (diff)
downloadorg.eclipse.xpand-b4d5433b05aec9105a9c19c2d5e3d36d8694cdf7.zip
org.eclipse.xpand-b4d5433b05aec9105a9c19c2d5e3d36d8694cdf7.tar.gz
org.eclipse.xpand-b4d5433b05aec9105a9c19c2d5e3d36d8694cdf7.tar.bz2
added body to expression
removed parser model and code
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/DeclarationPackage.java41
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/Extension.java31
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/DeclarationPackageImpl.java13
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java83
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractAspectValidator.java26
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractDeclarationValidator.java29
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractNamedDeclarationValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AdviceValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CheckValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CreateExtensionStatementValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionAspectValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionAspectValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionValidator.java22
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/JavaExtensionStatementValidator.java25
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/AbstractExpressionValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanLiteralValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanOperationValidator.java25
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CaseValidator.java22
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CastValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ChainExpressionValidator.java22
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CollectionExpressionValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ConstructorCallExpressionValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/FeatureCallValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/GlobalVarExpressionValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IfExpressionValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IntegerLiteralValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LetExpressionValidator.java25
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ListLiteralValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LiteralValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/NullLiteralValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/OperationCallValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/RealLiteralValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/StringLiteralValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/SwitchExpressionValidator.java26
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/TypeSelectExpressionValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/CompositeNode.java103
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LeafNode.java85
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LexedToken.java189
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/Node.java86
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodeFactory.java73
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodePackage.java541
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/CompositeNodeImpl.java261
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LeafNodeImpl.java215
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LexedTokenImpl.java437
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeFactoryImpl.java132
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeImpl.java211
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodePackageImpl.java377
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeAdapterFactory.java178
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeSwitch.java195
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementWithBodyValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ErrorStatementValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpandStatementValidator.java29
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpressionStatementValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/FileStatementValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ForEachStatementValidator.java26
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/IfStatementValidator.java25
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/LetStatementValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ProtectStatementValidator.java24
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/TextStatementValidator.java21
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ComposedIdentifierValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/DeclaredParameterValidator.java22
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/FileValidator.java26
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/IdentifierValidator.java19
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ImportStatementValidator.java22
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SimpleIdentifierValidator.java20
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SyntaxElementValidator.java23
-rw-r--r--plugins/org.eclipse.xpand3/src/node.ecore70
-rw-r--r--plugins/org.eclipse.xpand3/src/node.genmodel41
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/node/NodeUtil.java96
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java188
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g461
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.tokens108
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java6041
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java715
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java9827
-rw-r--r--plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3__.g222
-rw-r--r--plugins/org.eclipse.xpand3/src/xpand3.ecore11
-rw-r--r--plugins/org.eclipse.xpand3/text/description.txt34
80 files changed, 1330 insertions, 20860 deletions
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/DeclarationPackage.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/DeclarationPackage.java
index 434827e..2b9d08a 100644
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/DeclarationPackage.java
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/DeclarationPackage.java
@@ -2,7 +2,7 @@
* <copyright>
* </copyright>
*
- * $Id: DeclarationPackage.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
+ * $Id: DeclarationPackage.java,v 1.2 2008/03/06 15:35:15 jkohnlein Exp $
*/
package org.eclipse.xpand3.declaration;
@@ -562,13 +562,22 @@ public interface DeclarationPackage extends EPackage {
int EXTENSION__CACHED = ABSTRACT_NAMED_DECLARATION_FEATURE_COUNT + 0;
/**
+ * The feature id for the '<em><b>Body</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXTENSION__BODY = ABSTRACT_NAMED_DECLARATION_FEATURE_COUNT + 1;
+
+ /**
* The number of structural features of the '<em>Extension</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int EXTENSION_FEATURE_COUNT = ABSTRACT_NAMED_DECLARATION_FEATURE_COUNT + 1;
+ int EXTENSION_FEATURE_COUNT = ABSTRACT_NAMED_DECLARATION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link org.eclipse.xpand3.declaration.impl.AbstractAspectImpl <em>Abstract Aspect</em>}' class.
@@ -1062,6 +1071,15 @@ public interface DeclarationPackage extends EPackage {
int CREATE_EXTENSION_STATEMENT__CACHED = EXTENSION__CACHED;
/**
+ * The feature id for the '<em><b>Body</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CREATE_EXTENSION_STATEMENT__BODY = EXTENSION__BODY;
+
+ /**
* The feature id for the '<em><b>To Be Created</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1335,6 +1353,17 @@ public interface DeclarationPackage extends EPackage {
EAttribute getExtension_Cached();
/**
+ * Returns the meta object for the containment reference '{@link org.eclipse.xpand3.declaration.Extension#getBody <em>Body</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Body</em>'.
+ * @see org.eclipse.xpand3.declaration.Extension#getBody()
+ * @see #getExtension()
+ * @generated
+ */
+ EReference getExtension_Body();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.xpand3.declaration.AbstractAspect <em>Abstract Aspect</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1666,6 +1695,14 @@ public interface DeclarationPackage extends EPackage {
EAttribute EXTENSION__CACHED = eINSTANCE.getExtension_Cached();
/**
+ * The meta object literal for the '<em><b>Body</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EXTENSION__BODY = eINSTANCE.getExtension_Body();
+
+ /**
* The meta object literal for the '{@link org.eclipse.xpand3.declaration.impl.AbstractAspectImpl <em>Abstract Aspect</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/Extension.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/Extension.java
index 8f7d04f..f02f40d 100644
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/Extension.java
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/Extension.java
@@ -2,10 +2,12 @@
* <copyright>
* </copyright>
*
- * $Id: Extension.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
+ * $Id: Extension.java,v 1.2 2008/03/06 15:35:15 jkohnlein Exp $
*/
package org.eclipse.xpand3.declaration;
+import org.eclipse.xpand3.expression.AbstractExpression;
+
/**
* <!-- begin-user-doc -->
@@ -16,6 +18,7 @@ package org.eclipse.xpand3.declaration;
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.xpand3.declaration.Extension#isCached <em>Cached</em>}</li>
+ * <li>{@link org.eclipse.xpand3.declaration.Extension#getBody <em>Body</em>}</li>
* </ul>
* </p>
*
@@ -50,4 +53,30 @@ public interface Extension extends AbstractNamedDeclaration {
*/
void setCached(boolean value);
+ /**
+ * Returns the value of the '<em><b>Body</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Body</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Body</em>' containment reference.
+ * @see #setBody(AbstractExpression)
+ * @see org.eclipse.xpand3.declaration.DeclarationPackage#getExtension_Body()
+ * @model containment="true" required="true"
+ * @generated
+ */
+ AbstractExpression getBody();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.xpand3.declaration.Extension#getBody <em>Body</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Body</em>' containment reference.
+ * @see #getBody()
+ * @generated
+ */
+ void setBody(AbstractExpression value);
+
} // Extension
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/DeclarationPackageImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/DeclarationPackageImpl.java
index b3d6bce..1dc1b81 100644
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/DeclarationPackageImpl.java
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/DeclarationPackageImpl.java
@@ -2,7 +2,7 @@
* <copyright>
* </copyright>
*
- * $Id: DeclarationPackageImpl.java,v 1.1 2008/02/27 13:21:08 sefftinge Exp $
+ * $Id: DeclarationPackageImpl.java,v 1.2 2008/03/06 15:35:15 jkohnlein Exp $
*/
package org.eclipse.xpand3.declaration.impl;
@@ -315,6 +315,15 @@ public class DeclarationPackageImpl extends EPackageImpl implements DeclarationP
* <!-- end-user-doc -->
* @generated
*/
+ public EReference getExtension_Body() {
+ return (EReference)extensionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getAbstractAspect() {
return abstractAspectEClass;
}
@@ -525,6 +534,7 @@ public class DeclarationPackageImpl extends EPackageImpl implements DeclarationP
extensionEClass = createEClass(EXTENSION);
createEAttribute(extensionEClass, EXTENSION__CACHED);
+ createEReference(extensionEClass, EXTENSION__BODY);
abstractAspectEClass = createEClass(ABSTRACT_ASPECT);
createEReference(abstractAspectEClass, ABSTRACT_ASPECT__POINTCUT);
@@ -614,6 +624,7 @@ public class DeclarationPackageImpl extends EPackageImpl implements DeclarationP
initEClass(extensionEClass, Extension.class, "Extension", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getExtension_Cached(), ecorePackage.getEBoolean(), "cached", null, 0, 1, Extension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExtension_Body(), theExpressionPackage.getAbstractExpression(), null, "body", null, 1, 1, Extension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(abstractAspectEClass, AbstractAspect.class, "AbstractAspect", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getAbstractAspect_Pointcut(), theXpand3Package.getIdentifier(), null, "pointcut", null, 0, 1, AbstractAspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java
index 593bc71..9b9f38e 100644
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java
@@ -2,18 +2,21 @@
* <copyright>
* </copyright>
*
- * $Id: ExtensionImpl.java,v 1.1 2008/02/27 13:21:08 sefftinge Exp $
+ * $Id: ExtensionImpl.java,v 1.2 2008/03/06 15:35:15 jkohnlein Exp $
*/
package org.eclipse.xpand3.declaration.impl;
import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.xpand3.declaration.DeclarationPackage;
import org.eclipse.xpand3.declaration.Extension;
+import org.eclipse.xpand3.expression.AbstractExpression;
/**
* <!-- begin-user-doc -->
@@ -23,6 +26,7 @@ import org.eclipse.xpand3.declaration.Extension;
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.xpand3.declaration.impl.ExtensionImpl#isCached <em>Cached</em>}</li>
+ * <li>{@link org.eclipse.xpand3.declaration.impl.ExtensionImpl#getBody <em>Body</em>}</li>
* </ul>
* </p>
*
@@ -50,6 +54,16 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
protected boolean cached = CACHED_EDEFAULT;
/**
+ * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBody()
+ * @generated
+ * @ordered
+ */
+ protected AbstractExpression body;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -94,11 +108,70 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
* <!-- end-user-doc -->
* @generated
*/
+ public AbstractExpression getBody() {
+ return body;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetBody(AbstractExpression newBody, NotificationChain msgs) {
+ AbstractExpression oldBody = body;
+ body = newBody;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DeclarationPackage.EXTENSION__BODY, oldBody, newBody);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBody(AbstractExpression newBody) {
+ if (newBody != body) {
+ NotificationChain msgs = null;
+ if (body != null)
+ msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DeclarationPackage.EXTENSION__BODY, null, msgs);
+ if (newBody != null)
+ msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DeclarationPackage.EXTENSION__BODY, null, msgs);
+ msgs = basicSetBody(newBody, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DeclarationPackage.EXTENSION__BODY, newBody, newBody));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case DeclarationPackage.EXTENSION__BODY:
+ return basicSetBody(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case DeclarationPackage.EXTENSION__CACHED:
return isCached() ? Boolean.TRUE : Boolean.FALSE;
+ case DeclarationPackage.EXTENSION__BODY:
+ return getBody();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -114,6 +187,9 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
case DeclarationPackage.EXTENSION__CACHED:
setCached(((Boolean)newValue).booleanValue());
return;
+ case DeclarationPackage.EXTENSION__BODY:
+ setBody((AbstractExpression)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -129,6 +205,9 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
case DeclarationPackage.EXTENSION__CACHED:
setCached(CACHED_EDEFAULT);
return;
+ case DeclarationPackage.EXTENSION__BODY:
+ setBody((AbstractExpression)null);
+ return;
}
super.eUnset(featureID);
}
@@ -143,6 +222,8 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
switch (featureID) {
case DeclarationPackage.EXTENSION__CACHED:
return cached != CACHED_EDEFAULT;
+ case DeclarationPackage.EXTENSION__BODY:
+ return body != null;
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractAspectValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractAspectValidator.java
new file mode 100644
index 0000000..f4abd8d
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractAspectValidator.java
@@ -0,0 +1,26 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AbstractAspectValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.DeclaredParameter;
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.AbstractAspect}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AbstractAspectValidator {
+ boolean validate();
+
+ boolean validatePointcut(Identifier value);
+ boolean validateParams(EList<DeclaredParameter> value);
+ boolean validateWildparams(boolean value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractDeclarationValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractDeclarationValidator.java
new file mode 100644
index 0000000..18e710c
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractDeclarationValidator.java
@@ -0,0 +1,29 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AbstractDeclarationValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.DeclaredParameter;
+import org.eclipse.xpand3.File;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.AbstractDeclaration}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AbstractDeclarationValidator {
+ boolean validate();
+
+ boolean validateOwner(File value);
+ boolean validateParams(EList<DeclaredParameter> value);
+ boolean validateIsPrivate(boolean value);
+ boolean validateGuard(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractNamedDeclarationValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractNamedDeclarationValidator.java
new file mode 100644
index 0000000..67ae945
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AbstractNamedDeclarationValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AbstractNamedDeclarationValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.AbstractNamedDeclaration}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AbstractNamedDeclarationValidator {
+ boolean validate();
+
+ boolean validateName(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AdviceValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AdviceValidator.java
new file mode 100644
index 0000000..08003ff
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/AdviceValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AdviceValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.Advice}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AdviceValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CheckValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CheckValidator.java
new file mode 100644
index 0000000..ac3f255
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CheckValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: CheckValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.Check}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface CheckValidator {
+ boolean validate();
+
+ boolean validateErrorSeverity(boolean value);
+ boolean validateMsg(AbstractExpression value);
+ boolean validateConstraint(AbstractExpression value);
+ boolean validateFeature(String value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CreateExtensionStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CreateExtensionStatementValidator.java
new file mode 100644
index 0000000..c02d374
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/CreateExtensionStatementValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: CreateExtensionStatementValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.xpand3.DeclaredParameter;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.CreateExtensionStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface CreateExtensionStatementValidator {
+ boolean validate();
+
+ boolean validateToBeCreated(DeclaredParameter value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionAspectValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionAspectValidator.java
new file mode 100644
index 0000000..c9324af
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionAspectValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: DefinitionAspectValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.statement.AbstractStatement;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.DefinitionAspect}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface DefinitionAspectValidator {
+ boolean validate();
+
+ boolean validateBody(EList<AbstractStatement> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionValidator.java
new file mode 100644
index 0000000..07a606a
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/DefinitionValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: DefinitionValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.statement.AbstractStatement;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.Definition}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface DefinitionValidator {
+ boolean validate();
+
+ boolean validateBody(EList<AbstractStatement> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionAspectValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionAspectValidator.java
new file mode 100644
index 0000000..7564b50
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionAspectValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ExtensionAspectValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.ExtensionAspect}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ExtensionAspectValidator {
+ boolean validate();
+
+ boolean validateExpression(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionValidator.java
new file mode 100644
index 0000000..5fc397c
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/ExtensionValidator.java
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ExtensionValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.Extension}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ExtensionValidator {
+ boolean validate();
+
+ boolean validateCached(boolean value);
+ boolean validateBody(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/JavaExtensionStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/JavaExtensionStatementValidator.java
new file mode 100644
index 0000000..37231de
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/validation/JavaExtensionStatementValidator.java
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: JavaExtensionStatementValidator.java,v 1.1 2008/03/06 15:35:13 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.declaration.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.declaration.JavaExtensionStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface JavaExtensionStatementValidator {
+ boolean validate();
+
+ boolean validateJavaType(Identifier value);
+ boolean validateJavaMethod(Identifier value);
+ boolean validateJavaParamTypes(EList<Identifier> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/AbstractExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/AbstractExpressionValidator.java
new file mode 100644
index 0000000..88df8ac
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/AbstractExpressionValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AbstractExpressionValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.AbstractExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AbstractExpressionValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanLiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanLiteralValidator.java
new file mode 100644
index 0000000..0f23892
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanLiteralValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: BooleanLiteralValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.BooleanLiteral}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface BooleanLiteralValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanOperationValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanOperationValidator.java
new file mode 100644
index 0000000..d18a4b4
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/BooleanOperationValidator.java
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: BooleanOperationValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.BooleanOperation}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface BooleanOperationValidator {
+ boolean validate();
+
+ boolean validateLeft(AbstractExpression value);
+ boolean validateRight(AbstractExpression value);
+ boolean validateOperator(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CaseValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CaseValidator.java
new file mode 100644
index 0000000..5c98fcb
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CaseValidator.java
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: CaseValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.Case}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface CaseValidator {
+ boolean validate();
+
+ boolean validateCondition(AbstractExpression value);
+ boolean validateThenPart(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CastValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CastValidator.java
new file mode 100644
index 0000000..17c6333
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CastValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: CastValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.Cast}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface CastValidator {
+ boolean validate();
+
+ boolean validateType(Identifier value);
+ boolean validateTarget(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ChainExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ChainExpressionValidator.java
new file mode 100644
index 0000000..c92cb1a
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ChainExpressionValidator.java
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ChainExpressionValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.ChainExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ChainExpressionValidator {
+ boolean validate();
+
+ boolean validateFirst(AbstractExpression value);
+ boolean validateNext(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CollectionExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CollectionExpressionValidator.java
new file mode 100644
index 0000000..e977290
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/CollectionExpressionValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: CollectionExpressionValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.CollectionExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface CollectionExpressionValidator {
+ boolean validate();
+
+ boolean validateClosure(AbstractExpression value);
+ boolean validateEleName(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ConstructorCallExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ConstructorCallExpressionValidator.java
new file mode 100644
index 0000000..ea8c5bd
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ConstructorCallExpressionValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ConstructorCallExpressionValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.ConstructorCallExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ConstructorCallExpressionValidator {
+ boolean validate();
+
+ boolean validateType(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/FeatureCallValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/FeatureCallValidator.java
new file mode 100644
index 0000000..d879fde
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/FeatureCallValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: FeatureCallValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.FeatureCall}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface FeatureCallValidator {
+ boolean validate();
+
+ boolean validateTarget(AbstractExpression value);
+ boolean validateName(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/GlobalVarExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/GlobalVarExpressionValidator.java
new file mode 100644
index 0000000..ff8e906
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/GlobalVarExpressionValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GlobalVarExpressionValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.GlobalVarExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GlobalVarExpressionValidator {
+ boolean validate();
+
+ boolean validateGlobalVarName(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IfExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IfExpressionValidator.java
new file mode 100644
index 0000000..500efa0
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IfExpressionValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: IfExpressionValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.IfExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface IfExpressionValidator {
+ boolean validate();
+
+ boolean validateCondition(AbstractExpression value);
+ boolean validateThenPart(AbstractExpression value);
+ boolean validateElsePart(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IntegerLiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IntegerLiteralValidator.java
new file mode 100644
index 0000000..0a4debf
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/IntegerLiteralValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: IntegerLiteralValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.IntegerLiteral}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface IntegerLiteralValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LetExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LetExpressionValidator.java
new file mode 100644
index 0000000..aaaeaf9
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LetExpressionValidator.java
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: LetExpressionValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.LetExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface LetExpressionValidator {
+ boolean validate();
+
+ boolean validateVarExpression(AbstractExpression value);
+ boolean validateTargetExpression(AbstractExpression value);
+ boolean validateVarName(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ListLiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ListLiteralValidator.java
new file mode 100644
index 0000000..558f203
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/ListLiteralValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ListLiteralValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.ListLiteral}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ListLiteralValidator {
+ boolean validate();
+
+ boolean validateElements(EList<AbstractExpression> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LiteralValidator.java
new file mode 100644
index 0000000..de6bbb9
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/LiteralValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: LiteralValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.Literal}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface LiteralValidator {
+ boolean validate();
+
+ boolean validateLiteralValue(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/NullLiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/NullLiteralValidator.java
new file mode 100644
index 0000000..dc5411d
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/NullLiteralValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: NullLiteralValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.NullLiteral}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface NullLiteralValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/OperationCallValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/OperationCallValidator.java
new file mode 100644
index 0000000..75ad912
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/OperationCallValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: OperationCallValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.OperationCall}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface OperationCallValidator {
+ boolean validate();
+
+ boolean validateParams(EList<AbstractExpression> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/RealLiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/RealLiteralValidator.java
new file mode 100644
index 0000000..e25b566
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/RealLiteralValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: RealLiteralValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.RealLiteral}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RealLiteralValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/StringLiteralValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/StringLiteralValidator.java
new file mode 100644
index 0000000..fa62fa6
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/StringLiteralValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: StringLiteralValidator.java,v 1.1 2008/03/06 15:35:11 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.StringLiteral}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface StringLiteralValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/SwitchExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/SwitchExpressionValidator.java
new file mode 100644
index 0000000..c031f4a
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/SwitchExpressionValidator.java
@@ -0,0 +1,26 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: SwitchExpressionValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+import org.eclipse.xpand3.expression.Case;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.SwitchExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface SwitchExpressionValidator {
+ boolean validate();
+
+ boolean validateSwitchExpr(AbstractExpression value);
+ boolean validateDefaultExpr(AbstractExpression value);
+ boolean validateCases(EList<Case> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/TypeSelectExpressionValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/TypeSelectExpressionValidator.java
new file mode 100644
index 0000000..04674f7
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/expression/validation/TypeSelectExpressionValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: TypeSelectExpressionValidator.java,v 1.1 2008/03/06 15:35:12 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.expression.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.expression.TypeSelectExpression}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface TypeSelectExpressionValidator {
+ boolean validate();
+
+ boolean validateTypeLiteral(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/CompositeNode.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/CompositeNode.java
deleted file mode 100644
index 5db882c..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/CompositeNode.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: CompositeNode.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
- */
-package org.eclipse.xpand3.node;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Composite Node</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.CompositeNode#getChildren <em>Children</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.CompositeNode#getRule <em>Rule</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.xpand3.node.NodePackage#getCompositeNode()
- * @model
- * @generated
- */
-public interface CompositeNode extends Node {
- /**
- * Returns the value of the '<em><b>Children</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.xpand3.node.Node}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Children</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Children</em>' containment reference list.
- * @see org.eclipse.xpand3.node.NodePackage#getCompositeNode_Children()
- * @model containment="true"
- * @generated
- */
- EList<Node> getChildren();
-
- /**
- * Returns the value of the '<em><b>Rule</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Rule</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Rule</em>' attribute.
- * @see #setRule(String)
- * @see org.eclipse.xpand3.node.NodePackage#getCompositeNode_Rule()
- * @model
- * @generated
- */
- String getRule();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.CompositeNode#getRule <em>Rule</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Rule</em>' attribute.
- * @see #getRule()
- * @generated
- */
- void setRule(String value);
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.start(this);'"
- * @generated
- */
- int start();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.end(this);'"
- * @generated
- */
- int end();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.line(this);'"
- * @generated
- */
- int line();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.text(this);'"
- * @generated
- */
- String text();
-
-} // CompositeNode
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LeafNode.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LeafNode.java
deleted file mode 100644
index a5aa9fb..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LeafNode.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LeafNode.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
- */
-package org.eclipse.xpand3.node;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Leaf Node</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.LeafNode#getToken <em>Token</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.xpand3.node.NodePackage#getLeafNode()
- * @model
- * @generated
- */
-public interface LeafNode extends Node {
- /**
- * Returns the value of the '<em><b>Token</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Token</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Token</em>' containment reference.
- * @see #setToken(LexedToken)
- * @see org.eclipse.xpand3.node.NodePackage#getLeafNode_Token()
- * @model containment="true"
- * @generated
- */
- LexedToken getToken();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LeafNode#getToken <em>Token</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Token</em>' containment reference.
- * @see #getToken()
- * @generated
- */
- void setToken(LexedToken value);
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.line(this);'"
- * @generated
- */
- int line();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.text(this);'"
- * @generated
- */
- String text();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.start(this);'"
- * @generated
- */
- int start();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.eclipse.xpand3.node.NodeUtil.end(this);'"
- * @generated
- */
- int end();
-
-} // LeafNode
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LexedToken.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LexedToken.java
deleted file mode 100644
index 95251b5..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/LexedToken.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LexedToken.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
- */
-package org.eclipse.xpand3.node;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Lexed Token</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.LexedToken#isHidden <em>Hidden</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.LexedToken#getStart <em>Start</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.LexedToken#getEnd <em>End</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.LexedToken#getLine <em>Line</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.LexedToken#getText <em>Text</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.LexedToken#getTokenType <em>Token Type</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken()
- * @model
- * @generated
- */
-public interface LexedToken extends EObject {
- /**
- * Returns the value of the '<em><b>Hidden</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Hidden</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Hidden</em>' attribute.
- * @see #setHidden(boolean)
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken_Hidden()
- * @model
- * @generated
- */
- boolean isHidden();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LexedToken#isHidden <em>Hidden</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Hidden</em>' attribute.
- * @see #isHidden()
- * @generated
- */
- void setHidden(boolean value);
-
- /**
- * Returns the value of the '<em><b>Start</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Start</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Start</em>' attribute.
- * @see #setStart(int)
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken_Start()
- * @model
- * @generated
- */
- int getStart();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LexedToken#getStart <em>Start</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Start</em>' attribute.
- * @see #getStart()
- * @generated
- */
- void setStart(int value);
-
- /**
- * Returns the value of the '<em><b>End</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>End</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>End</em>' attribute.
- * @see #setEnd(int)
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken_End()
- * @model
- * @generated
- */
- int getEnd();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LexedToken#getEnd <em>End</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>End</em>' attribute.
- * @see #getEnd()
- * @generated
- */
- void setEnd(int value);
-
- /**
- * Returns the value of the '<em><b>Line</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Line</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Line</em>' attribute.
- * @see #setLine(int)
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken_Line()
- * @model
- * @generated
- */
- int getLine();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LexedToken#getLine <em>Line</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Line</em>' attribute.
- * @see #getLine()
- * @generated
- */
- void setLine(int value);
-
- /**
- * Returns the value of the '<em><b>Text</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Text</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Text</em>' attribute.
- * @see #setText(String)
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken_Text()
- * @model
- * @generated
- */
- String getText();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LexedToken#getText <em>Text</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Text</em>' attribute.
- * @see #getText()
- * @generated
- */
- void setText(String value);
-
- /**
- * Returns the value of the '<em><b>Token Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Token Type</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Token Type</em>' attribute.
- * @see #setTokenType(String)
- * @see org.eclipse.xpand3.node.NodePackage#getLexedToken_TokenType()
- * @model
- * @generated
- */
- String getTokenType();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.LexedToken#getTokenType <em>Token Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Token Type</em>' attribute.
- * @see #getTokenType()
- * @generated
- */
- void setTokenType(String value);
-
-} // LexedToken
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/Node.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/Node.java
deleted file mode 100644
index 96caeee..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/Node.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Node.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
- */
-package org.eclipse.xpand3.node;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Node</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.Node#getAlias <em>Alias</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.xpand3.node.NodePackage#getNode()
- * @model
- * @generated
- */
-public interface Node extends EObject {
- /**
- * Returns the value of the '<em><b>Alias</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Alias</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Alias</em>' attribute.
- * @see #setAlias(String)
- * @see org.eclipse.xpand3.node.NodePackage#getNode_Alias()
- * @model
- * @generated
- */
- String getAlias();
-
- /**
- * Sets the value of the '{@link org.eclipse.xpand3.node.Node#getAlias <em>Alias</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Alias</em>' attribute.
- * @see #getAlias()
- * @generated
- */
- void setAlias(String value);
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model
- * @generated
- */
- int start();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model
- * @generated
- */
- int end();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model
- * @generated
- */
- int line();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model
- * @generated
- */
- String text();
-
-} // Node
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodeFactory.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodeFactory.java
deleted file mode 100644
index 529b926..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodeFactory.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodeFactory.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
- */
-package org.eclipse.xpand3.node;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.NodePackage
- * @generated
- */
-public interface NodeFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- NodeFactory eINSTANCE = org.eclipse.xpand3.node.impl.NodeFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Composite Node</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Composite Node</em>'.
- * @generated
- */
- CompositeNode createCompositeNode();
-
- /**
- * Returns a new object of class '<em>Node</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Node</em>'.
- * @generated
- */
- Node createNode();
-
- /**
- * Returns a new object of class '<em>Leaf Node</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Leaf Node</em>'.
- * @generated
- */
- LeafNode createLeafNode();
-
- /**
- * Returns a new object of class '<em>Lexed Token</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Lexed Token</em>'.
- * @generated
- */
- LexedToken createLexedToken();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- NodePackage getNodePackage();
-
-} //NodeFactory
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodePackage.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodePackage.java
deleted file mode 100644
index 513da1c..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/NodePackage.java
+++ /dev/null
@@ -1,541 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodePackage.java,v 1.1 2008/02/27 13:21:09 sefftinge Exp $
- */
-package org.eclipse.xpand3.node;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.NodeFactory
- * @model kind="package"
- * @generated
- */
-public interface NodePackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "node";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/m2t/xpand/node";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "node";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- NodePackage eINSTANCE = org.eclipse.xpand3.node.impl.NodePackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.xpand3.node.impl.NodeImpl <em>Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.NodeImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getNode()
- * @generated
- */
- int NODE = 1;
-
- /**
- * The feature id for the '<em><b>Alias</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int NODE__ALIAS = 0;
-
- /**
- * The number of structural features of the '<em>Node</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int NODE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.xpand3.node.impl.CompositeNodeImpl <em>Composite Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.CompositeNodeImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getCompositeNode()
- * @generated
- */
- int COMPOSITE_NODE = 0;
-
- /**
- * The feature id for the '<em><b>Alias</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPOSITE_NODE__ALIAS = NODE__ALIAS;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPOSITE_NODE__CHILDREN = NODE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Rule</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPOSITE_NODE__RULE = NODE_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Composite Node</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPOSITE_NODE_FEATURE_COUNT = NODE_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.xpand3.node.impl.LeafNodeImpl <em>Leaf Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.LeafNodeImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getLeafNode()
- * @generated
- */
- int LEAF_NODE = 2;
-
- /**
- * The feature id for the '<em><b>Alias</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEAF_NODE__ALIAS = NODE__ALIAS;
-
- /**
- * The feature id for the '<em><b>Token</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEAF_NODE__TOKEN = NODE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Leaf Node</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEAF_NODE_FEATURE_COUNT = NODE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.xpand3.node.impl.LexedTokenImpl <em>Lexed Token</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.LexedTokenImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getLexedToken()
- * @generated
- */
- int LEXED_TOKEN = 3;
-
- /**
- * The feature id for the '<em><b>Hidden</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN__HIDDEN = 0;
-
- /**
- * The feature id for the '<em><b>Start</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN__START = 1;
-
- /**
- * The feature id for the '<em><b>End</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN__END = 2;
-
- /**
- * The feature id for the '<em><b>Line</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN__LINE = 3;
-
- /**
- * The feature id for the '<em><b>Text</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN__TEXT = 4;
-
- /**
- * The feature id for the '<em><b>Token Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN__TOKEN_TYPE = 5;
-
- /**
- * The number of structural features of the '<em>Lexed Token</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LEXED_TOKEN_FEATURE_COUNT = 6;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.xpand3.node.CompositeNode <em>Composite Node</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Composite Node</em>'.
- * @see org.eclipse.xpand3.node.CompositeNode
- * @generated
- */
- EClass getCompositeNode();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.xpand3.node.CompositeNode#getChildren <em>Children</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Children</em>'.
- * @see org.eclipse.xpand3.node.CompositeNode#getChildren()
- * @see #getCompositeNode()
- * @generated
- */
- EReference getCompositeNode_Children();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.CompositeNode#getRule <em>Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Rule</em>'.
- * @see org.eclipse.xpand3.node.CompositeNode#getRule()
- * @see #getCompositeNode()
- * @generated
- */
- EAttribute getCompositeNode_Rule();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.xpand3.node.Node <em>Node</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Node</em>'.
- * @see org.eclipse.xpand3.node.Node
- * @generated
- */
- EClass getNode();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.Node#getAlias <em>Alias</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Alias</em>'.
- * @see org.eclipse.xpand3.node.Node#getAlias()
- * @see #getNode()
- * @generated
- */
- EAttribute getNode_Alias();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.xpand3.node.LeafNode <em>Leaf Node</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Leaf Node</em>'.
- * @see org.eclipse.xpand3.node.LeafNode
- * @generated
- */
- EClass getLeafNode();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.xpand3.node.LeafNode#getToken <em>Token</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Token</em>'.
- * @see org.eclipse.xpand3.node.LeafNode#getToken()
- * @see #getLeafNode()
- * @generated
- */
- EReference getLeafNode_Token();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.xpand3.node.LexedToken <em>Lexed Token</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Lexed Token</em>'.
- * @see org.eclipse.xpand3.node.LexedToken
- * @generated
- */
- EClass getLexedToken();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.LexedToken#isHidden <em>Hidden</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Hidden</em>'.
- * @see org.eclipse.xpand3.node.LexedToken#isHidden()
- * @see #getLexedToken()
- * @generated
- */
- EAttribute getLexedToken_Hidden();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.LexedToken#getStart <em>Start</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Start</em>'.
- * @see org.eclipse.xpand3.node.LexedToken#getStart()
- * @see #getLexedToken()
- * @generated
- */
- EAttribute getLexedToken_Start();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.LexedToken#getEnd <em>End</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>End</em>'.
- * @see org.eclipse.xpand3.node.LexedToken#getEnd()
- * @see #getLexedToken()
- * @generated
- */
- EAttribute getLexedToken_End();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.LexedToken#getLine <em>Line</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Line</em>'.
- * @see org.eclipse.xpand3.node.LexedToken#getLine()
- * @see #getLexedToken()
- * @generated
- */
- EAttribute getLexedToken_Line();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.LexedToken#getText <em>Text</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Text</em>'.
- * @see org.eclipse.xpand3.node.LexedToken#getText()
- * @see #getLexedToken()
- * @generated
- */
- EAttribute getLexedToken_Text();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.xpand3.node.LexedToken#getTokenType <em>Token Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Token Type</em>'.
- * @see org.eclipse.xpand3.node.LexedToken#getTokenType()
- * @see #getLexedToken()
- * @generated
- */
- EAttribute getLexedToken_TokenType();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- NodeFactory getNodeFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.xpand3.node.impl.CompositeNodeImpl <em>Composite Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.CompositeNodeImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getCompositeNode()
- * @generated
- */
- EClass COMPOSITE_NODE = eINSTANCE.getCompositeNode();
-
- /**
- * The meta object literal for the '<em><b>Children</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference COMPOSITE_NODE__CHILDREN = eINSTANCE.getCompositeNode_Children();
-
- /**
- * The meta object literal for the '<em><b>Rule</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute COMPOSITE_NODE__RULE = eINSTANCE.getCompositeNode_Rule();
-
- /**
- * The meta object literal for the '{@link org.eclipse.xpand3.node.impl.NodeImpl <em>Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.NodeImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getNode()
- * @generated
- */
- EClass NODE = eINSTANCE.getNode();
-
- /**
- * The meta object literal for the '<em><b>Alias</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute NODE__ALIAS = eINSTANCE.getNode_Alias();
-
- /**
- * The meta object literal for the '{@link org.eclipse.xpand3.node.impl.LeafNodeImpl <em>Leaf Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.LeafNodeImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getLeafNode()
- * @generated
- */
- EClass LEAF_NODE = eINSTANCE.getLeafNode();
-
- /**
- * The meta object literal for the '<em><b>Token</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference LEAF_NODE__TOKEN = eINSTANCE.getLeafNode_Token();
-
- /**
- * The meta object literal for the '{@link org.eclipse.xpand3.node.impl.LexedTokenImpl <em>Lexed Token</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.impl.LexedTokenImpl
- * @see org.eclipse.xpand3.node.impl.NodePackageImpl#getLexedToken()
- * @generated
- */
- EClass LEXED_TOKEN = eINSTANCE.getLexedToken();
-
- /**
- * The meta object literal for the '<em><b>Hidden</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LEXED_TOKEN__HIDDEN = eINSTANCE.getLexedToken_Hidden();
-
- /**
- * The meta object literal for the '<em><b>Start</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LEXED_TOKEN__START = eINSTANCE.getLexedToken_Start();
-
- /**
- * The meta object literal for the '<em><b>End</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LEXED_TOKEN__END = eINSTANCE.getLexedToken_End();
-
- /**
- * The meta object literal for the '<em><b>Line</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LEXED_TOKEN__LINE = eINSTANCE.getLexedToken_Line();
-
- /**
- * The meta object literal for the '<em><b>Text</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LEXED_TOKEN__TEXT = eINSTANCE.getLexedToken_Text();
-
- /**
- * The meta object literal for the '<em><b>Token Type</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LEXED_TOKEN__TOKEN_TYPE = eINSTANCE.getLexedToken_TokenType();
-
- }
-
-} //NodePackage
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/CompositeNodeImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/CompositeNodeImpl.java
deleted file mode 100644
index 635afce..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/CompositeNodeImpl.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: CompositeNodeImpl.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.xpand3.node.CompositeNode;
-import org.eclipse.xpand3.node.Node;
-import org.eclipse.xpand3.node.NodePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Composite Node</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.impl.CompositeNodeImpl#getChildren <em>Children</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.impl.CompositeNodeImpl#getRule <em>Rule</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CompositeNodeImpl extends NodeImpl implements CompositeNode {
- /**
- * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getChildren()
- * @generated
- * @ordered
- */
- protected EList<Node> children;
-
- /**
- * The default value of the '{@link #getRule() <em>Rule</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRule()
- * @generated
- * @ordered
- */
- protected static final String RULE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getRule() <em>Rule</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRule()
- * @generated
- * @ordered
- */
- protected String rule = RULE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected CompositeNodeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NodePackage.Literals.COMPOSITE_NODE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Node> getChildren() {
- if (children == null) {
- children = new EObjectContainmentEList<Node>(Node.class, this, NodePackage.COMPOSITE_NODE__CHILDREN);
- }
- return children;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getRule() {
- return rule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setRule(String newRule) {
- String oldRule = rule;
- rule = newRule;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.COMPOSITE_NODE__RULE, oldRule, rule));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int start() {
- return org.eclipse.xpand3.node.NodeUtil.start(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int end() {
- return org.eclipse.xpand3.node.NodeUtil.end(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int line() {
- return org.eclipse.xpand3.node.NodeUtil.line(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String text() {
- return org.eclipse.xpand3.node.NodeUtil.text(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NodePackage.COMPOSITE_NODE__CHILDREN:
- return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NodePackage.COMPOSITE_NODE__CHILDREN:
- return getChildren();
- case NodePackage.COMPOSITE_NODE__RULE:
- return getRule();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NodePackage.COMPOSITE_NODE__CHILDREN:
- getChildren().clear();
- getChildren().addAll((Collection<? extends Node>)newValue);
- return;
- case NodePackage.COMPOSITE_NODE__RULE:
- setRule((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NodePackage.COMPOSITE_NODE__CHILDREN:
- getChildren().clear();
- return;
- case NodePackage.COMPOSITE_NODE__RULE:
- setRule(RULE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NodePackage.COMPOSITE_NODE__CHILDREN:
- return children != null && !children.isEmpty();
- case NodePackage.COMPOSITE_NODE__RULE:
- return RULE_EDEFAULT == null ? rule != null : !RULE_EDEFAULT.equals(rule);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (rule: ");
- result.append(rule);
- result.append(')');
- return result.toString();
- }
-
-} //CompositeNodeImpl
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LeafNodeImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LeafNodeImpl.java
deleted file mode 100644
index 9e6c764..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LeafNodeImpl.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LeafNodeImpl.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.xpand3.node.LeafNode;
-import org.eclipse.xpand3.node.LexedToken;
-import org.eclipse.xpand3.node.NodePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Leaf Node</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.impl.LeafNodeImpl#getToken <em>Token</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class LeafNodeImpl extends NodeImpl implements LeafNode {
- /**
- * The cached value of the '{@link #getToken() <em>Token</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getToken()
- * @generated
- * @ordered
- */
- protected LexedToken token;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LeafNodeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NodePackage.Literals.LEAF_NODE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LexedToken getToken() {
- return token;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetToken(LexedToken newToken, NotificationChain msgs) {
- LexedToken oldToken = token;
- token = newToken;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NodePackage.LEAF_NODE__TOKEN, oldToken, newToken);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setToken(LexedToken newToken) {
- if (newToken != token) {
- NotificationChain msgs = null;
- if (token != null)
- msgs = ((InternalEObject)token).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NodePackage.LEAF_NODE__TOKEN, null, msgs);
- if (newToken != null)
- msgs = ((InternalEObject)newToken).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NodePackage.LEAF_NODE__TOKEN, null, msgs);
- msgs = basicSetToken(newToken, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEAF_NODE__TOKEN, newToken, newToken));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int line() {
- return org.eclipse.xpand3.node.NodeUtil.line(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String text() {
- return org.eclipse.xpand3.node.NodeUtil.text(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int start() {
- return org.eclipse.xpand3.node.NodeUtil.start(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int end() {
- return org.eclipse.xpand3.node.NodeUtil.end(this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NodePackage.LEAF_NODE__TOKEN:
- return basicSetToken(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NodePackage.LEAF_NODE__TOKEN:
- return getToken();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NodePackage.LEAF_NODE__TOKEN:
- setToken((LexedToken)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NodePackage.LEAF_NODE__TOKEN:
- setToken((LexedToken)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NodePackage.LEAF_NODE__TOKEN:
- return token != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //LeafNodeImpl
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LexedTokenImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LexedTokenImpl.java
deleted file mode 100644
index f090ad1..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/LexedTokenImpl.java
+++ /dev/null
@@ -1,437 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LexedTokenImpl.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.xpand3.node.LexedToken;
-import org.eclipse.xpand3.node.NodePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Lexed Token</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.impl.LexedTokenImpl#isHidden <em>Hidden</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.impl.LexedTokenImpl#getStart <em>Start</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.impl.LexedTokenImpl#getEnd <em>End</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.impl.LexedTokenImpl#getLine <em>Line</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.impl.LexedTokenImpl#getText <em>Text</em>}</li>
- * <li>{@link org.eclipse.xpand3.node.impl.LexedTokenImpl#getTokenType <em>Token Type</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class LexedTokenImpl extends EObjectImpl implements LexedToken {
- /**
- * The default value of the '{@link #isHidden() <em>Hidden</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isHidden()
- * @generated
- * @ordered
- */
- protected static final boolean HIDDEN_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isHidden() <em>Hidden</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isHidden()
- * @generated
- * @ordered
- */
- protected boolean hidden = HIDDEN_EDEFAULT;
-
- /**
- * The default value of the '{@link #getStart() <em>Start</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStart()
- * @generated
- * @ordered
- */
- protected static final int START_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getStart() <em>Start</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStart()
- * @generated
- * @ordered
- */
- protected int start = START_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEnd() <em>End</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnd()
- * @generated
- * @ordered
- */
- protected static final int END_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getEnd() <em>End</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnd()
- * @generated
- * @ordered
- */
- protected int end = END_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLine() <em>Line</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLine()
- * @generated
- * @ordered
- */
- protected static final int LINE_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getLine() <em>Line</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLine()
- * @generated
- * @ordered
- */
- protected int line = LINE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getText() <em>Text</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getText()
- * @generated
- * @ordered
- */
- protected static final String TEXT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getText() <em>Text</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getText()
- * @generated
- * @ordered
- */
- protected String text = TEXT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTokenType() <em>Token Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTokenType()
- * @generated
- * @ordered
- */
- protected static final String TOKEN_TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTokenType() <em>Token Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTokenType()
- * @generated
- * @ordered
- */
- protected String tokenType = TOKEN_TYPE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LexedTokenImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NodePackage.Literals.LEXED_TOKEN;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isHidden() {
- return hidden;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHidden(boolean newHidden) {
- boolean oldHidden = hidden;
- hidden = newHidden;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEXED_TOKEN__HIDDEN, oldHidden, hidden));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getStart() {
- return start;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setStart(int newStart) {
- int oldStart = start;
- start = newStart;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEXED_TOKEN__START, oldStart, start));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getEnd() {
- return end;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEnd(int newEnd) {
- int oldEnd = end;
- end = newEnd;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEXED_TOKEN__END, oldEnd, end));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getLine() {
- return line;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLine(int newLine) {
- int oldLine = line;
- line = newLine;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEXED_TOKEN__LINE, oldLine, line));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getText() {
- return text;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setText(String newText) {
- String oldText = text;
- text = newText;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEXED_TOKEN__TEXT, oldText, text));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTokenType() {
- return tokenType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTokenType(String newTokenType) {
- String oldTokenType = tokenType;
- tokenType = newTokenType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.LEXED_TOKEN__TOKEN_TYPE, oldTokenType, tokenType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NodePackage.LEXED_TOKEN__HIDDEN:
- return isHidden() ? Boolean.TRUE : Boolean.FALSE;
- case NodePackage.LEXED_TOKEN__START:
- return new Integer(getStart());
- case NodePackage.LEXED_TOKEN__END:
- return new Integer(getEnd());
- case NodePackage.LEXED_TOKEN__LINE:
- return new Integer(getLine());
- case NodePackage.LEXED_TOKEN__TEXT:
- return getText();
- case NodePackage.LEXED_TOKEN__TOKEN_TYPE:
- return getTokenType();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NodePackage.LEXED_TOKEN__HIDDEN:
- setHidden(((Boolean)newValue).booleanValue());
- return;
- case NodePackage.LEXED_TOKEN__START:
- setStart(((Integer)newValue).intValue());
- return;
- case NodePackage.LEXED_TOKEN__END:
- setEnd(((Integer)newValue).intValue());
- return;
- case NodePackage.LEXED_TOKEN__LINE:
- setLine(((Integer)newValue).intValue());
- return;
- case NodePackage.LEXED_TOKEN__TEXT:
- setText((String)newValue);
- return;
- case NodePackage.LEXED_TOKEN__TOKEN_TYPE:
- setTokenType((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NodePackage.LEXED_TOKEN__HIDDEN:
- setHidden(HIDDEN_EDEFAULT);
- return;
- case NodePackage.LEXED_TOKEN__START:
- setStart(START_EDEFAULT);
- return;
- case NodePackage.LEXED_TOKEN__END:
- setEnd(END_EDEFAULT);
- return;
- case NodePackage.LEXED_TOKEN__LINE:
- setLine(LINE_EDEFAULT);
- return;
- case NodePackage.LEXED_TOKEN__TEXT:
- setText(TEXT_EDEFAULT);
- return;
- case NodePackage.LEXED_TOKEN__TOKEN_TYPE:
- setTokenType(TOKEN_TYPE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NodePackage.LEXED_TOKEN__HIDDEN:
- return hidden != HIDDEN_EDEFAULT;
- case NodePackage.LEXED_TOKEN__START:
- return start != START_EDEFAULT;
- case NodePackage.LEXED_TOKEN__END:
- return end != END_EDEFAULT;
- case NodePackage.LEXED_TOKEN__LINE:
- return line != LINE_EDEFAULT;
- case NodePackage.LEXED_TOKEN__TEXT:
- return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text);
- case NodePackage.LEXED_TOKEN__TOKEN_TYPE:
- return TOKEN_TYPE_EDEFAULT == null ? tokenType != null : !TOKEN_TYPE_EDEFAULT.equals(tokenType);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (hidden: ");
- result.append(hidden);
- result.append(", start: ");
- result.append(start);
- result.append(", end: ");
- result.append(end);
- result.append(", line: ");
- result.append(line);
- result.append(", text: ");
- result.append(text);
- result.append(", tokenType: ");
- result.append(tokenType);
- result.append(')');
- return result.toString();
- }
-
-} //LexedTokenImpl
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeFactoryImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeFactoryImpl.java
deleted file mode 100644
index 766c6ad..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeFactoryImpl.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodeFactoryImpl.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.xpand3.node.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class NodeFactoryImpl extends EFactoryImpl implements NodeFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static NodeFactory init() {
- try {
- NodeFactory theNodeFactory = (NodeFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/m2t/xpand/node");
- if (theNodeFactory != null) {
- return theNodeFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new NodeFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NodeFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case NodePackage.COMPOSITE_NODE: return createCompositeNode();
- case NodePackage.NODE: return createNode();
- case NodePackage.LEAF_NODE: return createLeafNode();
- case NodePackage.LEXED_TOKEN: return createLexedToken();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public CompositeNode createCompositeNode() {
- CompositeNodeImpl compositeNode = new CompositeNodeImpl();
- return compositeNode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Node createNode() {
- NodeImpl node = new NodeImpl();
- return node;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LeafNode createLeafNode() {
- LeafNodeImpl leafNode = new LeafNodeImpl();
- return leafNode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LexedToken createLexedToken() {
- LexedTokenImpl lexedToken = new LexedTokenImpl();
- return lexedToken;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NodePackage getNodePackage() {
- return (NodePackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static NodePackage getPackage() {
- return NodePackage.eINSTANCE;
- }
-
-} //NodeFactoryImpl
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeImpl.java
deleted file mode 100644
index fc5b878..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodeImpl.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodeImpl.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.xpand3.node.Node;
-import org.eclipse.xpand3.node.NodePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Node</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.xpand3.node.impl.NodeImpl#getAlias <em>Alias</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NodeImpl extends EObjectImpl implements Node {
- /**
- * The default value of the '{@link #getAlias() <em>Alias</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAlias()
- * @generated
- * @ordered
- */
- protected static final String ALIAS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAlias() <em>Alias</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAlias()
- * @generated
- * @ordered
- */
- protected String alias = ALIAS_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected NodeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NodePackage.Literals.NODE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAlias() {
- return alias;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAlias(String newAlias) {
- String oldAlias = alias;
- alias = newAlias;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NodePackage.NODE__ALIAS, oldAlias, alias));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int start() {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int end() {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int line() {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String text() {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NodePackage.NODE__ALIAS:
- return getAlias();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NodePackage.NODE__ALIAS:
- setAlias((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NodePackage.NODE__ALIAS:
- setAlias(ALIAS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NodePackage.NODE__ALIAS:
- return ALIAS_EDEFAULT == null ? alias != null : !ALIAS_EDEFAULT.equals(alias);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (alias: ");
- result.append(alias);
- result.append(')');
- return result.toString();
- }
-
-} //NodeImpl
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodePackageImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodePackageImpl.java
deleted file mode 100644
index 7b6e51a..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/impl/NodePackageImpl.java
+++ /dev/null
@@ -1,377 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodePackageImpl.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.xpand3.node.CompositeNode;
-import org.eclipse.xpand3.node.LeafNode;
-import org.eclipse.xpand3.node.LexedToken;
-import org.eclipse.xpand3.node.Node;
-import org.eclipse.xpand3.node.NodeFactory;
-import org.eclipse.xpand3.node.NodePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class NodePackageImpl extends EPackageImpl implements NodePackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass compositeNodeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass nodeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass leafNodeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass lexedTokenEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.xpand3.node.NodePackage#eNS_URI
- * @see #init()
- * @generated
- */
- private NodePackageImpl() {
- super(eNS_URI, NodeFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static NodePackage init() {
- if (isInited) return (NodePackage)EPackage.Registry.INSTANCE.getEPackage(NodePackage.eNS_URI);
-
- // Obtain or create and register package
- NodePackageImpl theNodePackage = (NodePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof NodePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new NodePackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theNodePackage.createPackageContents();
-
- // Initialize created meta-data
- theNodePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theNodePackage.freeze();
-
- return theNodePackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getCompositeNode() {
- return compositeNodeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getCompositeNode_Children() {
- return (EReference)compositeNodeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCompositeNode_Rule() {
- return (EAttribute)compositeNodeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getNode() {
- return nodeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNode_Alias() {
- return (EAttribute)nodeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getLeafNode() {
- return leafNodeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getLeafNode_Token() {
- return (EReference)leafNodeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getLexedToken() {
- return lexedTokenEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLexedToken_Hidden() {
- return (EAttribute)lexedTokenEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLexedToken_Start() {
- return (EAttribute)lexedTokenEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLexedToken_End() {
- return (EAttribute)lexedTokenEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLexedToken_Line() {
- return (EAttribute)lexedTokenEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLexedToken_Text() {
- return (EAttribute)lexedTokenEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLexedToken_TokenType() {
- return (EAttribute)lexedTokenEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NodeFactory getNodeFactory() {
- return (NodeFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- compositeNodeEClass = createEClass(COMPOSITE_NODE);
- createEReference(compositeNodeEClass, COMPOSITE_NODE__CHILDREN);
- createEAttribute(compositeNodeEClass, COMPOSITE_NODE__RULE);
-
- nodeEClass = createEClass(NODE);
- createEAttribute(nodeEClass, NODE__ALIAS);
-
- leafNodeEClass = createEClass(LEAF_NODE);
- createEReference(leafNodeEClass, LEAF_NODE__TOKEN);
-
- lexedTokenEClass = createEClass(LEXED_TOKEN);
- createEAttribute(lexedTokenEClass, LEXED_TOKEN__HIDDEN);
- createEAttribute(lexedTokenEClass, LEXED_TOKEN__START);
- createEAttribute(lexedTokenEClass, LEXED_TOKEN__END);
- createEAttribute(lexedTokenEClass, LEXED_TOKEN__LINE);
- createEAttribute(lexedTokenEClass, LEXED_TOKEN__TEXT);
- createEAttribute(lexedTokenEClass, LEXED_TOKEN__TOKEN_TYPE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- compositeNodeEClass.getESuperTypes().add(this.getNode());
- leafNodeEClass.getESuperTypes().add(this.getNode());
-
- // Initialize classes and features; add operations and parameters
- initEClass(compositeNodeEClass, CompositeNode.class, "CompositeNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getCompositeNode_Children(), this.getNode(), null, "children", null, 0, -1, CompositeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCompositeNode_Rule(), ecorePackage.getEString(), "rule", null, 0, 1, CompositeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- addEOperation(compositeNodeEClass, ecorePackage.getEInt(), "start", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(compositeNodeEClass, ecorePackage.getEInt(), "end", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(compositeNodeEClass, ecorePackage.getEInt(), "line", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(compositeNodeEClass, ecorePackage.getEString(), "text", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- initEClass(nodeEClass, Node.class, "Node", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNode_Alias(), ecorePackage.getEString(), "alias", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- addEOperation(nodeEClass, ecorePackage.getEInt(), "start", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(nodeEClass, ecorePackage.getEInt(), "end", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(nodeEClass, ecorePackage.getEInt(), "line", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(nodeEClass, ecorePackage.getEString(), "text", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- initEClass(leafNodeEClass, LeafNode.class, "LeafNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getLeafNode_Token(), this.getLexedToken(), null, "token", null, 0, 1, LeafNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- addEOperation(leafNodeEClass, ecorePackage.getEInt(), "line", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(leafNodeEClass, ecorePackage.getEString(), "text", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(leafNodeEClass, ecorePackage.getEInt(), "start", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- addEOperation(leafNodeEClass, ecorePackage.getEInt(), "end", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- initEClass(lexedTokenEClass, LexedToken.class, "LexedToken", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLexedToken_Hidden(), ecorePackage.getEBoolean(), "hidden", null, 0, 1, LexedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLexedToken_Start(), ecorePackage.getEInt(), "start", null, 0, 1, LexedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLexedToken_End(), ecorePackage.getEInt(), "end", null, 0, 1, LexedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLexedToken_Line(), ecorePackage.getEInt(), "line", null, 0, 1, LexedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLexedToken_Text(), ecorePackage.getEString(), "text", null, 0, 1, LexedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLexedToken_TokenType(), ecorePackage.getEString(), "tokenType", null, 0, 1, LexedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //NodePackageImpl
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeAdapterFactory.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeAdapterFactory.java
deleted file mode 100644
index b709e7a..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeAdapterFactory.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodeAdapterFactory.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.xpand3.node.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.NodePackage
- * @generated
- */
-public class NodeAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static NodePackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NodeAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = NodePackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch the delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected NodeSwitch<Adapter> modelSwitch =
- new NodeSwitch<Adapter>() {
- @Override
- public Adapter caseCompositeNode(CompositeNode object) {
- return createCompositeNodeAdapter();
- }
- @Override
- public Adapter caseNode(Node object) {
- return createNodeAdapter();
- }
- @Override
- public Adapter caseLeafNode(LeafNode object) {
- return createLeafNodeAdapter();
- }
- @Override
- public Adapter caseLexedToken(LexedToken object) {
- return createLexedTokenAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xpand3.node.CompositeNode <em>Composite Node</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.xpand3.node.CompositeNode
- * @generated
- */
- public Adapter createCompositeNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xpand3.node.Node <em>Node</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.xpand3.node.Node
- * @generated
- */
- public Adapter createNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xpand3.node.LeafNode <em>Leaf Node</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.xpand3.node.LeafNode
- * @generated
- */
- public Adapter createLeafNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xpand3.node.LexedToken <em>Lexed Token</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.xpand3.node.LexedToken
- * @generated
- */
- public Adapter createLexedTokenAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //NodeAdapterFactory
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeSwitch.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeSwitch.java
deleted file mode 100644
index e376e5e..0000000
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/node/util/NodeSwitch.java
+++ /dev/null
@@ -1,195 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NodeSwitch.java,v 1.1 2008/02/27 13:21:10 sefftinge Exp $
- */
-package org.eclipse.xpand3.node.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.xpand3.node.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.xpand3.node.NodePackage
- * @generated
- */
-public class NodeSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static NodePackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NodeSwitch() {
- if (modelPackage == null) {
- modelPackage = NodePackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case NodePackage.COMPOSITE_NODE: {
- CompositeNode compositeNode = (CompositeNode)theEObject;
- T result = caseCompositeNode(compositeNode);
- if (result == null) result = caseNode(compositeNode);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case NodePackage.NODE: {
- Node node = (Node)theEObject;
- T result = caseNode(node);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case NodePackage.LEAF_NODE: {
- LeafNode leafNode = (LeafNode)theEObject;
- T result = caseLeafNode(leafNode);
- if (result == null) result = caseNode(leafNode);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case NodePackage.LEXED_TOKEN: {
- LexedToken lexedToken = (LexedToken)theEObject;
- T result = caseLexedToken(lexedToken);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Composite Node</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Composite Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCompositeNode(CompositeNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Node</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNode(Node object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Leaf Node</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Leaf Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLeafNode(LeafNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Lexed Token</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Lexed Token</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLexedToken(LexedToken object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //NodeSwitch
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementValidator.java
new file mode 100644
index 0000000..c9b67b6
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AbstractStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.AbstractStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AbstractStatementValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementWithBodyValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementWithBodyValidator.java
new file mode 100644
index 0000000..630162d
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/AbstractStatementWithBodyValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: AbstractStatementWithBodyValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.statement.AbstractStatement;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.AbstractStatementWithBody}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AbstractStatementWithBodyValidator {
+ boolean validate();
+
+ boolean validateBody(EList<AbstractStatement> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ErrorStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ErrorStatementValidator.java
new file mode 100644
index 0000000..3acf0fc
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ErrorStatementValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ErrorStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.ErrorStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ErrorStatementValidator {
+ boolean validate();
+
+ boolean validateMessage(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpandStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpandStatementValidator.java
new file mode 100644
index 0000000..eebf9d6
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpandStatementValidator.java
@@ -0,0 +1,29 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ExpandStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.ExpandStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ExpandStatementValidator {
+ boolean validate();
+
+ boolean validateForeach(boolean value);
+ boolean validateParameters(EList<AbstractExpression> value);
+ boolean validateSeparator(AbstractExpression value);
+ boolean validateTarget(AbstractExpression value);
+ boolean validateDefinition(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpressionStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpressionStatementValidator.java
new file mode 100644
index 0000000..97a83f0
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ExpressionStatementValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ExpressionStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.ExpressionStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ExpressionStatementValidator {
+ boolean validate();
+
+ boolean validateExpression(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/FileStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/FileStatementValidator.java
new file mode 100644
index 0000000..42da5fb
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/FileStatementValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: FileStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.FileStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface FileStatementValidator {
+ boolean validate();
+
+ boolean validateFileNameExpression(AbstractExpression value);
+ boolean validateOutletNameIdentifier(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ForEachStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ForEachStatementValidator.java
new file mode 100644
index 0000000..9a7782d
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ForEachStatementValidator.java
@@ -0,0 +1,26 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ForEachStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.ForEachStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ForEachStatementValidator {
+ boolean validate();
+
+ boolean validateTarget(AbstractExpression value);
+ boolean validateSeperator(AbstractExpression value);
+ boolean validateVariable(Identifier value);
+ boolean validateIteratorName(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/IfStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/IfStatementValidator.java
new file mode 100644
index 0000000..712a734
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/IfStatementValidator.java
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: IfStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+import org.eclipse.xpand3.statement.IfStatement;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.IfStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface IfStatementValidator {
+ boolean validate();
+
+ boolean validateCondition(AbstractExpression value);
+ boolean validateUpperIf(IfStatement value);
+ boolean validateElseIf(IfStatement value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/LetStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/LetStatementValidator.java
new file mode 100644
index 0000000..6cef736
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/LetStatementValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: LetStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.LetStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface LetStatementValidator {
+ boolean validate();
+
+ boolean validateVarName(Identifier value);
+ boolean validateVarValue(AbstractExpression value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ProtectStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ProtectStatementValidator.java
new file mode 100644
index 0000000..1a31c57
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/ProtectStatementValidator.java
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ProtectStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+import org.eclipse.xpand3.expression.AbstractExpression;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.ProtectStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ProtectStatementValidator {
+ boolean validate();
+
+ boolean validateCommentStart(AbstractExpression value);
+ boolean validateCommentEnd(AbstractExpression value);
+ boolean validateId(AbstractExpression value);
+ boolean validateDisable(boolean value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/TextStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/TextStatementValidator.java
new file mode 100644
index 0000000..5a10932
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/statement/validation/TextStatementValidator.java
@@ -0,0 +1,21 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: TextStatementValidator.java,v 1.1 2008/03/06 15:35:10 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.statement.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.statement.TextStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface TextStatementValidator {
+ boolean validate();
+
+ boolean validateValue(String value);
+ boolean validateDeleteLine(boolean value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ComposedIdentifierValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ComposedIdentifierValidator.java
new file mode 100644
index 0000000..d3b1cff
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ComposedIdentifierValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ComposedIdentifierValidator.java,v 1.1 2008/03/06 15:35:15 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.ComposedIdentifier}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ComposedIdentifierValidator {
+ boolean validate();
+
+ boolean validateIdentifiers(EList<Identifier> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/DeclaredParameterValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/DeclaredParameterValidator.java
new file mode 100644
index 0000000..053d825
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/DeclaredParameterValidator.java
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: DeclaredParameterValidator.java,v 1.1 2008/03/06 15:35:14 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.DeclaredParameter}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface DeclaredParameterValidator {
+ boolean validate();
+
+ boolean validateName(Identifier value);
+ boolean validateType(Identifier value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/FileValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/FileValidator.java
new file mode 100644
index 0000000..895559f
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/FileValidator.java
@@ -0,0 +1,26 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: FileValidator.java,v 1.1 2008/03/06 15:35:15 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.xpand3.ImportStatement;
+
+import org.eclipse.xpand3.declaration.AbstractDeclaration;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.File}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface FileValidator {
+ boolean validate();
+
+ boolean validateImports(EList<ImportStatement> value);
+ boolean validateDeclarations(EList<AbstractDeclaration> value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/IdentifierValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/IdentifierValidator.java
new file mode 100644
index 0000000..54c27df
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/IdentifierValidator.java
@@ -0,0 +1,19 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: IdentifierValidator.java,v 1.1 2008/03/06 15:35:15 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.Identifier}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface IdentifierValidator {
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ImportStatementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ImportStatementValidator.java
new file mode 100644
index 0000000..2b32b61
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/ImportStatementValidator.java
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ImportStatementValidator.java,v 1.1 2008/03/06 15:35:15 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+import org.eclipse.xpand3.Identifier;
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.ImportStatement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImportStatementValidator {
+ boolean validate();
+
+ boolean validateImportedId(Identifier value);
+ boolean validateExported(boolean value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SimpleIdentifierValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SimpleIdentifierValidator.java
new file mode 100644
index 0000000..4b2964b
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SimpleIdentifierValidator.java
@@ -0,0 +1,20 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: SimpleIdentifierValidator.java,v 1.1 2008/03/06 15:35:15 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.SimpleIdentifier}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface SimpleIdentifierValidator {
+ boolean validate();
+
+ boolean validateValue(String value);
+}
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SyntaxElementValidator.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SyntaxElementValidator.java
new file mode 100644
index 0000000..6948b00
--- /dev/null
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/validation/SyntaxElementValidator.java
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: SyntaxElementValidator.java,v 1.1 2008/03/06 15:35:15 jkohnlein Exp $
+ */
+package org.eclipse.xpand3.validation;
+
+
+/**
+ * A sample validator interface for {@link org.eclipse.xpand3.SyntaxElement}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface SyntaxElementValidator {
+ boolean validate();
+
+ boolean validateLine(int value);
+ boolean validateStart(int value);
+ boolean validateEnd(int value);
+ boolean validateFileName(String value);
+}
diff --git a/plugins/org.eclipse.xpand3/src/node.ecore b/plugins/org.eclipse.xpand3/src/node.ecore
deleted file mode 100644
index e2288b2..0000000
--- a/plugins/org.eclipse.xpand3/src/node.ecore
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="node"
- nsURI="http://www.eclipse.org/m2t/xpand/node" nsPrefix="node">
- <eClassifiers xsi:type="ecore:EClass" name="CompositeNode" eSuperTypes="#//Node">
- <eOperations name="start" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.start(this);"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="end" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.end(this);"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="line" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.line(this);"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.text(this);"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
- eType="#//Node" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="rule" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Node">
- <eOperations name="start" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eOperations name="end" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eOperations name="line" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eOperations name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="LeafNode" eSuperTypes="#//Node">
- <eOperations name="line" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.line(this);"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.text(this);"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="start" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.start(this);"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="end" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="body" value="return org.eclipse.xpand3.node.NodeUtil.end(this);"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="token" eType="#//LexedToken"
- containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="LexedToken">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="hidden" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="start" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="end" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="line" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/plugins/org.eclipse.xpand3/src/node.genmodel b/plugins/org.eclipse.xpand3/src/node.genmodel
deleted file mode 100644
index 33b5073..0000000
--- a/plugins/org.eclipse.xpand3/src/node.genmodel
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.xpand3/emf-gen"
- modelPluginID="org.eclipse.xpand3" modelName="Node" importerID="org.eclipse.emf.importer.ecore"
- complianceLevel="5.0" copyrightFields="false">
- <foreignModel>node.ecore</foreignModel>
- <genPackages prefix="Node" basePackage="org.eclipse.xpand3" disposableProviderFactory="true"
- ecorePackage="node.ecore#/">
- <genClasses ecoreClass="node.ecore#//CompositeNode">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference node.ecore#//CompositeNode/children"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//CompositeNode/rule"/>
- <genOperations ecoreOperation="node.ecore#//CompositeNode/start"/>
- <genOperations ecoreOperation="node.ecore#//CompositeNode/end"/>
- <genOperations ecoreOperation="node.ecore#//CompositeNode/line"/>
- <genOperations ecoreOperation="node.ecore#//CompositeNode/text"/>
- </genClasses>
- <genClasses ecoreClass="node.ecore#//Node">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//Node/alias"/>
- <genOperations ecoreOperation="node.ecore#//Node/start"/>
- <genOperations ecoreOperation="node.ecore#//Node/end"/>
- <genOperations ecoreOperation="node.ecore#//Node/line"/>
- <genOperations ecoreOperation="node.ecore#//Node/text"/>
- </genClasses>
- <genClasses ecoreClass="node.ecore#//LeafNode">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference node.ecore#//LeafNode/token"/>
- <genOperations ecoreOperation="node.ecore#//LeafNode/line"/>
- <genOperations ecoreOperation="node.ecore#//LeafNode/text"/>
- <genOperations ecoreOperation="node.ecore#//LeafNode/start"/>
- <genOperations ecoreOperation="node.ecore#//LeafNode/end"/>
- </genClasses>
- <genClasses ecoreClass="node.ecore#//LexedToken">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//LexedToken/hidden"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//LexedToken/start"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//LexedToken/end"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//LexedToken/line"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//LexedToken/text"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute node.ecore#//LexedToken/tokenType"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/node/NodeUtil.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/node/NodeUtil.java
deleted file mode 100644
index 334b131..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/node/NodeUtil.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.eclipse.xpand3.node;
-
-public class NodeUtil {
- public static int start(CompositeNode n) {
- if (n.getChildren().isEmpty()) {
- return -1;
- }
- return n.getChildren().get(0).start();
- }
-
- public static int end(CompositeNode n) {
- if (n.getChildren().isEmpty()) {
- return -1;
- }
- return n.getChildren().get(n.getChildren().size() - 1).end();
- }
-
- public static int line(CompositeNode n) {
- if (n.getChildren().isEmpty()) {
- return -1;
- }
- return n.getChildren().get(0).line();
- }
-
- public static String text(CompositeNode cn) {
- StringBuffer buff = new StringBuffer();
- for (Node n : cn.getChildren()) {
- buff.append(n.text());
- }
- return buff.toString();
- }
-
- public static int start(LeafNode ln) {
- return ln.getToken().getStart();
- }
-
- public static int end(LeafNode ln) {
- return ln.getToken().getEnd();
- }
-
- public static int line(LeafNode ln) {
- return ln.getToken().getLine();
- }
-
- public static String text(LeafNode ln) {
- return ln.getToken().getText();
- }
-
- public static String toString(Node n) {
- if (n instanceof CompositeNode) {
- return toString((CompositeNode) n);
- } else if (n instanceof LeafNode) {
- return toString((LeafNode) n);
- }
- throw new IllegalArgumentException();
- }
-
- public static String toString(CompositeNode n) {
- String s = indent(n)+(n.getAlias()!=null?n.getAlias()+"=":"")+"Rule: "+n.getRule()+"\n";
- for (Node node : n.getChildren()) {
- s += toString(node);
- }
- return s;
- }
-
- public static String toString(LeafNode n) {
- return indent(n)+(n.getAlias()!=null?n.getAlias()+"=":"")+n.getToken().getText()+"\n";
- }
-
- private static String indent(Node n) {
- return n.eContainer() == null ? "" : "\t"
- + indent((Node) n.eContainer());
- }
-
- public static String serialize(Node n) {
- if (n instanceof CompositeNode) {
- return serialize((CompositeNode) n);
- } else if (n instanceof LeafNode) {
- return serialize((LeafNode) n);
- }
- throw new IllegalArgumentException();
- }
-
- public static String serialize(CompositeNode n) {
- String s = "";
- for (Node node : n.getChildren()) {
- s += serialize(node);
- }
- return s;
- }
-
- public static String serialize(LeafNode n) {
- return n.getToken().getText() + "\n";
- }
-
-}
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java
deleted file mode 100644
index 8dfb0f9..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/AbstractXpand3NodeParser.java
+++ /dev/null
@@ -1,188 +0,0 @@
-package org.eclipse.xpand3.parser;
-
-import java.util.Set;
-
-import org.antlr.runtime.CommonToken;
-import org.antlr.runtime.RecognitionException;
-import org.antlr.runtime.Token;
-import org.antlr.runtime.TokenStream;
-import org.antlr.runtime.tree.TreeAdaptor;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.xpand3.node.CompositeNode;
-import org.eclipse.xpand3.node.LeafNode;
-import org.eclipse.xpand3.node.LexedToken;
-import org.eclipse.xpand3.node.Node;
-import org.eclipse.xpand3.node.NodeFactory;
-
-public abstract class AbstractXpand3NodeParser extends Xpand3Parser {
-
- private CompositeNode current = null;
- private Node rootNode = null;
-
- public AbstractXpand3NodeParser(TokenStream input) {
- super(input);
- setTreeAdaptor(new TreeAdaptor() {
-
- public void addChild(Object t, Object child) {
- }
-
- public Object becomeRoot(Object newRoot, Object oldRoot) {
- return null;
- }
-
- public Object becomeRoot(Token newRoot, Object oldRoot) {
- return null;
- }
-
- public Object create(Token payload) {
- return null;
- }
-
- public Object create(int tokenType, Token fromToken) {
- return null;
- }
-
- public Object create(int tokenType, Token fromToken, String text) {
- return null;
- }
-
- public Object create(int tokenType, String text) {
- return null;
- }
-
- public Object dupNode(Object treeNode) {
- return null;
- }
-
- public Object dupTree(Object tree) {
- return null;
- }
-
- public Object getChild(Object t, int i) {
- return null;
- }
-
- public int getChildCount(Object t) {
- return 0;
- }
-
- public String getText(Object t) {
- return null;
- }
-
- public Token getToken(Object t) {
- return null;
- }
-
- public int getTokenStartIndex(Object t) {
- return 0;
- }
-
- public int getTokenStopIndex(Object t) {
- return 0;
- }
-
- public int getType(Object t) {
- return 0;
- }
-
- public int getUniqueID(Object node) {
- return 0;
- }
-
- public boolean isNil(Object tree) {
- return false;
- }
-
- public Object nil() {
- return null;
- }
-
- public Object rulePostProcessing(Object root) {
- return null;
- }
-
- public void setText(Object t, String text) {
- }
-
- public void setTokenBoundaries(Object t, Token startToken,
- Token stopToken) {
- }
-
- public void setType(Object t, int type) {
- }
- });
- }
-
- protected abstract Set<String> normalizableRules();
-
- @Override
- public void ruleEntered(String rulename) {
- CompositeNode newOne = NodeFactory.eINSTANCE.createCompositeNode();
- newOne.setRule(rulename);
- newOne.setAlias(next);
- next = null;
- if (current != null) {
- current.getChildren().add(newOne);
- } else {
- rootNode = newOne;
- }
- current = newOne;
- }
-
- private String next = null;
-
- @Override
- protected void assignNextNodeTo(String alias) {
- this.next = alias;
- }
-
- @Override
- public void ruleLeft(String ruleName) {
- CompositeNode parent = (CompositeNode) current.eContainer();
- if (normalizableRules().contains(current.getRule())) {
- EList<Node> children = current.getChildren();
- if (children.isEmpty() && parent == null) {
- rootNode = null;
- } else if (children.size() == 1
- && (children.get(0) instanceof CompositeNode)) {
- Node child = children.get(0);
- if (parent != null) {
- int i = parent.getChildren().indexOf(current);
- parent.getChildren().remove(i);
- parent.getChildren().add(i, child);
- } else {
- children.remove(0);
- rootNode = child;
- }
- }
- }
- current = parent;
- }
-
- @Override
- public void reportError(RecognitionException arg0) {
- throw new RuntimeException(getErrorMessage(arg0, getTokenNames()), arg0);
- }
-
- @Override
- public void tokenConsumed(String var, CommonToken ct) {
- if (ct.getText() != null) {
- LeafNode n = NodeFactory.eINSTANCE.createLeafNode();
- current.getChildren().add(n);
- if (var != null)
- n.setAlias(var);
- LexedToken myToken = NodeFactory.eINSTANCE.createLexedToken();
- n.setToken(myToken);
- myToken.setText(ct.getText());
- myToken.setStart(ct.getStartIndex());
- myToken.setEnd(ct.getStopIndex() + 1);
- myToken.setLine(ct.getLine());
- }
- }
-
- public Node getRootNode() {
- return rootNode;
- }
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g
deleted file mode 100644
index 39ad161..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.g
+++ /dev/null
@@ -1,461 +0,0 @@
-grammar Xpand3;
-
-options {output=AST;}
-
-@lexer::members {
- private boolean xpandMode = false;
-}
-
-@parser::header {
-package org.eclipse.xpand3.parser;
-}
-
-@lexer::header {
-package org.eclipse.xpand3.parser;
-}
-
-r_file :
- (imp=r_nsImport)*
- (decl=r_abstractDeclaration )*
- EOF
-;
-
-r_nsImport:
- LG 'IMPORT' ns=r_type RG |
- LG 'EXTENSION' ns=r_type RG |
- 'import' r_type ';' |
- 'extension' r_type ('reexport')? ';'
-;
-
-r_abstractDeclaration :
- r_check |
- r_around |
- r_extension |
- r_definition |
- r_definitionAround
-;
-
-// XPAND start
-
-r_definition :
- LG DEFINE name=r_identifier ('(' (r_declaredParameterList (','? '*')? | '*')? ')')? 'FOR' r_type
- r_sequence
- ENDDEFINE RG
-;
-
-r_definitionAround :
- LG AROUND r_pointcut ('(' (r_declaredParameterList (','? '*')? | '*')? ')')? 'FOR' r_type
- r_sequence
- ENDAROUND RG
-;
-
-r_sequence :
- r_textSequence
- (r_statement
- r_textSequence)*
-;
-
-r_statement :
- r_simpleStatement
-| r_fileStatement
-| r_foreachStatement
-| r_ifStatement
-| r_letStatement
-| r_protectStatement
-;
-
-r_textSequence :
- r_text (r_text)*
-;
-
-r_text :
- '-'? TEXT
-;
-
-r_simpleStatement :
- r_errorStatement
-| r_expandStatement
-| r_expressionStmt
-;
-
-r_errorStatement :
- 'ERROR' r_expression
-;
-
-r_expandStatement :
- 'EXPAND' r_simpleType ('(' r_parameterList ')')? (('FOR' r_expression)
- | ('FOREACH'r_expression ('SEPARATOR' r_expression)?))?
-;
-
-r_expressionStmt :
- r_expression
-;
-
-r_fileStatement :
- 'FILE' r_expression (r_identifier)?
- r_sequence
- 'ENDFILE'
-;
-
-r_foreachStatement :
- 'FOREACH' r_expression 'AS' r_identifier ('ITERATOR' r_identifier)? ('SEPARATOR' r_expression)?
- r_sequence
- 'ENDFOREACH'
-;
-
-r_ifStatement :
- 'IF' r_expression
- r_sequence
- r_elseIfStatement*
- r_elseStatement?
- 'ENDIF'
-;
-
-r_elseIfStatement :
- 'ELSEIF' r_expression
- r_sequence
-;
-
-r_elseStatement :
- 'ELSE'
- r_sequence
-;
-
-r_letStatement :
- 'LET' r_expression 'AS' r_identifier
- r_sequence
- 'ENDLET'
-;
-
-r_protectStatement :
- 'PROTECT'
- 'CSTART' r_expression
- 'CEND' r_expression
- 'ID' r_expression 'DISABLE'?
- r_sequence
- 'ENDPROTECT'
-;
-
-// Xtend start
-
-r_check :
- 'context' r_type ('if' r_expression)? ('ERROR'|'WARNING') r_expression ':'
- r_expression ';'
-;
-
-r_around :
- 'around' r_pointcut '(' (r_declaredParameterList (','? '*')? | '*')? ')' ':'
- r_expression ';'
-;
-
-r_pointcut :
- ( '*'
- |r_identifier)
- ( '*'
- |r_identifier
- |'::' )*
-;
-
-r_extension :
- ('private'|'cached'|'create')* r_type? r_identifier r_identifier? '(' r_declaredParameterList? ')' ':'
- ('JAVA' r_javaType '.' r_identifier '('(r_javaType (',' r_javaType )*)? ')'|
- r_expression )';'
-;
-
-r_javaType :
- r_identifier
- ('.' (r_identifier |'Collection' |
- 'List' |'Set'))*
-;
-
-//
-// Expressions
-//
-
-test_expression:
- r_expression EOF
-;
-r_expression :
- r_letExpression
-;
-
-r_letExpression :
- 'let' r_identifier '=' r_castedExpression ':' r_expression
-| r_castedExpression
-;
-
-r_castedExpression :
- ('(' r_type ')' r_chainExpression)=>
- '(' r_type ')' r_chainExpression
- | r_chainExpression
-;
-
-r_chainExpression :
- r_ifExpression ( '->' r_ifExpression )*
-;
-
-r_ifExpression :
- r_switchExpression ('?' r_expression ':' r_switchExpression )?
-| 'if' r_expression 'then' r_switchExpression ('else' r_switchExpression)?
-;
-
-r_switchExpression :
- 'switch' ('(' r_orExpression ')')? '{'
- r_casePart*
- 'default' ':' r_orExpression
- '}'
-| r_orExpression
-;
-
-r_casePart :
- 'case' r_expression ':' r_expression;
-
-r_orExpression :
- r_andExpression ('||' r_andExpression )*
-;
-
-r_andExpression :
- r_impliesExpression ('&&' r_impliesExpression )*
-;
-
-r_impliesExpression :
- r_relationalExpression ('implies' r_relationalExpression )*
-;
-
-r_relationalExpression :
- r_additiveExpression
- (('==' | '!=' | '>=' | '<=' | '>' | '<') r_additiveExpression )*
-;
-
-r_additiveExpression :
- r_multiplicativeExpression
- (('+'| '-') r_multiplicativeExpression )*
-;
-
-r_multiplicativeExpression :
- r_unaryExpression
- (('*' | '/') r_unaryExpression )*
-;
-
-
-r_unaryExpression :
- r_infixExpression
-| '!' r_infixExpression
-| '-' r_infixExpression
-;
-
-r_infixExpression :
- r_primaryExpression ( '.' r_featureCall )*
-;
-
-r_primaryExpression :
- r_stringLiteral
-| r_featureCall
-| r_booleanLiteral
-| r_numberLiteral
-| r_nullLiteral
-| r_listLiteral
-| r_constructorCall
-| r_globalVarExpression
-| r_paranthesizedExpression
-;
-
-r_stringLiteral :
- StringLiteral
-;
-
-r_paranthesizedExpression :
- '(' r_expression ')'
-;
-
-r_globalVarExpression :
- 'GLOBALVAR' r_identifier ;
-
-r_featureCall :
- r_identifier '(' (r_parameterList)? ')'
-| r_type
-| r_collectionExpression
-;
-
-r_listLiteral :
- '{'(r_expression (',' r_expression)*)?'}'
-;
-
-r_constructorCall :
- 'new' r_simpleType
-
-;
-
-r_booleanLiteral :
- 'false'|'true'
-;
-
-r_nullLiteral :
- 'null'
-;
-
-r_numberLiteral :
- IntLiteral
-| IntLiteral '.' IntLiteral
-;
-
-r_collectionExpression :
- 'typeSelect'
- '(' r_type ')'
-
- |('collect'
- | 'select'
- | 'selectFirst'
- | 'reject'
- | 'exists'
- | 'notExists'
- | 'sortBy'
- | 'forAll') '(' (r_identifier '|')? r_expression ')'
-
-;
-
-// helper
-
-r_declaredParameterList :
- r_declaredParameter (',' r_declaredParameter )*
-;
-
-r_declaredParameter :
- r_type r_identifier
-;
-
-r_parameterList :
- r_expression (',' r_expression )*
-;
-
-// type
-
-r_type :
- r_collectionType |
- r_simpleType
-;
-
-r_collectionType :
- ( 'Collection' | 'List' | 'Set' )
- ('[' r_simpleType ']' )?
-;
-
-r_simpleType :
- r_identifier
- ('::' r_identifier )*
-;
-
-r_identifier :
- Identifier
- ;
-
-
-/////////////////////////////////////////
-// LEXER
-////////////////////////////////////////
-
-IntLiteral : ('0' | '1'..'9' '0'..'9'*) ;
-
-StringLiteral
- : '"' ( EscapeSequence | ~('\\'|'"') )* '"'
- | '\'' ( EscapeSequence | ~('\''|'\\') )* '\''
- ;
-
-fragment
-EscapeSequence
- : '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
- | UnicodeEscape
- | OctalEscape
- ;
-
-fragment
-OctalEscape
- : '\\' ('0'..'3') ('0'..'7') ('0'..'7')
- | '\\' ('0'..'7') ('0'..'7')
- | '\\' ('0'..'7')
- ;
-
-fragment
-UnicodeEscape
- : '\\' 'u' HexDigit HexDigit HexDigit HexDigit
- ;
-fragment
-HexDigit : ('0'..'9'|'a'..'f'|'A'..'F') ;
-
-
-DEFINE : {xpandMode=true;} 'DEFINE';
-ENDDEFINE
- : 'ENDDEFINE' {xpandMode=false;};
-
-AROUND : {xpandMode=true;}'AROUND';
-ENDAROUND : 'ENDAROUND'{xpandMode=false;};
-
-Identifier
- : ('^')? Letter (Letter|JavaIDDigit)*
- ;
-
-fragment
-Letter
- : '\u0024' |
- '\u0041'..'\u005a' |
- '\u005f' |
- '\u0061'..'\u007a' |
- '\u00c0'..'\u00d6' |
- '\u00d8'..'\u00f6' |
- '\u00f8'..'\u00ff' |
- '\u0100'..'\u1fff' |
- '\u3040'..'\u318f' |
- '\u3300'..'\u337f' |
- '\u3400'..'\u3d2d' |
- '\u4e00'..'\u9fff' |
- '\uf900'..'\ufaff'
- ;
-
-fragment
-JavaIDDigit
- : '\u0030'..'\u0039' |
- '\u0660'..'\u0669' |
- '\u06f0'..'\u06f9' |
- '\u0966'..'\u096f' |
- '\u09e6'..'\u09ef' |
- '\u0a66'..'\u0a6f' |
- '\u0ae6'..'\u0aef' |
- '\u0b66'..'\u0b6f' |
- '\u0be7'..'\u0bef' |
- '\u0c66'..'\u0c6f' |
- '\u0ce6'..'\u0cef' |
- '\u0d66'..'\u0d6f' |
- '\u0e50'..'\u0e59' |
- '\u0ed0'..'\u0ed9' |
- '\u1040'..'\u1049'
- ;
-
-WS : (' '|'\r'|'\t'|'\u000C'|'\n') {$channel=HIDDEN;}
- ;
-
-COMMENT
- : '/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;}
- ;
-
-LINE_COMMENT
- : '//' ~('\n'|'\r')* ('\r'? '\n'|EOF) {$channel=HIDDEN;}
- ;
-
-
-REM_COMMENT_OUT
- : {!xpandMode}?=> LG 'REM' RG ( options {greedy=false;} : . )* '\u00ABENDREM' RG {$channel=HIDDEN;}
-;
-
-REM_COMMENT :
- {xpandMode}?=> 'REM' RG ( options {greedy=false;} : . )* '\u00ABENDREM' {$channel=HIDDEN;}
-;
-
-
-TEXT :
- {xpandMode}?=> RG ~(LG)* (LG)?
-;
-
-LG
- : '\u00AB';
-RG
- : '\u00BB';
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.tokens b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.tokens
deleted file mode 100644
index f6ef9e5..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3.tokens
+++ /dev/null
@@ -1,108 +0,0 @@
-IntLiteral=12
-Identifier=13
-HexDigit=17
-WS=20
-ENDDEFINE=7
-REM_COMMENT=24
-RG=5
-COMMENT=21
-StringLiteral=11
-LINE_COMMENT=22
-JavaIDDigit=19
-Letter=18
-DEFINE=6
-UnicodeEscape=15
-EscapeSequence=14
-TEXT=10
-ENDAROUND=9
-OctalEscape=16
-REM_COMMENT_OUT=23
-AROUND=8
-LG=4
-'<'=91
-'exists'=105
-'>'=90
-'case'=82
-'context'=58
-'FOREACH'=39
-'let'=72
-'else'=77
-'selectFirst'=103
-'ENDFILE'=42
-'-'=36
-'reexport'=30
-'?'=75
-'!='=87
-'List'=70
-'>='=88
-'GLOBALVAR'=95
-'ELSEIF'=48
-'<='=89
-'||'=83
-'ID'=55
-'typeSelect'=100
-'JAVA'=67
-'='=73
-'forAll'=108
-'ERROR'=37
-'collect'=101
-'::'=63
-'ENDIF'=47
-'ENDFOREACH'=45
-'ENDLET'=51
-'around'=62
-'{'=79
-'then'=76
-'SEPARATOR'=40
-'AS'=43
-'new'=96
-':'=61
-'.'=68
-'*'=33
-'sortBy'=107
-'ITERATOR'=44
-'Set'=71
-'notExists'=106
-'}'=81
-'->'=74
-'create'=66
-'PROTECT'=52
-'extension'=29
-'FOR'=35
-'CEND'=54
-';'=28
-']'=111
-'true'=98
-'default'=80
-'false'=97
-','=32
-'&&'=84
-'LET'=50
-'['=110
-'/'=93
-'implies'=85
-'ELSE'=49
-'IMPORT'=25
-'Collection'=69
-'reject'=104
-'private'=64
-'|'=109
-'EXTENSION'=26
-'EXPAND'=38
-')'=34
-'FILE'=41
-'=='=86
-'ENDPROTECT'=57
-'IF'=46
-'import'=27
-'!'=94
-'CSTART'=53
-'if'=59
-'DISABLE'=56
-'switch'=78
-'('=31
-'select'=102
-'cached'=65
-'null'=99
-'+'=92
-'WARNING'=60
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java
deleted file mode 100644
index 99d1168..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Lexer.java
+++ /dev/null
@@ -1,6041 +0,0 @@
-// $ANTLR 3.0.1 src/org/eclipse/xpand3/parser/Xpand3.g 2008-02-28 17:18:32
-
-package org.eclipse.xpand3.parser;
-
-
-import org.antlr.runtime.CharStream;
-import org.antlr.runtime.FailedPredicateException;
-import org.antlr.runtime.Lexer;
-import org.antlr.runtime.MismatchedSetException;
-import org.antlr.runtime.NoViableAltException;
-import org.antlr.runtime.RecognitionException;
-
-public class Xpand3Lexer extends Lexer {
- public static final int T29=29;
- public static final int HexDigit=17;
- public static final int T70=70;
- public static final int T74=74;
- public static final int REM_COMMENT=24;
- public static final int T85=85;
- public static final int T102=102;
- public static final int Letter=18;
- public static final int T103=103;
- public static final int T32=32;
- public static final int T81=81;
- public static final int T41=41;
- public static final int LG=4;
- public static final int T62=62;
- public static final int T109=109;
- public static final int T68=68;
- public static final int T73=73;
- public static final int T84=84;
- public static final int T33=33;
- public static final int Identifier=13;
- public static final int T78=78;
- public static final int WS=20;
- public static final int T42=42;
- public static final int RG=5;
- public static final int T96=96;
- public static final int T71=71;
- public static final int LINE_COMMENT=22;
- public static final int T72=72;
- public static final int T94=94;
- public static final int T76=76;
- public static final int UnicodeEscape=15;
- public static final int T75=75;
- public static final int T89=89;
- public static final int T67=67;
- public static final int TEXT=10;
- public static final int ENDAROUND=9;
- public static final int T31=31;
- public static final int T60=60;
- public static final int T82=82;
- public static final int T100=100;
- public static final int T49=49;
- public static final int T30=30;
- public static final int T79=79;
- public static final int IntLiteral=12;
- public static final int T36=36;
- public static final int T58=58;
- public static final int T93=93;
- public static final int T35=35;
- public static final int T107=107;
- public static final int T83=83;
- public static final int T61=61;
- public static final int T45=45;
- public static final int T34=34;
- public static final int T101=101;
- public static final int T64=64;
- public static final int T25=25;
- public static final int T91=91;
- public static final int T105=105;
- public static final int T37=37;
- public static final int T86=86;
- public static final int EscapeSequence=14;
- public static final int T26=26;
- public static final int T51=51;
- public static final int T111=111;
- public static final int T46=46;
- public static final int T77=77;
- public static final int T38=38;
- public static final int T106=106;
- public static final int T69=69;
- public static final int T39=39;
- public static final int T44=44;
- public static final int T55=55;
- public static final int T95=95;
- public static final int T50=50;
- public static final int T110=110;
- public static final int T108=108;
- public static final int T92=92;
- public static final int T43=43;
- public static final int ENDDEFINE=7;
- public static final int T28=28;
- public static final int T40=40;
- public static final int T66=66;
- public static final int COMMENT=21;
- public static final int T88=88;
- public static final int StringLiteral=11;
- public static final int T63=63;
- public static final int T57=57;
- public static final int T65=65;
- public static final int T98=98;
- public static final int T56=56;
- public static final int T87=87;
- public static final int T80=80;
- public static final int JavaIDDigit=19;
- public static final int DEFINE=6;
- public static final int T59=59;
- public static final int T97=97;
- public static final int T48=48;
- public static final int T54=54;
- public static final int EOF=-1;
- public static final int T104=104;
- public static final int T47=47;
- public static final int Tokens=112;
- public static final int T53=53;
- public static final int OctalEscape=16;
- public static final int T99=99;
- public static final int T27=27;
- public static final int REM_COMMENT_OUT=23;
- public static final int T52=52;
- public static final int T90=90;
- public static final int AROUND=8;
-
- private boolean xpandMode = false;
-
- public Xpand3Lexer() {;}
- public Xpand3Lexer(CharStream input) {
- super(input);
- }
- public String getGrammarFileName() { return "src/org/eclipse/xpand3/parser/Xpand3.g"; }
-
- // $ANTLR start T25
- public final void mT25() throws RecognitionException {
- try {
- int _type = T25;
- // src/org/eclipse/xpand3/parser/Xpand3.g:9:5: ( 'IMPORT' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:9:7: 'IMPORT'
- {
- match("IMPORT");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T25
-
- // $ANTLR start T26
- public final void mT26() throws RecognitionException {
- try {
- int _type = T26;
- // src/org/eclipse/xpand3/parser/Xpand3.g:10:5: ( 'EXTENSION' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:10:7: 'EXTENSION'
- {
- match("EXTENSION");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T26
-
- // $ANTLR start T27
- public final void mT27() throws RecognitionException {
- try {
- int _type = T27;
- // src/org/eclipse/xpand3/parser/Xpand3.g:11:5: ( 'import' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:11:7: 'import'
- {
- match("import");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T27
-
- // $ANTLR start T28
- public final void mT28() throws RecognitionException {
- try {
- int _type = T28;
- // src/org/eclipse/xpand3/parser/Xpand3.g:12:5: ( ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:12:7: ';'
- {
- match(';');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T28
-
- // $ANTLR start T29
- public final void mT29() throws RecognitionException {
- try {
- int _type = T29;
- // src/org/eclipse/xpand3/parser/Xpand3.g:13:5: ( 'extension' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:13:7: 'extension'
- {
- match("extension");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T29
-
- // $ANTLR start T30
- public final void mT30() throws RecognitionException {
- try {
- int _type = T30;
- // src/org/eclipse/xpand3/parser/Xpand3.g:14:5: ( 'reexport' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:14:7: 'reexport'
- {
- match("reexport");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T30
-
- // $ANTLR start T31
- public final void mT31() throws RecognitionException {
- try {
- int _type = T31;
- // src/org/eclipse/xpand3/parser/Xpand3.g:15:5: ( '(' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:15:7: '('
- {
- match('(');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T31
-
- // $ANTLR start T32
- public final void mT32() throws RecognitionException {
- try {
- int _type = T32;
- // src/org/eclipse/xpand3/parser/Xpand3.g:16:5: ( ',' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:16:7: ','
- {
- match(',');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T32
-
- // $ANTLR start T33
- public final void mT33() throws RecognitionException {
- try {
- int _type = T33;
- // src/org/eclipse/xpand3/parser/Xpand3.g:17:5: ( '*' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:17:7: '*'
- {
- match('*');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T33
-
- // $ANTLR start T34
- public final void mT34() throws RecognitionException {
- try {
- int _type = T34;
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:5: ( ')' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:7: ')'
- {
- match(')');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T34
-
- // $ANTLR start T35
- public final void mT35() throws RecognitionException {
- try {
- int _type = T35;
- // src/org/eclipse/xpand3/parser/Xpand3.g:19:5: ( 'FOR' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:19:7: 'FOR'
- {
- match("FOR");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T35
-
- // $ANTLR start T36
- public final void mT36() throws RecognitionException {
- try {
- int _type = T36;
- // src/org/eclipse/xpand3/parser/Xpand3.g:20:5: ( '-' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:20:7: '-'
- {
- match('-');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T36
-
- // $ANTLR start T37
- public final void mT37() throws RecognitionException {
- try {
- int _type = T37;
- // src/org/eclipse/xpand3/parser/Xpand3.g:21:5: ( 'ERROR' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:21:7: 'ERROR'
- {
- match("ERROR");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T37
-
- // $ANTLR start T38
- public final void mT38() throws RecognitionException {
- try {
- int _type = T38;
- // src/org/eclipse/xpand3/parser/Xpand3.g:22:5: ( 'EXPAND' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:22:7: 'EXPAND'
- {
- match("EXPAND");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T38
-
- // $ANTLR start T39
- public final void mT39() throws RecognitionException {
- try {
- int _type = T39;
- // src/org/eclipse/xpand3/parser/Xpand3.g:23:5: ( 'FOREACH' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:23:7: 'FOREACH'
- {
- match("FOREACH");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T39
-
- // $ANTLR start T40
- public final void mT40() throws RecognitionException {
- try {
- int _type = T40;
- // src/org/eclipse/xpand3/parser/Xpand3.g:24:5: ( 'SEPARATOR' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:24:7: 'SEPARATOR'
- {
- match("SEPARATOR");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T40
-
- // $ANTLR start T41
- public final void mT41() throws RecognitionException {
- try {
- int _type = T41;
- // src/org/eclipse/xpand3/parser/Xpand3.g:25:5: ( 'FILE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:25:7: 'FILE'
- {
- match("FILE");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T41
-
- // $ANTLR start T42
- public final void mT42() throws RecognitionException {
- try {
- int _type = T42;
- // src/org/eclipse/xpand3/parser/Xpand3.g:26:5: ( 'ENDFILE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:26:7: 'ENDFILE'
- {
- match("ENDFILE");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T42
-
- // $ANTLR start T43
- public final void mT43() throws RecognitionException {
- try {
- int _type = T43;
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:5: ( 'AS' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:7: 'AS'
- {
- match("AS");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T43
-
- // $ANTLR start T44
- public final void mT44() throws RecognitionException {
- try {
- int _type = T44;
- // src/org/eclipse/xpand3/parser/Xpand3.g:28:5: ( 'ITERATOR' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:28:7: 'ITERATOR'
- {
- match("ITERATOR");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T44
-
- // $ANTLR start T45
- public final void mT45() throws RecognitionException {
- try {
- int _type = T45;
- // src/org/eclipse/xpand3/parser/Xpand3.g:29:5: ( 'ENDFOREACH' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:29:7: 'ENDFOREACH'
- {
- match("ENDFOREACH");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T45
-
- // $ANTLR start T46
- public final void mT46() throws RecognitionException {
- try {
- int _type = T46;
- // src/org/eclipse/xpand3/parser/Xpand3.g:30:5: ( 'IF' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:30:7: 'IF'
- {
- match("IF");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T46
-
- // $ANTLR start T47
- public final void mT47() throws RecognitionException {
- try {
- int _type = T47;
- // src/org/eclipse/xpand3/parser/Xpand3.g:31:5: ( 'ENDIF' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:31:7: 'ENDIF'
- {
- match("ENDIF");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T47
-
- // $ANTLR start T48
- public final void mT48() throws RecognitionException {
- try {
- int _type = T48;
- // src/org/eclipse/xpand3/parser/Xpand3.g:32:5: ( 'ELSEIF' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:32:7: 'ELSEIF'
- {
- match("ELSEIF");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T48
-
- // $ANTLR start T49
- public final void mT49() throws RecognitionException {
- try {
- int _type = T49;
- // src/org/eclipse/xpand3/parser/Xpand3.g:33:5: ( 'ELSE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:33:7: 'ELSE'
- {
- match("ELSE");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T49
-
- // $ANTLR start T50
- public final void mT50() throws RecognitionException {
- try {
- int _type = T50;
- // src/org/eclipse/xpand3/parser/Xpand3.g:34:5: ( 'LET' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:34:7: 'LET'
- {
- match("LET");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T50
-
- // $ANTLR start T51
- public final void mT51() throws RecognitionException {
- try {
- int _type = T51;
- // src/org/eclipse/xpand3/parser/Xpand3.g:35:5: ( 'ENDLET' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:35:7: 'ENDLET'
- {
- match("ENDLET");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T51
-
- // $ANTLR start T52
- public final void mT52() throws RecognitionException {
- try {
- int _type = T52;
- // src/org/eclipse/xpand3/parser/Xpand3.g:36:5: ( 'PROTECT' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:36:7: 'PROTECT'
- {
- match("PROTECT");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T52
-
- // $ANTLR start T53
- public final void mT53() throws RecognitionException {
- try {
- int _type = T53;
- // src/org/eclipse/xpand3/parser/Xpand3.g:37:5: ( 'CSTART' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:37:7: 'CSTART'
- {
- match("CSTART");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T53
-
- // $ANTLR start T54
- public final void mT54() throws RecognitionException {
- try {
- int _type = T54;
- // src/org/eclipse/xpand3/parser/Xpand3.g:38:5: ( 'CEND' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:38:7: 'CEND'
- {
- match("CEND");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T54
-
- // $ANTLR start T55
- public final void mT55() throws RecognitionException {
- try {
- int _type = T55;
- // src/org/eclipse/xpand3/parser/Xpand3.g:39:5: ( 'ID' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:39:7: 'ID'
- {
- match("ID");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T55
-
- // $ANTLR start T56
- public final void mT56() throws RecognitionException {
- try {
- int _type = T56;
- // src/org/eclipse/xpand3/parser/Xpand3.g:40:5: ( 'DISABLE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:40:7: 'DISABLE'
- {
- match("DISABLE");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T56
-
- // $ANTLR start T57
- public final void mT57() throws RecognitionException {
- try {
- int _type = T57;
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:5: ( 'ENDPROTECT' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:7: 'ENDPROTECT'
- {
- match("ENDPROTECT");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T57
-
- // $ANTLR start T58
- public final void mT58() throws RecognitionException {
- try {
- int _type = T58;
- // src/org/eclipse/xpand3/parser/Xpand3.g:42:5: ( 'context' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:42:7: 'context'
- {
- match("context");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T58
-
- // $ANTLR start T59
- public final void mT59() throws RecognitionException {
- try {
- int _type = T59;
- // src/org/eclipse/xpand3/parser/Xpand3.g:43:5: ( 'if' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:43:7: 'if'
- {
- match("if");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T59
-
- // $ANTLR start T60
- public final void mT60() throws RecognitionException {
- try {
- int _type = T60;
- // src/org/eclipse/xpand3/parser/Xpand3.g:44:5: ( 'WARNING' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:44:7: 'WARNING'
- {
- match("WARNING");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T60
-
- // $ANTLR start T61
- public final void mT61() throws RecognitionException {
- try {
- int _type = T61;
- // src/org/eclipse/xpand3/parser/Xpand3.g:45:5: ( ':' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:45:7: ':'
- {
- match(':');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T61
-
- // $ANTLR start T62
- public final void mT62() throws RecognitionException {
- try {
- int _type = T62;
- // src/org/eclipse/xpand3/parser/Xpand3.g:46:5: ( 'around' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:46:7: 'around'
- {
- match("around");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T62
-
- // $ANTLR start T63
- public final void mT63() throws RecognitionException {
- try {
- int _type = T63;
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:5: ( '::' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:7: '::'
- {
- match("::");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T63
-
- // $ANTLR start T64
- public final void mT64() throws RecognitionException {
- try {
- int _type = T64;
- // src/org/eclipse/xpand3/parser/Xpand3.g:48:5: ( 'private' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:48:7: 'private'
- {
- match("private");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T64
-
- // $ANTLR start T65
- public final void mT65() throws RecognitionException {
- try {
- int _type = T65;
- // src/org/eclipse/xpand3/parser/Xpand3.g:49:5: ( 'cached' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:49:7: 'cached'
- {
- match("cached");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T65
-
- // $ANTLR start T66
- public final void mT66() throws RecognitionException {
- try {
- int _type = T66;
- // src/org/eclipse/xpand3/parser/Xpand3.g:50:5: ( 'create' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:50:7: 'create'
- {
- match("create");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T66
-
- // $ANTLR start T67
- public final void mT67() throws RecognitionException {
- try {
- int _type = T67;
- // src/org/eclipse/xpand3/parser/Xpand3.g:51:5: ( 'JAVA' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:51:7: 'JAVA'
- {
- match("JAVA");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T67
-
- // $ANTLR start T68
- public final void mT68() throws RecognitionException {
- try {
- int _type = T68;
- // src/org/eclipse/xpand3/parser/Xpand3.g:52:5: ( '.' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:52:7: '.'
- {
- match('.');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T68
-
- // $ANTLR start T69
- public final void mT69() throws RecognitionException {
- try {
- int _type = T69;
- // src/org/eclipse/xpand3/parser/Xpand3.g:53:5: ( 'Collection' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:53:7: 'Collection'
- {
- match("Collection");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T69
-
- // $ANTLR start T70
- public final void mT70() throws RecognitionException {
- try {
- int _type = T70;
- // src/org/eclipse/xpand3/parser/Xpand3.g:54:5: ( 'List' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:54:7: 'List'
- {
- match("List");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T70
-
- // $ANTLR start T71
- public final void mT71() throws RecognitionException {
- try {
- int _type = T71;
- // src/org/eclipse/xpand3/parser/Xpand3.g:55:5: ( 'Set' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:55:7: 'Set'
- {
- match("Set");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T71
-
- // $ANTLR start T72
- public final void mT72() throws RecognitionException {
- try {
- int _type = T72;
- // src/org/eclipse/xpand3/parser/Xpand3.g:56:5: ( 'let' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:56:7: 'let'
- {
- match("let");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T72
-
- // $ANTLR start T73
- public final void mT73() throws RecognitionException {
- try {
- int _type = T73;
- // src/org/eclipse/xpand3/parser/Xpand3.g:57:5: ( '=' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:57:7: '='
- {
- match('=');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T73
-
- // $ANTLR start T74
- public final void mT74() throws RecognitionException {
- try {
- int _type = T74;
- // src/org/eclipse/xpand3/parser/Xpand3.g:58:5: ( '->' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:58:7: '->'
- {
- match("->");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T74
-
- // $ANTLR start T75
- public final void mT75() throws RecognitionException {
- try {
- int _type = T75;
- // src/org/eclipse/xpand3/parser/Xpand3.g:59:5: ( '?' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:59:7: '?'
- {
- match('?');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T75
-
- // $ANTLR start T76
- public final void mT76() throws RecognitionException {
- try {
- int _type = T76;
- // src/org/eclipse/xpand3/parser/Xpand3.g:60:5: ( 'then' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:60:7: 'then'
- {
- match("then");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T76
-
- // $ANTLR start T77
- public final void mT77() throws RecognitionException {
- try {
- int _type = T77;
- // src/org/eclipse/xpand3/parser/Xpand3.g:61:5: ( 'else' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:61:7: 'else'
- {
- match("else");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T77
-
- // $ANTLR start T78
- public final void mT78() throws RecognitionException {
- try {
- int _type = T78;
- // src/org/eclipse/xpand3/parser/Xpand3.g:62:5: ( 'switch' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:62:7: 'switch'
- {
- match("switch");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T78
-
- // $ANTLR start T79
- public final void mT79() throws RecognitionException {
- try {
- int _type = T79;
- // src/org/eclipse/xpand3/parser/Xpand3.g:63:5: ( '{' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:63:7: '{'
- {
- match('{');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T79
-
- // $ANTLR start T80
- public final void mT80() throws RecognitionException {
- try {
- int _type = T80;
- // src/org/eclipse/xpand3/parser/Xpand3.g:64:5: ( 'default' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:64:7: 'default'
- {
- match("default");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T80
-
- // $ANTLR start T81
- public final void mT81() throws RecognitionException {
- try {
- int _type = T81;
- // src/org/eclipse/xpand3/parser/Xpand3.g:65:5: ( '}' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:65:7: '}'
- {
- match('}');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T81
-
- // $ANTLR start T82
- public final void mT82() throws RecognitionException {
- try {
- int _type = T82;
- // src/org/eclipse/xpand3/parser/Xpand3.g:66:5: ( 'case' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:66:7: 'case'
- {
- match("case");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T82
-
- // $ANTLR start T83
- public final void mT83() throws RecognitionException {
- try {
- int _type = T83;
- // src/org/eclipse/xpand3/parser/Xpand3.g:67:5: ( '||' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:67:7: '||'
- {
- match("||");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T83
-
- // $ANTLR start T84
- public final void mT84() throws RecognitionException {
- try {
- int _type = T84;
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:5: ( '&&' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:7: '&&'
- {
- match("&&");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T84
-
- // $ANTLR start T85
- public final void mT85() throws RecognitionException {
- try {
- int _type = T85;
- // src/org/eclipse/xpand3/parser/Xpand3.g:69:5: ( 'implies' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:69:7: 'implies'
- {
- match("implies");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T85
-
- // $ANTLR start T86
- public final void mT86() throws RecognitionException {
- try {
- int _type = T86;
- // src/org/eclipse/xpand3/parser/Xpand3.g:70:5: ( '==' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:70:7: '=='
- {
- match("==");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T86
-
- // $ANTLR start T87
- public final void mT87() throws RecognitionException {
- try {
- int _type = T87;
- // src/org/eclipse/xpand3/parser/Xpand3.g:71:5: ( '!=' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:71:7: '!='
- {
- match("!=");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T87
-
- // $ANTLR start T88
- public final void mT88() throws RecognitionException {
- try {
- int _type = T88;
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:5: ( '>=' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:7: '>='
- {
- match(">=");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T88
-
- // $ANTLR start T89
- public final void mT89() throws RecognitionException {
- try {
- int _type = T89;
- // src/org/eclipse/xpand3/parser/Xpand3.g:73:5: ( '<=' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:73:7: '<='
- {
- match("<=");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T89
-
- // $ANTLR start T90
- public final void mT90() throws RecognitionException {
- try {
- int _type = T90;
- // src/org/eclipse/xpand3/parser/Xpand3.g:74:5: ( '>' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:74:7: '>'
- {
- match('>');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T90
-
- // $ANTLR start T91
- public final void mT91() throws RecognitionException {
- try {
- int _type = T91;
- // src/org/eclipse/xpand3/parser/Xpand3.g:75:5: ( '<' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:75:7: '<'
- {
- match('<');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T91
-
- // $ANTLR start T92
- public final void mT92() throws RecognitionException {
- try {
- int _type = T92;
- // src/org/eclipse/xpand3/parser/Xpand3.g:76:5: ( '+' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:76:7: '+'
- {
- match('+');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T92
-
- // $ANTLR start T93
- public final void mT93() throws RecognitionException {
- try {
- int _type = T93;
- // src/org/eclipse/xpand3/parser/Xpand3.g:77:5: ( '/' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:77:7: '/'
- {
- match('/');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T93
-
- // $ANTLR start T94
- public final void mT94() throws RecognitionException {
- try {
- int _type = T94;
- // src/org/eclipse/xpand3/parser/Xpand3.g:78:5: ( '!' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:78:7: '!'
- {
- match('!');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T94
-
- // $ANTLR start T95
- public final void mT95() throws RecognitionException {
- try {
- int _type = T95;
- // src/org/eclipse/xpand3/parser/Xpand3.g:79:5: ( 'GLOBALVAR' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:79:7: 'GLOBALVAR'
- {
- match("GLOBALVAR");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T95
-
- // $ANTLR start T96
- public final void mT96() throws RecognitionException {
- try {
- int _type = T96;
- // src/org/eclipse/xpand3/parser/Xpand3.g:80:5: ( 'new' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:80:7: 'new'
- {
- match("new");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T96
-
- // $ANTLR start T97
- public final void mT97() throws RecognitionException {
- try {
- int _type = T97;
- // src/org/eclipse/xpand3/parser/Xpand3.g:81:5: ( 'false' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:81:7: 'false'
- {
- match("false");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T97
-
- // $ANTLR start T98
- public final void mT98() throws RecognitionException {
- try {
- int _type = T98;
- // src/org/eclipse/xpand3/parser/Xpand3.g:82:5: ( 'true' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:82:7: 'true'
- {
- match("true");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T98
-
- // $ANTLR start T99
- public final void mT99() throws RecognitionException {
- try {
- int _type = T99;
- // src/org/eclipse/xpand3/parser/Xpand3.g:83:5: ( 'null' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:83:7: 'null'
- {
- match("null");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T99
-
- // $ANTLR start T100
- public final void mT100() throws RecognitionException {
- try {
- int _type = T100;
- // src/org/eclipse/xpand3/parser/Xpand3.g:84:6: ( 'typeSelect' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:84:8: 'typeSelect'
- {
- match("typeSelect");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T100
-
- // $ANTLR start T101
- public final void mT101() throws RecognitionException {
- try {
- int _type = T101;
- // src/org/eclipse/xpand3/parser/Xpand3.g:85:6: ( 'collect' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:85:8: 'collect'
- {
- match("collect");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T101
-
- // $ANTLR start T102
- public final void mT102() throws RecognitionException {
- try {
- int _type = T102;
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:6: ( 'select' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:8: 'select'
- {
- match("select");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T102
-
- // $ANTLR start T103
- public final void mT103() throws RecognitionException {
- try {
- int _type = T103;
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:6: ( 'selectFirst' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:8: 'selectFirst'
- {
- match("selectFirst");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T103
-
- // $ANTLR start T104
- public final void mT104() throws RecognitionException {
- try {
- int _type = T104;
- // src/org/eclipse/xpand3/parser/Xpand3.g:88:6: ( 'reject' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:88:8: 'reject'
- {
- match("reject");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T104
-
- // $ANTLR start T105
- public final void mT105() throws RecognitionException {
- try {
- int _type = T105;
- // src/org/eclipse/xpand3/parser/Xpand3.g:89:6: ( 'exists' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:89:8: 'exists'
- {
- match("exists");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T105
-
- // $ANTLR start T106
- public final void mT106() throws RecognitionException {
- try {
- int _type = T106;
- // src/org/eclipse/xpand3/parser/Xpand3.g:90:6: ( 'notExists' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:90:8: 'notExists'
- {
- match("notExists");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T106
-
- // $ANTLR start T107
- public final void mT107() throws RecognitionException {
- try {
- int _type = T107;
- // src/org/eclipse/xpand3/parser/Xpand3.g:91:6: ( 'sortBy' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:91:8: 'sortBy'
- {
- match("sortBy");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T107
-
- // $ANTLR start T108
- public final void mT108() throws RecognitionException {
- try {
- int _type = T108;
- // src/org/eclipse/xpand3/parser/Xpand3.g:92:6: ( 'forAll' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:92:8: 'forAll'
- {
- match("forAll");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T108
-
- // $ANTLR start T109
- public final void mT109() throws RecognitionException {
- try {
- int _type = T109;
- // src/org/eclipse/xpand3/parser/Xpand3.g:93:6: ( '|' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:93:8: '|'
- {
- match('|');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T109
-
- // $ANTLR start T110
- public final void mT110() throws RecognitionException {
- try {
- int _type = T110;
- // src/org/eclipse/xpand3/parser/Xpand3.g:94:6: ( '[' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:94:8: '['
- {
- match('[');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T110
-
- // $ANTLR start T111
- public final void mT111() throws RecognitionException {
- try {
- int _type = T111;
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:6: ( ']' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:8: ']'
- {
- match(']');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end T111
-
- // $ANTLR start IntLiteral
- public final void mIntLiteral() throws RecognitionException {
- try {
- int _type = IntLiteral;
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:12: ( ( '0' | '1' .. '9' ( '0' .. '9' )* ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0=='0') ) {
- alt2=1;
- }
- else if ( ((LA2_0>='1' && LA2_0<='9')) ) {
- alt2=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("357:14: ( '0' | '1' .. '9' ( '0' .. '9' )* )", 2, 0, input);
-
- throw nvae;
- }
- switch (alt2) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:15: '0'
- {
- match('0');
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:21: '1' .. '9' ( '0' .. '9' )*
- {
- matchRange('1','9');
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:30: ( '0' .. '9' )*
- loop1:
- do {
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( ((LA1_0>='0' && LA1_0<='9')) ) {
- alt1=1;
- }
-
-
- switch (alt1) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:357:30: '0' .. '9'
- {
- matchRange('0','9');
-
- }
- break;
-
- default :
- break loop1;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end IntLiteral
-
- // $ANTLR start StringLiteral
- public final void mStringLiteral() throws RecognitionException {
- try {
- int _type = StringLiteral;
- // src/org/eclipse/xpand3/parser/Xpand3.g:360:5: ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' )
- int alt5=2;
- int LA5_0 = input.LA(1);
-
- if ( (LA5_0=='\"') ) {
- alt5=1;
- }
- else if ( (LA5_0=='\'') ) {
- alt5=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("359:1: StringLiteral : ( '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\'' );", 5, 0, input);
-
- throw nvae;
- }
- switch (alt5) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:360:8: '\"' ( EscapeSequence | ~ ( '\\\\' | '\"' ) )* '\"'
- {
- match('\"');
- // src/org/eclipse/xpand3/parser/Xpand3.g:360:12: ( EscapeSequence | ~ ( '\\\\' | '\"' ) )*
- loop3:
- do {
- int alt3=3;
- int LA3_0 = input.LA(1);
-
- if ( (LA3_0=='\\') ) {
- alt3=1;
- }
- else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=']' && LA3_0<='\uFFFE')) ) {
- alt3=2;
- }
-
-
- switch (alt3) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:360:14: EscapeSequence
- {
- mEscapeSequence();
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:360:31: ~ ( '\\\\' | '\"' )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop3;
- }
- } while (true);
-
- match('\"');
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:361:8: '\\'' ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )* '\\''
- {
- match('\'');
- // src/org/eclipse/xpand3/parser/Xpand3.g:361:13: ( EscapeSequence | ~ ( '\\'' | '\\\\' ) )*
- loop4:
- do {
- int alt4=3;
- int LA4_0 = input.LA(1);
-
- if ( (LA4_0=='\\') ) {
- alt4=1;
- }
- else if ( ((LA4_0>='\u0000' && LA4_0<='&')||(LA4_0>='(' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFE')) ) {
- alt4=2;
- }
-
-
- switch (alt4) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:361:15: EscapeSequence
- {
- mEscapeSequence();
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:361:32: ~ ( '\\'' | '\\\\' )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop4;
- }
- } while (true);
-
- match('\'');
-
- }
- break;
-
- }
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end StringLiteral
-
- // $ANTLR start EscapeSequence
- public final void mEscapeSequence() throws RecognitionException {
- try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape )
- int alt6=3;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0=='\\') ) {
- switch ( input.LA(2) ) {
- case '\"':
- case '\'':
- case '\\':
- case 'b':
- case 'f':
- case 'n':
- case 'r':
- case 't':
- {
- alt6=1;
- }
- break;
- case 'u':
- {
- alt6=2;
- }
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- {
- alt6=3;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("364:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 1, input);
-
- throw nvae;
- }
-
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("364:1: fragment EscapeSequence : ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UnicodeEscape | OctalEscape );", 6, 0, input);
-
- throw nvae;
- }
- switch (alt6) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:366:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:367:9: UnicodeEscape
- {
- mUnicodeEscape();
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:368:9: OctalEscape
- {
- mOctalEscape();
-
- }
- break;
-
- }
- }
- finally {
- }
- }
- // $ANTLR end EscapeSequence
-
- // $ANTLR start OctalEscape
- public final void mOctalEscape() throws RecognitionException {
- try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
- int alt7=3;
- int LA7_0 = input.LA(1);
-
- if ( (LA7_0=='\\') ) {
- int LA7_1 = input.LA(2);
-
- if ( ((LA7_1>='0' && LA7_1<='3')) ) {
- int LA7_2 = input.LA(3);
-
- if ( ((LA7_2>='0' && LA7_2<='7')) ) {
- int LA7_5 = input.LA(4);
-
- if ( ((LA7_5>='0' && LA7_5<='7')) ) {
- alt7=1;
- }
- else {
- alt7=2;}
- }
- else {
- alt7=3;}
- }
- else if ( ((LA7_1>='4' && LA7_1<='7')) ) {
- int LA7_3 = input.LA(3);
-
- if ( ((LA7_3>='0' && LA7_3<='7')) ) {
- alt7=2;
- }
- else {
- alt7=3;}
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("371:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("371:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 7, 0, input);
-
- throw nvae;
- }
- switch (alt7) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
- {
- match('\\');
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:14: ( '0' .. '3' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:15: '0' .. '3'
- {
- matchRange('0','3');
-
- }
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:25: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:26: '0' .. '7'
- {
- matchRange('0','7');
-
- }
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:36: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:373:37: '0' .. '7'
- {
- matchRange('0','7');
-
- }
-
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:374:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
- {
- match('\\');
- // src/org/eclipse/xpand3/parser/Xpand3.g:374:14: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:374:15: '0' .. '7'
- {
- matchRange('0','7');
-
- }
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:374:25: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:374:26: '0' .. '7'
- {
- matchRange('0','7');
-
- }
-
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:375:9: '\\\\' ( '0' .. '7' )
- {
- match('\\');
- // src/org/eclipse/xpand3/parser/Xpand3.g:375:14: ( '0' .. '7' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:375:15: '0' .. '7'
- {
- matchRange('0','7');
-
- }
-
-
- }
- break;
-
- }
- }
- finally {
- }
- }
- // $ANTLR end OctalEscape
-
- // $ANTLR start UnicodeEscape
- public final void mUnicodeEscape() throws RecognitionException {
- try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:380:5: ( '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit )
- // src/org/eclipse/xpand3/parser/Xpand3.g:380:9: '\\\\' 'u' HexDigit HexDigit HexDigit HexDigit
- {
- match('\\');
- match('u');
- mHexDigit();
- mHexDigit();
- mHexDigit();
- mHexDigit();
-
- }
-
- }
- finally {
- }
- }
- // $ANTLR end UnicodeEscape
-
- // $ANTLR start HexDigit
- public final void mHexDigit() throws RecognitionException {
- try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:383:10: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:383:12: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
-
- }
- finally {
- }
- }
- // $ANTLR end HexDigit
-
- // $ANTLR start DEFINE
- public final void mDEFINE() throws RecognitionException {
- try {
- int _type = DEFINE;
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:9: ( 'DEFINE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:386:11: 'DEFINE'
- {
- xpandMode=true;
- match("DEFINE");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end DEFINE
-
- // $ANTLR start ENDDEFINE
- public final void mENDDEFINE() throws RecognitionException {
- try {
- int _type = ENDDEFINE;
- // src/org/eclipse/xpand3/parser/Xpand3.g:388:2: ( 'ENDDEFINE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:388:4: 'ENDDEFINE'
- {
- match("ENDDEFINE");
-
- xpandMode=false;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end ENDDEFINE
-
- // $ANTLR start AROUND
- public final void mAROUND() throws RecognitionException {
- try {
- int _type = AROUND;
- // src/org/eclipse/xpand3/parser/Xpand3.g:390:9: ( 'AROUND' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:390:11: 'AROUND'
- {
- xpandMode=true;
- match("AROUND");
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end AROUND
-
- // $ANTLR start ENDAROUND
- public final void mENDAROUND() throws RecognitionException {
- try {
- int _type = ENDAROUND;
- // src/org/eclipse/xpand3/parser/Xpand3.g:391:11: ( 'ENDAROUND' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:391:13: 'ENDAROUND'
- {
- match("ENDAROUND");
-
- xpandMode=false;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end ENDAROUND
-
- // $ANTLR start Identifier
- public final void mIdentifier() throws RecognitionException {
- try {
- int _type = Identifier;
- // src/org/eclipse/xpand3/parser/Xpand3.g:394:5: ( ( '^' )? Letter ( Letter | JavaIDDigit )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:394:9: ( '^' )? Letter ( Letter | JavaIDDigit )*
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:394:9: ( '^' )?
- int alt8=2;
- int LA8_0 = input.LA(1);
-
- if ( (LA8_0=='^') ) {
- alt8=1;
- }
- switch (alt8) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:394:10: '^'
- {
- match('^');
-
- }
- break;
-
- }
-
- mLetter();
- // src/org/eclipse/xpand3/parser/Xpand3.g:394:23: ( Letter | JavaIDDigit )*
- loop9:
- do {
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0=='$'||(LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')||(LA9_0>='\u00C0' && LA9_0<='\u00D6')||(LA9_0>='\u00D8' && LA9_0<='\u00F6')||(LA9_0>='\u00F8' && LA9_0<='\u1FFF')||(LA9_0>='\u3040' && LA9_0<='\u318F')||(LA9_0>='\u3300' && LA9_0<='\u337F')||(LA9_0>='\u3400' && LA9_0<='\u3D2D')||(LA9_0>='\u4E00' && LA9_0<='\u9FFF')||(LA9_0>='\uF900' && LA9_0<='\uFAFF')) ) {
- alt9=1;
- }
-
-
- switch (alt9) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:
- {
- if ( input.LA(1)=='$'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00D6')||(input.LA(1)>='\u00D8' && input.LA(1)<='\u00F6')||(input.LA(1)>='\u00F8' && input.LA(1)<='\u1FFF')||(input.LA(1)>='\u3040' && input.LA(1)<='\u318F')||(input.LA(1)>='\u3300' && input.LA(1)<='\u337F')||(input.LA(1)>='\u3400' && input.LA(1)<='\u3D2D')||(input.LA(1)>='\u4E00' && input.LA(1)<='\u9FFF')||(input.LA(1)>='\uF900' && input.LA(1)<='\uFAFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop9;
- }
- } while (true);
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end Identifier
-
- // $ANTLR start Letter
- public final void mLetter() throws RecognitionException {
- try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:399:5: ( '\\u0024' | '\\u0041' .. '\\u005a' | '\\u005f' | '\\u0061' .. '\\u007a' | '\\u00c0' .. '\\u00d6' | '\\u00d8' .. '\\u00f6' | '\\u00f8' .. '\\u00ff' | '\\u0100' .. '\\u1fff' | '\\u3040' .. '\\u318f' | '\\u3300' .. '\\u337f' | '\\u3400' .. '\\u3d2d' | '\\u4e00' .. '\\u9fff' | '\\uf900' .. '\\ufaff' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:
- {
- if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00D6')||(input.LA(1)>='\u00D8' && input.LA(1)<='\u00F6')||(input.LA(1)>='\u00F8' && input.LA(1)<='\u1FFF')||(input.LA(1)>='\u3040' && input.LA(1)<='\u318F')||(input.LA(1)>='\u3300' && input.LA(1)<='\u337F')||(input.LA(1)>='\u3400' && input.LA(1)<='\u3D2D')||(input.LA(1)>='\u4E00' && input.LA(1)<='\u9FFF')||(input.LA(1)>='\uF900' && input.LA(1)<='\uFAFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
-
- }
- finally {
- }
- }
- // $ANTLR end Letter
-
- // $ANTLR start JavaIDDigit
- public final void mJavaIDDigit() throws RecognitionException {
- try {
- // src/org/eclipse/xpand3/parser/Xpand3.g:416:5: ( '\\u0030' .. '\\u0039' | '\\u0660' .. '\\u0669' | '\\u06f0' .. '\\u06f9' | '\\u0966' .. '\\u096f' | '\\u09e6' .. '\\u09ef' | '\\u0a66' .. '\\u0a6f' | '\\u0ae6' .. '\\u0aef' | '\\u0b66' .. '\\u0b6f' | '\\u0be7' .. '\\u0bef' | '\\u0c66' .. '\\u0c6f' | '\\u0ce6' .. '\\u0cef' | '\\u0d66' .. '\\u0d6f' | '\\u0e50' .. '\\u0e59' | '\\u0ed0' .. '\\u0ed9' | '\\u1040' .. '\\u1049' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='\u0660' && input.LA(1)<='\u0669')||(input.LA(1)>='\u06F0' && input.LA(1)<='\u06F9')||(input.LA(1)>='\u0966' && input.LA(1)<='\u096F')||(input.LA(1)>='\u09E6' && input.LA(1)<='\u09EF')||(input.LA(1)>='\u0A66' && input.LA(1)<='\u0A6F')||(input.LA(1)>='\u0AE6' && input.LA(1)<='\u0AEF')||(input.LA(1)>='\u0B66' && input.LA(1)<='\u0B6F')||(input.LA(1)>='\u0BE7' && input.LA(1)<='\u0BEF')||(input.LA(1)>='\u0C66' && input.LA(1)<='\u0C6F')||(input.LA(1)>='\u0CE6' && input.LA(1)<='\u0CEF')||(input.LA(1)>='\u0D66' && input.LA(1)<='\u0D6F')||(input.LA(1)>='\u0E50' && input.LA(1)<='\u0E59')||(input.LA(1)>='\u0ED0' && input.LA(1)<='\u0ED9')||(input.LA(1)>='\u1040' && input.LA(1)<='\u1049') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
-
- }
- finally {
- }
- }
- // $ANTLR end JavaIDDigit
-
- // $ANTLR start WS
- public final void mWS() throws RecognitionException {
- try {
- int _type = WS;
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:5: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:433:8: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' )
- {
- if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||(input.LA(1)>='\f' && input.LA(1)<='\r')||input.LA(1)==' ' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
- channel=HIDDEN;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end WS
-
- // $ANTLR start COMMENT
- public final void mCOMMENT() throws RecognitionException {
- try {
- int _type = COMMENT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:437:5: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:437:9: '/*' ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:437:14: ( options {greedy=false; } : . )*
- loop10:
- do {
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0=='*') ) {
- int LA10_1 = input.LA(2);
-
- if ( (LA10_1=='/') ) {
- alt10=2;
- }
- else if ( ((LA10_1>='\u0000' && LA10_1<='.')||(LA10_1>='0' && LA10_1<='\uFFFE')) ) {
- alt10=1;
- }
-
-
- }
- else if ( ((LA10_0>='\u0000' && LA10_0<=')')||(LA10_0>='+' && LA10_0<='\uFFFE')) ) {
- alt10=1;
- }
-
-
- switch (alt10) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:437:42: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop10;
- }
- } while (true);
-
- match("*/");
-
- channel=HIDDEN;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end COMMENT
-
- // $ANTLR start LINE_COMMENT
- public final void mLINE_COMMENT() throws RecognitionException {
- try {
- int _type = LINE_COMMENT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:5: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF ) )
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:7: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' | EOF )
- {
- match("//");
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:12: (~ ( '\\n' | '\\r' ) )*
- loop11:
- do {
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( ((LA11_0>='\u0000' && LA11_0<='\t')||(LA11_0>='\u000B' && LA11_0<='\f')||(LA11_0>='\u000E' && LA11_0<='\uFFFE')) ) {
- alt11=1;
- }
-
-
- switch (alt11) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:12: ~ ( '\\n' | '\\r' )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFE') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop11;
- }
- } while (true);
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:26: ( ( '\\r' )? '\\n' | EOF )
- int alt13=2;
- int LA13_0 = input.LA(1);
-
- if ( (LA13_0=='\n'||LA13_0=='\r') ) {
- alt13=1;
- }
- else {
- alt13=2;}
- switch (alt13) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:27: ( '\\r' )? '\\n'
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:27: ( '\\r' )?
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0=='\r') ) {
- alt12=1;
- }
- switch (alt12) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:27: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:441:38: EOF
- {
- match(EOF);
-
- }
- break;
-
- }
-
- channel=HIDDEN;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end LINE_COMMENT
-
- // $ANTLR start REM_COMMENT_OUT
- public final void mREM_COMMENT_OUT() throws RecognitionException {
- try {
- int _type = REM_COMMENT_OUT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:446:2: ({...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG )
- // src/org/eclipse/xpand3/parser/Xpand3.g:446:4: {...}? => LG 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' RG
- {
- if ( !(!xpandMode) ) {
- throw new FailedPredicateException(input, "REM_COMMENT_OUT", "!xpandMode");
- }
- mLG();
- match("REM");
-
- mRG();
- // src/org/eclipse/xpand3/parser/Xpand3.g:446:32: ( options {greedy=false; } : . )*
- loop14:
- do {
- int alt14=2;
- int LA14_0 = input.LA(1);
-
- if ( (LA14_0=='\u00AB') ) {
- int LA14_1 = input.LA(2);
-
- if ( (LA14_1=='E') ) {
- int LA14_3 = input.LA(3);
-
- if ( (LA14_3=='N') ) {
- int LA14_4 = input.LA(4);
-
- if ( (LA14_4=='D') ) {
- int LA14_5 = input.LA(5);
-
- if ( (LA14_5=='R') ) {
- int LA14_6 = input.LA(6);
-
- if ( (LA14_6=='E') ) {
- int LA14_7 = input.LA(7);
-
- if ( (LA14_7=='M') ) {
- int LA14_8 = input.LA(8);
-
- if ( (LA14_8=='\u00BB') ) {
- alt14=2;
- }
- else if ( ((LA14_8>='\u0000' && LA14_8<='\u00BA')||(LA14_8>='\u00BC' && LA14_8<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_7>='\u0000' && LA14_7<='L')||(LA14_7>='N' && LA14_7<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_6>='\u0000' && LA14_6<='D')||(LA14_6>='F' && LA14_6<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_5>='\u0000' && LA14_5<='Q')||(LA14_5>='S' && LA14_5<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_4>='\u0000' && LA14_4<='C')||(LA14_4>='E' && LA14_4<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_3>='\u0000' && LA14_3<='M')||(LA14_3>='O' && LA14_3<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_1>='\u0000' && LA14_1<='D')||(LA14_1>='F' && LA14_1<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- }
- else if ( ((LA14_0>='\u0000' && LA14_0<='\u00AA')||(LA14_0>='\u00AC' && LA14_0<='\uFFFE')) ) {
- alt14=1;
- }
-
-
- switch (alt14) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:446:60: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop14;
- }
- } while (true);
-
- match("\u00ABENDREM");
-
- mRG();
- channel=HIDDEN;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end REM_COMMENT_OUT
-
- // $ANTLR start REM_COMMENT
- public final void mREM_COMMENT() throws RecognitionException {
- try {
- int _type = REM_COMMENT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:449:13: ({...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:450:2: {...}? => 'REM' RG ( options {greedy=false; } : . )* '\\u00ABENDREM'
- {
- if ( !(xpandMode) ) {
- throw new FailedPredicateException(input, "REM_COMMENT", "xpandMode");
- }
- match("REM");
-
- mRG();
- // src/org/eclipse/xpand3/parser/Xpand3.g:450:26: ( options {greedy=false; } : . )*
- loop15:
- do {
- int alt15=2;
- int LA15_0 = input.LA(1);
-
- if ( (LA15_0=='\u00AB') ) {
- int LA15_1 = input.LA(2);
-
- if ( (LA15_1=='E') ) {
- int LA15_3 = input.LA(3);
-
- if ( (LA15_3=='N') ) {
- int LA15_4 = input.LA(4);
-
- if ( (LA15_4=='D') ) {
- int LA15_5 = input.LA(5);
-
- if ( (LA15_5=='R') ) {
- int LA15_6 = input.LA(6);
-
- if ( (LA15_6=='E') ) {
- int LA15_7 = input.LA(7);
-
- if ( (LA15_7=='M') ) {
- alt15=2;
- }
- else if ( ((LA15_7>='\u0000' && LA15_7<='L')||(LA15_7>='N' && LA15_7<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- }
- else if ( ((LA15_6>='\u0000' && LA15_6<='D')||(LA15_6>='F' && LA15_6<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- }
- else if ( ((LA15_5>='\u0000' && LA15_5<='Q')||(LA15_5>='S' && LA15_5<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- }
- else if ( ((LA15_4>='\u0000' && LA15_4<='C')||(LA15_4>='E' && LA15_4<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- }
- else if ( ((LA15_3>='\u0000' && LA15_3<='M')||(LA15_3>='O' && LA15_3<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- }
- else if ( ((LA15_1>='\u0000' && LA15_1<='D')||(LA15_1>='F' && LA15_1<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- }
- else if ( ((LA15_0>='\u0000' && LA15_0<='\u00AA')||(LA15_0>='\u00AC' && LA15_0<='\uFFFE')) ) {
- alt15=1;
- }
-
-
- switch (alt15) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:450:54: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop15;
- }
- } while (true);
-
- match("\u00ABENDREM");
-
- channel=HIDDEN;
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end REM_COMMENT
-
- // $ANTLR start TEXT
- public final void mTEXT() throws RecognitionException {
- try {
- int _type = TEXT;
- // src/org/eclipse/xpand3/parser/Xpand3.g:454:6: ({...}? => RG (~ ( LG ) )* ( LG )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:455:3: {...}? => RG (~ ( LG ) )* ( LG )?
- {
- if ( !(xpandMode) ) {
- throw new FailedPredicateException(input, "TEXT", "xpandMode");
- }
- mRG();
- // src/org/eclipse/xpand3/parser/Xpand3.g:455:21: (~ ( LG ) )*
- loop16:
- do {
- int alt16=2;
- int LA16_0 = input.LA(1);
-
- if ( ((LA16_0>='\u0000' && LA16_0<='\u00AA')||(LA16_0>='\u00AC' && LA16_0<='\uFFFE')) ) {
- alt16=1;
- }
-
-
- switch (alt16) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:455:21: ~ ( LG )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='\u00AA')||(input.LA(1)>='\u00AC' && input.LA(1)<='\uFFFE') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recover(mse); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop16;
- }
- } while (true);
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:455:28: ( LG )?
- int alt17=2;
- int LA17_0 = input.LA(1);
-
- if ( (LA17_0=='\u00AB') ) {
- alt17=1;
- }
- switch (alt17) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:455:29: LG
- {
- mLG();
-
- }
- break;
-
- }
-
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end TEXT
-
- // $ANTLR start LG
- public final void mLG() throws RecognitionException {
- try {
- int _type = LG;
- // src/org/eclipse/xpand3/parser/Xpand3.g:459:2: ( '\\u00AB' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:459:4: '\\u00AB'
- {
- match('\u00AB');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end LG
-
- // $ANTLR start RG
- public final void mRG() throws RecognitionException {
- try {
- int _type = RG;
- // src/org/eclipse/xpand3/parser/Xpand3.g:461:2: ( '\\u00BB' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:461:4: '\\u00BB'
- {
- match('\u00BB');
-
- }
-
- this.type = _type;
- }
- finally {
- }
- }
- // $ANTLR end RG
-
- public void mTokens() throws RecognitionException {
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:8: ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | T77 | T78 | T79 | T80 | T81 | T82 | T83 | T84 | T85 | T86 | T87 | T88 | T89 | T90 | T91 | T92 | T93 | T94 | T95 | T96 | T97 | T98 | T99 | T100 | T101 | T102 | T103 | T104 | T105 | T106 | T107 | T108 | T109 | T110 | T111 | IntLiteral | StringLiteral | DEFINE | ENDDEFINE | AROUND | ENDAROUND | Identifier | WS | COMMENT | LINE_COMMENT | REM_COMMENT_OUT | REM_COMMENT | TEXT | LG | RG )
- int alt18=102;
- int LA18_0 = input.LA(1);
-
- if ( (LA18_0=='I') ) {
- switch ( input.LA(2) ) {
- case 'F':
- {
- int LA18_53 = input.LA(3);
-
- if ( (LA18_53=='$'||(LA18_53>='0' && LA18_53<='9')||(LA18_53>='A' && LA18_53<='Z')||LA18_53=='_'||(LA18_53>='a' && LA18_53<='z')||(LA18_53>='\u00C0' && LA18_53<='\u00D6')||(LA18_53>='\u00D8' && LA18_53<='\u00F6')||(LA18_53>='\u00F8' && LA18_53<='\u1FFF')||(LA18_53>='\u3040' && LA18_53<='\u318F')||(LA18_53>='\u3300' && LA18_53<='\u337F')||(LA18_53>='\u3400' && LA18_53<='\u3D2D')||(LA18_53>='\u4E00' && LA18_53<='\u9FFF')||(LA18_53>='\uF900' && LA18_53<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=22;}
- }
- break;
- case 'D':
- {
- int LA18_54 = input.LA(3);
-
- if ( (LA18_54=='$'||(LA18_54>='0' && LA18_54<='9')||(LA18_54>='A' && LA18_54<='Z')||LA18_54=='_'||(LA18_54>='a' && LA18_54<='z')||(LA18_54>='\u00C0' && LA18_54<='\u00D6')||(LA18_54>='\u00D8' && LA18_54<='\u00F6')||(LA18_54>='\u00F8' && LA18_54<='\u1FFF')||(LA18_54>='\u3040' && LA18_54<='\u318F')||(LA18_54>='\u3300' && LA18_54<='\u337F')||(LA18_54>='\u3400' && LA18_54<='\u3D2D')||(LA18_54>='\u4E00' && LA18_54<='\u9FFF')||(LA18_54>='\uF900' && LA18_54<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=31;}
- }
- break;
- case 'T':
- {
- int LA18_55 = input.LA(3);
-
- if ( (LA18_55=='E') ) {
- int LA18_125 = input.LA(4);
-
- if ( (LA18_125=='R') ) {
- int LA18_178 = input.LA(5);
-
- if ( (LA18_178=='A') ) {
- int LA18_235 = input.LA(6);
-
- if ( (LA18_235=='T') ) {
- int LA18_288 = input.LA(7);
-
- if ( (LA18_288=='O') ) {
- int LA18_331 = input.LA(8);
-
- if ( (LA18_331=='R') ) {
- int LA18_372 = input.LA(9);
-
- if ( (LA18_372=='$'||(LA18_372>='0' && LA18_372<='9')||(LA18_372>='A' && LA18_372<='Z')||LA18_372=='_'||(LA18_372>='a' && LA18_372<='z')||(LA18_372>='\u00C0' && LA18_372<='\u00D6')||(LA18_372>='\u00D8' && LA18_372<='\u00F6')||(LA18_372>='\u00F8' && LA18_372<='\u1FFF')||(LA18_372>='\u3040' && LA18_372<='\u318F')||(LA18_372>='\u3300' && LA18_372<='\u337F')||(LA18_372>='\u3400' && LA18_372<='\u3D2D')||(LA18_372>='\u4E00' && LA18_372<='\u9FFF')||(LA18_372>='\uF900' && LA18_372<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=20;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'M':
- {
- int LA18_56 = input.LA(3);
-
- if ( (LA18_56=='P') ) {
- int LA18_126 = input.LA(4);
-
- if ( (LA18_126=='O') ) {
- int LA18_179 = input.LA(5);
-
- if ( (LA18_179=='R') ) {
- int LA18_236 = input.LA(6);
-
- if ( (LA18_236=='T') ) {
- int LA18_289 = input.LA(7);
-
- if ( (LA18_289=='$'||(LA18_289>='0' && LA18_289<='9')||(LA18_289>='A' && LA18_289<='Z')||LA18_289=='_'||(LA18_289>='a' && LA18_289<='z')||(LA18_289>='\u00C0' && LA18_289<='\u00D6')||(LA18_289>='\u00D8' && LA18_289<='\u00F6')||(LA18_289>='\u00F8' && LA18_289<='\u1FFF')||(LA18_289>='\u3040' && LA18_289<='\u318F')||(LA18_289>='\u3300' && LA18_289<='\u337F')||(LA18_289>='\u3400' && LA18_289<='\u3D2D')||(LA18_289>='\u4E00' && LA18_289<='\u9FFF')||(LA18_289>='\uF900' && LA18_289<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=1;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='E') ) {
- switch ( input.LA(2) ) {
- case 'N':
- {
- int LA18_57 = input.LA(3);
-
- if ( (LA18_57=='D') ) {
- switch ( input.LA(4) ) {
- case 'P':
- {
- int LA18_180 = input.LA(5);
-
- if ( (LA18_180=='R') ) {
- int LA18_237 = input.LA(6);
-
- if ( (LA18_237=='O') ) {
- int LA18_290 = input.LA(7);
-
- if ( (LA18_290=='T') ) {
- int LA18_333 = input.LA(8);
-
- if ( (LA18_333=='E') ) {
- int LA18_373 = input.LA(9);
-
- if ( (LA18_373=='C') ) {
- int LA18_397 = input.LA(10);
-
- if ( (LA18_397=='T') ) {
- int LA18_410 = input.LA(11);
-
- if ( (LA18_410=='$'||(LA18_410>='0' && LA18_410<='9')||(LA18_410>='A' && LA18_410<='Z')||LA18_410=='_'||(LA18_410>='a' && LA18_410<='z')||(LA18_410>='\u00C0' && LA18_410<='\u00D6')||(LA18_410>='\u00D8' && LA18_410<='\u00F6')||(LA18_410>='\u00F8' && LA18_410<='\u1FFF')||(LA18_410>='\u3040' && LA18_410<='\u318F')||(LA18_410>='\u3300' && LA18_410<='\u337F')||(LA18_410>='\u3400' && LA18_410<='\u3D2D')||(LA18_410>='\u4E00' && LA18_410<='\u9FFF')||(LA18_410>='\uF900' && LA18_410<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=33;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'D':
- {
- int LA18_181 = input.LA(5);
-
- if ( (LA18_181=='E') ) {
- int LA18_238 = input.LA(6);
-
- if ( (LA18_238=='F') ) {
- int LA18_291 = input.LA(7);
-
- if ( (LA18_291=='I') ) {
- int LA18_334 = input.LA(8);
-
- if ( (LA18_334=='N') ) {
- int LA18_374 = input.LA(9);
-
- if ( (LA18_374=='E') ) {
- int LA18_398 = input.LA(10);
-
- if ( (LA18_398=='$'||(LA18_398>='0' && LA18_398<='9')||(LA18_398>='A' && LA18_398<='Z')||LA18_398=='_'||(LA18_398>='a' && LA18_398<='z')||(LA18_398>='\u00C0' && LA18_398<='\u00D6')||(LA18_398>='\u00D8' && LA18_398<='\u00F6')||(LA18_398>='\u00F8' && LA18_398<='\u1FFF')||(LA18_398>='\u3040' && LA18_398<='\u318F')||(LA18_398>='\u3300' && LA18_398<='\u337F')||(LA18_398>='\u3400' && LA18_398<='\u3D2D')||(LA18_398>='\u4E00' && LA18_398<='\u9FFF')||(LA18_398>='\uF900' && LA18_398<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=91;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'L':
- {
- int LA18_182 = input.LA(5);
-
- if ( (LA18_182=='E') ) {
- int LA18_239 = input.LA(6);
-
- if ( (LA18_239=='T') ) {
- int LA18_292 = input.LA(7);
-
- if ( (LA18_292=='$'||(LA18_292>='0' && LA18_292<='9')||(LA18_292>='A' && LA18_292<='Z')||LA18_292=='_'||(LA18_292>='a' && LA18_292<='z')||(LA18_292>='\u00C0' && LA18_292<='\u00D6')||(LA18_292>='\u00D8' && LA18_292<='\u00F6')||(LA18_292>='\u00F8' && LA18_292<='\u1FFF')||(LA18_292>='\u3040' && LA18_292<='\u318F')||(LA18_292>='\u3300' && LA18_292<='\u337F')||(LA18_292>='\u3400' && LA18_292<='\u3D2D')||(LA18_292>='\u4E00' && LA18_292<='\u9FFF')||(LA18_292>='\uF900' && LA18_292<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=27;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'A':
- {
- int LA18_183 = input.LA(5);
-
- if ( (LA18_183=='R') ) {
- int LA18_240 = input.LA(6);
-
- if ( (LA18_240=='O') ) {
- int LA18_293 = input.LA(7);
-
- if ( (LA18_293=='U') ) {
- int LA18_336 = input.LA(8);
-
- if ( (LA18_336=='N') ) {
- int LA18_375 = input.LA(9);
-
- if ( (LA18_375=='D') ) {
- int LA18_399 = input.LA(10);
-
- if ( (LA18_399=='$'||(LA18_399>='0' && LA18_399<='9')||(LA18_399>='A' && LA18_399<='Z')||LA18_399=='_'||(LA18_399>='a' && LA18_399<='z')||(LA18_399>='\u00C0' && LA18_399<='\u00D6')||(LA18_399>='\u00D8' && LA18_399<='\u00F6')||(LA18_399>='\u00F8' && LA18_399<='\u1FFF')||(LA18_399>='\u3040' && LA18_399<='\u318F')||(LA18_399>='\u3300' && LA18_399<='\u337F')||(LA18_399>='\u3400' && LA18_399<='\u3D2D')||(LA18_399>='\u4E00' && LA18_399<='\u9FFF')||(LA18_399>='\uF900' && LA18_399<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=93;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'F':
- {
- switch ( input.LA(5) ) {
- case 'I':
- {
- int LA18_241 = input.LA(6);
-
- if ( (LA18_241=='L') ) {
- int LA18_294 = input.LA(7);
-
- if ( (LA18_294=='E') ) {
- int LA18_337 = input.LA(8);
-
- if ( (LA18_337=='$'||(LA18_337>='0' && LA18_337<='9')||(LA18_337>='A' && LA18_337<='Z')||LA18_337=='_'||(LA18_337>='a' && LA18_337<='z')||(LA18_337>='\u00C0' && LA18_337<='\u00D6')||(LA18_337>='\u00D8' && LA18_337<='\u00F6')||(LA18_337>='\u00F8' && LA18_337<='\u1FFF')||(LA18_337>='\u3040' && LA18_337<='\u318F')||(LA18_337>='\u3300' && LA18_337<='\u337F')||(LA18_337>='\u3400' && LA18_337<='\u3D2D')||(LA18_337>='\u4E00' && LA18_337<='\u9FFF')||(LA18_337>='\uF900' && LA18_337<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=18;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'O':
- {
- int LA18_242 = input.LA(6);
-
- if ( (LA18_242=='R') ) {
- int LA18_295 = input.LA(7);
-
- if ( (LA18_295=='E') ) {
- int LA18_338 = input.LA(8);
-
- if ( (LA18_338=='A') ) {
- int LA18_377 = input.LA(9);
-
- if ( (LA18_377=='C') ) {
- int LA18_400 = input.LA(10);
-
- if ( (LA18_400=='H') ) {
- int LA18_413 = input.LA(11);
-
- if ( (LA18_413=='$'||(LA18_413>='0' && LA18_413<='9')||(LA18_413>='A' && LA18_413<='Z')||LA18_413=='_'||(LA18_413>='a' && LA18_413<='z')||(LA18_413>='\u00C0' && LA18_413<='\u00D6')||(LA18_413>='\u00D8' && LA18_413<='\u00F6')||(LA18_413>='\u00F8' && LA18_413<='\u1FFF')||(LA18_413>='\u3040' && LA18_413<='\u318F')||(LA18_413>='\u3300' && LA18_413<='\u337F')||(LA18_413>='\u3400' && LA18_413<='\u3D2D')||(LA18_413>='\u4E00' && LA18_413<='\u9FFF')||(LA18_413>='\uF900' && LA18_413<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=21;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- break;
- case 'I':
- {
- int LA18_185 = input.LA(5);
-
- if ( (LA18_185=='F') ) {
- int LA18_243 = input.LA(6);
-
- if ( (LA18_243=='$'||(LA18_243>='0' && LA18_243<='9')||(LA18_243>='A' && LA18_243<='Z')||LA18_243=='_'||(LA18_243>='a' && LA18_243<='z')||(LA18_243>='\u00C0' && LA18_243<='\u00D6')||(LA18_243>='\u00D8' && LA18_243<='\u00F6')||(LA18_243>='\u00F8' && LA18_243<='\u1FFF')||(LA18_243>='\u3040' && LA18_243<='\u318F')||(LA18_243>='\u3300' && LA18_243<='\u337F')||(LA18_243>='\u3400' && LA18_243<='\u3D2D')||(LA18_243>='\u4E00' && LA18_243<='\u9FFF')||(LA18_243>='\uF900' && LA18_243<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=23;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else {
- alt18=94;}
- }
- break;
- case 'X':
- {
- switch ( input.LA(3) ) {
- case 'T':
- {
- int LA18_128 = input.LA(4);
-
- if ( (LA18_128=='E') ) {
- int LA18_186 = input.LA(5);
-
- if ( (LA18_186=='N') ) {
- int LA18_244 = input.LA(6);
-
- if ( (LA18_244=='S') ) {
- int LA18_297 = input.LA(7);
-
- if ( (LA18_297=='I') ) {
- int LA18_339 = input.LA(8);
-
- if ( (LA18_339=='O') ) {
- int LA18_378 = input.LA(9);
-
- if ( (LA18_378=='N') ) {
- int LA18_401 = input.LA(10);
-
- if ( (LA18_401=='$'||(LA18_401>='0' && LA18_401<='9')||(LA18_401>='A' && LA18_401<='Z')||LA18_401=='_'||(LA18_401>='a' && LA18_401<='z')||(LA18_401>='\u00C0' && LA18_401<='\u00D6')||(LA18_401>='\u00D8' && LA18_401<='\u00F6')||(LA18_401>='\u00F8' && LA18_401<='\u1FFF')||(LA18_401>='\u3040' && LA18_401<='\u318F')||(LA18_401>='\u3300' && LA18_401<='\u337F')||(LA18_401>='\u3400' && LA18_401<='\u3D2D')||(LA18_401>='\u4E00' && LA18_401<='\u9FFF')||(LA18_401>='\uF900' && LA18_401<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=2;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'P':
- {
- int LA18_129 = input.LA(4);
-
- if ( (LA18_129=='A') ) {
- int LA18_187 = input.LA(5);
-
- if ( (LA18_187=='N') ) {
- int LA18_245 = input.LA(6);
-
- if ( (LA18_245=='D') ) {
- int LA18_298 = input.LA(7);
-
- if ( (LA18_298=='$'||(LA18_298>='0' && LA18_298<='9')||(LA18_298>='A' && LA18_298<='Z')||LA18_298=='_'||(LA18_298>='a' && LA18_298<='z')||(LA18_298>='\u00C0' && LA18_298<='\u00D6')||(LA18_298>='\u00D8' && LA18_298<='\u00F6')||(LA18_298>='\u00F8' && LA18_298<='\u1FFF')||(LA18_298>='\u3040' && LA18_298<='\u318F')||(LA18_298>='\u3300' && LA18_298<='\u337F')||(LA18_298>='\u3400' && LA18_298<='\u3D2D')||(LA18_298>='\u4E00' && LA18_298<='\u9FFF')||(LA18_298>='\uF900' && LA18_298<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=14;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- break;
- case 'R':
- {
- int LA18_59 = input.LA(3);
-
- if ( (LA18_59=='R') ) {
- int LA18_130 = input.LA(4);
-
- if ( (LA18_130=='O') ) {
- int LA18_188 = input.LA(5);
-
- if ( (LA18_188=='R') ) {
- int LA18_246 = input.LA(6);
-
- if ( (LA18_246=='$'||(LA18_246>='0' && LA18_246<='9')||(LA18_246>='A' && LA18_246<='Z')||LA18_246=='_'||(LA18_246>='a' && LA18_246<='z')||(LA18_246>='\u00C0' && LA18_246<='\u00D6')||(LA18_246>='\u00D8' && LA18_246<='\u00F6')||(LA18_246>='\u00F8' && LA18_246<='\u1FFF')||(LA18_246>='\u3040' && LA18_246<='\u318F')||(LA18_246>='\u3300' && LA18_246<='\u337F')||(LA18_246>='\u3400' && LA18_246<='\u3D2D')||(LA18_246>='\u4E00' && LA18_246<='\u9FFF')||(LA18_246>='\uF900' && LA18_246<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=13;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'L':
- {
- int LA18_60 = input.LA(3);
-
- if ( (LA18_60=='S') ) {
- int LA18_131 = input.LA(4);
-
- if ( (LA18_131=='E') ) {
- int LA18_189 = input.LA(5);
-
- if ( (LA18_189=='I') ) {
- int LA18_247 = input.LA(6);
-
- if ( (LA18_247=='F') ) {
- int LA18_300 = input.LA(7);
-
- if ( (LA18_300=='$'||(LA18_300>='0' && LA18_300<='9')||(LA18_300>='A' && LA18_300<='Z')||LA18_300=='_'||(LA18_300>='a' && LA18_300<='z')||(LA18_300>='\u00C0' && LA18_300<='\u00D6')||(LA18_300>='\u00D8' && LA18_300<='\u00F6')||(LA18_300>='\u00F8' && LA18_300<='\u1FFF')||(LA18_300>='\u3040' && LA18_300<='\u318F')||(LA18_300>='\u3300' && LA18_300<='\u337F')||(LA18_300>='\u3400' && LA18_300<='\u3D2D')||(LA18_300>='\u4E00' && LA18_300<='\u9FFF')||(LA18_300>='\uF900' && LA18_300<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=24;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_189=='$'||(LA18_189>='0' && LA18_189<='9')||(LA18_189>='A' && LA18_189<='H')||(LA18_189>='J' && LA18_189<='Z')||LA18_189=='_'||(LA18_189>='a' && LA18_189<='z')||(LA18_189>='\u00C0' && LA18_189<='\u00D6')||(LA18_189>='\u00D8' && LA18_189<='\u00F6')||(LA18_189>='\u00F8' && LA18_189<='\u1FFF')||(LA18_189>='\u3040' && LA18_189<='\u318F')||(LA18_189>='\u3300' && LA18_189<='\u337F')||(LA18_189>='\u3400' && LA18_189<='\u3D2D')||(LA18_189>='\u4E00' && LA18_189<='\u9FFF')||(LA18_189>='\uF900' && LA18_189<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=25;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='i') ) {
- switch ( input.LA(2) ) {
- case 'm':
- {
- int LA18_61 = input.LA(3);
-
- if ( (LA18_61=='p') ) {
- switch ( input.LA(4) ) {
- case 'o':
- {
- int LA18_190 = input.LA(5);
-
- if ( (LA18_190=='r') ) {
- int LA18_249 = input.LA(6);
-
- if ( (LA18_249=='t') ) {
- int LA18_301 = input.LA(7);
-
- if ( (LA18_301=='$'||(LA18_301>='0' && LA18_301<='9')||(LA18_301>='A' && LA18_301<='Z')||LA18_301=='_'||(LA18_301>='a' && LA18_301<='z')||(LA18_301>='\u00C0' && LA18_301<='\u00D6')||(LA18_301>='\u00D8' && LA18_301<='\u00F6')||(LA18_301>='\u00F8' && LA18_301<='\u1FFF')||(LA18_301>='\u3040' && LA18_301<='\u318F')||(LA18_301>='\u3300' && LA18_301<='\u337F')||(LA18_301>='\u3400' && LA18_301<='\u3D2D')||(LA18_301>='\u4E00' && LA18_301<='\u9FFF')||(LA18_301>='\uF900' && LA18_301<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=3;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'l':
- {
- int LA18_191 = input.LA(5);
-
- if ( (LA18_191=='i') ) {
- int LA18_250 = input.LA(6);
-
- if ( (LA18_250=='e') ) {
- int LA18_302 = input.LA(7);
-
- if ( (LA18_302=='s') ) {
- int LA18_343 = input.LA(8);
-
- if ( (LA18_343=='$'||(LA18_343>='0' && LA18_343<='9')||(LA18_343>='A' && LA18_343<='Z')||LA18_343=='_'||(LA18_343>='a' && LA18_343<='z')||(LA18_343>='\u00C0' && LA18_343<='\u00D6')||(LA18_343>='\u00D8' && LA18_343<='\u00F6')||(LA18_343>='\u00F8' && LA18_343<='\u1FFF')||(LA18_343>='\u3040' && LA18_343<='\u318F')||(LA18_343>='\u3300' && LA18_343<='\u337F')||(LA18_343>='\u3400' && LA18_343<='\u3D2D')||(LA18_343>='\u4E00' && LA18_343<='\u9FFF')||(LA18_343>='\uF900' && LA18_343<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=61;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else {
- alt18=94;}
- }
- break;
- case 'f':
- {
- int LA18_62 = input.LA(3);
-
- if ( (LA18_62=='$'||(LA18_62>='0' && LA18_62<='9')||(LA18_62>='A' && LA18_62<='Z')||LA18_62=='_'||(LA18_62>='a' && LA18_62<='z')||(LA18_62>='\u00C0' && LA18_62<='\u00D6')||(LA18_62>='\u00D8' && LA18_62<='\u00F6')||(LA18_62>='\u00F8' && LA18_62<='\u1FFF')||(LA18_62>='\u3040' && LA18_62<='\u318F')||(LA18_62>='\u3300' && LA18_62<='\u337F')||(LA18_62>='\u3400' && LA18_62<='\u3D2D')||(LA18_62>='\u4E00' && LA18_62<='\u9FFF')||(LA18_62>='\uF900' && LA18_62<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=35;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0==';') ) {
- alt18=4;
- }
- else if ( (LA18_0=='e') ) {
- switch ( input.LA(2) ) {
- case 'l':
- {
- int LA18_63 = input.LA(3);
-
- if ( (LA18_63=='s') ) {
- int LA18_134 = input.LA(4);
-
- if ( (LA18_134=='e') ) {
- int LA18_192 = input.LA(5);
-
- if ( (LA18_192=='$'||(LA18_192>='0' && LA18_192<='9')||(LA18_192>='A' && LA18_192<='Z')||LA18_192=='_'||(LA18_192>='a' && LA18_192<='z')||(LA18_192>='\u00C0' && LA18_192<='\u00D6')||(LA18_192>='\u00D8' && LA18_192<='\u00F6')||(LA18_192>='\u00F8' && LA18_192<='\u1FFF')||(LA18_192>='\u3040' && LA18_192<='\u318F')||(LA18_192>='\u3300' && LA18_192<='\u337F')||(LA18_192>='\u3400' && LA18_192<='\u3D2D')||(LA18_192>='\u4E00' && LA18_192<='\u9FFF')||(LA18_192>='\uF900' && LA18_192<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=53;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'x':
- {
- switch ( input.LA(3) ) {
- case 't':
- {
- int LA18_135 = input.LA(4);
-
- if ( (LA18_135=='e') ) {
- int LA18_193 = input.LA(5);
-
- if ( (LA18_193=='n') ) {
- int LA18_252 = input.LA(6);
-
- if ( (LA18_252=='s') ) {
- int LA18_303 = input.LA(7);
-
- if ( (LA18_303=='i') ) {
- int LA18_344 = input.LA(8);
-
- if ( (LA18_344=='o') ) {
- int LA18_380 = input.LA(9);
-
- if ( (LA18_380=='n') ) {
- int LA18_402 = input.LA(10);
-
- if ( (LA18_402=='$'||(LA18_402>='0' && LA18_402<='9')||(LA18_402>='A' && LA18_402<='Z')||LA18_402=='_'||(LA18_402>='a' && LA18_402<='z')||(LA18_402>='\u00C0' && LA18_402<='\u00D6')||(LA18_402>='\u00D8' && LA18_402<='\u00F6')||(LA18_402>='\u00F8' && LA18_402<='\u1FFF')||(LA18_402>='\u3040' && LA18_402<='\u318F')||(LA18_402>='\u3300' && LA18_402<='\u337F')||(LA18_402>='\u3400' && LA18_402<='\u3D2D')||(LA18_402>='\u4E00' && LA18_402<='\u9FFF')||(LA18_402>='\uF900' && LA18_402<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=5;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'i':
- {
- int LA18_136 = input.LA(4);
-
- if ( (LA18_136=='s') ) {
- int LA18_194 = input.LA(5);
-
- if ( (LA18_194=='t') ) {
- int LA18_253 = input.LA(6);
-
- if ( (LA18_253=='s') ) {
- int LA18_304 = input.LA(7);
-
- if ( (LA18_304=='$'||(LA18_304>='0' && LA18_304<='9')||(LA18_304>='A' && LA18_304<='Z')||LA18_304=='_'||(LA18_304>='a' && LA18_304<='z')||(LA18_304>='\u00C0' && LA18_304<='\u00D6')||(LA18_304>='\u00D8' && LA18_304<='\u00F6')||(LA18_304>='\u00F8' && LA18_304<='\u1FFF')||(LA18_304>='\u3040' && LA18_304<='\u318F')||(LA18_304>='\u3300' && LA18_304<='\u337F')||(LA18_304>='\u3400' && LA18_304<='\u3D2D')||(LA18_304>='\u4E00' && LA18_304<='\u9FFF')||(LA18_304>='\uF900' && LA18_304<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=81;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='r') ) {
- int LA18_6 = input.LA(2);
-
- if ( (LA18_6=='e') ) {
- switch ( input.LA(3) ) {
- case 'e':
- {
- int LA18_137 = input.LA(4);
-
- if ( (LA18_137=='x') ) {
- int LA18_195 = input.LA(5);
-
- if ( (LA18_195=='p') ) {
- int LA18_254 = input.LA(6);
-
- if ( (LA18_254=='o') ) {
- int LA18_305 = input.LA(7);
-
- if ( (LA18_305=='r') ) {
- int LA18_346 = input.LA(8);
-
- if ( (LA18_346=='t') ) {
- int LA18_381 = input.LA(9);
-
- if ( (LA18_381=='$'||(LA18_381>='0' && LA18_381<='9')||(LA18_381>='A' && LA18_381<='Z')||LA18_381=='_'||(LA18_381>='a' && LA18_381<='z')||(LA18_381>='\u00C0' && LA18_381<='\u00D6')||(LA18_381>='\u00D8' && LA18_381<='\u00F6')||(LA18_381>='\u00F8' && LA18_381<='\u1FFF')||(LA18_381>='\u3040' && LA18_381<='\u318F')||(LA18_381>='\u3300' && LA18_381<='\u337F')||(LA18_381>='\u3400' && LA18_381<='\u3D2D')||(LA18_381>='\u4E00' && LA18_381<='\u9FFF')||(LA18_381>='\uF900' && LA18_381<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=6;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'j':
- {
- int LA18_138 = input.LA(4);
-
- if ( (LA18_138=='e') ) {
- int LA18_196 = input.LA(5);
-
- if ( (LA18_196=='c') ) {
- int LA18_255 = input.LA(6);
-
- if ( (LA18_255=='t') ) {
- int LA18_306 = input.LA(7);
-
- if ( (LA18_306=='$'||(LA18_306>='0' && LA18_306<='9')||(LA18_306>='A' && LA18_306<='Z')||LA18_306=='_'||(LA18_306>='a' && LA18_306<='z')||(LA18_306>='\u00C0' && LA18_306<='\u00D6')||(LA18_306>='\u00D8' && LA18_306<='\u00F6')||(LA18_306>='\u00F8' && LA18_306<='\u1FFF')||(LA18_306>='\u3040' && LA18_306<='\u318F')||(LA18_306>='\u3300' && LA18_306<='\u337F')||(LA18_306>='\u3400' && LA18_306<='\u3D2D')||(LA18_306>='\u4E00' && LA18_306<='\u9FFF')||(LA18_306>='\uF900' && LA18_306<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=80;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='(') ) {
- alt18=7;
- }
- else if ( (LA18_0==',') ) {
- alt18=8;
- }
- else if ( (LA18_0=='*') ) {
- alt18=9;
- }
- else if ( (LA18_0==')') ) {
- alt18=10;
- }
- else if ( (LA18_0=='F') ) {
- switch ( input.LA(2) ) {
- case 'O':
- {
- int LA18_66 = input.LA(3);
-
- if ( (LA18_66=='R') ) {
- int LA18_139 = input.LA(4);
-
- if ( (LA18_139=='E') ) {
- int LA18_197 = input.LA(5);
-
- if ( (LA18_197=='A') ) {
- int LA18_256 = input.LA(6);
-
- if ( (LA18_256=='C') ) {
- int LA18_307 = input.LA(7);
-
- if ( (LA18_307=='H') ) {
- int LA18_348 = input.LA(8);
-
- if ( (LA18_348=='$'||(LA18_348>='0' && LA18_348<='9')||(LA18_348>='A' && LA18_348<='Z')||LA18_348=='_'||(LA18_348>='a' && LA18_348<='z')||(LA18_348>='\u00C0' && LA18_348<='\u00D6')||(LA18_348>='\u00D8' && LA18_348<='\u00F6')||(LA18_348>='\u00F8' && LA18_348<='\u1FFF')||(LA18_348>='\u3040' && LA18_348<='\u318F')||(LA18_348>='\u3300' && LA18_348<='\u337F')||(LA18_348>='\u3400' && LA18_348<='\u3D2D')||(LA18_348>='\u4E00' && LA18_348<='\u9FFF')||(LA18_348>='\uF900' && LA18_348<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=15;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_139=='$'||(LA18_139>='0' && LA18_139<='9')||(LA18_139>='A' && LA18_139<='D')||(LA18_139>='F' && LA18_139<='Z')||LA18_139=='_'||(LA18_139>='a' && LA18_139<='z')||(LA18_139>='\u00C0' && LA18_139<='\u00D6')||(LA18_139>='\u00D8' && LA18_139<='\u00F6')||(LA18_139>='\u00F8' && LA18_139<='\u1FFF')||(LA18_139>='\u3040' && LA18_139<='\u318F')||(LA18_139>='\u3300' && LA18_139<='\u337F')||(LA18_139>='\u3400' && LA18_139<='\u3D2D')||(LA18_139>='\u4E00' && LA18_139<='\u9FFF')||(LA18_139>='\uF900' && LA18_139<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=11;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'I':
- {
- int LA18_67 = input.LA(3);
-
- if ( (LA18_67=='L') ) {
- int LA18_140 = input.LA(4);
-
- if ( (LA18_140=='E') ) {
- int LA18_199 = input.LA(5);
-
- if ( (LA18_199=='$'||(LA18_199>='0' && LA18_199<='9')||(LA18_199>='A' && LA18_199<='Z')||LA18_199=='_'||(LA18_199>='a' && LA18_199<='z')||(LA18_199>='\u00C0' && LA18_199<='\u00D6')||(LA18_199>='\u00D8' && LA18_199<='\u00F6')||(LA18_199>='\u00F8' && LA18_199<='\u1FFF')||(LA18_199>='\u3040' && LA18_199<='\u318F')||(LA18_199>='\u3300' && LA18_199<='\u337F')||(LA18_199>='\u3400' && LA18_199<='\u3D2D')||(LA18_199>='\u4E00' && LA18_199<='\u9FFF')||(LA18_199>='\uF900' && LA18_199<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=17;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='-') ) {
- int LA18_12 = input.LA(2);
-
- if ( (LA18_12=='>') ) {
- alt18=50;
- }
- else {
- alt18=12;}
- }
- else if ( (LA18_0=='S') ) {
- switch ( input.LA(2) ) {
- case 'e':
- {
- int LA18_70 = input.LA(3);
-
- if ( (LA18_70=='t') ) {
- int LA18_141 = input.LA(4);
-
- if ( (LA18_141=='$'||(LA18_141>='0' && LA18_141<='9')||(LA18_141>='A' && LA18_141<='Z')||LA18_141=='_'||(LA18_141>='a' && LA18_141<='z')||(LA18_141>='\u00C0' && LA18_141<='\u00D6')||(LA18_141>='\u00D8' && LA18_141<='\u00F6')||(LA18_141>='\u00F8' && LA18_141<='\u1FFF')||(LA18_141>='\u3040' && LA18_141<='\u318F')||(LA18_141>='\u3300' && LA18_141<='\u337F')||(LA18_141>='\u3400' && LA18_141<='\u3D2D')||(LA18_141>='\u4E00' && LA18_141<='\u9FFF')||(LA18_141>='\uF900' && LA18_141<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=47;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'E':
- {
- int LA18_71 = input.LA(3);
-
- if ( (LA18_71=='P') ) {
- int LA18_142 = input.LA(4);
-
- if ( (LA18_142=='A') ) {
- int LA18_201 = input.LA(5);
-
- if ( (LA18_201=='R') ) {
- int LA18_258 = input.LA(6);
-
- if ( (LA18_258=='A') ) {
- int LA18_308 = input.LA(7);
-
- if ( (LA18_308=='T') ) {
- int LA18_349 = input.LA(8);
-
- if ( (LA18_349=='O') ) {
- int LA18_383 = input.LA(9);
-
- if ( (LA18_383=='R') ) {
- int LA18_404 = input.LA(10);
-
- if ( (LA18_404=='$'||(LA18_404>='0' && LA18_404<='9')||(LA18_404>='A' && LA18_404<='Z')||LA18_404=='_'||(LA18_404>='a' && LA18_404<='z')||(LA18_404>='\u00C0' && LA18_404<='\u00D6')||(LA18_404>='\u00D8' && LA18_404<='\u00F6')||(LA18_404>='\u00F8' && LA18_404<='\u1FFF')||(LA18_404>='\u3040' && LA18_404<='\u318F')||(LA18_404>='\u3300' && LA18_404<='\u337F')||(LA18_404>='\u3400' && LA18_404<='\u3D2D')||(LA18_404>='\u4E00' && LA18_404<='\u9FFF')||(LA18_404>='\uF900' && LA18_404<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=16;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='A') ) {
- switch ( input.LA(2) ) {
- case 'S':
- {
- int LA18_72 = input.LA(3);
-
- if ( (LA18_72=='$'||(LA18_72>='0' && LA18_72<='9')||(LA18_72>='A' && LA18_72<='Z')||LA18_72=='_'||(LA18_72>='a' && LA18_72<='z')||(LA18_72>='\u00C0' && LA18_72<='\u00D6')||(LA18_72>='\u00D8' && LA18_72<='\u00F6')||(LA18_72>='\u00F8' && LA18_72<='\u1FFF')||(LA18_72>='\u3040' && LA18_72<='\u318F')||(LA18_72>='\u3300' && LA18_72<='\u337F')||(LA18_72>='\u3400' && LA18_72<='\u3D2D')||(LA18_72>='\u4E00' && LA18_72<='\u9FFF')||(LA18_72>='\uF900' && LA18_72<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=19;}
- }
- break;
- case 'R':
- {
- int LA18_73 = input.LA(3);
-
- if ( (LA18_73=='O') ) {
- int LA18_144 = input.LA(4);
-
- if ( (LA18_144=='U') ) {
- int LA18_202 = input.LA(5);
-
- if ( (LA18_202=='N') ) {
- int LA18_259 = input.LA(6);
-
- if ( (LA18_259=='D') ) {
- int LA18_309 = input.LA(7);
-
- if ( (LA18_309=='$'||(LA18_309>='0' && LA18_309<='9')||(LA18_309>='A' && LA18_309<='Z')||LA18_309=='_'||(LA18_309>='a' && LA18_309<='z')||(LA18_309>='\u00C0' && LA18_309<='\u00D6')||(LA18_309>='\u00D8' && LA18_309<='\u00F6')||(LA18_309>='\u00F8' && LA18_309<='\u1FFF')||(LA18_309>='\u3040' && LA18_309<='\u318F')||(LA18_309>='\u3300' && LA18_309<='\u337F')||(LA18_309>='\u3400' && LA18_309<='\u3D2D')||(LA18_309>='\u4E00' && LA18_309<='\u9FFF')||(LA18_309>='\uF900' && LA18_309<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=92;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='L') ) {
- switch ( input.LA(2) ) {
- case 'E':
- {
- int LA18_74 = input.LA(3);
-
- if ( (LA18_74=='T') ) {
- int LA18_145 = input.LA(4);
-
- if ( (LA18_145=='$'||(LA18_145>='0' && LA18_145<='9')||(LA18_145>='A' && LA18_145<='Z')||LA18_145=='_'||(LA18_145>='a' && LA18_145<='z')||(LA18_145>='\u00C0' && LA18_145<='\u00D6')||(LA18_145>='\u00D8' && LA18_145<='\u00F6')||(LA18_145>='\u00F8' && LA18_145<='\u1FFF')||(LA18_145>='\u3040' && LA18_145<='\u318F')||(LA18_145>='\u3300' && LA18_145<='\u337F')||(LA18_145>='\u3400' && LA18_145<='\u3D2D')||(LA18_145>='\u4E00' && LA18_145<='\u9FFF')||(LA18_145>='\uF900' && LA18_145<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=26;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'i':
- {
- int LA18_75 = input.LA(3);
-
- if ( (LA18_75=='s') ) {
- int LA18_146 = input.LA(4);
-
- if ( (LA18_146=='t') ) {
- int LA18_204 = input.LA(5);
-
- if ( (LA18_204=='$'||(LA18_204>='0' && LA18_204<='9')||(LA18_204>='A' && LA18_204<='Z')||LA18_204=='_'||(LA18_204>='a' && LA18_204<='z')||(LA18_204>='\u00C0' && LA18_204<='\u00D6')||(LA18_204>='\u00D8' && LA18_204<='\u00F6')||(LA18_204>='\u00F8' && LA18_204<='\u1FFF')||(LA18_204>='\u3040' && LA18_204<='\u318F')||(LA18_204>='\u3300' && LA18_204<='\u337F')||(LA18_204>='\u3400' && LA18_204<='\u3D2D')||(LA18_204>='\u4E00' && LA18_204<='\u9FFF')||(LA18_204>='\uF900' && LA18_204<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=46;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='P') ) {
- int LA18_16 = input.LA(2);
-
- if ( (LA18_16=='R') ) {
- int LA18_76 = input.LA(3);
-
- if ( (LA18_76=='O') ) {
- int LA18_147 = input.LA(4);
-
- if ( (LA18_147=='T') ) {
- int LA18_205 = input.LA(5);
-
- if ( (LA18_205=='E') ) {
- int LA18_261 = input.LA(6);
-
- if ( (LA18_261=='C') ) {
- int LA18_310 = input.LA(7);
-
- if ( (LA18_310=='T') ) {
- int LA18_351 = input.LA(8);
-
- if ( (LA18_351=='$'||(LA18_351>='0' && LA18_351<='9')||(LA18_351>='A' && LA18_351<='Z')||LA18_351=='_'||(LA18_351>='a' && LA18_351<='z')||(LA18_351>='\u00C0' && LA18_351<='\u00D6')||(LA18_351>='\u00D8' && LA18_351<='\u00F6')||(LA18_351>='\u00F8' && LA18_351<='\u1FFF')||(LA18_351>='\u3040' && LA18_351<='\u318F')||(LA18_351>='\u3300' && LA18_351<='\u337F')||(LA18_351>='\u3400' && LA18_351<='\u3D2D')||(LA18_351>='\u4E00' && LA18_351<='\u9FFF')||(LA18_351>='\uF900' && LA18_351<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=28;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='C') ) {
- switch ( input.LA(2) ) {
- case 'o':
- {
- int LA18_77 = input.LA(3);
-
- if ( (LA18_77=='l') ) {
- int LA18_148 = input.LA(4);
-
- if ( (LA18_148=='l') ) {
- int LA18_206 = input.LA(5);
-
- if ( (LA18_206=='e') ) {
- int LA18_262 = input.LA(6);
-
- if ( (LA18_262=='c') ) {
- int LA18_311 = input.LA(7);
-
- if ( (LA18_311=='t') ) {
- int LA18_352 = input.LA(8);
-
- if ( (LA18_352=='i') ) {
- int LA18_385 = input.LA(9);
-
- if ( (LA18_385=='o') ) {
- int LA18_405 = input.LA(10);
-
- if ( (LA18_405=='n') ) {
- int LA18_417 = input.LA(11);
-
- if ( (LA18_417=='$'||(LA18_417>='0' && LA18_417<='9')||(LA18_417>='A' && LA18_417<='Z')||LA18_417=='_'||(LA18_417>='a' && LA18_417<='z')||(LA18_417>='\u00C0' && LA18_417<='\u00D6')||(LA18_417>='\u00D8' && LA18_417<='\u00F6')||(LA18_417>='\u00F8' && LA18_417<='\u1FFF')||(LA18_417>='\u3040' && LA18_417<='\u318F')||(LA18_417>='\u3300' && LA18_417<='\u337F')||(LA18_417>='\u3400' && LA18_417<='\u3D2D')||(LA18_417>='\u4E00' && LA18_417<='\u9FFF')||(LA18_417>='\uF900' && LA18_417<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=45;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'E':
- {
- int LA18_78 = input.LA(3);
-
- if ( (LA18_78=='N') ) {
- int LA18_149 = input.LA(4);
-
- if ( (LA18_149=='D') ) {
- int LA18_207 = input.LA(5);
-
- if ( (LA18_207=='$'||(LA18_207>='0' && LA18_207<='9')||(LA18_207>='A' && LA18_207<='Z')||LA18_207=='_'||(LA18_207>='a' && LA18_207<='z')||(LA18_207>='\u00C0' && LA18_207<='\u00D6')||(LA18_207>='\u00D8' && LA18_207<='\u00F6')||(LA18_207>='\u00F8' && LA18_207<='\u1FFF')||(LA18_207>='\u3040' && LA18_207<='\u318F')||(LA18_207>='\u3300' && LA18_207<='\u337F')||(LA18_207>='\u3400' && LA18_207<='\u3D2D')||(LA18_207>='\u4E00' && LA18_207<='\u9FFF')||(LA18_207>='\uF900' && LA18_207<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=30;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'S':
- {
- int LA18_79 = input.LA(3);
-
- if ( (LA18_79=='T') ) {
- int LA18_150 = input.LA(4);
-
- if ( (LA18_150=='A') ) {
- int LA18_208 = input.LA(5);
-
- if ( (LA18_208=='R') ) {
- int LA18_264 = input.LA(6);
-
- if ( (LA18_264=='T') ) {
- int LA18_312 = input.LA(7);
-
- if ( (LA18_312=='$'||(LA18_312>='0' && LA18_312<='9')||(LA18_312>='A' && LA18_312<='Z')||LA18_312=='_'||(LA18_312>='a' && LA18_312<='z')||(LA18_312>='\u00C0' && LA18_312<='\u00D6')||(LA18_312>='\u00D8' && LA18_312<='\u00F6')||(LA18_312>='\u00F8' && LA18_312<='\u1FFF')||(LA18_312>='\u3040' && LA18_312<='\u318F')||(LA18_312>='\u3300' && LA18_312<='\u337F')||(LA18_312>='\u3400' && LA18_312<='\u3D2D')||(LA18_312>='\u4E00' && LA18_312<='\u9FFF')||(LA18_312>='\uF900' && LA18_312<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=29;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='D') ) {
- switch ( input.LA(2) ) {
- case 'I':
- {
- int LA18_80 = input.LA(3);
-
- if ( (LA18_80=='S') ) {
- int LA18_151 = input.LA(4);
-
- if ( (LA18_151=='A') ) {
- int LA18_209 = input.LA(5);
-
- if ( (LA18_209=='B') ) {
- int LA18_265 = input.LA(6);
-
- if ( (LA18_265=='L') ) {
- int LA18_313 = input.LA(7);
-
- if ( (LA18_313=='E') ) {
- int LA18_354 = input.LA(8);
-
- if ( (LA18_354=='$'||(LA18_354>='0' && LA18_354<='9')||(LA18_354>='A' && LA18_354<='Z')||LA18_354=='_'||(LA18_354>='a' && LA18_354<='z')||(LA18_354>='\u00C0' && LA18_354<='\u00D6')||(LA18_354>='\u00D8' && LA18_354<='\u00F6')||(LA18_354>='\u00F8' && LA18_354<='\u1FFF')||(LA18_354>='\u3040' && LA18_354<='\u318F')||(LA18_354>='\u3300' && LA18_354<='\u337F')||(LA18_354>='\u3400' && LA18_354<='\u3D2D')||(LA18_354>='\u4E00' && LA18_354<='\u9FFF')||(LA18_354>='\uF900' && LA18_354<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=32;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'E':
- {
- int LA18_81 = input.LA(3);
-
- if ( (LA18_81=='F') ) {
- int LA18_152 = input.LA(4);
-
- if ( (LA18_152=='I') ) {
- int LA18_210 = input.LA(5);
-
- if ( (LA18_210=='N') ) {
- int LA18_266 = input.LA(6);
-
- if ( (LA18_266=='E') ) {
- int LA18_314 = input.LA(7);
-
- if ( (LA18_314=='$'||(LA18_314>='0' && LA18_314<='9')||(LA18_314>='A' && LA18_314<='Z')||LA18_314=='_'||(LA18_314>='a' && LA18_314<='z')||(LA18_314>='\u00C0' && LA18_314<='\u00D6')||(LA18_314>='\u00D8' && LA18_314<='\u00F6')||(LA18_314>='\u00F8' && LA18_314<='\u1FFF')||(LA18_314>='\u3040' && LA18_314<='\u318F')||(LA18_314>='\u3300' && LA18_314<='\u337F')||(LA18_314>='\u3400' && LA18_314<='\u3D2D')||(LA18_314>='\u4E00' && LA18_314<='\u9FFF')||(LA18_314>='\uF900' && LA18_314<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=90;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='c') ) {
- switch ( input.LA(2) ) {
- case 'a':
- {
- switch ( input.LA(3) ) {
- case 'c':
- {
- int LA18_153 = input.LA(4);
-
- if ( (LA18_153=='h') ) {
- int LA18_211 = input.LA(5);
-
- if ( (LA18_211=='e') ) {
- int LA18_267 = input.LA(6);
-
- if ( (LA18_267=='d') ) {
- int LA18_315 = input.LA(7);
-
- if ( (LA18_315=='$'||(LA18_315>='0' && LA18_315<='9')||(LA18_315>='A' && LA18_315<='Z')||LA18_315=='_'||(LA18_315>='a' && LA18_315<='z')||(LA18_315>='\u00C0' && LA18_315<='\u00D6')||(LA18_315>='\u00D8' && LA18_315<='\u00F6')||(LA18_315>='\u00F8' && LA18_315<='\u1FFF')||(LA18_315>='\u3040' && LA18_315<='\u318F')||(LA18_315>='\u3300' && LA18_315<='\u337F')||(LA18_315>='\u3400' && LA18_315<='\u3D2D')||(LA18_315>='\u4E00' && LA18_315<='\u9FFF')||(LA18_315>='\uF900' && LA18_315<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=41;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 's':
- {
- int LA18_154 = input.LA(4);
-
- if ( (LA18_154=='e') ) {
- int LA18_212 = input.LA(5);
-
- if ( (LA18_212=='$'||(LA18_212>='0' && LA18_212<='9')||(LA18_212>='A' && LA18_212<='Z')||LA18_212=='_'||(LA18_212>='a' && LA18_212<='z')||(LA18_212>='\u00C0' && LA18_212<='\u00D6')||(LA18_212>='\u00D8' && LA18_212<='\u00F6')||(LA18_212>='\u00F8' && LA18_212<='\u1FFF')||(LA18_212>='\u3040' && LA18_212<='\u318F')||(LA18_212>='\u3300' && LA18_212<='\u337F')||(LA18_212>='\u3400' && LA18_212<='\u3D2D')||(LA18_212>='\u4E00' && LA18_212<='\u9FFF')||(LA18_212>='\uF900' && LA18_212<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=58;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- break;
- case 'o':
- {
- switch ( input.LA(3) ) {
- case 'n':
- {
- int LA18_155 = input.LA(4);
-
- if ( (LA18_155=='t') ) {
- int LA18_213 = input.LA(5);
-
- if ( (LA18_213=='e') ) {
- int LA18_269 = input.LA(6);
-
- if ( (LA18_269=='x') ) {
- int LA18_316 = input.LA(7);
-
- if ( (LA18_316=='t') ) {
- int LA18_357 = input.LA(8);
-
- if ( (LA18_357=='$'||(LA18_357>='0' && LA18_357<='9')||(LA18_357>='A' && LA18_357<='Z')||LA18_357=='_'||(LA18_357>='a' && LA18_357<='z')||(LA18_357>='\u00C0' && LA18_357<='\u00D6')||(LA18_357>='\u00D8' && LA18_357<='\u00F6')||(LA18_357>='\u00F8' && LA18_357<='\u1FFF')||(LA18_357>='\u3040' && LA18_357<='\u318F')||(LA18_357>='\u3300' && LA18_357<='\u337F')||(LA18_357>='\u3400' && LA18_357<='\u3D2D')||(LA18_357>='\u4E00' && LA18_357<='\u9FFF')||(LA18_357>='\uF900' && LA18_357<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=34;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'l':
- {
- int LA18_156 = input.LA(4);
-
- if ( (LA18_156=='l') ) {
- int LA18_214 = input.LA(5);
-
- if ( (LA18_214=='e') ) {
- int LA18_270 = input.LA(6);
-
- if ( (LA18_270=='c') ) {
- int LA18_317 = input.LA(7);
-
- if ( (LA18_317=='t') ) {
- int LA18_358 = input.LA(8);
-
- if ( (LA18_358=='$'||(LA18_358>='0' && LA18_358<='9')||(LA18_358>='A' && LA18_358<='Z')||LA18_358=='_'||(LA18_358>='a' && LA18_358<='z')||(LA18_358>='\u00C0' && LA18_358<='\u00D6')||(LA18_358>='\u00D8' && LA18_358<='\u00F6')||(LA18_358>='\u00F8' && LA18_358<='\u1FFF')||(LA18_358>='\u3040' && LA18_358<='\u318F')||(LA18_358>='\u3300' && LA18_358<='\u337F')||(LA18_358>='\u3400' && LA18_358<='\u3D2D')||(LA18_358>='\u4E00' && LA18_358<='\u9FFF')||(LA18_358>='\uF900' && LA18_358<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=77;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- break;
- case 'r':
- {
- int LA18_84 = input.LA(3);
-
- if ( (LA18_84=='e') ) {
- int LA18_157 = input.LA(4);
-
- if ( (LA18_157=='a') ) {
- int LA18_215 = input.LA(5);
-
- if ( (LA18_215=='t') ) {
- int LA18_271 = input.LA(6);
-
- if ( (LA18_271=='e') ) {
- int LA18_318 = input.LA(7);
-
- if ( (LA18_318=='$'||(LA18_318>='0' && LA18_318<='9')||(LA18_318>='A' && LA18_318<='Z')||LA18_318=='_'||(LA18_318>='a' && LA18_318<='z')||(LA18_318>='\u00C0' && LA18_318<='\u00D6')||(LA18_318>='\u00D8' && LA18_318<='\u00F6')||(LA18_318>='\u00F8' && LA18_318<='\u1FFF')||(LA18_318>='\u3040' && LA18_318<='\u318F')||(LA18_318>='\u3300' && LA18_318<='\u337F')||(LA18_318>='\u3400' && LA18_318<='\u3D2D')||(LA18_318>='\u4E00' && LA18_318<='\u9FFF')||(LA18_318>='\uF900' && LA18_318<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=42;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='W') ) {
- int LA18_20 = input.LA(2);
-
- if ( (LA18_20=='A') ) {
- int LA18_85 = input.LA(3);
-
- if ( (LA18_85=='R') ) {
- int LA18_158 = input.LA(4);
-
- if ( (LA18_158=='N') ) {
- int LA18_216 = input.LA(5);
-
- if ( (LA18_216=='I') ) {
- int LA18_272 = input.LA(6);
-
- if ( (LA18_272=='N') ) {
- int LA18_319 = input.LA(7);
-
- if ( (LA18_319=='G') ) {
- int LA18_360 = input.LA(8);
-
- if ( (LA18_360=='$'||(LA18_360>='0' && LA18_360<='9')||(LA18_360>='A' && LA18_360<='Z')||LA18_360=='_'||(LA18_360>='a' && LA18_360<='z')||(LA18_360>='\u00C0' && LA18_360<='\u00D6')||(LA18_360>='\u00D8' && LA18_360<='\u00F6')||(LA18_360>='\u00F8' && LA18_360<='\u1FFF')||(LA18_360>='\u3040' && LA18_360<='\u318F')||(LA18_360>='\u3300' && LA18_360<='\u337F')||(LA18_360>='\u3400' && LA18_360<='\u3D2D')||(LA18_360>='\u4E00' && LA18_360<='\u9FFF')||(LA18_360>='\uF900' && LA18_360<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=36;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0==':') ) {
- int LA18_21 = input.LA(2);
-
- if ( (LA18_21==':') ) {
- alt18=39;
- }
- else {
- alt18=37;}
- }
- else if ( (LA18_0=='a') ) {
- int LA18_22 = input.LA(2);
-
- if ( (LA18_22=='r') ) {
- int LA18_88 = input.LA(3);
-
- if ( (LA18_88=='o') ) {
- int LA18_159 = input.LA(4);
-
- if ( (LA18_159=='u') ) {
- int LA18_217 = input.LA(5);
-
- if ( (LA18_217=='n') ) {
- int LA18_273 = input.LA(6);
-
- if ( (LA18_273=='d') ) {
- int LA18_320 = input.LA(7);
-
- if ( (LA18_320=='$'||(LA18_320>='0' && LA18_320<='9')||(LA18_320>='A' && LA18_320<='Z')||LA18_320=='_'||(LA18_320>='a' && LA18_320<='z')||(LA18_320>='\u00C0' && LA18_320<='\u00D6')||(LA18_320>='\u00D8' && LA18_320<='\u00F6')||(LA18_320>='\u00F8' && LA18_320<='\u1FFF')||(LA18_320>='\u3040' && LA18_320<='\u318F')||(LA18_320>='\u3300' && LA18_320<='\u337F')||(LA18_320>='\u3400' && LA18_320<='\u3D2D')||(LA18_320>='\u4E00' && LA18_320<='\u9FFF')||(LA18_320>='\uF900' && LA18_320<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=38;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='p') ) {
- int LA18_23 = input.LA(2);
-
- if ( (LA18_23=='r') ) {
- int LA18_89 = input.LA(3);
-
- if ( (LA18_89=='i') ) {
- int LA18_160 = input.LA(4);
-
- if ( (LA18_160=='v') ) {
- int LA18_218 = input.LA(5);
-
- if ( (LA18_218=='a') ) {
- int LA18_274 = input.LA(6);
-
- if ( (LA18_274=='t') ) {
- int LA18_321 = input.LA(7);
-
- if ( (LA18_321=='e') ) {
- int LA18_362 = input.LA(8);
-
- if ( (LA18_362=='$'||(LA18_362>='0' && LA18_362<='9')||(LA18_362>='A' && LA18_362<='Z')||LA18_362=='_'||(LA18_362>='a' && LA18_362<='z')||(LA18_362>='\u00C0' && LA18_362<='\u00D6')||(LA18_362>='\u00D8' && LA18_362<='\u00F6')||(LA18_362>='\u00F8' && LA18_362<='\u1FFF')||(LA18_362>='\u3040' && LA18_362<='\u318F')||(LA18_362>='\u3300' && LA18_362<='\u337F')||(LA18_362>='\u3400' && LA18_362<='\u3D2D')||(LA18_362>='\u4E00' && LA18_362<='\u9FFF')||(LA18_362>='\uF900' && LA18_362<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=40;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='J') ) {
- int LA18_24 = input.LA(2);
-
- if ( (LA18_24=='A') ) {
- int LA18_90 = input.LA(3);
-
- if ( (LA18_90=='V') ) {
- int LA18_161 = input.LA(4);
-
- if ( (LA18_161=='A') ) {
- int LA18_219 = input.LA(5);
-
- if ( (LA18_219=='$'||(LA18_219>='0' && LA18_219<='9')||(LA18_219>='A' && LA18_219<='Z')||LA18_219=='_'||(LA18_219>='a' && LA18_219<='z')||(LA18_219>='\u00C0' && LA18_219<='\u00D6')||(LA18_219>='\u00D8' && LA18_219<='\u00F6')||(LA18_219>='\u00F8' && LA18_219<='\u1FFF')||(LA18_219>='\u3040' && LA18_219<='\u318F')||(LA18_219>='\u3300' && LA18_219<='\u337F')||(LA18_219>='\u3400' && LA18_219<='\u3D2D')||(LA18_219>='\u4E00' && LA18_219<='\u9FFF')||(LA18_219>='\uF900' && LA18_219<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=43;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='.') ) {
- alt18=44;
- }
- else if ( (LA18_0=='l') ) {
- int LA18_26 = input.LA(2);
-
- if ( (LA18_26=='e') ) {
- int LA18_91 = input.LA(3);
-
- if ( (LA18_91=='t') ) {
- int LA18_162 = input.LA(4);
-
- if ( (LA18_162=='$'||(LA18_162>='0' && LA18_162<='9')||(LA18_162>='A' && LA18_162<='Z')||LA18_162=='_'||(LA18_162>='a' && LA18_162<='z')||(LA18_162>='\u00C0' && LA18_162<='\u00D6')||(LA18_162>='\u00D8' && LA18_162<='\u00F6')||(LA18_162>='\u00F8' && LA18_162<='\u1FFF')||(LA18_162>='\u3040' && LA18_162<='\u318F')||(LA18_162>='\u3300' && LA18_162<='\u337F')||(LA18_162>='\u3400' && LA18_162<='\u3D2D')||(LA18_162>='\u4E00' && LA18_162<='\u9FFF')||(LA18_162>='\uF900' && LA18_162<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=48;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='=') ) {
- int LA18_27 = input.LA(2);
-
- if ( (LA18_27=='=') ) {
- alt18=62;
- }
- else {
- alt18=49;}
- }
- else if ( (LA18_0=='?') ) {
- alt18=51;
- }
- else if ( (LA18_0=='t') ) {
- switch ( input.LA(2) ) {
- case 'y':
- {
- int LA18_94 = input.LA(3);
-
- if ( (LA18_94=='p') ) {
- int LA18_163 = input.LA(4);
-
- if ( (LA18_163=='e') ) {
- int LA18_221 = input.LA(5);
-
- if ( (LA18_221=='S') ) {
- int LA18_276 = input.LA(6);
-
- if ( (LA18_276=='e') ) {
- int LA18_322 = input.LA(7);
-
- if ( (LA18_322=='l') ) {
- int LA18_363 = input.LA(8);
-
- if ( (LA18_363=='e') ) {
- int LA18_391 = input.LA(9);
-
- if ( (LA18_391=='c') ) {
- int LA18_406 = input.LA(10);
-
- if ( (LA18_406=='t') ) {
- int LA18_418 = input.LA(11);
-
- if ( (LA18_418=='$'||(LA18_418>='0' && LA18_418<='9')||(LA18_418>='A' && LA18_418<='Z')||LA18_418=='_'||(LA18_418>='a' && LA18_418<='z')||(LA18_418>='\u00C0' && LA18_418<='\u00D6')||(LA18_418>='\u00D8' && LA18_418<='\u00F6')||(LA18_418>='\u00F8' && LA18_418<='\u1FFF')||(LA18_418>='\u3040' && LA18_418<='\u318F')||(LA18_418>='\u3300' && LA18_418<='\u337F')||(LA18_418>='\u3400' && LA18_418<='\u3D2D')||(LA18_418>='\u4E00' && LA18_418<='\u9FFF')||(LA18_418>='\uF900' && LA18_418<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=76;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'h':
- {
- int LA18_95 = input.LA(3);
-
- if ( (LA18_95=='e') ) {
- int LA18_164 = input.LA(4);
-
- if ( (LA18_164=='n') ) {
- int LA18_222 = input.LA(5);
-
- if ( (LA18_222=='$'||(LA18_222>='0' && LA18_222<='9')||(LA18_222>='A' && LA18_222<='Z')||LA18_222=='_'||(LA18_222>='a' && LA18_222<='z')||(LA18_222>='\u00C0' && LA18_222<='\u00D6')||(LA18_222>='\u00D8' && LA18_222<='\u00F6')||(LA18_222>='\u00F8' && LA18_222<='\u1FFF')||(LA18_222>='\u3040' && LA18_222<='\u318F')||(LA18_222>='\u3300' && LA18_222<='\u337F')||(LA18_222>='\u3400' && LA18_222<='\u3D2D')||(LA18_222>='\u4E00' && LA18_222<='\u9FFF')||(LA18_222>='\uF900' && LA18_222<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=52;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'r':
- {
- int LA18_96 = input.LA(3);
-
- if ( (LA18_96=='u') ) {
- int LA18_165 = input.LA(4);
-
- if ( (LA18_165=='e') ) {
- int LA18_223 = input.LA(5);
-
- if ( (LA18_223=='$'||(LA18_223>='0' && LA18_223<='9')||(LA18_223>='A' && LA18_223<='Z')||LA18_223=='_'||(LA18_223>='a' && LA18_223<='z')||(LA18_223>='\u00C0' && LA18_223<='\u00D6')||(LA18_223>='\u00D8' && LA18_223<='\u00F6')||(LA18_223>='\u00F8' && LA18_223<='\u1FFF')||(LA18_223>='\u3040' && LA18_223<='\u318F')||(LA18_223>='\u3300' && LA18_223<='\u337F')||(LA18_223>='\u3400' && LA18_223<='\u3D2D')||(LA18_223>='\u4E00' && LA18_223<='\u9FFF')||(LA18_223>='\uF900' && LA18_223<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=74;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='s') ) {
- switch ( input.LA(2) ) {
- case 'e':
- {
- int LA18_97 = input.LA(3);
-
- if ( (LA18_97=='l') ) {
- int LA18_166 = input.LA(4);
-
- if ( (LA18_166=='e') ) {
- int LA18_224 = input.LA(5);
-
- if ( (LA18_224=='c') ) {
- int LA18_279 = input.LA(6);
-
- if ( (LA18_279=='t') ) {
- int LA18_323 = input.LA(7);
-
- if ( (LA18_323=='F') ) {
- int LA18_364 = input.LA(8);
-
- if ( (LA18_364=='i') ) {
- int LA18_392 = input.LA(9);
-
- if ( (LA18_392=='r') ) {
- int LA18_407 = input.LA(10);
-
- if ( (LA18_407=='s') ) {
- int LA18_419 = input.LA(11);
-
- if ( (LA18_419=='t') ) {
- int LA18_426 = input.LA(12);
-
- if ( (LA18_426=='$'||(LA18_426>='0' && LA18_426<='9')||(LA18_426>='A' && LA18_426<='Z')||LA18_426=='_'||(LA18_426>='a' && LA18_426<='z')||(LA18_426>='\u00C0' && LA18_426<='\u00D6')||(LA18_426>='\u00D8' && LA18_426<='\u00F6')||(LA18_426>='\u00F8' && LA18_426<='\u1FFF')||(LA18_426>='\u3040' && LA18_426<='\u318F')||(LA18_426>='\u3300' && LA18_426<='\u337F')||(LA18_426>='\u3400' && LA18_426<='\u3D2D')||(LA18_426>='\u4E00' && LA18_426<='\u9FFF')||(LA18_426>='\uF900' && LA18_426<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=79;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_323=='$'||(LA18_323>='0' && LA18_323<='9')||(LA18_323>='A' && LA18_323<='E')||(LA18_323>='G' && LA18_323<='Z')||LA18_323=='_'||(LA18_323>='a' && LA18_323<='z')||(LA18_323>='\u00C0' && LA18_323<='\u00D6')||(LA18_323>='\u00D8' && LA18_323<='\u00F6')||(LA18_323>='\u00F8' && LA18_323<='\u1FFF')||(LA18_323>='\u3040' && LA18_323<='\u318F')||(LA18_323>='\u3300' && LA18_323<='\u337F')||(LA18_323>='\u3400' && LA18_323<='\u3D2D')||(LA18_323>='\u4E00' && LA18_323<='\u9FFF')||(LA18_323>='\uF900' && LA18_323<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=78;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'w':
- {
- int LA18_98 = input.LA(3);
-
- if ( (LA18_98=='i') ) {
- int LA18_167 = input.LA(4);
-
- if ( (LA18_167=='t') ) {
- int LA18_225 = input.LA(5);
-
- if ( (LA18_225=='c') ) {
- int LA18_280 = input.LA(6);
-
- if ( (LA18_280=='h') ) {
- int LA18_324 = input.LA(7);
-
- if ( (LA18_324=='$'||(LA18_324>='0' && LA18_324<='9')||(LA18_324>='A' && LA18_324<='Z')||LA18_324=='_'||(LA18_324>='a' && LA18_324<='z')||(LA18_324>='\u00C0' && LA18_324<='\u00D6')||(LA18_324>='\u00D8' && LA18_324<='\u00F6')||(LA18_324>='\u00F8' && LA18_324<='\u1FFF')||(LA18_324>='\u3040' && LA18_324<='\u318F')||(LA18_324>='\u3300' && LA18_324<='\u337F')||(LA18_324>='\u3400' && LA18_324<='\u3D2D')||(LA18_324>='\u4E00' && LA18_324<='\u9FFF')||(LA18_324>='\uF900' && LA18_324<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=54;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'o':
- {
- int LA18_99 = input.LA(3);
-
- if ( (LA18_99=='r') ) {
- int LA18_168 = input.LA(4);
-
- if ( (LA18_168=='t') ) {
- int LA18_226 = input.LA(5);
-
- if ( (LA18_226=='B') ) {
- int LA18_281 = input.LA(6);
-
- if ( (LA18_281=='y') ) {
- int LA18_325 = input.LA(7);
-
- if ( (LA18_325=='$'||(LA18_325>='0' && LA18_325<='9')||(LA18_325>='A' && LA18_325<='Z')||LA18_325=='_'||(LA18_325>='a' && LA18_325<='z')||(LA18_325>='\u00C0' && LA18_325<='\u00D6')||(LA18_325>='\u00D8' && LA18_325<='\u00F6')||(LA18_325>='\u00F8' && LA18_325<='\u1FFF')||(LA18_325>='\u3040' && LA18_325<='\u318F')||(LA18_325>='\u3300' && LA18_325<='\u337F')||(LA18_325>='\u3400' && LA18_325<='\u3D2D')||(LA18_325>='\u4E00' && LA18_325<='\u9FFF')||(LA18_325>='\uF900' && LA18_325<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=83;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='{') ) {
- alt18=55;
- }
- else if ( (LA18_0=='d') ) {
- int LA18_32 = input.LA(2);
-
- if ( (LA18_32=='e') ) {
- int LA18_100 = input.LA(3);
-
- if ( (LA18_100=='f') ) {
- int LA18_169 = input.LA(4);
-
- if ( (LA18_169=='a') ) {
- int LA18_227 = input.LA(5);
-
- if ( (LA18_227=='u') ) {
- int LA18_282 = input.LA(6);
-
- if ( (LA18_282=='l') ) {
- int LA18_326 = input.LA(7);
-
- if ( (LA18_326=='t') ) {
- int LA18_368 = input.LA(8);
-
- if ( (LA18_368=='$'||(LA18_368>='0' && LA18_368<='9')||(LA18_368>='A' && LA18_368<='Z')||LA18_368=='_'||(LA18_368>='a' && LA18_368<='z')||(LA18_368>='\u00C0' && LA18_368<='\u00D6')||(LA18_368>='\u00D8' && LA18_368<='\u00F6')||(LA18_368>='\u00F8' && LA18_368<='\u1FFF')||(LA18_368>='\u3040' && LA18_368<='\u318F')||(LA18_368>='\u3300' && LA18_368<='\u337F')||(LA18_368>='\u3400' && LA18_368<='\u3D2D')||(LA18_368>='\u4E00' && LA18_368<='\u9FFF')||(LA18_368>='\uF900' && LA18_368<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=56;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='}') ) {
- alt18=57;
- }
- else if ( (LA18_0=='|') ) {
- int LA18_34 = input.LA(2);
-
- if ( (LA18_34=='|') ) {
- alt18=59;
- }
- else {
- alt18=85;}
- }
- else if ( (LA18_0=='&') ) {
- alt18=60;
- }
- else if ( (LA18_0=='!') ) {
- int LA18_36 = input.LA(2);
-
- if ( (LA18_36=='=') ) {
- alt18=63;
- }
- else {
- alt18=70;}
- }
- else if ( (LA18_0=='>') ) {
- int LA18_37 = input.LA(2);
-
- if ( (LA18_37=='=') ) {
- alt18=64;
- }
- else {
- alt18=66;}
- }
- else if ( (LA18_0=='<') ) {
- int LA18_38 = input.LA(2);
-
- if ( (LA18_38=='=') ) {
- alt18=65;
- }
- else {
- alt18=67;}
- }
- else if ( (LA18_0=='+') ) {
- alt18=68;
- }
- else if ( (LA18_0=='/') ) {
- switch ( input.LA(2) ) {
- case '/':
- {
- alt18=97;
- }
- break;
- case '*':
- {
- alt18=96;
- }
- break;
- default:
- alt18=69;}
-
- }
- else if ( (LA18_0=='G') ) {
- int LA18_41 = input.LA(2);
-
- if ( (LA18_41=='L') ) {
- int LA18_112 = input.LA(3);
-
- if ( (LA18_112=='O') ) {
- int LA18_170 = input.LA(4);
-
- if ( (LA18_170=='B') ) {
- int LA18_228 = input.LA(5);
-
- if ( (LA18_228=='A') ) {
- int LA18_283 = input.LA(6);
-
- if ( (LA18_283=='L') ) {
- int LA18_327 = input.LA(7);
-
- if ( (LA18_327=='V') ) {
- int LA18_369 = input.LA(8);
-
- if ( (LA18_369=='A') ) {
- int LA18_394 = input.LA(9);
-
- if ( (LA18_394=='R') ) {
- int LA18_408 = input.LA(10);
-
- if ( (LA18_408=='$'||(LA18_408>='0' && LA18_408<='9')||(LA18_408>='A' && LA18_408<='Z')||LA18_408=='_'||(LA18_408>='a' && LA18_408<='z')||(LA18_408>='\u00C0' && LA18_408<='\u00D6')||(LA18_408>='\u00D8' && LA18_408<='\u00F6')||(LA18_408>='\u00F8' && LA18_408<='\u1FFF')||(LA18_408>='\u3040' && LA18_408<='\u318F')||(LA18_408>='\u3300' && LA18_408<='\u337F')||(LA18_408>='\u3400' && LA18_408<='\u3D2D')||(LA18_408>='\u4E00' && LA18_408<='\u9FFF')||(LA18_408>='\uF900' && LA18_408<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=71;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( (LA18_0=='n') ) {
- switch ( input.LA(2) ) {
- case 'u':
- {
- int LA18_113 = input.LA(3);
-
- if ( (LA18_113=='l') ) {
- int LA18_171 = input.LA(4);
-
- if ( (LA18_171=='l') ) {
- int LA18_229 = input.LA(5);
-
- if ( (LA18_229=='$'||(LA18_229>='0' && LA18_229<='9')||(LA18_229>='A' && LA18_229<='Z')||LA18_229=='_'||(LA18_229>='a' && LA18_229<='z')||(LA18_229>='\u00C0' && LA18_229<='\u00D6')||(LA18_229>='\u00D8' && LA18_229<='\u00F6')||(LA18_229>='\u00F8' && LA18_229<='\u1FFF')||(LA18_229>='\u3040' && LA18_229<='\u318F')||(LA18_229>='\u3300' && LA18_229<='\u337F')||(LA18_229>='\u3400' && LA18_229<='\u3D2D')||(LA18_229>='\u4E00' && LA18_229<='\u9FFF')||(LA18_229>='\uF900' && LA18_229<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=75;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'e':
- {
- int LA18_114 = input.LA(3);
-
- if ( (LA18_114=='w') ) {
- int LA18_172 = input.LA(4);
-
- if ( (LA18_172=='$'||(LA18_172>='0' && LA18_172<='9')||(LA18_172>='A' && LA18_172<='Z')||LA18_172=='_'||(LA18_172>='a' && LA18_172<='z')||(LA18_172>='\u00C0' && LA18_172<='\u00D6')||(LA18_172>='\u00D8' && LA18_172<='\u00F6')||(LA18_172>='\u00F8' && LA18_172<='\u1FFF')||(LA18_172>='\u3040' && LA18_172<='\u318F')||(LA18_172>='\u3300' && LA18_172<='\u337F')||(LA18_172>='\u3400' && LA18_172<='\u3D2D')||(LA18_172>='\u4E00' && LA18_172<='\u9FFF')||(LA18_172>='\uF900' && LA18_172<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=72;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'o':
- {
- int LA18_115 = input.LA(3);
-
- if ( (LA18_115=='t') ) {
- int LA18_173 = input.LA(4);
-
- if ( (LA18_173=='E') ) {
- int LA18_231 = input.LA(5);
-
- if ( (LA18_231=='x') ) {
- int LA18_285 = input.LA(6);
-
- if ( (LA18_285=='i') ) {
- int LA18_328 = input.LA(7);
-
- if ( (LA18_328=='s') ) {
- int LA18_370 = input.LA(8);
-
- if ( (LA18_370=='t') ) {
- int LA18_395 = input.LA(9);
-
- if ( (LA18_395=='s') ) {
- int LA18_409 = input.LA(10);
-
- if ( (LA18_409=='$'||(LA18_409>='0' && LA18_409<='9')||(LA18_409>='A' && LA18_409<='Z')||LA18_409=='_'||(LA18_409>='a' && LA18_409<='z')||(LA18_409>='\u00C0' && LA18_409<='\u00D6')||(LA18_409>='\u00D8' && LA18_409<='\u00F6')||(LA18_409>='\u00F8' && LA18_409<='\u1FFF')||(LA18_409>='\u3040' && LA18_409<='\u318F')||(LA18_409>='\u3300' && LA18_409<='\u337F')||(LA18_409>='\u3400' && LA18_409<='\u3D2D')||(LA18_409>='\u4E00' && LA18_409<='\u9FFF')||(LA18_409>='\uF900' && LA18_409<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=82;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='f') ) {
- switch ( input.LA(2) ) {
- case 'a':
- {
- int LA18_116 = input.LA(3);
-
- if ( (LA18_116=='l') ) {
- int LA18_174 = input.LA(4);
-
- if ( (LA18_174=='s') ) {
- int LA18_232 = input.LA(5);
-
- if ( (LA18_232=='e') ) {
- int LA18_286 = input.LA(6);
-
- if ( (LA18_286=='$'||(LA18_286>='0' && LA18_286<='9')||(LA18_286>='A' && LA18_286<='Z')||LA18_286=='_'||(LA18_286>='a' && LA18_286<='z')||(LA18_286>='\u00C0' && LA18_286<='\u00D6')||(LA18_286>='\u00D8' && LA18_286<='\u00F6')||(LA18_286>='\u00F8' && LA18_286<='\u1FFF')||(LA18_286>='\u3040' && LA18_286<='\u318F')||(LA18_286>='\u3300' && LA18_286<='\u337F')||(LA18_286>='\u3400' && LA18_286<='\u3D2D')||(LA18_286>='\u4E00' && LA18_286<='\u9FFF')||(LA18_286>='\uF900' && LA18_286<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=73;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- case 'o':
- {
- int LA18_117 = input.LA(3);
-
- if ( (LA18_117=='r') ) {
- int LA18_175 = input.LA(4);
-
- if ( (LA18_175=='A') ) {
- int LA18_233 = input.LA(5);
-
- if ( (LA18_233=='l') ) {
- int LA18_287 = input.LA(6);
-
- if ( (LA18_287=='l') ) {
- int LA18_330 = input.LA(7);
-
- if ( (LA18_330=='$'||(LA18_330>='0' && LA18_330<='9')||(LA18_330>='A' && LA18_330<='Z')||LA18_330=='_'||(LA18_330>='a' && LA18_330<='z')||(LA18_330>='\u00C0' && LA18_330<='\u00D6')||(LA18_330>='\u00D8' && LA18_330<='\u00F6')||(LA18_330>='\u00F8' && LA18_330<='\u1FFF')||(LA18_330>='\u3040' && LA18_330<='\u318F')||(LA18_330>='\u3300' && LA18_330<='\u337F')||(LA18_330>='\u3400' && LA18_330<='\u3D2D')||(LA18_330>='\u4E00' && LA18_330<='\u9FFF')||(LA18_330>='\uF900' && LA18_330<='\uFAFF')) ) {
- alt18=94;
- }
- else {
- alt18=84;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- break;
- default:
- alt18=94;}
-
- }
- else if ( (LA18_0=='[') ) {
- alt18=86;
- }
- else if ( (LA18_0==']') ) {
- alt18=87;
- }
- else if ( ((LA18_0>='0' && LA18_0<='9')) ) {
- alt18=88;
- }
- else if ( (LA18_0=='\"'||LA18_0=='\'') ) {
- alt18=89;
- }
- else if ( (LA18_0=='$'||LA18_0=='B'||LA18_0=='H'||LA18_0=='K'||(LA18_0>='M' && LA18_0<='O')||LA18_0=='Q'||(LA18_0>='T' && LA18_0<='V')||(LA18_0>='X' && LA18_0<='Z')||(LA18_0>='^' && LA18_0<='_')||LA18_0=='b'||(LA18_0>='g' && LA18_0<='h')||(LA18_0>='j' && LA18_0<='k')||LA18_0=='m'||LA18_0=='o'||LA18_0=='q'||(LA18_0>='u' && LA18_0<='z')||(LA18_0>='\u00C0' && LA18_0<='\u00D6')||(LA18_0>='\u00D8' && LA18_0<='\u00F6')||(LA18_0>='\u00F8' && LA18_0<='\u1FFF')||(LA18_0>='\u3040' && LA18_0<='\u318F')||(LA18_0>='\u3300' && LA18_0<='\u337F')||(LA18_0>='\u3400' && LA18_0<='\u3D2D')||(LA18_0>='\u4E00' && LA18_0<='\u9FFF')||(LA18_0>='\uF900' && LA18_0<='\uFAFF')) ) {
- alt18=94;
- }
- else if ( (LA18_0=='R') ) {
- int LA18_49 = input.LA(2);
-
- if ( (LA18_49=='E') ) {
- int LA18_118 = input.LA(3);
-
- if ( (LA18_118=='M') ) {
- int LA18_176 = input.LA(4);
-
- if ( (LA18_176=='\u00BB') && (xpandMode)) {
- alt18=99;
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else {
- alt18=94;}
- }
- else if ( ((LA18_0>='\t' && LA18_0<='\n')||(LA18_0>='\f' && LA18_0<='\r')||LA18_0==' ') ) {
- alt18=95;
- }
- else if ( (LA18_0=='\u00AB') ) {
- int LA18_51 = input.LA(2);
-
- if ( (LA18_51=='R') && (!xpandMode)) {
- alt18=98;
- }
- else {
- alt18=101;}
- }
- else if ( (LA18_0=='\u00BB') ) {
- int LA18_52 = input.LA(2);
-
- if ( ((LA18_52>='\u0000' && LA18_52<='\uFFFE')) && (xpandMode)) {
- alt18=100;
- }
- else if ( (xpandMode) ) {
- alt18=100;
- }
- else if ( (true) ) {
- alt18=102;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1:1: Tokens : ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | T77 | T78 | T79 | T80 | T81 | T82 | T83 | T84 | T85 | T86 | T87 | T88 | T89 | T90 | T91 | T92 | T93 | T94 | T95 | T96 | T97 | T98 | T99 | T100 | T101 | T102 | T103 | T104 | T105 | T106 | T107 | T108 | T109 | T110 | T111 | IntLiteral | StringLiteral | DEFINE | ENDDEFINE | AROUND | ENDAROUND | Identifier | WS | COMMENT | LINE_COMMENT | REM_COMMENT_OUT | REM_COMMENT | TEXT | LG | RG );", 18, 52, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("1:1: Tokens : ( T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | T75 | T76 | T77 | T78 | T79 | T80 | T81 | T82 | T83 | T84 | T85 | T86 | T87 | T88 | T89 | T90 | T91 | T92 | T93 | T94 | T95 | T96 | T97 | T98 | T99 | T100 | T101 | T102 | T103 | T104 | T105 | T106 | T107 | T108 | T109 | T110 | T111 | IntLiteral | StringLiteral | DEFINE | ENDDEFINE | AROUND | ENDAROUND | Identifier | WS | COMMENT | LINE_COMMENT | REM_COMMENT_OUT | REM_COMMENT | TEXT | LG | RG );", 18, 0, input);
-
- throw nvae;
- }
- switch (alt18) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:10: T25
- {
- mT25();
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:14: T26
- {
- mT26();
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:18: T27
- {
- mT27();
-
- }
- break;
- case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:22: T28
- {
- mT28();
-
- }
- break;
- case 5 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:26: T29
- {
- mT29();
-
- }
- break;
- case 6 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:30: T30
- {
- mT30();
-
- }
- break;
- case 7 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:34: T31
- {
- mT31();
-
- }
- break;
- case 8 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:38: T32
- {
- mT32();
-
- }
- break;
- case 9 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:42: T33
- {
- mT33();
-
- }
- break;
- case 10 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:46: T34
- {
- mT34();
-
- }
- break;
- case 11 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:50: T35
- {
- mT35();
-
- }
- break;
- case 12 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:54: T36
- {
- mT36();
-
- }
- break;
- case 13 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:58: T37
- {
- mT37();
-
- }
- break;
- case 14 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:62: T38
- {
- mT38();
-
- }
- break;
- case 15 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:66: T39
- {
- mT39();
-
- }
- break;
- case 16 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:70: T40
- {
- mT40();
-
- }
- break;
- case 17 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:74: T41
- {
- mT41();
-
- }
- break;
- case 18 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:78: T42
- {
- mT42();
-
- }
- break;
- case 19 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:82: T43
- {
- mT43();
-
- }
- break;
- case 20 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:86: T44
- {
- mT44();
-
- }
- break;
- case 21 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:90: T45
- {
- mT45();
-
- }
- break;
- case 22 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:94: T46
- {
- mT46();
-
- }
- break;
- case 23 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:98: T47
- {
- mT47();
-
- }
- break;
- case 24 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:102: T48
- {
- mT48();
-
- }
- break;
- case 25 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:106: T49
- {
- mT49();
-
- }
- break;
- case 26 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:110: T50
- {
- mT50();
-
- }
- break;
- case 27 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:114: T51
- {
- mT51();
-
- }
- break;
- case 28 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:118: T52
- {
- mT52();
-
- }
- break;
- case 29 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:122: T53
- {
- mT53();
-
- }
- break;
- case 30 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:126: T54
- {
- mT54();
-
- }
- break;
- case 31 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:130: T55
- {
- mT55();
-
- }
- break;
- case 32 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:134: T56
- {
- mT56();
-
- }
- break;
- case 33 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:138: T57
- {
- mT57();
-
- }
- break;
- case 34 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:142: T58
- {
- mT58();
-
- }
- break;
- case 35 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:146: T59
- {
- mT59();
-
- }
- break;
- case 36 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:150: T60
- {
- mT60();
-
- }
- break;
- case 37 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:154: T61
- {
- mT61();
-
- }
- break;
- case 38 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:158: T62
- {
- mT62();
-
- }
- break;
- case 39 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:162: T63
- {
- mT63();
-
- }
- break;
- case 40 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:166: T64
- {
- mT64();
-
- }
- break;
- case 41 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:170: T65
- {
- mT65();
-
- }
- break;
- case 42 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:174: T66
- {
- mT66();
-
- }
- break;
- case 43 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:178: T67
- {
- mT67();
-
- }
- break;
- case 44 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:182: T68
- {
- mT68();
-
- }
- break;
- case 45 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:186: T69
- {
- mT69();
-
- }
- break;
- case 46 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:190: T70
- {
- mT70();
-
- }
- break;
- case 47 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:194: T71
- {
- mT71();
-
- }
- break;
- case 48 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:198: T72
- {
- mT72();
-
- }
- break;
- case 49 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:202: T73
- {
- mT73();
-
- }
- break;
- case 50 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:206: T74
- {
- mT74();
-
- }
- break;
- case 51 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:210: T75
- {
- mT75();
-
- }
- break;
- case 52 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:214: T76
- {
- mT76();
-
- }
- break;
- case 53 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:218: T77
- {
- mT77();
-
- }
- break;
- case 54 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:222: T78
- {
- mT78();
-
- }
- break;
- case 55 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:226: T79
- {
- mT79();
-
- }
- break;
- case 56 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:230: T80
- {
- mT80();
-
- }
- break;
- case 57 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:234: T81
- {
- mT81();
-
- }
- break;
- case 58 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:238: T82
- {
- mT82();
-
- }
- break;
- case 59 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:242: T83
- {
- mT83();
-
- }
- break;
- case 60 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:246: T84
- {
- mT84();
-
- }
- break;
- case 61 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:250: T85
- {
- mT85();
-
- }
- break;
- case 62 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:254: T86
- {
- mT86();
-
- }
- break;
- case 63 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:258: T87
- {
- mT87();
-
- }
- break;
- case 64 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:262: T88
- {
- mT88();
-
- }
- break;
- case 65 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:266: T89
- {
- mT89();
-
- }
- break;
- case 66 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:270: T90
- {
- mT90();
-
- }
- break;
- case 67 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:274: T91
- {
- mT91();
-
- }
- break;
- case 68 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:278: T92
- {
- mT92();
-
- }
- break;
- case 69 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:282: T93
- {
- mT93();
-
- }
- break;
- case 70 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:286: T94
- {
- mT94();
-
- }
- break;
- case 71 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:290: T95
- {
- mT95();
-
- }
- break;
- case 72 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:294: T96
- {
- mT96();
-
- }
- break;
- case 73 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:298: T97
- {
- mT97();
-
- }
- break;
- case 74 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:302: T98
- {
- mT98();
-
- }
- break;
- case 75 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:306: T99
- {
- mT99();
-
- }
- break;
- case 76 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:310: T100
- {
- mT100();
-
- }
- break;
- case 77 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:315: T101
- {
- mT101();
-
- }
- break;
- case 78 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:320: T102
- {
- mT102();
-
- }
- break;
- case 79 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:325: T103
- {
- mT103();
-
- }
- break;
- case 80 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:330: T104
- {
- mT104();
-
- }
- break;
- case 81 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:335: T105
- {
- mT105();
-
- }
- break;
- case 82 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:340: T106
- {
- mT106();
-
- }
- break;
- case 83 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:345: T107
- {
- mT107();
-
- }
- break;
- case 84 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:350: T108
- {
- mT108();
-
- }
- break;
- case 85 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:355: T109
- {
- mT109();
-
- }
- break;
- case 86 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:360: T110
- {
- mT110();
-
- }
- break;
- case 87 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:365: T111
- {
- mT111();
-
- }
- break;
- case 88 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:370: IntLiteral
- {
- mIntLiteral();
-
- }
- break;
- case 89 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:381: StringLiteral
- {
- mStringLiteral();
-
- }
- break;
- case 90 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:395: DEFINE
- {
- mDEFINE();
-
- }
- break;
- case 91 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:402: ENDDEFINE
- {
- mENDDEFINE();
-
- }
- break;
- case 92 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:412: AROUND
- {
- mAROUND();
-
- }
- break;
- case 93 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:419: ENDAROUND
- {
- mENDAROUND();
-
- }
- break;
- case 94 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:429: Identifier
- {
- mIdentifier();
-
- }
- break;
- case 95 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:440: WS
- {
- mWS();
-
- }
- break;
- case 96 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:443: COMMENT
- {
- mCOMMENT();
-
- }
- break;
- case 97 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:451: LINE_COMMENT
- {
- mLINE_COMMENT();
-
- }
- break;
- case 98 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:464: REM_COMMENT_OUT
- {
- mREM_COMMENT_OUT();
-
- }
- break;
- case 99 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:480: REM_COMMENT
- {
- mREM_COMMENT();
-
- }
- break;
- case 100 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:492: TEXT
- {
- mTEXT();
-
- }
- break;
- case 101 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:497: LG
- {
- mLG();
-
- }
- break;
- case 102 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:1:500: RG
- {
- mRG();
-
- }
- break;
-
- }
-
- }
-
-
-
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java
deleted file mode 100644
index 8c72dff..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3NodeParser.java
+++ /dev/null
@@ -1,715 +0,0 @@
-package org.eclipse.xpand3.parser;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.antlr.runtime.TokenStream;
-
-public class Xpand3NodeParser extends AbstractXpand3NodeParser {
-
- private HashSet<String> normalizableRules;
-
- public Xpand3NodeParser(TokenStream input) {
- super(input);
- normalizableRules = new HashSet<String>();
- normalizableRules.add("r_file");
- normalizableRules.add("r_abstractDeclaration");
- normalizableRules.add("r_statement");
- normalizableRules.add("r_textSequence");
- normalizableRules.add("r_simpleStatement");
- normalizableRules.add("test_expression");
- normalizableRules.add("r_expression");
- normalizableRules.add("r_letExpression");
- normalizableRules.add("r_castedExpression");
- normalizableRules.add("r_chainExpression");
- normalizableRules.add("r_ifExpression");
- normalizableRules.add("r_switchExpression");
- normalizableRules.add("r_orExpression");
- normalizableRules.add("r_andExpression");
- normalizableRules.add("r_impliesExpression");
- normalizableRules.add("r_relationalExpression");
- normalizableRules.add("r_additiveExpression");
- normalizableRules.add("r_multiplicativeExpression");
- normalizableRules.add("r_unaryExpression");
- normalizableRules.add("r_infixExpression");
- normalizableRules.add("r_primaryExpression");
- normalizableRules.add("r_featureCall");
- normalizableRules.add("r_type");
- }
-
- @Override
- protected Set<String> normalizableRules() {
- return normalizableRules;
- }
- //
- // // Following code is generated (or at least should be)
- // @Override
- // public r_abstractDeclaration_return r_abstractDeclaration() throws
- // RecognitionException {
- // try {
- // ruleStart("r_abstractDeclaration");
- // return super.r_abstractDeclaration();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_additiveExpression_return r_additiveExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_additiveExpression");
- // return super.r_additiveExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_andExpression_return r_andExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_andExpression");
- // return super.r_andExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_around_return r_around() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_around");
- // return super.r_around();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_booleanLiteral_return r_booleanLiteral() throws
- // RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_booleanLiteral");
- // return super.r_booleanLiteral();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_casePart_return r_casePart() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_casePart");
- // return super.r_casePart();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_castedExpression_return r_castedExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_castedExpression");
- // return super.r_castedExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_chainExpression_return r_chainExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_chainExpression");
- // return super.r_chainExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_check_return r_check() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_check");
- // return super.r_check();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_collectionExpression_return r_collectionExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_collectionExpression");
- // return super.r_collectionExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_collectionType_return r_collectionType() throws
- // RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_collectionType");
- // return super.r_collectionType();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_constructorCall_return r_constructorCall() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_constructorCall");
- // return super.r_constructorCall();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_declaredParameter_return r_declaredParameter() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_declaredParameter");
- // return super.r_declaredParameter();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_declaredParameterList_return r_declaredParameterList() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_declaredParameterList");
- // return super.r_declaredParameterList();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_expression_return r_expression() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_expression");
- // return super.r_expression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_extension_return r_extension() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_extension");
- // return super.r_extension();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_featureCall_return r_featureCall() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_featureCall");
- // return super.r_featureCall();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_file_return r_file() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_file");
- // return super.r_file();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_globalVarExpression_return r_globalVarExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_globalVarExpression");
- // return super.r_globalVarExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_identifier_return r_identifier() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_identifier");
- // return super.r_identifier();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_ifExpression_return r_ifExpression() throws RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_ifExpression");
- // return super.r_ifExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_impliesExpression_return r_impliesExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_impliesExpression");
- // return super.r_impliesExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_infixExpression_return r_infixExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_infixExpression");
- // return super.r_infixExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_javaType_return r_javaType() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_javaType");
- // return super.r_javaType();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_letExpression_return r_letExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_letExpression");
- // return super.r_letExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_listLiteral_return r_listLiteral() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_listLiteral");
- // return super.r_listLiteral();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_multiplicativeExpression_return r_multiplicativeExpression()
- // throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_multiplicativeExpression");
- // return super.r_multiplicativeExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_nsImport_return r_nsImport() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_nsImport");
- // return super.r_nsImport();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_nullLiteral_return r_nullLiteral() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_nullLiteral");
- // return super.r_nullLiteral();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_numberLiteral_return r_numberLiteral() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_numberLiteral");
- // return super.r_numberLiteral();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_orExpression_return r_orExpression() throws RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_orExpression");
- // return super.r_orExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_parameterList_return r_parameterList() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_parameterList");
- // return super.r_parameterList();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_paranthesizedExpression_return r_paranthesizedExpression()
- // throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_paranthesizedExpression");
- // return super.r_paranthesizedExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_pointcut_return r_pointcut() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_pointcut");
- // return super.r_pointcut();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_primaryExpression_return r_primaryExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_primaryExpression");
- // return super.r_primaryExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_relationalExpression_return r_relationalExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_relationalExpression");
- // return super.r_relationalExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_simpleType_return r_simpleType() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_simpleType");
- // return super.r_simpleType();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_switchExpression_return r_switchExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_switchExpression");
- // return super.r_switchExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_type_return r_type() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_type");
- // return super.r_type();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_unaryExpression_return r_unaryExpression() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_unaryExpression");
- // return super.r_unaryExpression();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_definition_return r_definition() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_definition");
- // return super.r_definition();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_definitionAround_return r_definitionAround() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_definitionAround");
- // return super.r_definitionAround();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_elseIfStatement_return r_elseIfStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_elseIfStatement");
- // return super.r_elseIfStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_elseStatement_return r_elseStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_elseStatement");
- // return super.r_elseStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_errorStatement_return r_errorStatement() throws
- // RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_errorStatement");
- // return super.r_errorStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_expandStatement_return r_expandStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_expandStatement");
- // return super.r_expandStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_expressionStmt_return r_expressionStmt() throws
- // RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_expressionStmt");
- // return super.r_expressionStmt();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_fileStatement_return r_fileStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_fileStatement");
- // return super.r_fileStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_foreachStatement_return r_foreachStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_foreachStatement");
- // return super.r_foreachStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_ifStatement_return r_ifStatement() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_ifStatement");
- // return super.r_ifStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_letStatement_return r_letStatement() throws RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_letStatement");
- // return super.r_letStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_protectStatement_return r_protectStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_protectStatement");
- // return super.r_protectStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_sequence_return r_sequence() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_sequence");
- // return super.r_sequence();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_simpleStatement_return r_simpleStatement() throws
- // RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_simpleStatement");
- // return super.r_simpleStatement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_statement_return r_statement() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_statement");
- // return super.r_statement();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_text_return r_text() throws RecognitionException {
- // // Auto-generated method
- // try {
- // ruleStart("r_text");
- // return super.r_text();
- // } finally {
- // ruleEnd();
- // }
- // }
- //
- // @Override
- // public r_textSequence_return r_textSequence() throws RecognitionException
- // {
- // // Auto-generated method
- // try {
- // ruleStart("r_textSequence");
- // return super.r_textSequence();
- // } finally {
- // ruleEnd();
- // }
- // }
-
-}
diff --git a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java b/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java
deleted file mode 100644
index a71647e..0000000
--- a/plugins/org.eclipse.xpand3/src/org/eclipse/xpand3/parser/Xpand3Parser.java
+++ /dev/null
@@ -1,9827 +0,0 @@
-// $ANTLR 3.0.1 src/org/eclipse/xpand3/parser/Xpand3.g 2008-02-28 17:18:31
-
-package org.eclipse.xpand3.parser;
-
-
-import java.util.HashMap;
-
-import org.antlr.runtime.BaseRecognizer;
-import org.antlr.runtime.BitSet;
-import org.antlr.runtime.CommonToken;
-import org.antlr.runtime.DFA;
-import org.antlr.runtime.IntStream;
-import org.antlr.runtime.MismatchedSetException;
-import org.antlr.runtime.NoViableAltException;
-import org.antlr.runtime.Parser;
-import org.antlr.runtime.ParserRuleReturnScope;
-import org.antlr.runtime.RecognitionException;
-import org.antlr.runtime.Token;
-import org.antlr.runtime.TokenStream;
-import org.antlr.runtime.tree.CommonTreeAdaptor;
-import org.antlr.runtime.tree.TreeAdaptor;
-
-/** START EDITED 'abstract' added */
-public abstract class Xpand3Parser extends Parser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "LG", "RG", "DEFINE", "ENDDEFINE", "AROUND", "ENDAROUND", "TEXT", "StringLiteral", "IntLiteral", "Identifier", "EscapeSequence", "UnicodeEscape", "OctalEscape", "HexDigit", "Letter", "JavaIDDigit", "WS", "COMMENT", "LINE_COMMENT", "REM_COMMENT_OUT", "REM_COMMENT", "'IMPORT'", "'EXTENSION'", "'import'", "';'", "'extension'", "'reexport'", "'('", "','", "'*'", "')'", "'FOR'", "'-'", "'ERROR'", "'EXPAND'", "'FOREACH'", "'SEPARATOR'", "'FILE'", "'ENDFILE'", "'AS'", "'ITERATOR'", "'ENDFOREACH'", "'IF'", "'ENDIF'", "'ELSEIF'", "'ELSE'", "'LET'", "'ENDLET'", "'PROTECT'", "'CSTART'", "'CEND'", "'ID'", "'DISABLE'", "'ENDPROTECT'", "'context'", "'if'", "'WARNING'", "':'", "'around'", "'::'", "'private'", "'cached'", "'create'", "'JAVA'", "'.'", "'Collection'", "'List'", "'Set'", "'let'", "'='", "'->'", "'?'", "'then'", "'else'", "'switch'", "'{'", "'default'", "'}'", "'case'", "'||'", "'&&'", "'implies'", "'=='", "'!='", "'>='", "'<='", "'>'", "'<'", "'+'", "'/'", "'!'", "'GLOBALVAR'", "'new'", "'false'", "'true'", "'null'", "'typeSelect'", "'collect'", "'select'", "'selectFirst'", "'reject'", "'exists'", "'notExists'", "'sortBy'", "'forAll'", "'|'", "'['", "']'"
- };
- public static final int IntLiteral=12;
- public static final int Identifier=13;
- public static final int HexDigit=17;
- public static final int WS=20;
- public static final int ENDDEFINE=7;
- public static final int REM_COMMENT=24;
- public static final int RG=5;
- public static final int COMMENT=21;
- public static final int StringLiteral=11;
- public static final int LINE_COMMENT=22;
- public static final int JavaIDDigit=19;
- public static final int Letter=18;
- public static final int DEFINE=6;
- public static final int UnicodeEscape=15;
- public static final int EscapeSequence=14;
- public static final int EOF=-1;
- public static final int TEXT=10;
- public static final int ENDAROUND=9;
- public static final int OctalEscape=16;
- public static final int REM_COMMENT_OUT=23;
- public static final int AROUND=8;
- public static final int LG=4;
-
- public Xpand3Parser(TokenStream input) {
- super(input);
- ruleMemo = new HashMap[60+1];
- }
-
- protected TreeAdaptor adaptor = new CommonTreeAdaptor();
-
- public void setTreeAdaptor(TreeAdaptor adaptor) {
- this.adaptor = adaptor;
- }
- public TreeAdaptor getTreeAdaptor() {
- return adaptor;
- }
-
- /* START EDITED */
- protected abstract void ruleEntered(String ruleName);
- protected abstract void ruleLeft(String ruleName);
- protected abstract void assignNextNodeTo(String alias);
- protected abstract void tokenConsumed(String name, CommonToken ct);
- /* END EDITED */
-
- public String[] getTokenNames() { return tokenNames; }
- public String getGrammarFileName() { return "src/org/eclipse/xpand3/parser/Xpand3.g"; }
-
-
- public static class r_file_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_file
- // src/org/eclipse/xpand3/parser/Xpand3.g:17:1: r_file : (imp= r_nsImport )* (decl= r_abstractDeclaration )* EOF ;
- public final r_file_return r_file() throws RecognitionException {
- r_file_return retval = new r_file_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token EOF1=null;
- r_nsImport_return imp = null;
-
- r_abstractDeclaration_return decl = null;
-
-
- Object EOF1_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_file");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:17:9: ( (imp= r_nsImport )* (decl= r_abstractDeclaration )* EOF )
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:2: (imp= r_nsImport )* (decl= r_abstractDeclaration )* EOF
- {
- root_0 = (Object)adaptor.nil();
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:2: (imp= r_nsImport )*
- loop1:
- do {
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0==LG) ) {
- int LA1_2 = input.LA(2);
-
- if ( ((LA1_2>=25 && LA1_2<=26)) ) {
- alt1=1;
- }
-
-
- }
- else if ( (LA1_0==27||LA1_0==29) ) {
- alt1=1;
- }
-
-
- switch (alt1) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:18:3: imp= r_nsImport
- {
- pushFollow(FOLLOW_r_nsImport_in_r_file51);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("imp");
- }
- /** END EDITED */
- imp=r_nsImport();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, imp.getTree());
-
- }
- break;
-
- default :
- break loop1;
- }
- } while (true);
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:19:2: (decl= r_abstractDeclaration )*
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0==LG||LA2_0==Identifier||LA2_0==58||LA2_0==62||(LA2_0>=64 && LA2_0<=66)||(LA2_0>=69 && LA2_0<=71)) ) {
- alt2=1;
- }
-
-
- switch (alt2) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:19:3: decl= r_abstractDeclaration
- {
- pushFollow(FOLLOW_r_abstractDeclaration_in_r_file59);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("decl");
- }
- /** END EDITED */
- decl=r_abstractDeclaration();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, decl.getTree());
-
- }
- break;
-
- default :
- break loop2;
- }
- } while (true);
-
- EOF1=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("EOF1", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,EOF,FOLLOW_EOF_in_r_file66); if (failed) return retval;
- if ( backtracking==0 ) {
- EOF1_tree = (Object)adaptor.create(EOF1);
- adaptor.addChild(root_0, EOF1_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_file");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_file
-
- public static class r_nsImport_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_nsImport
- // src/org/eclipse/xpand3/parser/Xpand3.g:23:1: r_nsImport : ( LG 'IMPORT' ns= r_type RG | LG 'EXTENSION' ns= r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );
- public final r_nsImport_return r_nsImport() throws RecognitionException {
- r_nsImport_return retval = new r_nsImport_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token LG2=null;
- Token string_literal3=null;
- Token RG4=null;
- Token LG5=null;
- Token string_literal6=null;
- Token RG7=null;
- Token string_literal8=null;
- Token char_literal10=null;
- Token string_literal11=null;
- Token string_literal13=null;
- Token char_literal14=null;
- r_type_return ns = null;
-
- r_type_return r_type9 = null;
-
- r_type_return r_type12 = null;
-
-
- Object LG2_tree=null;
- Object string_literal3_tree=null;
- Object RG4_tree=null;
- Object LG5_tree=null;
- Object string_literal6_tree=null;
- Object RG7_tree=null;
- Object string_literal8_tree=null;
- Object char_literal10_tree=null;
- Object string_literal11_tree=null;
- Object string_literal13_tree=null;
- Object char_literal14_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_nsImport");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:23:11: ( LG 'IMPORT' ns= r_type RG | LG 'EXTENSION' ns= r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' )
- int alt4=4;
- switch ( input.LA(1) ) {
- case LG:
- {
- int LA4_1 = input.LA(2);
-
- if ( (LA4_1==25) ) {
- alt4=1;
- }
- else if ( (LA4_1==26) ) {
- alt4=2;
- }
- else {
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("23:1: r_nsImport : ( LG 'IMPORT' ns= r_type RG | LG 'EXTENSION' ns= r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );", 4, 1, input);
-
- throw nvae;
- }
- }
- break;
- case 27:
- {
- alt4=3;
- }
- break;
- case 29:
- {
- alt4=4;
- }
- break;
- default:
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("23:1: r_nsImport : ( LG 'IMPORT' ns= r_type RG | LG 'EXTENSION' ns= r_type RG | 'import' r_type ';' | 'extension' r_type ( 'reexport' )? ';' );", 4, 0, input);
-
- throw nvae;
- }
-
- switch (alt4) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:24:2: LG 'IMPORT' ns= r_type RG
- {
- root_0 = (Object)adaptor.nil();
-
- LG2=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("LG2", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,LG,FOLLOW_LG_in_r_nsImport75); if (failed) return retval;
- if ( backtracking==0 ) {
- LG2_tree = (Object)adaptor.create(LG2);
- adaptor.addChild(root_0, LG2_tree);
- }
- string_literal3=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal3", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,25,FOLLOW_25_in_r_nsImport77); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal3_tree = (Object)adaptor.create(string_literal3);
- adaptor.addChild(root_0, string_literal3_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_nsImport81);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("ns");
- }
- /** END EDITED */
- ns=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, ns.getTree());
- RG4=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("RG4", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,RG,FOLLOW_RG_in_r_nsImport83); if (failed) return retval;
- if ( backtracking==0 ) {
- RG4_tree = (Object)adaptor.create(RG4);
- adaptor.addChild(root_0, RG4_tree);
- }
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:25:2: LG 'EXTENSION' ns= r_type RG
- {
- root_0 = (Object)adaptor.nil();
-
- LG5=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("LG5", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,LG,FOLLOW_LG_in_r_nsImport88); if (failed) return retval;
- if ( backtracking==0 ) {
- LG5_tree = (Object)adaptor.create(LG5);
- adaptor.addChild(root_0, LG5_tree);
- }
- string_literal6=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal6", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,26,FOLLOW_26_in_r_nsImport90); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal6_tree = (Object)adaptor.create(string_literal6);
- adaptor.addChild(root_0, string_literal6_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_nsImport94);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("ns");
- }
- /** END EDITED */
- ns=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, ns.getTree());
- RG7=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("RG7", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,RG,FOLLOW_RG_in_r_nsImport96); if (failed) return retval;
- if ( backtracking==0 ) {
- RG7_tree = (Object)adaptor.create(RG7);
- adaptor.addChild(root_0, RG7_tree);
- }
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:26:2: 'import' r_type ';'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal8=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal8", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,27,FOLLOW_27_in_r_nsImport101); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal8_tree = (Object)adaptor.create(string_literal8);
- adaptor.addChild(root_0, string_literal8_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_nsImport103);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_type9");
- }
- /** END EDITED */
- r_type9=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_type9.getTree());
- char_literal10=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal10", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,28,FOLLOW_28_in_r_nsImport106); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal10_tree = (Object)adaptor.create(char_literal10);
- adaptor.addChild(root_0, char_literal10_tree);
- }
-
- }
- break;
- case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:2: 'extension' r_type ( 'reexport' )? ';'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal11=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal11", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,29,FOLLOW_29_in_r_nsImport112); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal11_tree = (Object)adaptor.create(string_literal11);
- adaptor.addChild(root_0, string_literal11_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_nsImport114);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_type12");
- }
- /** END EDITED */
- r_type12=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_type12.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:21: ( 'reexport' )?
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( (LA3_0==30) ) {
- alt3=1;
- }
- switch (alt3) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:27:22: 'reexport'
- {
- string_literal13=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal13", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,30,FOLLOW_30_in_r_nsImport117); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal13_tree = (Object)adaptor.create(string_literal13);
- adaptor.addChild(root_0, string_literal13_tree);
- }
-
- }
- break;
-
- }
-
- char_literal14=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal14", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,28,FOLLOW_28_in_r_nsImport121); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal14_tree = (Object)adaptor.create(char_literal14);
- adaptor.addChild(root_0, char_literal14_tree);
- }
-
- }
- break;
-
- }
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_nsImport");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_nsImport
-
- public static class r_abstractDeclaration_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_abstractDeclaration
- // src/org/eclipse/xpand3/parser/Xpand3.g:30:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );
- public final r_abstractDeclaration_return r_abstractDeclaration() throws RecognitionException {
- r_abstractDeclaration_return retval = new r_abstractDeclaration_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- r_check_return r_check15 = null;
-
- r_around_return r_around16 = null;
-
- r_extension_return r_extension17 = null;
-
- r_definition_return r_definition18 = null;
-
- r_definitionAround_return r_definitionAround19 = null;
-
-
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_abstractDeclaration");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:30:23: ( r_check | r_around | r_extension | r_definition | r_definitionAround )
- int alt5=5;
- switch ( input.LA(1) ) {
- case 58:
- {
- alt5=1;
- }
- break;
- case 62:
- {
- alt5=2;
- }
- break;
- case Identifier:
- case 64:
- case 65:
- case 66:
- case 69:
- case 70:
- case 71:
- {
- alt5=3;
- }
- break;
- case LG:
- {
- int LA5_4 = input.LA(2);
-
- if ( (LA5_4==AROUND) ) {
- alt5=5;
- }
- else if ( (LA5_4==DEFINE) ) {
- alt5=4;
- }
- else {
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("30:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );", 5, 4, input);
-
- throw nvae;
- }
- }
- break;
- default:
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("30:1: r_abstractDeclaration : ( r_check | r_around | r_extension | r_definition | r_definitionAround );", 5, 0, input);
-
- throw nvae;
- }
-
- switch (alt5) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:31:2: r_check
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_check_in_r_abstractDeclaration132);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_check15");
- }
- /** END EDITED */
- r_check15=r_check();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_check15.getTree());
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:32:2: r_around
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_around_in_r_abstractDeclaration137);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_around16");
- }
- /** END EDITED */
- r_around16=r_around();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_around16.getTree());
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:33:2: r_extension
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_extension_in_r_abstractDeclaration142);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_extension17");
- }
- /** END EDITED */
- r_extension17=r_extension();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_extension17.getTree());
-
- }
- break;
- case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:34:2: r_definition
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_definition_in_r_abstractDeclaration147);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_definition18");
- }
- /** END EDITED */
- r_definition18=r_definition();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_definition18.getTree());
-
- }
- break;
- case 5 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:35:2: r_definitionAround
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_definitionAround_in_r_abstractDeclaration152);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_definitionAround19");
- }
- /** END EDITED */
- r_definitionAround19=r_definitionAround();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_definitionAround19.getTree());
-
- }
- break;
-
- }
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_abstractDeclaration");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_abstractDeclaration
-
- public static class r_definition_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_definition
- // src/org/eclipse/xpand3/parser/Xpand3.g:40:1: r_definition : LG DEFINE name= r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG ;
- public final r_definition_return r_definition() throws RecognitionException {
- r_definition_return retval = new r_definition_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token LG20=null;
- Token DEFINE21=null;
- Token char_literal22=null;
- Token char_literal24=null;
- Token char_literal25=null;
- Token char_literal26=null;
- Token char_literal27=null;
- Token string_literal28=null;
- Token ENDDEFINE31=null;
- Token RG32=null;
- r_identifier_return name = null;
-
- r_declaredParameterList_return r_declaredParameterList23 = null;
-
- r_type_return r_type29 = null;
-
- r_sequence_return r_sequence30 = null;
-
-
- Object LG20_tree=null;
- Object DEFINE21_tree=null;
- Object char_literal22_tree=null;
- Object char_literal24_tree=null;
- Object char_literal25_tree=null;
- Object char_literal26_tree=null;
- Object char_literal27_tree=null;
- Object string_literal28_tree=null;
- Object ENDDEFINE31_tree=null;
- Object RG32_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_definition");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:40:14: ( LG DEFINE name= r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG )
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:2: LG DEFINE name= r_identifier ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDDEFINE RG
- {
- root_0 = (Object)adaptor.nil();
-
- LG20=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("LG20", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,LG,FOLLOW_LG_in_r_definition164); if (failed) return retval;
- if ( backtracking==0 ) {
- LG20_tree = (Object)adaptor.create(LG20);
- adaptor.addChild(root_0, LG20_tree);
- }
- DEFINE21=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("DEFINE21", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,DEFINE,FOLLOW_DEFINE_in_r_definition166); if (failed) return retval;
- if ( backtracking==0 ) {
- DEFINE21_tree = (Object)adaptor.create(DEFINE21);
- adaptor.addChild(root_0, DEFINE21_tree);
- }
- pushFollow(FOLLOW_r_identifier_in_r_definition170);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("name");
- }
- /** END EDITED */
- name=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, name.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:30: ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0==31) ) {
- alt9=1;
- }
- switch (alt9) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:31: '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')'
- {
- char_literal22=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal22", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,31,FOLLOW_31_in_r_definition173); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal22_tree = (Object)adaptor.create(char_literal22);
- adaptor.addChild(root_0, char_literal22_tree);
- }
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:35: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
- int alt8=3;
- int LA8_0 = input.LA(1);
-
- if ( (LA8_0==Identifier||(LA8_0>=69 && LA8_0<=71)) ) {
- alt8=1;
- }
- else if ( (LA8_0==33) ) {
- alt8=2;
- }
- switch (alt8) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:36: r_declaredParameterList ( ( ',' )? '*' )?
- {
- pushFollow(FOLLOW_r_declaredParameterList_in_r_definition176);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_declaredParameterList23");
- }
- /** END EDITED */
- r_declaredParameterList23=r_declaredParameterList();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList23.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:60: ( ( ',' )? '*' )?
- int alt7=2;
- int LA7_0 = input.LA(1);
-
- if ( ((LA7_0>=32 && LA7_0<=33)) ) {
- alt7=1;
- }
- switch (alt7) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:61: ( ',' )? '*'
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:61: ( ',' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0==32) ) {
- alt6=1;
- }
- switch (alt6) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:61: ','
- {
- char_literal24=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal24", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,32,FOLLOW_32_in_r_definition179); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal24_tree = (Object)adaptor.create(char_literal24);
- adaptor.addChild(root_0, char_literal24_tree);
- }
-
- }
- break;
-
- }
-
- char_literal25=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal25", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_definition182); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal25_tree = (Object)adaptor.create(char_literal25);
- adaptor.addChild(root_0, char_literal25_tree);
- }
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:41:74: '*'
- {
- char_literal26=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal26", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_definition188); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal26_tree = (Object)adaptor.create(char_literal26);
- adaptor.addChild(root_0, char_literal26_tree);
- }
-
- }
- break;
-
- }
-
- char_literal27=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal27", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,34,FOLLOW_34_in_r_definition192); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal27_tree = (Object)adaptor.create(char_literal27);
- adaptor.addChild(root_0, char_literal27_tree);
- }
-
- }
- break;
-
- }
-
- string_literal28=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal28", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,35,FOLLOW_35_in_r_definition196); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal28_tree = (Object)adaptor.create(string_literal28);
- adaptor.addChild(root_0, string_literal28_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_definition198);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_type29");
- }
- /** END EDITED */
- r_type29=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_type29.getTree());
- pushFollow(FOLLOW_r_sequence_in_r_definition201);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence30");
- }
- /** END EDITED */
- r_sequence30=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence30.getTree());
- ENDDEFINE31=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("ENDDEFINE31", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,ENDDEFINE,FOLLOW_ENDDEFINE_in_r_definition204); if (failed) return retval;
- if ( backtracking==0 ) {
- ENDDEFINE31_tree = (Object)adaptor.create(ENDDEFINE31);
- adaptor.addChild(root_0, ENDDEFINE31_tree);
- }
- RG32=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("RG32", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,RG,FOLLOW_RG_in_r_definition206); if (failed) return retval;
- if ( backtracking==0 ) {
- RG32_tree = (Object)adaptor.create(RG32);
- adaptor.addChild(root_0, RG32_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_definition");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_definition
-
- public static class r_definitionAround_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_definitionAround
- // src/org/eclipse/xpand3/parser/Xpand3.g:46:1: r_definitionAround : LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG ;
- public final r_definitionAround_return r_definitionAround() throws RecognitionException {
- r_definitionAround_return retval = new r_definitionAround_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token LG33=null;
- Token AROUND34=null;
- Token char_literal36=null;
- Token char_literal38=null;
- Token char_literal39=null;
- Token char_literal40=null;
- Token char_literal41=null;
- Token string_literal42=null;
- Token ENDAROUND45=null;
- Token RG46=null;
- r_pointcut_return r_pointcut35 = null;
-
- r_declaredParameterList_return r_declaredParameterList37 = null;
-
- r_type_return r_type43 = null;
-
- r_sequence_return r_sequence44 = null;
-
-
- Object LG33_tree=null;
- Object AROUND34_tree=null;
- Object char_literal36_tree=null;
- Object char_literal38_tree=null;
- Object char_literal39_tree=null;
- Object char_literal40_tree=null;
- Object char_literal41_tree=null;
- Object string_literal42_tree=null;
- Object ENDAROUND45_tree=null;
- Object RG46_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_definitionAround");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:46:20: ( LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG )
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:2: LG AROUND r_pointcut ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )? 'FOR' r_type r_sequence ENDAROUND RG
- {
- root_0 = (Object)adaptor.nil();
-
- LG33=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("LG33", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,LG,FOLLOW_LG_in_r_definitionAround218); if (failed) return retval;
- if ( backtracking==0 ) {
- LG33_tree = (Object)adaptor.create(LG33);
- adaptor.addChild(root_0, LG33_tree);
- }
- AROUND34=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("AROUND34", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,AROUND,FOLLOW_AROUND_in_r_definitionAround220); if (failed) return retval;
- if ( backtracking==0 ) {
- AROUND34_tree = (Object)adaptor.create(AROUND34);
- adaptor.addChild(root_0, AROUND34_tree);
- }
- pushFollow(FOLLOW_r_pointcut_in_r_definitionAround222);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_pointcut35");
- }
- /** END EDITED */
- r_pointcut35=r_pointcut();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_pointcut35.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:23: ( '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' )?
- int alt13=2;
- int LA13_0 = input.LA(1);
-
- if ( (LA13_0==31) ) {
- alt13=1;
- }
- switch (alt13) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:24: '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')'
- {
- char_literal36=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal36", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,31,FOLLOW_31_in_r_definitionAround225); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal36_tree = (Object)adaptor.create(char_literal36);
- adaptor.addChild(root_0, char_literal36_tree);
- }
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:28: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
- int alt12=3;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0==Identifier||(LA12_0>=69 && LA12_0<=71)) ) {
- alt12=1;
- }
- else if ( (LA12_0==33) ) {
- alt12=2;
- }
- switch (alt12) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:29: r_declaredParameterList ( ( ',' )? '*' )?
- {
- pushFollow(FOLLOW_r_declaredParameterList_in_r_definitionAround228);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_declaredParameterList37");
- }
- /** END EDITED */
- r_declaredParameterList37=r_declaredParameterList();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList37.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:53: ( ( ',' )? '*' )?
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( ((LA11_0>=32 && LA11_0<=33)) ) {
- alt11=1;
- }
- switch (alt11) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:54: ( ',' )? '*'
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:54: ( ',' )?
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0==32) ) {
- alt10=1;
- }
- switch (alt10) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:54: ','
- {
- char_literal38=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal38", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,32,FOLLOW_32_in_r_definitionAround231); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal38_tree = (Object)adaptor.create(char_literal38);
- adaptor.addChild(root_0, char_literal38_tree);
- }
-
- }
- break;
-
- }
-
- char_literal39=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal39", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_definitionAround234); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal39_tree = (Object)adaptor.create(char_literal39);
- adaptor.addChild(root_0, char_literal39_tree);
- }
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:47:67: '*'
- {
- char_literal40=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal40", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_definitionAround240); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal40_tree = (Object)adaptor.create(char_literal40);
- adaptor.addChild(root_0, char_literal40_tree);
- }
-
- }
- break;
-
- }
-
- char_literal41=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal41", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,34,FOLLOW_34_in_r_definitionAround244); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal41_tree = (Object)adaptor.create(char_literal41);
- adaptor.addChild(root_0, char_literal41_tree);
- }
-
- }
- break;
-
- }
-
- string_literal42=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal42", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,35,FOLLOW_35_in_r_definitionAround248); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal42_tree = (Object)adaptor.create(string_literal42);
- adaptor.addChild(root_0, string_literal42_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_definitionAround250);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_type43");
- }
- /** END EDITED */
- r_type43=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_type43.getTree());
- pushFollow(FOLLOW_r_sequence_in_r_definitionAround253);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence44");
- }
- /** END EDITED */
- r_sequence44=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence44.getTree());
- ENDAROUND45=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("ENDAROUND45", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,ENDAROUND,FOLLOW_ENDAROUND_in_r_definitionAround256); if (failed) return retval;
- if ( backtracking==0 ) {
- ENDAROUND45_tree = (Object)adaptor.create(ENDAROUND45);
- adaptor.addChild(root_0, ENDAROUND45_tree);
- }
- RG46=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("RG46", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,RG,FOLLOW_RG_in_r_definitionAround258); if (failed) return retval;
- if ( backtracking==0 ) {
- RG46_tree = (Object)adaptor.create(RG46);
- adaptor.addChild(root_0, RG46_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_definitionAround");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_definitionAround
-
- public static class r_sequence_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_sequence
- // src/org/eclipse/xpand3/parser/Xpand3.g:52:1: r_sequence : r_textSequence ( r_statement r_textSequence )* ;
- public final r_sequence_return r_sequence() throws RecognitionException {
- r_sequence_return retval = new r_sequence_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- r_textSequence_return r_textSequence47 = null;
-
- r_statement_return r_statement48 = null;
-
- r_textSequence_return r_textSequence49 = null;
-
-
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_sequence");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:52:12: ( r_textSequence ( r_statement r_textSequence )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:53:3: r_textSequence ( r_statement r_textSequence )*
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_textSequence_in_r_sequence270);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_textSequence47");
- }
- /** END EDITED */
- r_textSequence47=r_textSequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_textSequence47.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:54:3: ( r_statement r_textSequence )*
- loop14:
- do {
- int alt14=2;
- int LA14_0 = input.LA(1);
-
- if ( ((LA14_0>=StringLiteral && LA14_0<=Identifier)||LA14_0==31||(LA14_0>=36 && LA14_0<=39)||LA14_0==41||LA14_0==46||LA14_0==50||LA14_0==52||LA14_0==59||(LA14_0>=69 && LA14_0<=72)||(LA14_0>=78 && LA14_0<=79)||(LA14_0>=94 && LA14_0<=108)) ) {
- alt14=1;
- }
-
-
- switch (alt14) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:54:4: r_statement r_textSequence
- {
- pushFollow(FOLLOW_r_statement_in_r_sequence276);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_statement48");
- }
- /** END EDITED */
- r_statement48=r_statement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_statement48.getTree());
- pushFollow(FOLLOW_r_textSequence_in_r_sequence282);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_textSequence49");
- }
- /** END EDITED */
- r_textSequence49=r_textSequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_textSequence49.getTree());
-
- }
- break;
-
- default :
- break loop14;
- }
- } while (true);
-
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_sequence");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_sequence
-
- public static class r_statement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_statement
- // src/org/eclipse/xpand3/parser/Xpand3.g:58:1: r_statement : ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement );
- public final r_statement_return r_statement() throws RecognitionException {
- r_statement_return retval = new r_statement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- r_simpleStatement_return r_simpleStatement50 = null;
-
- r_fileStatement_return r_fileStatement51 = null;
-
- r_foreachStatement_return r_foreachStatement52 = null;
-
- r_ifStatement_return r_ifStatement53 = null;
-
- r_letStatement_return r_letStatement54 = null;
-
- r_protectStatement_return r_protectStatement55 = null;
-
-
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_statement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:58:13: ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement )
- int alt15=6;
- switch ( input.LA(1) ) {
- case StringLiteral:
- case IntLiteral:
- case Identifier:
- case 31:
- case 36:
- case 37:
- case 38:
- case 59:
- case 69:
- case 70:
- case 71:
- case 72:
- case 78:
- case 79:
- case 94:
- case 95:
- case 96:
- case 97:
- case 98:
- case 99:
- case 100:
- case 101:
- case 102:
- case 103:
- case 104:
- case 105:
- case 106:
- case 107:
- case 108:
- {
- alt15=1;
- }
- break;
- case 41:
- {
- alt15=2;
- }
- break;
- case 39:
- {
- alt15=3;
- }
- break;
- case 46:
- {
- alt15=4;
- }
- break;
- case 50:
- {
- alt15=5;
- }
- break;
- case 52:
- {
- alt15=6;
- }
- break;
- default:
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("58:1: r_statement : ( r_simpleStatement | r_fileStatement | r_foreachStatement | r_ifStatement | r_letStatement | r_protectStatement );", 15, 0, input);
-
- throw nvae;
- }
-
- switch (alt15) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:59:3: r_simpleStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_simpleStatement_in_r_statement297);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_simpleStatement50");
- }
- /** END EDITED */
- r_simpleStatement50=r_simpleStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleStatement50.getTree());
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:60:3: r_fileStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_fileStatement_in_r_statement302);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_fileStatement51");
- }
- /** END EDITED */
- r_fileStatement51=r_fileStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_fileStatement51.getTree());
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:61:3: r_foreachStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_foreachStatement_in_r_statement307);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_foreachStatement52");
- }
- /** END EDITED */
- r_foreachStatement52=r_foreachStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_foreachStatement52.getTree());
-
- }
- break;
- case 4 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:62:3: r_ifStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_ifStatement_in_r_statement312);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_ifStatement53");
- }
- /** END EDITED */
- r_ifStatement53=r_ifStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_ifStatement53.getTree());
-
- }
- break;
- case 5 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:63:3: r_letStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_letStatement_in_r_statement317);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_letStatement54");
- }
- /** END EDITED */
- r_letStatement54=r_letStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_letStatement54.getTree());
-
- }
- break;
- case 6 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:64:3: r_protectStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_protectStatement_in_r_statement322);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_protectStatement55");
- }
- /** END EDITED */
- r_protectStatement55=r_protectStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_protectStatement55.getTree());
-
- }
- break;
-
- }
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_statement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_statement
-
- public static class r_textSequence_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_textSequence
- // src/org/eclipse/xpand3/parser/Xpand3.g:67:1: r_textSequence : r_text ( r_text )* ;
- public final r_textSequence_return r_textSequence() throws RecognitionException {
- r_textSequence_return retval = new r_textSequence_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- r_text_return r_text56 = null;
-
- r_text_return r_text57 = null;
-
-
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_textSequence");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:67:16: ( r_text ( r_text )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:2: r_text ( r_text )*
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_text_in_r_textSequence333);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_text56");
- }
- /** END EDITED */
- r_text56=r_text();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_text56.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:9: ( r_text )*
- loop16:
- do {
- int alt16=2;
- int LA16_0 = input.LA(1);
-
- if ( (LA16_0==36) ) {
- int LA16_2 = input.LA(2);
-
- if ( (LA16_2==TEXT) ) {
- alt16=1;
- }
-
-
- }
- else if ( (LA16_0==TEXT) ) {
- alt16=1;
- }
-
-
- switch (alt16) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:68:10: r_text
- {
- pushFollow(FOLLOW_r_text_in_r_textSequence336);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_text57");
- }
- /** END EDITED */
- r_text57=r_text();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_text57.getTree());
-
- }
- break;
-
- default :
- break loop16;
- }
- } while (true);
-
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_textSequence");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_textSequence
-
- public static class r_text_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_text
- // src/org/eclipse/xpand3/parser/Xpand3.g:71:1: r_text : ( '-' )? TEXT ;
- public final r_text_return r_text() throws RecognitionException {
- r_text_return retval = new r_text_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token char_literal58=null;
- Token TEXT59=null;
-
- Object char_literal58_tree=null;
- Object TEXT59_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_text");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:71:8: ( ( '-' )? TEXT )
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: ( '-' )? TEXT
- {
- root_0 = (Object)adaptor.nil();
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: ( '-' )?
- int alt17=2;
- int LA17_0 = input.LA(1);
-
- if ( (LA17_0==36) ) {
- alt17=1;
- }
- switch (alt17) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:72:2: '-'
- {
- char_literal58=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal58", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,36,FOLLOW_36_in_r_text348); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal58_tree = (Object)adaptor.create(char_literal58);
- adaptor.addChild(root_0, char_literal58_tree);
- }
-
- }
- break;
-
- }
-
- TEXT59=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("TEXT59", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,TEXT,FOLLOW_TEXT_in_r_text351); if (failed) return retval;
- if ( backtracking==0 ) {
- TEXT59_tree = (Object)adaptor.create(TEXT59);
- adaptor.addChild(root_0, TEXT59_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_text");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_text
-
- public static class r_simpleStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_simpleStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:75:1: r_simpleStatement : ( r_errorStatement | r_expandStatement | r_expressionStmt );
- public final r_simpleStatement_return r_simpleStatement() throws RecognitionException {
- r_simpleStatement_return retval = new r_simpleStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- r_errorStatement_return r_errorStatement60 = null;
-
- r_expandStatement_return r_expandStatement61 = null;
-
- r_expressionStmt_return r_expressionStmt62 = null;
-
-
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_simpleStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:75:19: ( r_errorStatement | r_expandStatement | r_expressionStmt )
- int alt18=3;
- switch ( input.LA(1) ) {
- case 37:
- {
- alt18=1;
- }
- break;
- case 38:
- {
- alt18=2;
- }
- break;
- case StringLiteral:
- case IntLiteral:
- case Identifier:
- case 31:
- case 36:
- case 59:
- case 69:
- case 70:
- case 71:
- case 72:
- case 78:
- case 79:
- case 94:
- case 95:
- case 96:
- case 97:
- case 98:
- case 99:
- case 100:
- case 101:
- case 102:
- case 103:
- case 104:
- case 105:
- case 106:
- case 107:
- case 108:
- {
- alt18=3;
- }
- break;
- default:
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("75:1: r_simpleStatement : ( r_errorStatement | r_expandStatement | r_expressionStmt );", 18, 0, input);
-
- throw nvae;
- }
-
- switch (alt18) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:76:3: r_errorStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_errorStatement_in_r_simpleStatement362);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_errorStatement60");
- }
- /** END EDITED */
- r_errorStatement60=r_errorStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_errorStatement60.getTree());
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:77:3: r_expandStatement
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_expandStatement_in_r_simpleStatement366);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expandStatement61");
- }
- /** END EDITED */
- r_expandStatement61=r_expandStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expandStatement61.getTree());
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:78:3: r_expressionStmt
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_expressionStmt_in_r_simpleStatement370);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expressionStmt62");
- }
- /** END EDITED */
- r_expressionStmt62=r_expressionStmt();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expressionStmt62.getTree());
-
- }
- break;
-
- }
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_simpleStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_simpleStatement
-
- public static class r_errorStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_errorStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:81:1: r_errorStatement : 'ERROR' r_expression ;
- public final r_errorStatement_return r_errorStatement() throws RecognitionException {
- r_errorStatement_return retval = new r_errorStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal63=null;
- r_expression_return r_expression64 = null;
-
-
- Object string_literal63_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_errorStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:81:18: ( 'ERROR' r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:82:3: 'ERROR' r_expression
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal63=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal63", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,37,FOLLOW_37_in_r_errorStatement381); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal63_tree = (Object)adaptor.create(string_literal63);
- adaptor.addChild(root_0, string_literal63_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_errorStatement383);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression64");
- }
- /** END EDITED */
- r_expression64=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression64.getTree());
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_errorStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_errorStatement
-
- public static class r_expandStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_expandStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:85:1: r_expandStatement : 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )? ;
- public final r_expandStatement_return r_expandStatement() throws RecognitionException {
- r_expandStatement_return retval = new r_expandStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal65=null;
- Token char_literal67=null;
- Token char_literal69=null;
- Token string_literal70=null;
- Token string_literal72=null;
- Token string_literal74=null;
- r_simpleType_return r_simpleType66 = null;
-
- r_parameterList_return r_parameterList68 = null;
-
- r_expression_return r_expression71 = null;
-
- r_expression_return r_expression73 = null;
-
- r_expression_return r_expression75 = null;
-
-
- Object string_literal65_tree=null;
- Object char_literal67_tree=null;
- Object char_literal69_tree=null;
- Object string_literal70_tree=null;
- Object string_literal72_tree=null;
- Object string_literal74_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_expandStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:85:19: ( 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:3: 'EXPAND' r_simpleType ( '(' r_parameterList ')' )? ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )?
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal65=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal65", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,38,FOLLOW_38_in_r_expandStatement394); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal65_tree = (Object)adaptor.create(string_literal65);
- adaptor.addChild(root_0, string_literal65_tree);
- }
- pushFollow(FOLLOW_r_simpleType_in_r_expandStatement396);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_simpleType66");
- }
- /** END EDITED */
- r_simpleType66=r_simpleType();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_simpleType66.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:25: ( '(' r_parameterList ')' )?
- int alt19=2;
- int LA19_0 = input.LA(1);
-
- if ( (LA19_0==31) ) {
- alt19=1;
- }
- switch (alt19) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:26: '(' r_parameterList ')'
- {
- char_literal67=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal67", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,31,FOLLOW_31_in_r_expandStatement399); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal67_tree = (Object)adaptor.create(char_literal67);
- adaptor.addChild(root_0, char_literal67_tree);
- }
- pushFollow(FOLLOW_r_parameterList_in_r_expandStatement401);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_parameterList68");
- }
- /** END EDITED */
- r_parameterList68=r_parameterList();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_parameterList68.getTree());
- char_literal69=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal69", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,34,FOLLOW_34_in_r_expandStatement403); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal69_tree = (Object)adaptor.create(char_literal69);
- adaptor.addChild(root_0, char_literal69_tree);
- }
-
- }
- break;
-
- }
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:52: ( ( 'FOR' r_expression ) | ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? ) )?
- int alt21=3;
- int LA21_0 = input.LA(1);
-
- if ( (LA21_0==35) ) {
- alt21=1;
- }
- else if ( (LA21_0==39) ) {
- alt21=2;
- }
- switch (alt21) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:53: ( 'FOR' r_expression )
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:53: ( 'FOR' r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:86:54: 'FOR' r_expression
- {
- string_literal70=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal70", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,35,FOLLOW_35_in_r_expandStatement409); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal70_tree = (Object)adaptor.create(string_literal70);
- adaptor.addChild(root_0, string_literal70_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_expandStatement411);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression71");
- }
- /** END EDITED */
- r_expression71=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression71.getTree());
-
- }
-
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:5: ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? )
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:5: ( 'FOREACH' r_expression ( 'SEPARATOR' r_expression )? )
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:6: 'FOREACH' r_expression ( 'SEPARATOR' r_expression )?
- {
- string_literal72=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal72", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,39,FOLLOW_39_in_r_expandStatement419); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal72_tree = (Object)adaptor.create(string_literal72);
- adaptor.addChild(root_0, string_literal72_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_expandStatement420);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression73");
- }
- /** END EDITED */
- r_expression73=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression73.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:28: ( 'SEPARATOR' r_expression )?
- int alt20=2;
- int LA20_0 = input.LA(1);
-
- if ( (LA20_0==40) ) {
- alt20=1;
- }
- switch (alt20) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:87:29: 'SEPARATOR' r_expression
- {
- string_literal74=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal74", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,40,FOLLOW_40_in_r_expandStatement423); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal74_tree = (Object)adaptor.create(string_literal74);
- adaptor.addChild(root_0, string_literal74_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_expandStatement425);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression75");
- }
- /** END EDITED */
- r_expression75=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression75.getTree());
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_expandStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_expandStatement
-
- public static class r_expressionStmt_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_expressionStmt
- // src/org/eclipse/xpand3/parser/Xpand3.g:90:1: r_expressionStmt : r_expression ;
- public final r_expressionStmt_return r_expressionStmt() throws RecognitionException {
- r_expressionStmt_return retval = new r_expressionStmt_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- r_expression_return r_expression76 = null;
-
-
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_expressionStmt");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:90:19: ( r_expression )
- // src/org/eclipse/xpand3/parser/Xpand3.g:91:2: r_expression
- {
- root_0 = (Object)adaptor.nil();
-
- pushFollow(FOLLOW_r_expression_in_r_expressionStmt441);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression76");
- }
- /** END EDITED */
- r_expression76=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression76.getTree());
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_expressionStmt");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_expressionStmt
-
- public static class r_fileStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_fileStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:94:1: r_fileStatement : 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE' ;
- public final r_fileStatement_return r_fileStatement() throws RecognitionException {
- r_fileStatement_return retval = new r_fileStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal77=null;
- Token string_literal81=null;
- r_expression_return r_expression78 = null;
-
- r_identifier_return r_identifier79 = null;
-
- r_sequence_return r_sequence80 = null;
-
-
- Object string_literal77_tree=null;
- Object string_literal81_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_fileStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:94:17: ( 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:2: 'FILE' r_expression ( r_identifier )? r_sequence 'ENDFILE'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal77=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal77", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,41,FOLLOW_41_in_r_fileStatement451); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal77_tree = (Object)adaptor.create(string_literal77);
- adaptor.addChild(root_0, string_literal77_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_fileStatement453);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression78");
- }
- /** END EDITED */
- r_expression78=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression78.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:22: ( r_identifier )?
- int alt22=2;
- int LA22_0 = input.LA(1);
-
- if ( (LA22_0==Identifier) ) {
- alt22=1;
- }
- switch (alt22) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:95:23: r_identifier
- {
- pushFollow(FOLLOW_r_identifier_in_r_fileStatement456);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_identifier79");
- }
- /** END EDITED */
- r_identifier79=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier79.getTree());
-
- }
- break;
-
- }
-
- pushFollow(FOLLOW_r_sequence_in_r_fileStatement462);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence80");
- }
- /** END EDITED */
- r_sequence80=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence80.getTree());
- string_literal81=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal81", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,42,FOLLOW_42_in_r_fileStatement466); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal81_tree = (Object)adaptor.create(string_literal81);
- adaptor.addChild(root_0, string_literal81_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_fileStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_fileStatement
-
- public static class r_foreachStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_foreachStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:100:1: r_foreachStatement : 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH' ;
- public final r_foreachStatement_return r_foreachStatement() throws RecognitionException {
- r_foreachStatement_return retval = new r_foreachStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal82=null;
- Token string_literal84=null;
- Token string_literal86=null;
- Token string_literal88=null;
- Token string_literal91=null;
- r_expression_return r_expression83 = null;
-
- r_identifier_return r_identifier85 = null;
-
- r_identifier_return r_identifier87 = null;
-
- r_expression_return r_expression89 = null;
-
- r_sequence_return r_sequence90 = null;
-
-
- Object string_literal82_tree=null;
- Object string_literal84_tree=null;
- Object string_literal86_tree=null;
- Object string_literal88_tree=null;
- Object string_literal91_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_foreachStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:100:20: ( 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:3: 'FOREACH' r_expression 'AS' r_identifier ( 'ITERATOR' r_identifier )? ( 'SEPARATOR' r_expression )? r_sequence 'ENDFOREACH'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal82=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal82", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,39,FOLLOW_39_in_r_foreachStatement478); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal82_tree = (Object)adaptor.create(string_literal82);
- adaptor.addChild(root_0, string_literal82_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_foreachStatement480);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression83");
- }
- /** END EDITED */
- r_expression83=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression83.getTree());
- string_literal84=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal84", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,43,FOLLOW_43_in_r_foreachStatement482); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal84_tree = (Object)adaptor.create(string_literal84);
- adaptor.addChild(root_0, string_literal84_tree);
- }
- pushFollow(FOLLOW_r_identifier_in_r_foreachStatement484);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_identifier85");
- }
- /** END EDITED */
- r_identifier85=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier85.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:44: ( 'ITERATOR' r_identifier )?
- int alt23=2;
- int LA23_0 = input.LA(1);
-
- if ( (LA23_0==44) ) {
- alt23=1;
- }
- switch (alt23) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:45: 'ITERATOR' r_identifier
- {
- string_literal86=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal86", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,44,FOLLOW_44_in_r_foreachStatement487); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal86_tree = (Object)adaptor.create(string_literal86);
- adaptor.addChild(root_0, string_literal86_tree);
- }
- pushFollow(FOLLOW_r_identifier_in_r_foreachStatement489);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_identifier87");
- }
- /** END EDITED */
- r_identifier87=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier87.getTree());
-
- }
- break;
-
- }
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:71: ( 'SEPARATOR' r_expression )?
- int alt24=2;
- int LA24_0 = input.LA(1);
-
- if ( (LA24_0==40) ) {
- alt24=1;
- }
- switch (alt24) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:101:72: 'SEPARATOR' r_expression
- {
- string_literal88=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal88", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,40,FOLLOW_40_in_r_foreachStatement494); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal88_tree = (Object)adaptor.create(string_literal88);
- adaptor.addChild(root_0, string_literal88_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_foreachStatement496);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression89");
- }
- /** END EDITED */
- r_expression89=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression89.getTree());
-
- }
- break;
-
- }
-
- pushFollow(FOLLOW_r_sequence_in_r_foreachStatement504);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence90");
- }
- /** END EDITED */
- r_sequence90=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence90.getTree());
- string_literal91=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal91", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,45,FOLLOW_45_in_r_foreachStatement509); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal91_tree = (Object)adaptor.create(string_literal91);
- adaptor.addChild(root_0, string_literal91_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_foreachStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_foreachStatement
-
- public static class r_ifStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_ifStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:106:1: r_ifStatement : 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF' ;
- public final r_ifStatement_return r_ifStatement() throws RecognitionException {
- r_ifStatement_return retval = new r_ifStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal92=null;
- Token string_literal97=null;
- r_expression_return r_expression93 = null;
-
- r_sequence_return r_sequence94 = null;
-
- r_elseIfStatement_return r_elseIfStatement95 = null;
-
- r_elseStatement_return r_elseStatement96 = null;
-
-
- Object string_literal92_tree=null;
- Object string_literal97_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_ifStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:106:15: ( 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:107:6: 'IF' r_expression r_sequence ( r_elseIfStatement )* ( r_elseStatement )? 'ENDIF'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal92=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal92", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,46,FOLLOW_46_in_r_ifStatement524); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal92_tree = (Object)adaptor.create(string_literal92);
- adaptor.addChild(root_0, string_literal92_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_ifStatement526);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression93");
- }
- /** END EDITED */
- r_expression93=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression93.getTree());
- pushFollow(FOLLOW_r_sequence_in_r_ifStatement530);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence94");
- }
- /** END EDITED */
- r_sequence94=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence94.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:109:3: ( r_elseIfStatement )*
- loop25:
- do {
- int alt25=2;
- int LA25_0 = input.LA(1);
-
- if ( (LA25_0==48) ) {
- alt25=1;
- }
-
-
- switch (alt25) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:109:3: r_elseIfStatement
- {
- pushFollow(FOLLOW_r_elseIfStatement_in_r_ifStatement535);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_elseIfStatement95");
- }
- /** END EDITED */
- r_elseIfStatement95=r_elseIfStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_elseIfStatement95.getTree());
-
- }
- break;
-
- default :
- break loop25;
- }
- } while (true);
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:110:3: ( r_elseStatement )?
- int alt26=2;
- int LA26_0 = input.LA(1);
-
- if ( (LA26_0==49) ) {
- alt26=1;
- }
- switch (alt26) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:110:3: r_elseStatement
- {
- pushFollow(FOLLOW_r_elseStatement_in_r_ifStatement540);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_elseStatement96");
- }
- /** END EDITED */
- r_elseStatement96=r_elseStatement();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_elseStatement96.getTree());
-
- }
- break;
-
- }
-
- string_literal97=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal97", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,47,FOLLOW_47_in_r_ifStatement545); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal97_tree = (Object)adaptor.create(string_literal97);
- adaptor.addChild(root_0, string_literal97_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_ifStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_ifStatement
-
- public static class r_elseIfStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_elseIfStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:114:1: r_elseIfStatement : 'ELSEIF' r_expression r_sequence ;
- public final r_elseIfStatement_return r_elseIfStatement() throws RecognitionException {
- r_elseIfStatement_return retval = new r_elseIfStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal98=null;
- r_expression_return r_expression99 = null;
-
- r_sequence_return r_sequence100 = null;
-
-
- Object string_literal98_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_elseIfStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:114:19: ( 'ELSEIF' r_expression r_sequence )
- // src/org/eclipse/xpand3/parser/Xpand3.g:115:2: 'ELSEIF' r_expression r_sequence
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal98=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal98", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,48,FOLLOW_48_in_r_elseIfStatement555); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal98_tree = (Object)adaptor.create(string_literal98);
- adaptor.addChild(root_0, string_literal98_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_elseIfStatement557);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression99");
- }
- /** END EDITED */
- r_expression99=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression99.getTree());
- pushFollow(FOLLOW_r_sequence_in_r_elseIfStatement561);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence100");
- }
- /** END EDITED */
- r_sequence100=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence100.getTree());
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_elseIfStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_elseIfStatement
-
- public static class r_elseStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_elseStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:119:1: r_elseStatement : 'ELSE' r_sequence ;
- public final r_elseStatement_return r_elseStatement() throws RecognitionException {
- r_elseStatement_return retval = new r_elseStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal101=null;
- r_sequence_return r_sequence102 = null;
-
-
- Object string_literal101_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_elseStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:119:17: ( 'ELSE' r_sequence )
- // src/org/eclipse/xpand3/parser/Xpand3.g:120:2: 'ELSE' r_sequence
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal101=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal101", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,49,FOLLOW_49_in_r_elseStatement573); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal101_tree = (Object)adaptor.create(string_literal101);
- adaptor.addChild(root_0, string_literal101_tree);
- }
- pushFollow(FOLLOW_r_sequence_in_r_elseStatement577);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence102");
- }
- /** END EDITED */
- r_sequence102=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence102.getTree());
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_elseStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_elseStatement
-
- public static class r_letStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_letStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:124:1: r_letStatement : 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET' ;
- public final r_letStatement_return r_letStatement() throws RecognitionException {
- r_letStatement_return retval = new r_letStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal103=null;
- Token string_literal105=null;
- Token string_literal108=null;
- r_expression_return r_expression104 = null;
-
- r_identifier_return r_identifier106 = null;
-
- r_sequence_return r_sequence107 = null;
-
-
- Object string_literal103_tree=null;
- Object string_literal105_tree=null;
- Object string_literal108_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_letStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:124:16: ( 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:125:3: 'LET' r_expression 'AS' r_identifier r_sequence 'ENDLET'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal103=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal103", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,50,FOLLOW_50_in_r_letStatement589); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal103_tree = (Object)adaptor.create(string_literal103);
- adaptor.addChild(root_0, string_literal103_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_letStatement591);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression104");
- }
- /** END EDITED */
- r_expression104=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression104.getTree());
- string_literal105=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal105", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,43,FOLLOW_43_in_r_letStatement593); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal105_tree = (Object)adaptor.create(string_literal105);
- adaptor.addChild(root_0, string_literal105_tree);
- }
- pushFollow(FOLLOW_r_identifier_in_r_letStatement595);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_identifier106");
- }
- /** END EDITED */
- r_identifier106=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier106.getTree());
- pushFollow(FOLLOW_r_sequence_in_r_letStatement601);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence107");
- }
- /** END EDITED */
- r_sequence107=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence107.getTree());
- string_literal108=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal108", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,51,FOLLOW_51_in_r_letStatement606); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal108_tree = (Object)adaptor.create(string_literal108);
- adaptor.addChild(root_0, string_literal108_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_letStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_letStatement
-
- public static class r_protectStatement_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_protectStatement
- // src/org/eclipse/xpand3/parser/Xpand3.g:130:1: r_protectStatement : 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT' ;
- public final r_protectStatement_return r_protectStatement() throws RecognitionException {
- r_protectStatement_return retval = new r_protectStatement_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal109=null;
- Token string_literal110=null;
- Token string_literal112=null;
- Token string_literal114=null;
- Token string_literal116=null;
- Token string_literal118=null;
- r_expression_return r_expression111 = null;
-
- r_expression_return r_expression113 = null;
-
- r_expression_return r_expression115 = null;
-
- r_sequence_return r_sequence117 = null;
-
-
- Object string_literal109_tree=null;
- Object string_literal110_tree=null;
- Object string_literal112_tree=null;
- Object string_literal114_tree=null;
- Object string_literal116_tree=null;
- Object string_literal118_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_protectStatement");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:130:20: ( 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:131:2: 'PROTECT' 'CSTART' r_expression 'CEND' r_expression 'ID' r_expression ( 'DISABLE' )? r_sequence 'ENDPROTECT'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal109=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal109", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,52,FOLLOW_52_in_r_protectStatement617); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal109_tree = (Object)adaptor.create(string_literal109);
- adaptor.addChild(root_0, string_literal109_tree);
- }
- string_literal110=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal110", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,53,FOLLOW_53_in_r_protectStatement622); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal110_tree = (Object)adaptor.create(string_literal110);
- adaptor.addChild(root_0, string_literal110_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_protectStatement624);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression111");
- }
- /** END EDITED */
- r_expression111=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression111.getTree());
- string_literal112=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal112", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,54,FOLLOW_54_in_r_protectStatement629); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal112_tree = (Object)adaptor.create(string_literal112);
- adaptor.addChild(root_0, string_literal112_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_protectStatement631);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression113");
- }
- /** END EDITED */
- r_expression113=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression113.getTree());
- string_literal114=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal114", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,55,FOLLOW_55_in_r_protectStatement644); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal114_tree = (Object)adaptor.create(string_literal114);
- adaptor.addChild(root_0, string_literal114_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_protectStatement646);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression115");
- }
- /** END EDITED */
- r_expression115=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression115.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:134:29: ( 'DISABLE' )?
- int alt27=2;
- int LA27_0 = input.LA(1);
-
- if ( (LA27_0==56) ) {
- alt27=1;
- }
- switch (alt27) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:134:29: 'DISABLE'
- {
- string_literal116=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal116", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,56,FOLLOW_56_in_r_protectStatement648); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal116_tree = (Object)adaptor.create(string_literal116);
- adaptor.addChild(root_0, string_literal116_tree);
- }
-
- }
- break;
-
- }
-
- pushFollow(FOLLOW_r_sequence_in_r_protectStatement654);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_sequence117");
- }
- /** END EDITED */
- r_sequence117=r_sequence();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_sequence117.getTree());
- string_literal118=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal118", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,57,FOLLOW_57_in_r_protectStatement658); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal118_tree = (Object)adaptor.create(string_literal118);
- adaptor.addChild(root_0, string_literal118_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_protectStatement");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_protectStatement
-
- public static class r_check_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_check
- // src/org/eclipse/xpand3/parser/Xpand3.g:141:1: r_check : 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';' ;
- public final r_check_return r_check() throws RecognitionException {
- r_check_return retval = new r_check_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal119=null;
- Token string_literal121=null;
- Token set123=null;
- Token char_literal125=null;
- Token char_literal127=null;
- r_type_return r_type120 = null;
-
- r_expression_return r_expression122 = null;
-
- r_expression_return r_expression124 = null;
-
- r_expression_return r_expression126 = null;
-
-
- Object string_literal119_tree=null;
- Object string_literal121_tree=null;
- Object set123_tree=null;
- Object char_literal125_tree=null;
- Object char_literal127_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_check");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:141:9: ( 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:2: 'context' r_type ( 'if' r_expression )? ( 'ERROR' | 'WARNING' ) r_expression ':' r_expression ';'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal119=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal119", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,58,FOLLOW_58_in_r_check670); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal119_tree = (Object)adaptor.create(string_literal119);
- adaptor.addChild(root_0, string_literal119_tree);
- }
- pushFollow(FOLLOW_r_type_in_r_check672);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_type120");
- }
- /** END EDITED */
- r_type120=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_type120.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:19: ( 'if' r_expression )?
- int alt28=2;
- int LA28_0 = input.LA(1);
-
- if ( (LA28_0==59) ) {
- alt28=1;
- }
- switch (alt28) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:142:20: 'if' r_expression
- {
- string_literal121=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal121", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,59,FOLLOW_59_in_r_check675); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal121_tree = (Object)adaptor.create(string_literal121);
- adaptor.addChild(root_0, string_literal121_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_check677);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression122");
- }
- /** END EDITED */
- r_expression122=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression122.getTree());
-
- }
- break;
-
- }
-
- set123=(Token)input.LT(1);
- if ( input.LA(1)==37||input.LA(1)==60 ) {
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("set123", (CommonToken) input.LT(1));
- }
- /** END EDITED */ input.consume();
- if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set123));
- errorRecovery=false;failed=false;
- }
- else {
- if (backtracking>0) {failed=true; return retval;}
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_check681); throw mse;
- }
-
- pushFollow(FOLLOW_r_expression_in_r_check687);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression124");
- }
- /** END EDITED */
- r_expression124=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression124.getTree());
- char_literal125=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal125", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,61,FOLLOW_61_in_r_check689); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal125_tree = (Object)adaptor.create(char_literal125);
- adaptor.addChild(root_0, char_literal125_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_check693);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression126");
- }
- /** END EDITED */
- r_expression126=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression126.getTree());
- char_literal127=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal127", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,28,FOLLOW_28_in_r_check695); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal127_tree = (Object)adaptor.create(char_literal127);
- adaptor.addChild(root_0, char_literal127_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_check");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_check
-
- public static class r_around_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_around
- // src/org/eclipse/xpand3/parser/Xpand3.g:146:1: r_around : 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';' ;
- public final r_around_return r_around() throws RecognitionException {
- r_around_return retval = new r_around_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token string_literal128=null;
- Token char_literal130=null;
- Token char_literal132=null;
- Token char_literal133=null;
- Token char_literal134=null;
- Token char_literal135=null;
- Token char_literal136=null;
- Token char_literal138=null;
- r_pointcut_return r_pointcut129 = null;
-
- r_declaredParameterList_return r_declaredParameterList131 = null;
-
- r_expression_return r_expression137 = null;
-
-
- Object string_literal128_tree=null;
- Object char_literal130_tree=null;
- Object char_literal132_tree=null;
- Object char_literal133_tree=null;
- Object char_literal134_tree=null;
- Object char_literal135_tree=null;
- Object char_literal136_tree=null;
- Object char_literal138_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_around");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:146:11: ( 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:5: 'around' r_pointcut '(' ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )? ')' ':' r_expression ';'
- {
- root_0 = (Object)adaptor.nil();
-
- string_literal128=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal128", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,62,FOLLOW_62_in_r_around710); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal128_tree = (Object)adaptor.create(string_literal128);
- adaptor.addChild(root_0, string_literal128_tree);
- }
- pushFollow(FOLLOW_r_pointcut_in_r_around712);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_pointcut129");
- }
- /** END EDITED */
- r_pointcut129=r_pointcut();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_pointcut129.getTree());
- char_literal130=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal130", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,31,FOLLOW_31_in_r_around714); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal130_tree = (Object)adaptor.create(char_literal130);
- adaptor.addChild(root_0, char_literal130_tree);
- }
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:29: ( r_declaredParameterList ( ( ',' )? '*' )? | '*' )?
- int alt31=3;
- int LA31_0 = input.LA(1);
-
- if ( (LA31_0==Identifier||(LA31_0>=69 && LA31_0<=71)) ) {
- alt31=1;
- }
- else if ( (LA31_0==33) ) {
- alt31=2;
- }
- switch (alt31) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:30: r_declaredParameterList ( ( ',' )? '*' )?
- {
- pushFollow(FOLLOW_r_declaredParameterList_in_r_around717);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_declaredParameterList131");
- }
- /** END EDITED */
- r_declaredParameterList131=r_declaredParameterList();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_declaredParameterList131.getTree());
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:54: ( ( ',' )? '*' )?
- int alt30=2;
- int LA30_0 = input.LA(1);
-
- if ( ((LA30_0>=32 && LA30_0<=33)) ) {
- alt30=1;
- }
- switch (alt30) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:55: ( ',' )? '*'
- {
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:55: ( ',' )?
- int alt29=2;
- int LA29_0 = input.LA(1);
-
- if ( (LA29_0==32) ) {
- alt29=1;
- }
- switch (alt29) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:55: ','
- {
- char_literal132=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal132", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,32,FOLLOW_32_in_r_around720); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal132_tree = (Object)adaptor.create(char_literal132);
- adaptor.addChild(root_0, char_literal132_tree);
- }
-
- }
- break;
-
- }
-
- char_literal133=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal133", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_around723); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal133_tree = (Object)adaptor.create(char_literal133);
- adaptor.addChild(root_0, char_literal133_tree);
- }
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:147:68: '*'
- {
- char_literal134=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal134", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_around729); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal134_tree = (Object)adaptor.create(char_literal134);
- adaptor.addChild(root_0, char_literal134_tree);
- }
-
- }
- break;
-
- }
-
- char_literal135=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal135", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,34,FOLLOW_34_in_r_around733); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal135_tree = (Object)adaptor.create(char_literal135);
- adaptor.addChild(root_0, char_literal135_tree);
- }
- char_literal136=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal136", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,61,FOLLOW_61_in_r_around735); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal136_tree = (Object)adaptor.create(char_literal136);
- adaptor.addChild(root_0, char_literal136_tree);
- }
- pushFollow(FOLLOW_r_expression_in_r_around742);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_expression137");
- }
- /** END EDITED */
- r_expression137=r_expression();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_expression137.getTree());
- char_literal138=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal138", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,28,FOLLOW_28_in_r_around744); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal138_tree = (Object)adaptor.create(char_literal138);
- adaptor.addChild(root_0, char_literal138_tree);
- }
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_around");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_around
-
- public static class r_pointcut_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_pointcut
- // src/org/eclipse/xpand3/parser/Xpand3.g:151:1: r_pointcut : ( '*' | r_identifier ) ( '*' | r_identifier | '::' )* ;
- public final r_pointcut_return r_pointcut() throws RecognitionException {
- r_pointcut_return retval = new r_pointcut_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token char_literal139=null;
- Token char_literal141=null;
- Token string_literal143=null;
- r_identifier_return r_identifier140 = null;
-
- r_identifier_return r_identifier142 = null;
-
-
- Object char_literal139_tree=null;
- Object char_literal141_tree=null;
- Object string_literal143_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_pointcut");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:151:13: ( ( '*' | r_identifier ) ( '*' | r_identifier | '::' )* )
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:2: ( '*' | r_identifier ) ( '*' | r_identifier | '::' )*
- {
- root_0 = (Object)adaptor.nil();
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:2: ( '*' | r_identifier )
- int alt32=2;
- int LA32_0 = input.LA(1);
-
- if ( (LA32_0==33) ) {
- alt32=1;
- }
- else if ( (LA32_0==Identifier) ) {
- alt32=2;
- }
- else {
- if (backtracking>0) {failed=true; return retval;}
- NoViableAltException nvae =
- new NoViableAltException("152:2: ( '*' | r_identifier )", 32, 0, input);
-
- throw nvae;
- }
- switch (alt32) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:152:4: '*'
- {
- char_literal139=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal139", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_pointcut761); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal139_tree = (Object)adaptor.create(char_literal139);
- adaptor.addChild(root_0, char_literal139_tree);
- }
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:153:4: r_identifier
- {
- pushFollow(FOLLOW_r_identifier_in_r_pointcut767);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_identifier140");
- }
- /** END EDITED */
- r_identifier140=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier140.getTree());
-
- }
- break;
-
- }
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:154:4: ( '*' | r_identifier | '::' )*
- loop33:
- do {
- int alt33=4;
- switch ( input.LA(1) ) {
- case 33:
- {
- alt33=1;
- }
- break;
- case Identifier:
- {
- alt33=2;
- }
- break;
- case 63:
- {
- alt33=3;
- }
- break;
-
- }
-
- switch (alt33) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:154:6: '*'
- {
- char_literal141=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("char_literal141", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,33,FOLLOW_33_in_r_pointcut775); if (failed) return retval;
- if ( backtracking==0 ) {
- char_literal141_tree = (Object)adaptor.create(char_literal141);
- adaptor.addChild(root_0, char_literal141_tree);
- }
-
- }
- break;
- case 2 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:155:6: r_identifier
- {
- pushFollow(FOLLOW_r_identifier_in_r_pointcut783);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_identifier142");
- }
- /** END EDITED */
- r_identifier142=r_identifier();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_identifier142.getTree());
-
- }
- break;
- case 3 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:156:6: '::'
- {
- string_literal143=(Token)input.LT(1);
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("string_literal143", (CommonToken) input.LT(1));
- }
- /** END EDITED */
- match(input,63,FOLLOW_63_in_r_pointcut791); if (failed) return retval;
- if ( backtracking==0 ) {
- string_literal143_tree = (Object)adaptor.create(string_literal143);
- adaptor.addChild(root_0, string_literal143_tree);
- }
-
- }
- break;
-
- default :
- break loop33;
- }
- } while (true);
-
-
- }
-
- retval.stop = input.LT(-1);
-
- if ( backtracking==0 ) {
- retval.tree = (Object)adaptor.rulePostProcessing(root_0);
- adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
- }
- }
- catch (RecognitionException re) {
- reportError(re);
- recover(input,re);
- }
- finally {
- /** START EDITED */
- if(backtracking==0) {
- ruleLeft("r_pointcut");
- }
- /** END EDITED */
- }
- return retval;
- }
- // $ANTLR end r_pointcut
-
- public static class r_extension_return extends ParserRuleReturnScope {
- Object tree;
- public Object getTree() { return tree; }
- };
-
- // $ANTLR start r_extension
- // src/org/eclipse/xpand3/parser/Xpand3.g:159:1: r_extension : ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';' ;
- public final r_extension_return r_extension() throws RecognitionException {
- r_extension_return retval = new r_extension_return();
- retval.start = input.LT(1);
-
- Object root_0 = null;
-
- Token set144=null;
- Token char_literal148=null;
- Token char_literal150=null;
- Token char_literal151=null;
- Token string_literal152=null;
- Token char_literal154=null;
- Token char_literal156=null;
- Token char_literal158=null;
- Token char_literal160=null;
- Token char_literal162=null;
- r_type_return r_type145 = null;
-
- r_identifier_return r_identifier146 = null;
-
- r_identifier_return r_identifier147 = null;
-
- r_declaredParameterList_return r_declaredParameterList149 = null;
-
- r_javaType_return r_javaType153 = null;
-
- r_identifier_return r_identifier155 = null;
-
- r_javaType_return r_javaType157 = null;
-
- r_javaType_return r_javaType159 = null;
-
- r_expression_return r_expression161 = null;
-
-
- Object set144_tree=null;
- Object char_literal148_tree=null;
- Object char_literal150_tree=null;
- Object char_literal151_tree=null;
- Object string_literal152_tree=null;
- Object char_literal154_tree=null;
- Object char_literal156_tree=null;
- Object char_literal158_tree=null;
- Object char_literal160_tree=null;
- Object char_literal162_tree=null;
-
- try {
- /** START EDITED */
- if(backtracking ==0) {
- ruleEntered("r_extension");
- }
- /** END EDITED */
- // src/org/eclipse/xpand3/parser/Xpand3.g:159:14: ( ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';' )
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:2: ( 'private' | 'cached' | 'create' )* ( r_type )? r_identifier ( r_identifier )? '(' ( r_declaredParameterList )? ')' ':' ( 'JAVA' r_javaType '.' r_identifier '(' ( r_javaType ( ',' r_javaType )* )? ')' | r_expression ) ';'
- {
- root_0 = (Object)adaptor.nil();
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:2: ( 'private' | 'cached' | 'create' )*
- loop34:
- do {
- int alt34=2;
- int LA34_0 = input.LA(1);
-
- if ( ((LA34_0>=64 && LA34_0<=66)) ) {
- alt34=1;
- }
-
-
- switch (alt34) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:
- {
- set144=(Token)input.LT(1);
- if ( (input.LA(1)>=64 && input.LA(1)<=66) ) {
- /** START EDITED */
- if(backtracking==0) {
- tokenConsumed("set144", (CommonToken) input.LT(1));
- }
- /** END EDITED */ input.consume();
- if ( backtracking==0 ) adaptor.addChild(root_0, adaptor.create(set144));
- errorRecovery=false;failed=false;
- }
- else {
- if (backtracking>0) {failed=true; return retval;}
- MismatchedSetException mse =
- new MismatchedSetException(null,input);
- recoverFromMismatchedSet(input,mse,FOLLOW_set_in_r_extension805); throw mse;
- }
-
-
- }
- break;
-
- default :
- break loop34;
- }
- } while (true);
-
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:33: ( r_type )?
- int alt35=2;
- int LA35_0 = input.LA(1);
-
- if ( ((LA35_0>=69 && LA35_0<=71)) ) {
- alt35=1;
- }
- else if ( (LA35_0==Identifier) ) {
- int LA35_2 = input.LA(2);
-
- if ( (LA35_2==Identifier||LA35_2==63) ) {
- alt35=1;
- }
- }
- switch (alt35) {
- case 1 :
- // src/org/eclipse/xpand3/parser/Xpand3.g:160:33: r_type
- {
- pushFollow(FOLLOW_r_type_in_r_extension814);
- /** START EDITED */
- if(backtracking==0) {
- assignNextNodeTo("r_type145");
- }
- /** END EDITED */
- r_type145=r_type();
- _fsp--;
- if (failed) return retval;
- if ( backtracking==0 ) adaptor.addChild(root_0, r_type145.getTree());
-
- }
- break;
-
- }
-
- pushFollow(FOLLOW_r_identifier_in_r_extension817);
-