(Nom.class, this, GAMEPackage.LIEU__CONNAISSANCES);
}
return connaissances;
}
@@ -403,14 +418,22 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
{
switch (featureID)
{
+ case GAMEPackage.LIEU__NOM:
+ return basicSetNom(null, msgs);
case GAMEPackage.LIEU__DEPOSABLE:
return basicSetDeposable(null, msgs);
case GAMEPackage.LIEU__DEPART:
return basicSetDepart(null, msgs);
case GAMEPackage.LIEU__FIN:
return basicSetFin(null, msgs);
+ case GAMEPackage.LIEU__PERSONNES:
+ return ((InternalEList>)getPersonnes()).basicRemove(otherEnd, msgs);
case GAMEPackage.LIEU__DESCRIPTIONS:
return ((InternalEList>)getDescriptions()).basicRemove(otherEnd, msgs);
+ case GAMEPackage.LIEU__OBJETS:
+ return ((InternalEList>)getObjets()).basicRemove(otherEnd, msgs);
+ case GAMEPackage.LIEU__CONNAISSANCES:
+ return ((InternalEList>)getConnaissances()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -457,7 +480,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
switch (featureID)
{
case GAMEPackage.LIEU__NOM:
- setNom((String)newValue);
+ setNom((Nom)newValue);
return;
case GAMEPackage.LIEU__DEPOSABLE:
setDeposable((Condition)newValue);
@@ -470,7 +493,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
return;
case GAMEPackage.LIEU__PERSONNES:
getPersonnes().clear();
- getPersonnes().addAll((Collection extends String>)newValue);
+ getPersonnes().addAll((Collection extends Nom>)newValue);
return;
case GAMEPackage.LIEU__DESCRIPTIONS:
getDescriptions().clear();
@@ -478,11 +501,11 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
return;
case GAMEPackage.LIEU__OBJETS:
getObjets().clear();
- getObjets().addAll((Collection extends String>)newValue);
+ getObjets().addAll((Collection extends Nom>)newValue);
return;
case GAMEPackage.LIEU__CONNAISSANCES:
getConnaissances().clear();
- getConnaissances().addAll((Collection extends String>)newValue);
+ getConnaissances().addAll((Collection extends Nom>)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -499,7 +522,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
switch (featureID)
{
case GAMEPackage.LIEU__NOM:
- setNom(NOM_EDEFAULT);
+ setNom((Nom)null);
return;
case GAMEPackage.LIEU__DEPOSABLE:
setDeposable((Condition)null);
@@ -537,7 +560,7 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
switch (featureID)
{
case GAMEPackage.LIEU__NOM:
- return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
+ return nom != null;
case GAMEPackage.LIEU__DEPOSABLE:
return deposable != null;
case GAMEPackage.LIEU__DEPART:
@@ -556,27 +579,4 @@ public class LieuImpl extends MinimalEObjectImpl.Container implements Lieu
return super.eIsSet(featureID);
}
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (nom: ");
- result.append(nom);
- result.append(", personnes: ");
- result.append(personnes);
- result.append(", objets: ");
- result.append(objets);
- result.append(", connaissances: ");
- result.append(connaissances);
- result.append(')');
- return result.toString();
- }
-
} //LieuImpl
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NOTConditionConnaissanceImpl.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NOTConditionConnaissanceImpl.java
index 04386aa..788e72b 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NOTConditionConnaissanceImpl.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NOTConditionConnaissanceImpl.java
@@ -5,10 +5,13 @@ package fr.n7.xtext.gAME.impl;
import fr.n7.xtext.gAME.GAMEPackage;
import fr.n7.xtext.gAME.NOTConditionConnaissance;
+import fr.n7.xtext.gAME.Nom;
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;
@@ -28,24 +31,14 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements NOTConditionConnaissance
{
/**
- * The default value of the '{@link #getConnaissance() Connaissance}' attribute.
+ * The cached value of the '{@link #getConnaissance() Connaissance}' containment reference.
*
*
* @see #getConnaissance()
* @generated
* @ordered
*/
- protected static final String CONNAISSANCE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConnaissance() Connaissance}' attribute.
- *
- *
- * @see #getConnaissance()
- * @generated
- * @ordered
- */
- protected String connaissance = CONNAISSANCE_EDEFAULT;
+ protected Nom connaissance;
/**
*
@@ -74,7 +67,7 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
* @generated
*/
@Override
- public String getConnaissance()
+ public Nom getConnaissance()
{
return connaissance;
}
@@ -84,13 +77,54 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
*
* @generated
*/
- @Override
- public void setConnaissance(String newConnaissance)
+ public NotificationChain basicSetConnaissance(Nom newConnaissance, NotificationChain msgs)
{
- String oldConnaissance = connaissance;
+ Nom oldConnaissance = connaissance;
connaissance = newConnaissance;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, connaissance));
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, oldConnaissance, newConnaissance);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public void setConnaissance(Nom newConnaissance)
+ {
+ if (newConnaissance != connaissance)
+ {
+ NotificationChain msgs = null;
+ if (connaissance != null)
+ msgs = ((InternalEObject)connaissance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, null, msgs);
+ if (newConnaissance != null)
+ msgs = ((InternalEObject)newConnaissance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, null, msgs);
+ msgs = basicSetConnaissance(newConnaissance, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE, newConnaissance, newConnaissance));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
+ return basicSetConnaissance(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
@@ -120,7 +154,7 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
switch (featureID)
{
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
- setConnaissance((String)newValue);
+ setConnaissance((Nom)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -137,7 +171,7 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
switch (featureID)
{
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
- setConnaissance(CONNAISSANCE_EDEFAULT);
+ setConnaissance((Nom)null);
return;
}
super.eUnset(featureID);
@@ -154,26 +188,9 @@ public class NOTConditionConnaissanceImpl extends ConditionTestImpl implements N
switch (featureID)
{
case GAMEPackage.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE:
- return CONNAISSANCE_EDEFAULT == null ? connaissance != null : !CONNAISSANCE_EDEFAULT.equals(connaissance);
+ return connaissance != null;
}
return super.eIsSet(featureID);
}
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (connaissance: ");
- result.append(connaissance);
- result.append(')');
- return result.toString();
- }
-
} //NOTConditionConnaissanceImpl
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NomImpl.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NomImpl.java
new file mode 100644
index 0000000..bddca56
--- /dev/null
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/NomImpl.java
@@ -0,0 +1,180 @@
+/**
+ * generated by Xtext 2.23.0
+ */
+package fr.n7.xtext.gAME.impl;
+
+import fr.n7.xtext.gAME.GAMEPackage;
+import fr.n7.xtext.gAME.Nom;
+
+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.MinimalEObjectImpl;
+
+/**
+ *
+ * An implementation of the model object 'Nom'.
+ *
+ *
+ * The following features are implemented:
+ *
+ *
+ * - {@link fr.n7.xtext.gAME.impl.NomImpl#getNom Nom}
+ *
+ *
+ * @generated
+ */
+public class NomImpl extends MinimalEObjectImpl.Container implements Nom
+{
+ /**
+ * The default value of the '{@link #getNom() Nom}' attribute.
+ *
+ *
+ * @see #getNom()
+ * @generated
+ * @ordered
+ */
+ protected static final String NOM_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNom() Nom}' attribute.
+ *
+ *
+ * @see #getNom()
+ * @generated
+ * @ordered
+ */
+ protected String nom = NOM_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected NomImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return GAMEPackage.Literals.NOM;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public String getNom()
+ {
+ return nom;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public void setNom(String newNom)
+ {
+ String oldNom = nom;
+ nom = newNom;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.NOM__NOM, oldNom, nom));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case GAMEPackage.NOM__NOM:
+ return getNom();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case GAMEPackage.NOM__NOM:
+ setNom((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case GAMEPackage.NOM__NOM:
+ setNom(NOM_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case GAMEPackage.NOM__NOM:
+ return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuilder result = new StringBuilder(super.toString());
+ result.append(" (nom: ");
+ result.append(nom);
+ result.append(')');
+ return result.toString();
+ }
+
+} //NomImpl
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/ObjetImpl.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/ObjetImpl.java
index 6a1e8c3..9821311 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/ObjetImpl.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/ObjetImpl.java
@@ -6,6 +6,7 @@ package fr.n7.xtext.gAME.impl;
import fr.n7.xtext.gAME.Condition;
import fr.n7.xtext.gAME.Description;
import fr.n7.xtext.gAME.GAMEPackage;
+import fr.n7.xtext.gAME.Nom;
import fr.n7.xtext.gAME.Objet;
import java.util.Collection;
@@ -43,24 +44,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
{
/**
- * The default value of the '{@link #getNom() Nom}' attribute.
+ * The cached value of the '{@link #getNom() Nom}' containment reference.
*
*
* @see #getNom()
* @generated
* @ordered
*/
- protected static final String NOM_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getNom() Nom}' attribute.
- *
- *
- * @see #getNom()
- * @generated
- * @ordered
- */
- protected String nom = NOM_EDEFAULT;
+ protected Nom nom;
/**
* The default value of the '{@link #getTaille() Taille}' attribute.
@@ -129,7 +120,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
* @generated
*/
@Override
- public String getNom()
+ public Nom getNom()
{
return nom;
}
@@ -139,13 +130,38 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
*
* @generated
*/
- @Override
- public void setNom(String newNom)
+ public NotificationChain basicSetNom(Nom newNom, NotificationChain msgs)
{
- String oldNom = nom;
+ Nom oldNom = nom;
nom = newNom;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.OBJET__NOM, oldNom, nom));
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.OBJET__NOM, oldNom, newNom);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public void setNom(Nom newNom)
+ {
+ if (newNom != nom)
+ {
+ NotificationChain msgs = null;
+ if (nom != null)
+ msgs = ((InternalEObject)nom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.OBJET__NOM, null, msgs);
+ if (newNom != null)
+ msgs = ((InternalEObject)newNom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.OBJET__NOM, null, msgs);
+ msgs = basicSetNom(newNom, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.OBJET__NOM, newNom, newNom));
}
/**
@@ -248,6 +264,8 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
{
switch (featureID)
{
+ case GAMEPackage.OBJET__NOM:
+ return basicSetNom(null, msgs);
case GAMEPackage.OBJET__VISIBLE:
return basicSetVisible(null, msgs);
case GAMEPackage.OBJET__DESCRIPTIONS:
@@ -290,7 +308,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
switch (featureID)
{
case GAMEPackage.OBJET__NOM:
- setNom((String)newValue);
+ setNom((Nom)newValue);
return;
case GAMEPackage.OBJET__TAILLE:
setTaille((Integer)newValue);
@@ -317,7 +335,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
switch (featureID)
{
case GAMEPackage.OBJET__NOM:
- setNom(NOM_EDEFAULT);
+ setNom((Nom)null);
return;
case GAMEPackage.OBJET__TAILLE:
setTaille(TAILLE_EDEFAULT);
@@ -343,7 +361,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
switch (featureID)
{
case GAMEPackage.OBJET__NOM:
- return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
+ return nom != null;
case GAMEPackage.OBJET__TAILLE:
return taille != TAILLE_EDEFAULT;
case GAMEPackage.OBJET__VISIBLE:
@@ -365,9 +383,7 @@ public class ObjetImpl extends MinimalEObjectImpl.Container implements Objet
if (eIsProxy()) return super.toString();
StringBuilder result = new StringBuilder(super.toString());
- result.append(" (nom: ");
- result.append(nom);
- result.append(", taille: ");
+ result.append(" (taille: ");
result.append(taille);
result.append(')');
return result.toString();
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/PersonneImpl.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/PersonneImpl.java
index ab2a185..5c99741 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/PersonneImpl.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/PersonneImpl.java
@@ -6,6 +6,7 @@ package fr.n7.xtext.gAME.impl;
import fr.n7.xtext.gAME.Condition;
import fr.n7.xtext.gAME.GAMEPackage;
import fr.n7.xtext.gAME.Interaction;
+import fr.n7.xtext.gAME.Nom;
import fr.n7.xtext.gAME.Personne;
import java.util.Collection;
@@ -43,24 +44,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
public class PersonneImpl extends MinimalEObjectImpl.Container implements Personne
{
/**
- * The default value of the '{@link #getNom() Nom}' attribute.
+ * The cached value of the '{@link #getNom() Nom}' containment reference.
*
*
* @see #getNom()
* @generated
* @ordered
*/
- protected static final String NOM_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getNom() Nom}' attribute.
- *
- *
- * @see #getNom()
- * @generated
- * @ordered
- */
- protected String nom = NOM_EDEFAULT;
+ protected Nom nom;
/**
* The cached value of the '{@link #getVisible() Visible}' containment reference.
@@ -119,7 +110,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
* @generated
*/
@Override
- public String getNom()
+ public Nom getNom()
{
return nom;
}
@@ -129,13 +120,38 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
*
* @generated
*/
- @Override
- public void setNom(String newNom)
+ public NotificationChain basicSetNom(Nom newNom, NotificationChain msgs)
{
- String oldNom = nom;
+ Nom oldNom = nom;
nom = newNom;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.PERSONNE__NOM, oldNom, nom));
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GAMEPackage.PERSONNE__NOM, oldNom, newNom);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public void setNom(Nom newNom)
+ {
+ if (newNom != nom)
+ {
+ NotificationChain msgs = null;
+ if (nom != null)
+ msgs = ((InternalEObject)nom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.PERSONNE__NOM, null, msgs);
+ if (newNom != null)
+ msgs = ((InternalEObject)newNom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GAMEPackage.PERSONNE__NOM, null, msgs);
+ msgs = basicSetNom(newNom, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GAMEPackage.PERSONNE__NOM, newNom, newNom));
}
/**
@@ -263,6 +279,8 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
{
switch (featureID)
{
+ case GAMEPackage.PERSONNE__NOM:
+ return basicSetNom(null, msgs);
case GAMEPackage.PERSONNE__VISIBLE:
return basicSetVisible(null, msgs);
case GAMEPackage.PERSONNE__OBLIGATOIRE:
@@ -307,7 +325,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
switch (featureID)
{
case GAMEPackage.PERSONNE__NOM:
- setNom((String)newValue);
+ setNom((Nom)newValue);
return;
case GAMEPackage.PERSONNE__VISIBLE:
setVisible((Condition)newValue);
@@ -334,7 +352,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
switch (featureID)
{
case GAMEPackage.PERSONNE__NOM:
- setNom(NOM_EDEFAULT);
+ setNom((Nom)null);
return;
case GAMEPackage.PERSONNE__VISIBLE:
setVisible((Condition)null);
@@ -360,7 +378,7 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
switch (featureID)
{
case GAMEPackage.PERSONNE__NOM:
- return NOM_EDEFAULT == null ? nom != null : !NOM_EDEFAULT.equals(nom);
+ return nom != null;
case GAMEPackage.PERSONNE__VISIBLE:
return visible != null;
case GAMEPackage.PERSONNE__OBLIGATOIRE:
@@ -371,21 +389,4 @@ public class PersonneImpl extends MinimalEObjectImpl.Container implements Person
return super.eIsSet(featureID);
}
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (nom: ");
- result.append(nom);
- result.append(')');
- return result.toString();
- }
-
} //PersonneImpl
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/TransformationImpl.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/TransformationImpl.java
index 9d2e6c4..a8516c8 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/TransformationImpl.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/impl/TransformationImpl.java
@@ -5,6 +5,7 @@ package fr.n7.xtext.gAME.impl;
import fr.n7.xtext.gAME.Condition;
import fr.n7.xtext.gAME.GAMEPackage;
+import fr.n7.xtext.gAME.Nom;
import fr.n7.xtext.gAME.Transformation;
import java.util.Collection;
@@ -20,7 +21,8 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-import org.eclipse.emf.ecore.util.EDataTypeEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
*
@@ -50,24 +52,24 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
protected Condition condition;
/**
- * The cached value of the '{@link #getObjetsIn() Objets In}' attribute list.
+ * The cached value of the '{@link #getObjetsIn() Objets In}' containment reference list.
*
*
* @see #getObjetsIn()
* @generated
* @ordered
*/
- protected EList objetsIn;
+ protected EList objetsIn;
/**
- * The cached value of the '{@link #getObjetsOut() Objets Out}' attribute list.
+ * The cached value of the '{@link #getObjetsOut() Objets Out}' containment reference list.
*
*
* @see #getObjetsOut()
* @generated
* @ordered
*/
- protected EList objetsOut;
+ protected EList objetsOut;
/**
*
@@ -146,11 +148,11 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
* @generated
*/
@Override
- public EList getObjetsIn()
+ public EList getObjetsIn()
{
if (objetsIn == null)
{
- objetsIn = new EDataTypeEList(String.class, this, GAMEPackage.TRANSFORMATION__OBJETS_IN);
+ objetsIn = new EObjectContainmentEList(Nom.class, this, GAMEPackage.TRANSFORMATION__OBJETS_IN);
}
return objetsIn;
}
@@ -161,11 +163,11 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
* @generated
*/
@Override
- public EList getObjetsOut()
+ public EList getObjetsOut()
{
if (objetsOut == null)
{
- objetsOut = new EDataTypeEList(String.class, this, GAMEPackage.TRANSFORMATION__OBJETS_OUT);
+ objetsOut = new EObjectContainmentEList(Nom.class, this, GAMEPackage.TRANSFORMATION__OBJETS_OUT);
}
return objetsOut;
}
@@ -182,6 +184,10 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
{
case GAMEPackage.TRANSFORMATION__CONDITION:
return basicSetCondition(null, msgs);
+ case GAMEPackage.TRANSFORMATION__OBJETS_IN:
+ return ((InternalEList>)getObjetsIn()).basicRemove(otherEnd, msgs);
+ case GAMEPackage.TRANSFORMATION__OBJETS_OUT:
+ return ((InternalEList>)getObjetsOut()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -222,11 +228,11 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
return;
case GAMEPackage.TRANSFORMATION__OBJETS_IN:
getObjetsIn().clear();
- getObjetsIn().addAll((Collection extends String>)newValue);
+ getObjetsIn().addAll((Collection extends Nom>)newValue);
return;
case GAMEPackage.TRANSFORMATION__OBJETS_OUT:
getObjetsOut().clear();
- getObjetsOut().addAll((Collection extends String>)newValue);
+ getObjetsOut().addAll((Collection extends Nom>)newValue);
return;
}
super.eSet(featureID, newValue);
@@ -275,23 +281,4 @@ public class TransformationImpl extends MinimalEObjectImpl.Container implements
return super.eIsSet(featureID);
}
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (objetsIn: ");
- result.append(objetsIn);
- result.append(", objetsOut: ");
- result.append(objetsOut);
- result.append(')');
- return result.toString();
- }
-
} //TransformationImpl
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMEAdapterFactory.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMEAdapterFactory.java
index 9fa3ec4..4e4e51e 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMEAdapterFactory.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMEAdapterFactory.java
@@ -166,6 +166,11 @@ public class GAMEAdapterFactory extends AdapterFactoryImpl
return createConditionObjetAdapter();
}
@Override
+ public Adapter caseNom(Nom object)
+ {
+ return createNomAdapter();
+ }
+ @Override
public Adapter defaultCase(EObject object)
{
return createEObjectAdapter();
@@ -457,6 +462,21 @@ public class GAMEAdapterFactory extends AdapterFactoryImpl
return null;
}
+ /**
+ * Creates a new adapter for an object of class '{@link fr.n7.xtext.gAME.Nom Nom}'.
+ *
+ * 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.
+ *
+ * @return the new adapter.
+ * @see fr.n7.xtext.gAME.Nom
+ * @generated
+ */
+ public Adapter createNomAdapter()
+ {
+ return null;
+ }
+
/**
* Creates a new adapter for the default case.
*
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMESwitch.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMESwitch.java
index 2b82dec..61bcc81 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMESwitch.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/gAME/util/GAMESwitch.java
@@ -202,6 +202,13 @@ public class GAMESwitch extends Switch
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case GAMEPackage.NOM:
+ {
+ Nom nom = (Nom)theEObject;
+ T result = caseNom(nom);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
default: return defaultCase(theEObject);
}
}
@@ -494,6 +501,22 @@ public class GAMESwitch extends Switch
return null;
}
+ /**
+ * Returns the result of interpreting the object as an instance of 'Nom'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Nom'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNom(Nom object)
+ {
+ return null;
+ }
+
/**
* Returns the result of interpreting the object as an instance of 'EObject'.
*
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAME.g b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAME.g
index fa00105..a161504 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAME.g
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAME.g
@@ -474,19 +474,20 @@ ruleExplorateur returns [EObject current=null]
(
(
(
- lv_connaissances_8_0=RULE_STRING
{
- newLeafNode(lv_connaissances_8_0, grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_0_0());
}
+ lv_connaissances_8_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getExplorateurRule());
+ $current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_8_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -497,19 +498,20 @@ ruleExplorateur returns [EObject current=null]
}
(
(
- lv_connaissances_10_0=RULE_STRING
{
- newLeafNode(lv_connaissances_10_0, grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_1_1_0());
}
+ lv_connaissances_10_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getExplorateurRule());
+ $current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_10_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -538,19 +540,20 @@ ruleExplorateur returns [EObject current=null]
(
(
(
- lv_objets_16_0=RULE_STRING
{
- newLeafNode(lv_objets_16_0, grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_0_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_0_0());
}
+ lv_objets_16_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getExplorateurRule());
+ $current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
$current,
"objets",
lv_objets_16_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -561,19 +564,20 @@ ruleExplorateur returns [EObject current=null]
}
(
(
- lv_objets_18_0=RULE_STRING
{
- newLeafNode(lv_objets_18_0, grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_1_1_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_1_1_0());
}
+ lv_objets_18_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getExplorateurRule());
+ $current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
$current,
"objets",
lv_objets_18_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -775,19 +779,20 @@ ruleLieu returns [EObject current=null]
}
(
(
- lv_nom_3_0=RULE_STRING
{
- newLeafNode(lv_nom_3_0, grammarAccess.getLieuAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getNomNomParserRuleCall_3_0());
}
+ lv_nom_3_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- setWithLastConsumed(
+ set(
$current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -903,19 +908,20 @@ ruleLieu returns [EObject current=null]
(
(
(
- lv_personnes_20_0=RULE_STRING
{
- newLeafNode(lv_personnes_20_0, grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_0_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_0_0());
}
+ lv_personnes_20_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
$current,
"personnes",
lv_personnes_20_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -926,19 +932,20 @@ ruleLieu returns [EObject current=null]
}
(
(
- lv_personnes_22_0=RULE_STRING
{
- newLeafNode(lv_personnes_22_0, grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_1_1_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_1_1_0());
}
+ lv_personnes_22_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
$current,
"personnes",
lv_personnes_22_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1031,19 +1038,20 @@ ruleLieu returns [EObject current=null]
(
(
(
- lv_objets_36_0=RULE_STRING
{
- newLeafNode(lv_objets_36_0, grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_0_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_0_0());
}
+ lv_objets_36_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
$current,
"objets",
lv_objets_36_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1054,19 +1062,20 @@ ruleLieu returns [EObject current=null]
}
(
(
- lv_objets_38_0=RULE_STRING
{
- newLeafNode(lv_objets_38_0, grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_1_1_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_1_1_0());
}
+ lv_objets_38_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
$current,
"objets",
lv_objets_38_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1095,19 +1104,20 @@ ruleLieu returns [EObject current=null]
(
(
(
- lv_connaissances_44_0=RULE_STRING
{
- newLeafNode(lv_connaissances_44_0, grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_0_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_0_0());
}
+ lv_connaissances_44_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_44_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1118,19 +1128,20 @@ ruleLieu returns [EObject current=null]
}
(
(
- lv_connaissances_46_0=RULE_STRING
{
- newLeafNode(lv_connaissances_46_0, grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_1_1_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_1_1_0());
}
+ lv_connaissances_46_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getLieuRule());
+ $current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_46_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1177,19 +1188,20 @@ ruleChemin returns [EObject current=null]
}
(
(
- lv_lieuIn_3_0=RULE_STRING
{
- newLeafNode(lv_lieuIn_3_0, grammarAccess.getCheminAccess().getLieuInSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getLieuInNomParserRuleCall_3_0());
}
+ lv_lieuIn_3_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- setWithLastConsumed(
+ set(
$current,
"lieuIn",
lv_lieuIn_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1207,19 +1219,20 @@ ruleChemin returns [EObject current=null]
}
(
(
- lv_lieuOut_7_0=RULE_STRING
{
- newLeafNode(lv_lieuOut_7_0, grammarAccess.getCheminAccess().getLieuOutSTRINGTerminalRuleCall_7_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getLieuOutNomParserRuleCall_7_0());
}
+ lv_lieuOut_7_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- setWithLastConsumed(
+ set(
$current,
"lieuOut",
lv_lieuOut_7_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1335,19 +1348,20 @@ ruleChemin returns [EObject current=null]
(
(
(
- lv_connaissances_24_0=RULE_STRING
{
- newLeafNode(lv_connaissances_24_0, grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_0_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_0_0());
}
+ lv_connaissances_24_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_24_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1358,19 +1372,20 @@ ruleChemin returns [EObject current=null]
}
(
(
- lv_connaissances_26_0=RULE_STRING
{
- newLeafNode(lv_connaissances_26_0, grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_1_1_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_1_1_0());
}
+ lv_connaissances_26_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_26_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1399,19 +1414,20 @@ ruleChemin returns [EObject current=null]
(
(
(
- lv_objetsRecus_32_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_32_0, grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_0_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_0_0());
}
+ lv_objetsRecus_32_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_32_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1422,19 +1438,20 @@ ruleChemin returns [EObject current=null]
}
(
(
- lv_objetsRecus_34_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_34_0, grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_1_1_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_1_1_0());
}
+ lv_objetsRecus_34_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_34_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1463,19 +1480,20 @@ ruleChemin returns [EObject current=null]
(
(
(
- lv_objetsConso_40_0=RULE_STRING
{
- newLeafNode(lv_objetsConso_40_0, grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_0_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_0_0());
}
+ lv_objetsConso_40_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsConso",
lv_objetsConso_40_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1486,19 +1504,20 @@ ruleChemin returns [EObject current=null]
}
(
(
- lv_objetsConso_42_0=RULE_STRING
{
- newLeafNode(lv_objetsConso_42_0, grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_1_1_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_1_1_0());
}
+ lv_objetsConso_42_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getCheminRule());
+ $current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsConso",
lv_objetsConso_42_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1609,19 +1628,20 @@ ruleObjet returns [EObject current=null]
}
(
(
- lv_nom_3_0=RULE_STRING
{
- newLeafNode(lv_nom_3_0, grammarAccess.getObjetAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getObjetAccess().getNomNomParserRuleCall_3_0());
}
+ lv_nom_3_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getObjetRule());
+ $current = createModelElementForParent(grammarAccess.getObjetRule());
}
- setWithLastConsumed(
+ set(
$current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1823,19 +1843,20 @@ ruleTransformation returns [EObject current=null]
(
(
(
- lv_objetsIn_8_0=RULE_STRING
{
- newLeafNode(lv_objetsIn_8_0, grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_0_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_0_0());
}
+ lv_objetsIn_8_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getTransformationRule());
+ $current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsIn",
lv_objetsIn_8_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1846,19 +1867,20 @@ ruleTransformation returns [EObject current=null]
}
(
(
- lv_objetsIn_10_0=RULE_STRING
{
- newLeafNode(lv_objetsIn_10_0, grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_1_1_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_1_1_0());
}
+ lv_objetsIn_10_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getTransformationRule());
+ $current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsIn",
lv_objetsIn_10_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1887,19 +1909,20 @@ ruleTransformation returns [EObject current=null]
(
(
(
- lv_objetsOut_16_0=RULE_STRING
{
- newLeafNode(lv_objetsOut_16_0, grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_0_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_0_0());
}
+ lv_objetsOut_16_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getTransformationRule());
+ $current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsOut",
lv_objetsOut_16_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1910,19 +1933,20 @@ ruleTransformation returns [EObject current=null]
}
(
(
- lv_objetsOut_18_0=RULE_STRING
{
- newLeafNode(lv_objetsOut_18_0, grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_1_1_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_1_1_0());
}
+ lv_objetsOut_18_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getTransformationRule());
+ $current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsOut",
lv_objetsOut_18_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -1973,19 +1997,20 @@ ruleConnaissance returns [EObject current=null]
}
(
(
- lv_nom_3_0=RULE_STRING
{
- newLeafNode(lv_nom_3_0, grammarAccess.getConnaissanceAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getConnaissanceAccess().getNomNomParserRuleCall_3_0());
}
+ lv_nom_3_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getConnaissanceRule());
+ $current = createModelElementForParent(grammarAccess.getConnaissanceRule());
}
- setWithLastConsumed(
+ set(
$current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2121,19 +2146,20 @@ rulePersonne returns [EObject current=null]
}
(
(
- lv_nom_3_0=RULE_STRING
{
- newLeafNode(lv_nom_3_0, grammarAccess.getPersonneAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getPersonneAccess().getNomNomParserRuleCall_3_0());
}
+ lv_nom_3_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getPersonneRule());
+ $current = createModelElementForParent(grammarAccess.getPersonneRule());
}
- setWithLastConsumed(
+ set(
$current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2338,19 +2364,20 @@ ruleInteraction returns [EObject current=null]
(
(
(
- lv_connaissances_8_0=RULE_STRING
{
- newLeafNode(lv_connaissances_8_0, grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_0_0());
}
+ lv_connaissances_8_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getInteractionRule());
+ $current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_8_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2361,19 +2388,20 @@ ruleInteraction returns [EObject current=null]
}
(
(
- lv_connaissances_10_0=RULE_STRING
{
- newLeafNode(lv_connaissances_10_0, grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_1_1_0());
}
+ lv_connaissances_10_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getInteractionRule());
+ $current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_10_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2402,19 +2430,20 @@ ruleInteraction returns [EObject current=null]
(
(
(
- lv_objetsRecus_16_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_16_0, grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_0_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_0_0());
}
+ lv_objetsRecus_16_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getInteractionRule());
+ $current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_16_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2425,19 +2454,20 @@ ruleInteraction returns [EObject current=null]
}
(
(
- lv_objetsRecus_18_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_18_0, grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_1_1_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_1_1_0());
}
+ lv_objetsRecus_18_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getInteractionRule());
+ $current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_18_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2466,19 +2496,20 @@ ruleInteraction returns [EObject current=null]
(
(
(
- lv_objetsConso_24_0=RULE_STRING
{
- newLeafNode(lv_objetsConso_24_0, grammarAccess.getInteractionAccess().getObjetsConsoSTRINGTerminalRuleCall_20_0_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsConsoNomParserRuleCall_20_0_0());
}
+ lv_objetsConso_24_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getInteractionRule());
+ $current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsConso",
lv_objetsConso_24_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2489,19 +2520,20 @@ ruleInteraction returns [EObject current=null]
}
(
(
- lv_objetsRecus_26_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_26_0, grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_20_1_1_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_20_1_1_0());
}
+ lv_objetsRecus_26_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getInteractionRule());
+ $current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_26_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2679,19 +2711,20 @@ ruleAction returns [EObject current=null]
(
(
(
- lv_connaissances_12_0=RULE_STRING
{
- newLeafNode(lv_connaissances_12_0, grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_0_0());
+ newCompositeNode(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_0_0());
}
+ lv_connaissances_12_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getActionRule());
+ $current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_12_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2702,19 +2735,20 @@ ruleAction returns [EObject current=null]
}
(
(
- lv_connaissances_14_0=RULE_STRING
{
- newLeafNode(lv_connaissances_14_0, grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_1_1_0());
+ newCompositeNode(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_1_1_0());
}
+ lv_connaissances_14_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getActionRule());
+ $current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
$current,
"connaissances",
lv_connaissances_14_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2743,19 +2777,20 @@ ruleAction returns [EObject current=null]
(
(
(
- lv_objetsRecus_20_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_20_0, grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_0_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_0_0());
}
+ lv_objetsRecus_20_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getActionRule());
+ $current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_20_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2766,19 +2801,20 @@ ruleAction returns [EObject current=null]
}
(
(
- lv_objetsRecus_22_0=RULE_STRING
{
- newLeafNode(lv_objetsRecus_22_0, grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_1_1_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_1_1_0());
}
+ lv_objetsRecus_22_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getActionRule());
+ $current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsRecus",
lv_objetsRecus_22_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2807,19 +2843,20 @@ ruleAction returns [EObject current=null]
(
(
(
- lv_objetsConso_28_0=RULE_STRING
{
- newLeafNode(lv_objetsConso_28_0, grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_0_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_0_0());
}
+ lv_objetsConso_28_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getActionRule());
+ $current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsConso",
lv_objetsConso_28_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -2830,19 +2867,20 @@ ruleAction returns [EObject current=null]
}
(
(
- lv_objetsConso_30_0=RULE_STRING
{
- newLeafNode(lv_objetsConso_30_0, grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_1_1_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_1_1_0());
}
+ lv_objetsConso_30_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getActionRule());
+ $current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
$current,
"objetsConso",
lv_objetsConso_30_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -3205,19 +3243,20 @@ ruleConditionConnaissance returns [EObject current=null]
}:
(
(
- lv_connaissance_0_0=RULE_STRING
{
- newLeafNode(lv_connaissance_0_0, grammarAccess.getConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_0());
+ newCompositeNode(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0());
}
+ lv_connaissance_0_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getConditionConnaissanceRule());
+ $current = createModelElementForParent(grammarAccess.getConditionConnaissanceRule());
}
- setWithLastConsumed(
+ set(
$current,
"connaissance",
lv_connaissance_0_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -3245,19 +3284,20 @@ ruleNOTConditionConnaissance returns [EObject current=null]
}
(
(
- lv_connaissance_1_0=RULE_STRING
{
- newLeafNode(lv_connaissance_1_0, grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_1_0());
+ newCompositeNode(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0());
}
+ lv_connaissance_1_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getNOTConditionConnaissanceRule());
+ $current = createModelElementForParent(grammarAccess.getNOTConditionConnaissanceRule());
}
- setWithLastConsumed(
+ set(
$current,
"connaissance",
lv_connaissance_1_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -3282,19 +3322,20 @@ ruleConditionObjet returns [EObject current=null]
(
(
(
- lv_objet_0_0=RULE_STRING
{
- newLeafNode(lv_objet_0_0, grammarAccess.getConditionObjetAccess().getObjetSTRINGTerminalRuleCall_0_0());
+ newCompositeNode(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0());
}
+ lv_objet_0_0=ruleNom
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getConditionObjetRule());
+ $current = createModelElementForParent(grammarAccess.getConditionObjetRule());
}
- setWithLastConsumed(
+ set(
$current,
"objet",
lv_objet_0_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
)
)
@@ -3392,6 +3433,41 @@ ruleComparateur returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleTok
)
;
+// Entry rule entryRuleNom
+entryRuleNom returns [EObject current=null]:
+ { newCompositeNode(grammarAccess.getNomRule()); }
+ iv_ruleNom=ruleNom
+ { $current=$iv_ruleNom.current; }
+ EOF;
+
+// Rule Nom
+ruleNom returns [EObject current=null]
+@init {
+ enterRule();
+}
+@after {
+ leaveRule();
+}:
+ (
+ (
+ lv_nom_0_0=RULE_STRING
+ {
+ newLeafNode(lv_nom_0_0, grammarAccess.getNomAccess().getNomSTRINGTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getNomRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "nom",
+ lv_nom_0_0,
+ "org.eclipse.xtext.common.Terminals.STRING");
+ }
+ )
+ )
+;
+
RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
RULE_INT : ('0'..'9')+;
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMELexer.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMELexer.java
index 59e2722..2c9bbd4 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMELexer.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMELexer.java
@@ -1086,10 +1086,10 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3395:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // InternalGAME.g:3395:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // InternalGAME.g:3471:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // InternalGAME.g:3471:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
- // InternalGAME.g:3395:11: ( '^' )?
+ // InternalGAME.g:3471:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);
@@ -1098,7 +1098,7 @@ public class InternalGAMELexer extends Lexer {
}
switch (alt1) {
case 1 :
- // InternalGAME.g:3395:11: '^'
+ // InternalGAME.g:3471:11: '^'
{
match('^');
@@ -1116,7 +1116,7 @@ public class InternalGAMELexer extends Lexer {
recover(mse);
throw mse;}
- // InternalGAME.g:3395:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // InternalGAME.g:3471:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
@@ -1165,10 +1165,10 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3397:10: ( ( '0' .. '9' )+ )
- // InternalGAME.g:3397:12: ( '0' .. '9' )+
+ // InternalGAME.g:3473:10: ( ( '0' .. '9' )+ )
+ // InternalGAME.g:3473:12: ( '0' .. '9' )+
{
- // InternalGAME.g:3397:12: ( '0' .. '9' )+
+ // InternalGAME.g:3473:12: ( '0' .. '9' )+
int cnt3=0;
loop3:
do {
@@ -1182,7 +1182,7 @@ public class InternalGAMELexer extends Lexer {
switch (alt3) {
case 1 :
- // InternalGAME.g:3397:13: '0' .. '9'
+ // InternalGAME.g:3473:13: '0' .. '9'
{
matchRange('0','9');
@@ -1214,10 +1214,10 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3399:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
- // InternalGAME.g:3399:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // InternalGAME.g:3475:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
+ // InternalGAME.g:3475:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
{
- // InternalGAME.g:3399:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // InternalGAME.g:3475:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -1235,10 +1235,10 @@ public class InternalGAMELexer extends Lexer {
}
switch (alt6) {
case 1 :
- // InternalGAME.g:3399:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ // InternalGAME.g:3475:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
{
match('\"');
- // InternalGAME.g:3399:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
+ // InternalGAME.g:3475:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
loop4:
do {
int alt4=3;
@@ -1254,7 +1254,7 @@ public class InternalGAMELexer extends Lexer {
switch (alt4) {
case 1 :
- // InternalGAME.g:3399:21: '\\\\' .
+ // InternalGAME.g:3475:21: '\\\\' .
{
match('\\');
matchAny();
@@ -1262,7 +1262,7 @@ public class InternalGAMELexer extends Lexer {
}
break;
case 2 :
- // InternalGAME.g:3399:28: ~ ( ( '\\\\' | '\"' ) )
+ // InternalGAME.g:3475:28: ~ ( ( '\\\\' | '\"' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
@@ -1287,10 +1287,10 @@ public class InternalGAMELexer extends Lexer {
}
break;
case 2 :
- // InternalGAME.g:3399:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ // InternalGAME.g:3475:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
{
match('\'');
- // InternalGAME.g:3399:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
+ // InternalGAME.g:3475:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
loop5:
do {
int alt5=3;
@@ -1306,7 +1306,7 @@ public class InternalGAMELexer extends Lexer {
switch (alt5) {
case 1 :
- // InternalGAME.g:3399:54: '\\\\' .
+ // InternalGAME.g:3475:54: '\\\\' .
{
match('\\');
matchAny();
@@ -1314,7 +1314,7 @@ public class InternalGAMELexer extends Lexer {
}
break;
case 2 :
- // InternalGAME.g:3399:61: ~ ( ( '\\\\' | '\\'' ) )
+ // InternalGAME.g:3475:61: ~ ( ( '\\\\' | '\\'' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
@@ -1357,12 +1357,12 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3401:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // InternalGAME.g:3401:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // InternalGAME.g:3477:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // InternalGAME.g:3477:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // InternalGAME.g:3401:24: ( options {greedy=false; } : . )*
+ // InternalGAME.g:3477:24: ( options {greedy=false; } : . )*
loop7:
do {
int alt7=2;
@@ -1387,7 +1387,7 @@ public class InternalGAMELexer extends Lexer {
switch (alt7) {
case 1 :
- // InternalGAME.g:3401:52: .
+ // InternalGAME.g:3477:52: .
{
matchAny();
@@ -1417,12 +1417,12 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3403:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
- // InternalGAME.g:3403:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
+ // InternalGAME.g:3479:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // InternalGAME.g:3479:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // InternalGAME.g:3403:24: (~ ( ( '\\n' | '\\r' ) ) )*
+ // InternalGAME.g:3479:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop8:
do {
int alt8=2;
@@ -1435,7 +1435,7 @@ public class InternalGAMELexer extends Lexer {
switch (alt8) {
case 1 :
- // InternalGAME.g:3403:24: ~ ( ( '\\n' | '\\r' ) )
+ // InternalGAME.g:3479:24: ~ ( ( '\\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)<='\uFFFF') ) {
input.consume();
@@ -1455,7 +1455,7 @@ public class InternalGAMELexer extends Lexer {
}
} while (true);
- // InternalGAME.g:3403:40: ( ( '\\r' )? '\\n' )?
+ // InternalGAME.g:3479:40: ( ( '\\r' )? '\\n' )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -1464,9 +1464,9 @@ public class InternalGAMELexer extends Lexer {
}
switch (alt10) {
case 1 :
- // InternalGAME.g:3403:41: ( '\\r' )? '\\n'
+ // InternalGAME.g:3479:41: ( '\\r' )? '\\n'
{
- // InternalGAME.g:3403:41: ( '\\r' )?
+ // InternalGAME.g:3479:41: ( '\\r' )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -1475,7 +1475,7 @@ public class InternalGAMELexer extends Lexer {
}
switch (alt9) {
case 1 :
- // InternalGAME.g:3403:41: '\\r'
+ // InternalGAME.g:3479:41: '\\r'
{
match('\r');
@@ -1507,10 +1507,10 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3405:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // InternalGAME.g:3405:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // InternalGAME.g:3481:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // InternalGAME.g:3481:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // InternalGAME.g:3405:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // InternalGAME.g:3481:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0;
loop11:
do {
@@ -1564,8 +1564,8 @@ public class InternalGAMELexer extends Lexer {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalGAME.g:3407:16: ( . )
- // InternalGAME.g:3407:18: .
+ // InternalGAME.g:3483:16: ( . )
+ // InternalGAME.g:3483:18: .
{
matchAny();
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMEParser.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMEParser.java
index 418330d..404a35f 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMEParser.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/parser/antlr/internal/InternalGAMEParser.java
@@ -879,7 +879,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleExplorateur"
- // InternalGAME.g:420:1: ruleExplorateur returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) ;
+ // InternalGAME.g:420:1: ruleExplorateur returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) ;
public final EObject ruleExplorateur() throws RecognitionException {
EObject current = null;
@@ -891,29 +891,33 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_7=null;
- Token lv_connaissances_8_0=null;
Token otherlv_9=null;
- Token lv_connaissances_10_0=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
- Token lv_objets_16_0=null;
Token otherlv_17=null;
- Token lv_objets_18_0=null;
Token otherlv_19=null;
Token otherlv_20=null;
+ EObject lv_connaissances_8_0 = null;
+
+ EObject lv_connaissances_10_0 = null;
+
+ EObject lv_objets_16_0 = null;
+
+ EObject lv_objets_18_0 = null;
+
enterRule();
try {
- // InternalGAME.g:426:2: ( (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) )
- // InternalGAME.g:427:2: (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
+ // InternalGAME.g:426:2: ( (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) )
+ // InternalGAME.g:427:2: (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
{
- // InternalGAME.g:427:2: (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
- // InternalGAME.g:428:3: otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= '}'
+ // InternalGAME.g:427:2: (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
+ // InternalGAME.g:428:3: otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_16);
@@ -969,7 +973,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_7, grammarAccess.getExplorateurAccess().getLeftSquareBracketKeyword_7());
- // InternalGAME.g:474:3: ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:474:3: ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -978,27 +982,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt10) {
case 1 :
- // InternalGAME.g:475:4: ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )*
+ // InternalGAME.g:475:4: ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )*
{
- // InternalGAME.g:475:4: ( (lv_connaissances_8_0= RULE_STRING ) )
- // InternalGAME.g:476:5: (lv_connaissances_8_0= RULE_STRING )
+ // InternalGAME.g:475:4: ( (lv_connaissances_8_0= ruleNom ) )
+ // InternalGAME.g:476:5: (lv_connaissances_8_0= ruleNom )
{
- // InternalGAME.g:476:5: (lv_connaissances_8_0= RULE_STRING )
- // InternalGAME.g:477:6: lv_connaissances_8_0= RULE_STRING
+ // InternalGAME.g:476:5: (lv_connaissances_8_0= ruleNom )
+ // InternalGAME.g:477:6: lv_connaissances_8_0= ruleNom
{
- lv_connaissances_8_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_8_0, grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_0_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_8_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getExplorateurRule());
+ current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_8_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1006,7 +1015,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:493:4: (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )*
+ // InternalGAME.g:494:4: (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )*
loop9:
do {
int alt9=2;
@@ -1019,31 +1028,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt9) {
case 1 :
- // InternalGAME.g:494:5: otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) )
+ // InternalGAME.g:495:5: otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) )
{
otherlv_9=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_9, grammarAccess.getExplorateurAccess().getCommaKeyword_8_1_0());
- // InternalGAME.g:498:5: ( (lv_connaissances_10_0= RULE_STRING ) )
- // InternalGAME.g:499:6: (lv_connaissances_10_0= RULE_STRING )
+ // InternalGAME.g:499:5: ( (lv_connaissances_10_0= ruleNom ) )
+ // InternalGAME.g:500:6: (lv_connaissances_10_0= ruleNom )
{
- // InternalGAME.g:499:6: (lv_connaissances_10_0= RULE_STRING )
- // InternalGAME.g:500:7: lv_connaissances_10_0= RULE_STRING
+ // InternalGAME.g:500:6: (lv_connaissances_10_0= ruleNom )
+ // InternalGAME.g:501:7: lv_connaissances_10_0= ruleNom
{
- lv_connaissances_10_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_10_0, grammarAccess.getExplorateurAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_10_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getExplorateurRule());
+ current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_10_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1086,7 +1100,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_15, grammarAccess.getExplorateurAccess().getLeftSquareBracketKeyword_13());
- // InternalGAME.g:538:3: ( ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:540:3: ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )?
int alt12=2;
int LA12_0 = input.LA(1);
@@ -1095,27 +1109,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt12) {
case 1 :
- // InternalGAME.g:539:4: ( (lv_objets_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )*
+ // InternalGAME.g:541:4: ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )*
{
- // InternalGAME.g:539:4: ( (lv_objets_16_0= RULE_STRING ) )
- // InternalGAME.g:540:5: (lv_objets_16_0= RULE_STRING )
+ // InternalGAME.g:541:4: ( (lv_objets_16_0= ruleNom ) )
+ // InternalGAME.g:542:5: (lv_objets_16_0= ruleNom )
{
- // InternalGAME.g:540:5: (lv_objets_16_0= RULE_STRING )
- // InternalGAME.g:541:6: lv_objets_16_0= RULE_STRING
+ // InternalGAME.g:542:5: (lv_objets_16_0= ruleNom )
+ // InternalGAME.g:543:6: lv_objets_16_0= ruleNom
{
- lv_objets_16_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objets_16_0, grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_0_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objets_16_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getExplorateurRule());
+ current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
current,
"objets",
lv_objets_16_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1123,7 +1142,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:557:4: (otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) ) )*
+ // InternalGAME.g:560:4: (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )*
loop11:
do {
int alt11=2;
@@ -1136,31 +1155,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt11) {
case 1 :
- // InternalGAME.g:558:5: otherlv_17= ',' ( (lv_objets_18_0= RULE_STRING ) )
+ // InternalGAME.g:561:5: otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) )
{
otherlv_17=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_17, grammarAccess.getExplorateurAccess().getCommaKeyword_14_1_0());
- // InternalGAME.g:562:5: ( (lv_objets_18_0= RULE_STRING ) )
- // InternalGAME.g:563:6: (lv_objets_18_0= RULE_STRING )
+ // InternalGAME.g:565:5: ( (lv_objets_18_0= ruleNom ) )
+ // InternalGAME.g:566:6: (lv_objets_18_0= ruleNom )
{
- // InternalGAME.g:563:6: (lv_objets_18_0= RULE_STRING )
- // InternalGAME.g:564:7: lv_objets_18_0= RULE_STRING
+ // InternalGAME.g:566:6: (lv_objets_18_0= ruleNom )
+ // InternalGAME.g:567:7: lv_objets_18_0= ruleNom
{
- lv_objets_18_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objets_18_0, grammarAccess.getExplorateurAccess().getObjetsSTRINGTerminalRuleCall_14_1_1_0());
+ newCompositeNode(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objets_18_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getExplorateurRule());
+ current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
- addWithLastConsumed(
+ add(
current,
"objets",
lv_objets_18_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1214,7 +1238,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleTerritoire"
- // InternalGAME.g:594:1: entryRuleTerritoire returns [EObject current=null] : iv_ruleTerritoire= ruleTerritoire EOF ;
+ // InternalGAME.g:598:1: entryRuleTerritoire returns [EObject current=null] : iv_ruleTerritoire= ruleTerritoire EOF ;
public final EObject entryRuleTerritoire() throws RecognitionException {
EObject current = null;
@@ -1222,8 +1246,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:594:51: (iv_ruleTerritoire= ruleTerritoire EOF )
- // InternalGAME.g:595:2: iv_ruleTerritoire= ruleTerritoire EOF
+ // InternalGAME.g:598:51: (iv_ruleTerritoire= ruleTerritoire EOF )
+ // InternalGAME.g:599:2: iv_ruleTerritoire= ruleTerritoire EOF
{
newCompositeNode(grammarAccess.getTerritoireRule());
pushFollow(FOLLOW_1);
@@ -1250,7 +1274,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleTerritoire"
- // InternalGAME.g:601:1: ruleTerritoire returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' ) ;
+ // InternalGAME.g:605:1: ruleTerritoire returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' ) ;
public final EObject ruleTerritoire() throws RecognitionException {
EObject current = null;
@@ -1280,11 +1304,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:607:2: ( (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' ) )
- // InternalGAME.g:608:2: (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' )
+ // InternalGAME.g:611:2: ( (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' ) )
+ // InternalGAME.g:612:2: (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' )
{
- // InternalGAME.g:608:2: (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' )
- // InternalGAME.g:609:3: otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}'
+ // InternalGAME.g:612:2: (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}' )
+ // InternalGAME.g:613:3: otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )? otherlv_7= ']' otherlv_8= ',' otherlv_9= '\"Chemins\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )? otherlv_15= ']' otherlv_16= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_22);
@@ -1302,7 +1326,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_3, grammarAccess.getTerritoireAccess().getLeftSquareBracketKeyword_3());
- // InternalGAME.g:625:3: ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )?
+ // InternalGAME.g:629:3: ( ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )* )?
int alt14=2;
int LA14_0 = input.LA(1);
@@ -1311,13 +1335,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt14) {
case 1 :
- // InternalGAME.g:626:4: ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )*
+ // InternalGAME.g:630:4: ( (lv_lieux_4_0= ruleLieu ) ) (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )*
{
- // InternalGAME.g:626:4: ( (lv_lieux_4_0= ruleLieu ) )
- // InternalGAME.g:627:5: (lv_lieux_4_0= ruleLieu )
+ // InternalGAME.g:630:4: ( (lv_lieux_4_0= ruleLieu ) )
+ // InternalGAME.g:631:5: (lv_lieux_4_0= ruleLieu )
{
- // InternalGAME.g:627:5: (lv_lieux_4_0= ruleLieu )
- // InternalGAME.g:628:6: lv_lieux_4_0= ruleLieu
+ // InternalGAME.g:631:5: (lv_lieux_4_0= ruleLieu )
+ // InternalGAME.g:632:6: lv_lieux_4_0= ruleLieu
{
newCompositeNode(grammarAccess.getTerritoireAccess().getLieuxLieuParserRuleCall_4_0_0());
@@ -1344,7 +1368,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:645:4: (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )*
+ // InternalGAME.g:649:4: (otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) ) )*
loop13:
do {
int alt13=2;
@@ -1357,17 +1381,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt13) {
case 1 :
- // InternalGAME.g:646:5: otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) )
+ // InternalGAME.g:650:5: otherlv_5= ',' ( (lv_lieux_6_0= ruleLieu ) )
{
otherlv_5=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_5, grammarAccess.getTerritoireAccess().getCommaKeyword_4_1_0());
- // InternalGAME.g:650:5: ( (lv_lieux_6_0= ruleLieu ) )
- // InternalGAME.g:651:6: (lv_lieux_6_0= ruleLieu )
+ // InternalGAME.g:654:5: ( (lv_lieux_6_0= ruleLieu ) )
+ // InternalGAME.g:655:6: (lv_lieux_6_0= ruleLieu )
{
- // InternalGAME.g:651:6: (lv_lieux_6_0= ruleLieu )
- // InternalGAME.g:652:7: lv_lieux_6_0= ruleLieu
+ // InternalGAME.g:655:6: (lv_lieux_6_0= ruleLieu )
+ // InternalGAME.g:656:7: lv_lieux_6_0= ruleLieu
{
newCompositeNode(grammarAccess.getTerritoireAccess().getLieuxLieuParserRuleCall_4_1_1_0());
@@ -1429,7 +1453,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_11, grammarAccess.getTerritoireAccess().getLeftSquareBracketKeyword_9());
- // InternalGAME.g:691:3: ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )?
+ // InternalGAME.g:695:3: ( ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )* )?
int alt16=2;
int LA16_0 = input.LA(1);
@@ -1438,13 +1462,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt16) {
case 1 :
- // InternalGAME.g:692:4: ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )*
+ // InternalGAME.g:696:4: ( (lv_chemins_12_0= ruleChemin ) ) (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )*
{
- // InternalGAME.g:692:4: ( (lv_chemins_12_0= ruleChemin ) )
- // InternalGAME.g:693:5: (lv_chemins_12_0= ruleChemin )
+ // InternalGAME.g:696:4: ( (lv_chemins_12_0= ruleChemin ) )
+ // InternalGAME.g:697:5: (lv_chemins_12_0= ruleChemin )
{
- // InternalGAME.g:693:5: (lv_chemins_12_0= ruleChemin )
- // InternalGAME.g:694:6: lv_chemins_12_0= ruleChemin
+ // InternalGAME.g:697:5: (lv_chemins_12_0= ruleChemin )
+ // InternalGAME.g:698:6: lv_chemins_12_0= ruleChemin
{
newCompositeNode(grammarAccess.getTerritoireAccess().getCheminsCheminParserRuleCall_10_0_0());
@@ -1471,7 +1495,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:711:4: (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )*
+ // InternalGAME.g:715:4: (otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) ) )*
loop15:
do {
int alt15=2;
@@ -1484,17 +1508,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt15) {
case 1 :
- // InternalGAME.g:712:5: otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) )
+ // InternalGAME.g:716:5: otherlv_13= ',' ( (lv_chemins_14_0= ruleChemin ) )
{
otherlv_13=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_13, grammarAccess.getTerritoireAccess().getCommaKeyword_10_1_0());
- // InternalGAME.g:716:5: ( (lv_chemins_14_0= ruleChemin ) )
- // InternalGAME.g:717:6: (lv_chemins_14_0= ruleChemin )
+ // InternalGAME.g:720:5: ( (lv_chemins_14_0= ruleChemin ) )
+ // InternalGAME.g:721:6: (lv_chemins_14_0= ruleChemin )
{
- // InternalGAME.g:717:6: (lv_chemins_14_0= ruleChemin )
- // InternalGAME.g:718:7: lv_chemins_14_0= ruleChemin
+ // InternalGAME.g:721:6: (lv_chemins_14_0= ruleChemin )
+ // InternalGAME.g:722:7: lv_chemins_14_0= ruleChemin
{
newCompositeNode(grammarAccess.getTerritoireAccess().getCheminsCheminParserRuleCall_10_1_1_0());
@@ -1567,7 +1591,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleLieu"
- // InternalGAME.g:749:1: entryRuleLieu returns [EObject current=null] : iv_ruleLieu= ruleLieu EOF ;
+ // InternalGAME.g:753:1: entryRuleLieu returns [EObject current=null] : iv_ruleLieu= ruleLieu EOF ;
public final EObject entryRuleLieu() throws RecognitionException {
EObject current = null;
@@ -1575,8 +1599,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:749:45: (iv_ruleLieu= ruleLieu EOF )
- // InternalGAME.g:750:2: iv_ruleLieu= ruleLieu EOF
+ // InternalGAME.g:753:45: (iv_ruleLieu= ruleLieu EOF )
+ // InternalGAME.g:754:2: iv_ruleLieu= ruleLieu EOF
{
newCompositeNode(grammarAccess.getLieuRule());
pushFollow(FOLLOW_1);
@@ -1603,14 +1627,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleLieu"
- // InternalGAME.g:756:1: ruleLieu returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )* )? otherlv_47= ']' otherlv_48= '}' ) ;
+ // InternalGAME.g:760:1: ruleLieu returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )* )? otherlv_47= ']' otherlv_48= '}' ) ;
public final EObject ruleLieu() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
- Token lv_nom_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
@@ -1624,9 +1647,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_19=null;
- Token lv_personnes_20_0=null;
Token otherlv_21=null;
- Token lv_personnes_22_0=null;
Token otherlv_23=null;
Token otherlv_24=null;
Token otherlv_25=null;
@@ -1638,39 +1659,49 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_33=null;
Token otherlv_34=null;
Token otherlv_35=null;
- Token lv_objets_36_0=null;
Token otherlv_37=null;
- Token lv_objets_38_0=null;
Token otherlv_39=null;
Token otherlv_40=null;
Token otherlv_41=null;
Token otherlv_42=null;
Token otherlv_43=null;
- Token lv_connaissances_44_0=null;
Token otherlv_45=null;
- Token lv_connaissances_46_0=null;
Token otherlv_47=null;
Token otherlv_48=null;
+ EObject lv_nom_3_0 = null;
+
EObject lv_deposable_7_0 = null;
EObject lv_depart_11_0 = null;
EObject lv_fin_15_0 = null;
+ EObject lv_personnes_20_0 = null;
+
+ EObject lv_personnes_22_0 = null;
+
EObject lv_descriptions_28_0 = null;
EObject lv_descriptions_30_0 = null;
+ EObject lv_objets_36_0 = null;
+
+ EObject lv_objets_38_0 = null;
+
+ EObject lv_connaissances_44_0 = null;
+
+ EObject lv_connaissances_46_0 = null;
+
enterRule();
try {
- // InternalGAME.g:762:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )* )? otherlv_47= ']' otherlv_48= '}' ) )
- // InternalGAME.g:763:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )* )? otherlv_47= ']' otherlv_48= '}' )
+ // InternalGAME.g:766:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )* )? otherlv_47= ']' otherlv_48= '}' ) )
+ // InternalGAME.g:767:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )* )? otherlv_47= ']' otherlv_48= '}' )
{
- // InternalGAME.g:763:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )* )? otherlv_47= ']' otherlv_48= '}' )
- // InternalGAME.g:764:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )* )? otherlv_47= ']' otherlv_48= '}'
+ // InternalGAME.g:767:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )* )? otherlv_47= ']' otherlv_48= '}' )
+ // InternalGAME.g:768:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"descriptions\"' otherlv_26= ':' otherlv_27= '[' ( (lv_descriptions_28_0= ruleDescription ) ) (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )* otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"objets\"' otherlv_34= ':' otherlv_35= '[' ( ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )* )? otherlv_39= ']' otherlv_40= ',' otherlv_41= '\"connaissances\"' otherlv_42= ':' otherlv_43= '[' ( ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )* )? otherlv_47= ']' otherlv_48= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
@@ -1684,25 +1715,30 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getLieuAccess().getColonKeyword_2());
- // InternalGAME.g:776:3: ( (lv_nom_3_0= RULE_STRING ) )
- // InternalGAME.g:777:4: (lv_nom_3_0= RULE_STRING )
+ // InternalGAME.g:780:3: ( (lv_nom_3_0= ruleNom ) )
+ // InternalGAME.g:781:4: (lv_nom_3_0= ruleNom )
{
- // InternalGAME.g:777:4: (lv_nom_3_0= RULE_STRING )
- // InternalGAME.g:778:5: lv_nom_3_0= RULE_STRING
+ // InternalGAME.g:781:4: (lv_nom_3_0= ruleNom )
+ // InternalGAME.g:782:5: lv_nom_3_0= ruleNom
{
- lv_nom_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
- newLeafNode(lv_nom_3_0, grammarAccess.getLieuAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getNomNomParserRuleCall_3_0());
+ pushFollow(FOLLOW_6);
+ lv_nom_3_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- setWithLastConsumed(
+ set(
current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1722,11 +1758,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getLieuAccess().getColonKeyword_6());
- // InternalGAME.g:806:3: ( (lv_deposable_7_0= ruleCondition ) )
- // InternalGAME.g:807:4: (lv_deposable_7_0= ruleCondition )
+ // InternalGAME.g:811:3: ( (lv_deposable_7_0= ruleCondition ) )
+ // InternalGAME.g:812:4: (lv_deposable_7_0= ruleCondition )
{
- // InternalGAME.g:807:4: (lv_deposable_7_0= ruleCondition )
- // InternalGAME.g:808:5: lv_deposable_7_0= ruleCondition
+ // InternalGAME.g:812:4: (lv_deposable_7_0= ruleCondition )
+ // InternalGAME.g:813:5: lv_deposable_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getLieuAccess().getDeposableConditionParserRuleCall_7_0());
@@ -1765,11 +1801,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_10, grammarAccess.getLieuAccess().getColonKeyword_10());
- // InternalGAME.g:837:3: ( (lv_depart_11_0= ruleCondition ) )
- // InternalGAME.g:838:4: (lv_depart_11_0= ruleCondition )
+ // InternalGAME.g:842:3: ( (lv_depart_11_0= ruleCondition ) )
+ // InternalGAME.g:843:4: (lv_depart_11_0= ruleCondition )
{
- // InternalGAME.g:838:4: (lv_depart_11_0= ruleCondition )
- // InternalGAME.g:839:5: lv_depart_11_0= ruleCondition
+ // InternalGAME.g:843:4: (lv_depart_11_0= ruleCondition )
+ // InternalGAME.g:844:5: lv_depart_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getLieuAccess().getDepartConditionParserRuleCall_11_0());
@@ -1808,11 +1844,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_14, grammarAccess.getLieuAccess().getColonKeyword_14());
- // InternalGAME.g:868:3: ( (lv_fin_15_0= ruleCondition ) )
- // InternalGAME.g:869:4: (lv_fin_15_0= ruleCondition )
+ // InternalGAME.g:873:3: ( (lv_fin_15_0= ruleCondition ) )
+ // InternalGAME.g:874:4: (lv_fin_15_0= ruleCondition )
{
- // InternalGAME.g:869:4: (lv_fin_15_0= ruleCondition )
- // InternalGAME.g:870:5: lv_fin_15_0= ruleCondition
+ // InternalGAME.g:874:4: (lv_fin_15_0= ruleCondition )
+ // InternalGAME.g:875:5: lv_fin_15_0= ruleCondition
{
newCompositeNode(grammarAccess.getLieuAccess().getFinConditionParserRuleCall_15_0());
@@ -1855,7 +1891,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_19, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_19());
- // InternalGAME.g:903:3: ( ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:908:3: ( ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )* )?
int alt18=2;
int LA18_0 = input.LA(1);
@@ -1864,27 +1900,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt18) {
case 1 :
- // InternalGAME.g:904:4: ( (lv_personnes_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )*
+ // InternalGAME.g:909:4: ( (lv_personnes_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )*
{
- // InternalGAME.g:904:4: ( (lv_personnes_20_0= RULE_STRING ) )
- // InternalGAME.g:905:5: (lv_personnes_20_0= RULE_STRING )
+ // InternalGAME.g:909:4: ( (lv_personnes_20_0= ruleNom ) )
+ // InternalGAME.g:910:5: (lv_personnes_20_0= ruleNom )
{
- // InternalGAME.g:905:5: (lv_personnes_20_0= RULE_STRING )
- // InternalGAME.g:906:6: lv_personnes_20_0= RULE_STRING
+ // InternalGAME.g:910:5: (lv_personnes_20_0= ruleNom )
+ // InternalGAME.g:911:6: lv_personnes_20_0= ruleNom
{
- lv_personnes_20_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_personnes_20_0, grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_0_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_0_0());
+ pushFollow(FOLLOW_11);
+ lv_personnes_20_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
current,
"personnes",
lv_personnes_20_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1892,7 +1933,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:922:4: (otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) ) )*
+ // InternalGAME.g:928:4: (otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) ) )*
loop17:
do {
int alt17=2;
@@ -1905,31 +1946,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt17) {
case 1 :
- // InternalGAME.g:923:5: otherlv_21= ',' ( (lv_personnes_22_0= RULE_STRING ) )
+ // InternalGAME.g:929:5: otherlv_21= ',' ( (lv_personnes_22_0= ruleNom ) )
{
otherlv_21=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_21, grammarAccess.getLieuAccess().getCommaKeyword_20_1_0());
- // InternalGAME.g:927:5: ( (lv_personnes_22_0= RULE_STRING ) )
- // InternalGAME.g:928:6: (lv_personnes_22_0= RULE_STRING )
+ // InternalGAME.g:933:5: ( (lv_personnes_22_0= ruleNom ) )
+ // InternalGAME.g:934:6: (lv_personnes_22_0= ruleNom )
{
- // InternalGAME.g:928:6: (lv_personnes_22_0= RULE_STRING )
- // InternalGAME.g:929:7: lv_personnes_22_0= RULE_STRING
+ // InternalGAME.g:934:6: (lv_personnes_22_0= ruleNom )
+ // InternalGAME.g:935:7: lv_personnes_22_0= ruleNom
{
- lv_personnes_22_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_personnes_22_0, grammarAccess.getLieuAccess().getPersonnesSTRINGTerminalRuleCall_20_1_1_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_personnes_22_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
current,
"personnes",
lv_personnes_22_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -1972,11 +2018,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_27, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_25());
- // InternalGAME.g:967:3: ( (lv_descriptions_28_0= ruleDescription ) )
- // InternalGAME.g:968:4: (lv_descriptions_28_0= ruleDescription )
+ // InternalGAME.g:974:3: ( (lv_descriptions_28_0= ruleDescription ) )
+ // InternalGAME.g:975:4: (lv_descriptions_28_0= ruleDescription )
{
- // InternalGAME.g:968:4: (lv_descriptions_28_0= ruleDescription )
- // InternalGAME.g:969:5: lv_descriptions_28_0= ruleDescription
+ // InternalGAME.g:975:4: (lv_descriptions_28_0= ruleDescription )
+ // InternalGAME.g:976:5: lv_descriptions_28_0= ruleDescription
{
newCompositeNode(grammarAccess.getLieuAccess().getDescriptionsDescriptionParserRuleCall_26_0());
@@ -2003,7 +2049,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:986:3: (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )*
+ // InternalGAME.g:993:3: (otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) ) )*
loop19:
do {
int alt19=2;
@@ -2016,17 +2062,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt19) {
case 1 :
- // InternalGAME.g:987:4: otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) )
+ // InternalGAME.g:994:4: otherlv_29= ',' ( (lv_descriptions_30_0= ruleDescription ) )
{
otherlv_29=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_29, grammarAccess.getLieuAccess().getCommaKeyword_27_0());
- // InternalGAME.g:991:4: ( (lv_descriptions_30_0= ruleDescription ) )
- // InternalGAME.g:992:5: (lv_descriptions_30_0= ruleDescription )
+ // InternalGAME.g:998:4: ( (lv_descriptions_30_0= ruleDescription ) )
+ // InternalGAME.g:999:5: (lv_descriptions_30_0= ruleDescription )
{
- // InternalGAME.g:992:5: (lv_descriptions_30_0= ruleDescription )
- // InternalGAME.g:993:6: lv_descriptions_30_0= ruleDescription
+ // InternalGAME.g:999:5: (lv_descriptions_30_0= ruleDescription )
+ // InternalGAME.g:1000:6: lv_descriptions_30_0= ruleDescription
{
newCompositeNode(grammarAccess.getLieuAccess().getDescriptionsDescriptionParserRuleCall_27_1_0());
@@ -2082,7 +2128,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_35, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_32());
- // InternalGAME.g:1031:3: ( ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1038:3: ( ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )* )?
int alt21=2;
int LA21_0 = input.LA(1);
@@ -2091,27 +2137,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt21) {
case 1 :
- // InternalGAME.g:1032:4: ( (lv_objets_36_0= RULE_STRING ) ) (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1039:4: ( (lv_objets_36_0= ruleNom ) ) (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )*
{
- // InternalGAME.g:1032:4: ( (lv_objets_36_0= RULE_STRING ) )
- // InternalGAME.g:1033:5: (lv_objets_36_0= RULE_STRING )
+ // InternalGAME.g:1039:4: ( (lv_objets_36_0= ruleNom ) )
+ // InternalGAME.g:1040:5: (lv_objets_36_0= ruleNom )
{
- // InternalGAME.g:1033:5: (lv_objets_36_0= RULE_STRING )
- // InternalGAME.g:1034:6: lv_objets_36_0= RULE_STRING
+ // InternalGAME.g:1040:5: (lv_objets_36_0= ruleNom )
+ // InternalGAME.g:1041:6: lv_objets_36_0= ruleNom
{
- lv_objets_36_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objets_36_0, grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_0_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objets_36_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
current,
"objets",
lv_objets_36_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2119,7 +2170,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1050:4: (otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1058:4: (otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) ) )*
loop20:
do {
int alt20=2;
@@ -2132,31 +2183,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt20) {
case 1 :
- // InternalGAME.g:1051:5: otherlv_37= ',' ( (lv_objets_38_0= RULE_STRING ) )
+ // InternalGAME.g:1059:5: otherlv_37= ',' ( (lv_objets_38_0= ruleNom ) )
{
otherlv_37=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_37, grammarAccess.getLieuAccess().getCommaKeyword_33_1_0());
- // InternalGAME.g:1055:5: ( (lv_objets_38_0= RULE_STRING ) )
- // InternalGAME.g:1056:6: (lv_objets_38_0= RULE_STRING )
+ // InternalGAME.g:1063:5: ( (lv_objets_38_0= ruleNom ) )
+ // InternalGAME.g:1064:6: (lv_objets_38_0= ruleNom )
{
- // InternalGAME.g:1056:6: (lv_objets_38_0= RULE_STRING )
- // InternalGAME.g:1057:7: lv_objets_38_0= RULE_STRING
+ // InternalGAME.g:1064:6: (lv_objets_38_0= ruleNom )
+ // InternalGAME.g:1065:7: lv_objets_38_0= ruleNom
{
- lv_objets_38_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objets_38_0, grammarAccess.getLieuAccess().getObjetsSTRINGTerminalRuleCall_33_1_1_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_33_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objets_38_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
current,
"objets",
lv_objets_38_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2199,7 +2255,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_43, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_38());
- // InternalGAME.g:1095:3: ( ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1104:3: ( ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )* )?
int alt23=2;
int LA23_0 = input.LA(1);
@@ -2208,27 +2264,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt23) {
case 1 :
- // InternalGAME.g:1096:4: ( (lv_connaissances_44_0= RULE_STRING ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1105:4: ( (lv_connaissances_44_0= ruleNom ) ) (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )*
{
- // InternalGAME.g:1096:4: ( (lv_connaissances_44_0= RULE_STRING ) )
- // InternalGAME.g:1097:5: (lv_connaissances_44_0= RULE_STRING )
+ // InternalGAME.g:1105:4: ( (lv_connaissances_44_0= ruleNom ) )
+ // InternalGAME.g:1106:5: (lv_connaissances_44_0= ruleNom )
{
- // InternalGAME.g:1097:5: (lv_connaissances_44_0= RULE_STRING )
- // InternalGAME.g:1098:6: lv_connaissances_44_0= RULE_STRING
+ // InternalGAME.g:1106:5: (lv_connaissances_44_0= ruleNom )
+ // InternalGAME.g:1107:6: lv_connaissances_44_0= ruleNom
{
- lv_connaissances_44_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_44_0, grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_0_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_0_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_44_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_44_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2236,7 +2297,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1114:4: (otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1124:4: (otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) ) )*
loop22:
do {
int alt22=2;
@@ -2249,31 +2310,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt22) {
case 1 :
- // InternalGAME.g:1115:5: otherlv_45= ',' ( (lv_connaissances_46_0= RULE_STRING ) )
+ // InternalGAME.g:1125:5: otherlv_45= ',' ( (lv_connaissances_46_0= ruleNom ) )
{
otherlv_45=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_45, grammarAccess.getLieuAccess().getCommaKeyword_39_1_0());
- // InternalGAME.g:1119:5: ( (lv_connaissances_46_0= RULE_STRING ) )
- // InternalGAME.g:1120:6: (lv_connaissances_46_0= RULE_STRING )
+ // InternalGAME.g:1129:5: ( (lv_connaissances_46_0= ruleNom ) )
+ // InternalGAME.g:1130:6: (lv_connaissances_46_0= ruleNom )
{
- // InternalGAME.g:1120:6: (lv_connaissances_46_0= RULE_STRING )
- // InternalGAME.g:1121:7: lv_connaissances_46_0= RULE_STRING
+ // InternalGAME.g:1130:6: (lv_connaissances_46_0= ruleNom )
+ // InternalGAME.g:1131:7: lv_connaissances_46_0= ruleNom
{
- lv_connaissances_46_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_46_0, grammarAccess.getLieuAccess().getConnaissancesSTRINGTerminalRuleCall_39_1_1_0());
+ newCompositeNode(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_39_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_46_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getLieuRule());
+ current = createModelElementForParent(grammarAccess.getLieuRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_46_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2327,7 +2393,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleChemin"
- // InternalGAME.g:1151:1: entryRuleChemin returns [EObject current=null] : iv_ruleChemin= ruleChemin EOF ;
+ // InternalGAME.g:1162:1: entryRuleChemin returns [EObject current=null] : iv_ruleChemin= ruleChemin EOF ;
public final EObject entryRuleChemin() throws RecognitionException {
EObject current = null;
@@ -2335,8 +2401,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:1151:47: (iv_ruleChemin= ruleChemin EOF )
- // InternalGAME.g:1152:2: iv_ruleChemin= ruleChemin EOF
+ // InternalGAME.g:1162:47: (iv_ruleChemin= ruleChemin EOF )
+ // InternalGAME.g:1163:2: iv_ruleChemin= ruleChemin EOF
{
newCompositeNode(grammarAccess.getCheminRule());
pushFollow(FOLLOW_1);
@@ -2363,18 +2429,16 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleChemin"
- // InternalGAME.g:1158:1: ruleChemin returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= RULE_STRING ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' ) ;
+ // InternalGAME.g:1169:1: ruleChemin returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' ) ;
public final EObject ruleChemin() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
- Token lv_lieuIn_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
- Token lv_lieuOut_7_0=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
@@ -2388,25 +2452,19 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_21=null;
Token otherlv_22=null;
Token otherlv_23=null;
- Token lv_connaissances_24_0=null;
Token otherlv_25=null;
- Token lv_connaissances_26_0=null;
Token otherlv_27=null;
Token otherlv_28=null;
Token otherlv_29=null;
Token otherlv_30=null;
Token otherlv_31=null;
- Token lv_objetsRecus_32_0=null;
Token otherlv_33=null;
- Token lv_objetsRecus_34_0=null;
Token otherlv_35=null;
Token otherlv_36=null;
Token otherlv_37=null;
Token otherlv_38=null;
Token otherlv_39=null;
- Token lv_objetsConso_40_0=null;
Token otherlv_41=null;
- Token lv_objetsConso_42_0=null;
Token otherlv_43=null;
Token otherlv_44=null;
Token otherlv_45=null;
@@ -2415,12 +2473,28 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_49=null;
Token otherlv_51=null;
Token otherlv_52=null;
+ EObject lv_lieuIn_3_0 = null;
+
+ EObject lv_lieuOut_7_0 = null;
+
EObject lv_ouvert_11_0 = null;
EObject lv_visible_15_0 = null;
EObject lv_obligatoire_19_0 = null;
+ EObject lv_connaissances_24_0 = null;
+
+ EObject lv_connaissances_26_0 = null;
+
+ EObject lv_objetsRecus_32_0 = null;
+
+ EObject lv_objetsRecus_34_0 = null;
+
+ EObject lv_objetsConso_40_0 = null;
+
+ EObject lv_objetsConso_42_0 = null;
+
EObject lv_descriptions_48_0 = null;
EObject lv_descriptions_50_0 = null;
@@ -2430,11 +2504,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:1164:2: ( (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= RULE_STRING ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' ) )
- // InternalGAME.g:1165:2: (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= RULE_STRING ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' )
+ // InternalGAME.g:1175:2: ( (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' ) )
+ // InternalGAME.g:1176:2: (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' )
{
- // InternalGAME.g:1165:2: (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= RULE_STRING ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' )
- // InternalGAME.g:1166:3: otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= RULE_STRING ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}'
+ // InternalGAME.g:1176:2: (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}' )
+ // InternalGAME.g:1177:3: otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"objets_recus\"' otherlv_30= ':' otherlv_31= '[' ( ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"objets_conso\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )* )? otherlv_43= ']' otherlv_44= ',' otherlv_45= '\"descriptions\"' otherlv_46= ':' otherlv_47= '[' ( (lv_descriptions_48_0= ruleDescription ) ) (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )* otherlv_51= ']' otherlv_52= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_31);
@@ -2448,25 +2522,30 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getCheminAccess().getColonKeyword_2());
- // InternalGAME.g:1178:3: ( (lv_lieuIn_3_0= RULE_STRING ) )
- // InternalGAME.g:1179:4: (lv_lieuIn_3_0= RULE_STRING )
+ // InternalGAME.g:1189:3: ( (lv_lieuIn_3_0= ruleNom ) )
+ // InternalGAME.g:1190:4: (lv_lieuIn_3_0= ruleNom )
{
- // InternalGAME.g:1179:4: (lv_lieuIn_3_0= RULE_STRING )
- // InternalGAME.g:1180:5: lv_lieuIn_3_0= RULE_STRING
+ // InternalGAME.g:1190:4: (lv_lieuIn_3_0= ruleNom )
+ // InternalGAME.g:1191:5: lv_lieuIn_3_0= ruleNom
{
- lv_lieuIn_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
- newLeafNode(lv_lieuIn_3_0, grammarAccess.getCheminAccess().getLieuInSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getLieuInNomParserRuleCall_3_0());
+ pushFollow(FOLLOW_6);
+ lv_lieuIn_3_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- setWithLastConsumed(
+ set(
current,
"lieuIn",
lv_lieuIn_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2486,25 +2565,30 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getCheminAccess().getColonKeyword_6());
- // InternalGAME.g:1208:3: ( (lv_lieuOut_7_0= RULE_STRING ) )
- // InternalGAME.g:1209:4: (lv_lieuOut_7_0= RULE_STRING )
+ // InternalGAME.g:1220:3: ( (lv_lieuOut_7_0= ruleNom ) )
+ // InternalGAME.g:1221:4: (lv_lieuOut_7_0= ruleNom )
{
- // InternalGAME.g:1209:4: (lv_lieuOut_7_0= RULE_STRING )
- // InternalGAME.g:1210:5: lv_lieuOut_7_0= RULE_STRING
+ // InternalGAME.g:1221:4: (lv_lieuOut_7_0= ruleNom )
+ // InternalGAME.g:1222:5: lv_lieuOut_7_0= ruleNom
{
- lv_lieuOut_7_0=(Token)match(input,RULE_STRING,FOLLOW_6);
- newLeafNode(lv_lieuOut_7_0, grammarAccess.getCheminAccess().getLieuOutSTRINGTerminalRuleCall_7_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getLieuOutNomParserRuleCall_7_0());
+ pushFollow(FOLLOW_6);
+ lv_lieuOut_7_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- setWithLastConsumed(
+ set(
current,
"lieuOut",
lv_lieuOut_7_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2524,11 +2608,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_10, grammarAccess.getCheminAccess().getColonKeyword_10());
- // InternalGAME.g:1238:3: ( (lv_ouvert_11_0= ruleCondition ) )
- // InternalGAME.g:1239:4: (lv_ouvert_11_0= ruleCondition )
+ // InternalGAME.g:1251:3: ( (lv_ouvert_11_0= ruleCondition ) )
+ // InternalGAME.g:1252:4: (lv_ouvert_11_0= ruleCondition )
{
- // InternalGAME.g:1239:4: (lv_ouvert_11_0= ruleCondition )
- // InternalGAME.g:1240:5: lv_ouvert_11_0= ruleCondition
+ // InternalGAME.g:1252:4: (lv_ouvert_11_0= ruleCondition )
+ // InternalGAME.g:1253:5: lv_ouvert_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getCheminAccess().getOuvertConditionParserRuleCall_11_0());
@@ -2567,11 +2651,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_14, grammarAccess.getCheminAccess().getColonKeyword_14());
- // InternalGAME.g:1269:3: ( (lv_visible_15_0= ruleCondition ) )
- // InternalGAME.g:1270:4: (lv_visible_15_0= ruleCondition )
+ // InternalGAME.g:1282:3: ( (lv_visible_15_0= ruleCondition ) )
+ // InternalGAME.g:1283:4: (lv_visible_15_0= ruleCondition )
{
- // InternalGAME.g:1270:4: (lv_visible_15_0= ruleCondition )
- // InternalGAME.g:1271:5: lv_visible_15_0= ruleCondition
+ // InternalGAME.g:1283:4: (lv_visible_15_0= ruleCondition )
+ // InternalGAME.g:1284:5: lv_visible_15_0= ruleCondition
{
newCompositeNode(grammarAccess.getCheminAccess().getVisibleConditionParserRuleCall_15_0());
@@ -2610,11 +2694,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_18, grammarAccess.getCheminAccess().getColonKeyword_18());
- // InternalGAME.g:1300:3: ( (lv_obligatoire_19_0= ruleCondition ) )
- // InternalGAME.g:1301:4: (lv_obligatoire_19_0= ruleCondition )
+ // InternalGAME.g:1313:3: ( (lv_obligatoire_19_0= ruleCondition ) )
+ // InternalGAME.g:1314:4: (lv_obligatoire_19_0= ruleCondition )
{
- // InternalGAME.g:1301:4: (lv_obligatoire_19_0= ruleCondition )
- // InternalGAME.g:1302:5: lv_obligatoire_19_0= ruleCondition
+ // InternalGAME.g:1314:4: (lv_obligatoire_19_0= ruleCondition )
+ // InternalGAME.g:1315:5: lv_obligatoire_19_0= ruleCondition
{
newCompositeNode(grammarAccess.getCheminAccess().getObligatoireConditionParserRuleCall_19_0());
@@ -2657,7 +2741,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_23, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_23());
- // InternalGAME.g:1335:3: ( ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1348:3: ( ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )* )?
int alt25=2;
int LA25_0 = input.LA(1);
@@ -2666,27 +2750,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt25) {
case 1 :
- // InternalGAME.g:1336:4: ( (lv_connaissances_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1349:4: ( (lv_connaissances_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )*
{
- // InternalGAME.g:1336:4: ( (lv_connaissances_24_0= RULE_STRING ) )
- // InternalGAME.g:1337:5: (lv_connaissances_24_0= RULE_STRING )
+ // InternalGAME.g:1349:4: ( (lv_connaissances_24_0= ruleNom ) )
+ // InternalGAME.g:1350:5: (lv_connaissances_24_0= ruleNom )
{
- // InternalGAME.g:1337:5: (lv_connaissances_24_0= RULE_STRING )
- // InternalGAME.g:1338:6: lv_connaissances_24_0= RULE_STRING
+ // InternalGAME.g:1350:5: (lv_connaissances_24_0= ruleNom )
+ // InternalGAME.g:1351:6: lv_connaissances_24_0= ruleNom
{
- lv_connaissances_24_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_24_0, grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_0_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_0_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_24_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_24_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2694,7 +2783,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1354:4: (otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1368:4: (otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) ) )*
loop24:
do {
int alt24=2;
@@ -2707,31 +2796,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt24) {
case 1 :
- // InternalGAME.g:1355:5: otherlv_25= ',' ( (lv_connaissances_26_0= RULE_STRING ) )
+ // InternalGAME.g:1369:5: otherlv_25= ',' ( (lv_connaissances_26_0= ruleNom ) )
{
otherlv_25=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_25, grammarAccess.getCheminAccess().getCommaKeyword_24_1_0());
- // InternalGAME.g:1359:5: ( (lv_connaissances_26_0= RULE_STRING ) )
- // InternalGAME.g:1360:6: (lv_connaissances_26_0= RULE_STRING )
+ // InternalGAME.g:1373:5: ( (lv_connaissances_26_0= ruleNom ) )
+ // InternalGAME.g:1374:6: (lv_connaissances_26_0= ruleNom )
{
- // InternalGAME.g:1360:6: (lv_connaissances_26_0= RULE_STRING )
- // InternalGAME.g:1361:7: lv_connaissances_26_0= RULE_STRING
+ // InternalGAME.g:1374:6: (lv_connaissances_26_0= ruleNom )
+ // InternalGAME.g:1375:7: lv_connaissances_26_0= ruleNom
{
- lv_connaissances_26_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_26_0, grammarAccess.getCheminAccess().getConnaissancesSTRINGTerminalRuleCall_24_1_1_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_26_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_26_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2774,7 +2868,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_31, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_29());
- // InternalGAME.g:1399:3: ( ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1414:3: ( ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )* )?
int alt27=2;
int LA27_0 = input.LA(1);
@@ -2783,27 +2877,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt27) {
case 1 :
- // InternalGAME.g:1400:4: ( (lv_objetsRecus_32_0= RULE_STRING ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1415:4: ( (lv_objetsRecus_32_0= ruleNom ) ) (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )*
{
- // InternalGAME.g:1400:4: ( (lv_objetsRecus_32_0= RULE_STRING ) )
- // InternalGAME.g:1401:5: (lv_objetsRecus_32_0= RULE_STRING )
+ // InternalGAME.g:1415:4: ( (lv_objetsRecus_32_0= ruleNom ) )
+ // InternalGAME.g:1416:5: (lv_objetsRecus_32_0= ruleNom )
{
- // InternalGAME.g:1401:5: (lv_objetsRecus_32_0= RULE_STRING )
- // InternalGAME.g:1402:6: lv_objetsRecus_32_0= RULE_STRING
+ // InternalGAME.g:1416:5: (lv_objetsRecus_32_0= ruleNom )
+ // InternalGAME.g:1417:6: lv_objetsRecus_32_0= ruleNom
{
- lv_objetsRecus_32_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_32_0, grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_0_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_32_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_32_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2811,7 +2910,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1418:4: (otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1434:4: (otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) ) )*
loop26:
do {
int alt26=2;
@@ -2824,31 +2923,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt26) {
case 1 :
- // InternalGAME.g:1419:5: otherlv_33= ',' ( (lv_objetsRecus_34_0= RULE_STRING ) )
+ // InternalGAME.g:1435:5: otherlv_33= ',' ( (lv_objetsRecus_34_0= ruleNom ) )
{
otherlv_33=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_33, grammarAccess.getCheminAccess().getCommaKeyword_30_1_0());
- // InternalGAME.g:1423:5: ( (lv_objetsRecus_34_0= RULE_STRING ) )
- // InternalGAME.g:1424:6: (lv_objetsRecus_34_0= RULE_STRING )
+ // InternalGAME.g:1439:5: ( (lv_objetsRecus_34_0= ruleNom ) )
+ // InternalGAME.g:1440:6: (lv_objetsRecus_34_0= ruleNom )
{
- // InternalGAME.g:1424:6: (lv_objetsRecus_34_0= RULE_STRING )
- // InternalGAME.g:1425:7: lv_objetsRecus_34_0= RULE_STRING
+ // InternalGAME.g:1440:6: (lv_objetsRecus_34_0= ruleNom )
+ // InternalGAME.g:1441:7: lv_objetsRecus_34_0= ruleNom
{
- lv_objetsRecus_34_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_34_0, grammarAccess.getCheminAccess().getObjetsRecusSTRINGTerminalRuleCall_30_1_1_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_34_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_34_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2891,7 +2995,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_39, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_35());
- // InternalGAME.g:1463:3: ( ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1480:3: ( ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )* )?
int alt29=2;
int LA29_0 = input.LA(1);
@@ -2900,27 +3004,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt29) {
case 1 :
- // InternalGAME.g:1464:4: ( (lv_objetsConso_40_0= RULE_STRING ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1481:4: ( (lv_objetsConso_40_0= ruleNom ) ) (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )*
{
- // InternalGAME.g:1464:4: ( (lv_objetsConso_40_0= RULE_STRING ) )
- // InternalGAME.g:1465:5: (lv_objetsConso_40_0= RULE_STRING )
+ // InternalGAME.g:1481:4: ( (lv_objetsConso_40_0= ruleNom ) )
+ // InternalGAME.g:1482:5: (lv_objetsConso_40_0= ruleNom )
{
- // InternalGAME.g:1465:5: (lv_objetsConso_40_0= RULE_STRING )
- // InternalGAME.g:1466:6: lv_objetsConso_40_0= RULE_STRING
+ // InternalGAME.g:1482:5: (lv_objetsConso_40_0= ruleNom )
+ // InternalGAME.g:1483:6: lv_objetsConso_40_0= ruleNom
{
- lv_objetsConso_40_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsConso_40_0, grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_0_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsConso_40_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsConso",
lv_objetsConso_40_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -2928,7 +3037,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1482:4: (otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1500:4: (otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) ) )*
loop28:
do {
int alt28=2;
@@ -2941,31 +3050,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt28) {
case 1 :
- // InternalGAME.g:1483:5: otherlv_41= ',' ( (lv_objetsConso_42_0= RULE_STRING ) )
+ // InternalGAME.g:1501:5: otherlv_41= ',' ( (lv_objetsConso_42_0= ruleNom ) )
{
otherlv_41=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_41, grammarAccess.getCheminAccess().getCommaKeyword_36_1_0());
- // InternalGAME.g:1487:5: ( (lv_objetsConso_42_0= RULE_STRING ) )
- // InternalGAME.g:1488:6: (lv_objetsConso_42_0= RULE_STRING )
+ // InternalGAME.g:1505:5: ( (lv_objetsConso_42_0= ruleNom ) )
+ // InternalGAME.g:1506:6: (lv_objetsConso_42_0= ruleNom )
{
- // InternalGAME.g:1488:6: (lv_objetsConso_42_0= RULE_STRING )
- // InternalGAME.g:1489:7: lv_objetsConso_42_0= RULE_STRING
+ // InternalGAME.g:1506:6: (lv_objetsConso_42_0= ruleNom )
+ // InternalGAME.g:1507:7: lv_objetsConso_42_0= ruleNom
{
- lv_objetsConso_42_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsConso_42_0, grammarAccess.getCheminAccess().getObjetsConsoSTRINGTerminalRuleCall_36_1_1_0());
+ newCompositeNode(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsConso_42_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getCheminRule());
+ current = createModelElementForParent(grammarAccess.getCheminRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsConso",
lv_objetsConso_42_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3008,11 +3122,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_47, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_41());
- // InternalGAME.g:1527:3: ( (lv_descriptions_48_0= ruleDescription ) )
- // InternalGAME.g:1528:4: (lv_descriptions_48_0= ruleDescription )
+ // InternalGAME.g:1546:3: ( (lv_descriptions_48_0= ruleDescription ) )
+ // InternalGAME.g:1547:4: (lv_descriptions_48_0= ruleDescription )
{
- // InternalGAME.g:1528:4: (lv_descriptions_48_0= ruleDescription )
- // InternalGAME.g:1529:5: lv_descriptions_48_0= ruleDescription
+ // InternalGAME.g:1547:4: (lv_descriptions_48_0= ruleDescription )
+ // InternalGAME.g:1548:5: lv_descriptions_48_0= ruleDescription
{
newCompositeNode(grammarAccess.getCheminAccess().getDescriptionsDescriptionParserRuleCall_42_0());
@@ -3039,7 +3153,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1546:3: (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )*
+ // InternalGAME.g:1565:3: (otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) ) )*
loop30:
do {
int alt30=2;
@@ -3052,17 +3166,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt30) {
case 1 :
- // InternalGAME.g:1547:4: otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) )
+ // InternalGAME.g:1566:4: otherlv_49= ',' ( (lv_descriptions_50_0= ruleDescription ) )
{
otherlv_49=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_49, grammarAccess.getCheminAccess().getCommaKeyword_43_0());
- // InternalGAME.g:1551:4: ( (lv_descriptions_50_0= ruleDescription ) )
- // InternalGAME.g:1552:5: (lv_descriptions_50_0= ruleDescription )
+ // InternalGAME.g:1570:4: ( (lv_descriptions_50_0= ruleDescription ) )
+ // InternalGAME.g:1571:5: (lv_descriptions_50_0= ruleDescription )
{
- // InternalGAME.g:1552:5: (lv_descriptions_50_0= ruleDescription )
- // InternalGAME.g:1553:6: lv_descriptions_50_0= ruleDescription
+ // InternalGAME.g:1571:5: (lv_descriptions_50_0= ruleDescription )
+ // InternalGAME.g:1572:6: lv_descriptions_50_0= ruleDescription
{
newCompositeNode(grammarAccess.getCheminAccess().getDescriptionsDescriptionParserRuleCall_43_1_0());
@@ -3129,7 +3243,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleObjet"
- // InternalGAME.g:1583:1: entryRuleObjet returns [EObject current=null] : iv_ruleObjet= ruleObjet EOF ;
+ // InternalGAME.g:1602:1: entryRuleObjet returns [EObject current=null] : iv_ruleObjet= ruleObjet EOF ;
public final EObject entryRuleObjet() throws RecognitionException {
EObject current = null;
@@ -3137,8 +3251,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:1583:46: (iv_ruleObjet= ruleObjet EOF )
- // InternalGAME.g:1584:2: iv_ruleObjet= ruleObjet EOF
+ // InternalGAME.g:1602:46: (iv_ruleObjet= ruleObjet EOF )
+ // InternalGAME.g:1603:2: iv_ruleObjet= ruleObjet EOF
{
newCompositeNode(grammarAccess.getObjetRule());
pushFollow(FOLLOW_1);
@@ -3165,14 +3279,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleObjet"
- // InternalGAME.g:1590:1: ruleObjet returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' ) ;
+ // InternalGAME.g:1609:1: ruleObjet returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' ) ;
public final EObject ruleObjet() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
- Token lv_nom_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
@@ -3187,6 +3300,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_17=null;
Token otherlv_19=null;
Token otherlv_20=null;
+ EObject lv_nom_3_0 = null;
+
EObject lv_visible_11_0 = null;
EObject lv_descriptions_16_0 = null;
@@ -3198,11 +3313,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:1596:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' ) )
- // InternalGAME.g:1597:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' )
+ // InternalGAME.g:1615:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' ) )
+ // InternalGAME.g:1616:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' )
{
- // InternalGAME.g:1597:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' )
- // InternalGAME.g:1598:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}'
+ // InternalGAME.g:1616:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}' )
+ // InternalGAME.g:1617:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) ) (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )* otherlv_19= ']' otherlv_20= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
@@ -3216,25 +3331,30 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getObjetAccess().getColonKeyword_2());
- // InternalGAME.g:1610:3: ( (lv_nom_3_0= RULE_STRING ) )
- // InternalGAME.g:1611:4: (lv_nom_3_0= RULE_STRING )
+ // InternalGAME.g:1629:3: ( (lv_nom_3_0= ruleNom ) )
+ // InternalGAME.g:1630:4: (lv_nom_3_0= ruleNom )
{
- // InternalGAME.g:1611:4: (lv_nom_3_0= RULE_STRING )
- // InternalGAME.g:1612:5: lv_nom_3_0= RULE_STRING
+ // InternalGAME.g:1630:4: (lv_nom_3_0= ruleNom )
+ // InternalGAME.g:1631:5: lv_nom_3_0= ruleNom
{
- lv_nom_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
- newLeafNode(lv_nom_3_0, grammarAccess.getObjetAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getObjetAccess().getNomNomParserRuleCall_3_0());
+ pushFollow(FOLLOW_6);
+ lv_nom_3_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getObjetRule());
+ current = createModelElementForParent(grammarAccess.getObjetRule());
}
- setWithLastConsumed(
+ set(
current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3254,11 +3374,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getObjetAccess().getColonKeyword_6());
- // InternalGAME.g:1640:3: ( (lv_taille_7_0= RULE_INT ) )
- // InternalGAME.g:1641:4: (lv_taille_7_0= RULE_INT )
+ // InternalGAME.g:1660:3: ( (lv_taille_7_0= RULE_INT ) )
+ // InternalGAME.g:1661:4: (lv_taille_7_0= RULE_INT )
{
- // InternalGAME.g:1641:4: (lv_taille_7_0= RULE_INT )
- // InternalGAME.g:1642:5: lv_taille_7_0= RULE_INT
+ // InternalGAME.g:1661:4: (lv_taille_7_0= RULE_INT )
+ // InternalGAME.g:1662:5: lv_taille_7_0= RULE_INT
{
lv_taille_7_0=(Token)match(input,RULE_INT,FOLLOW_6);
@@ -3292,11 +3412,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_10, grammarAccess.getObjetAccess().getColonKeyword_10());
- // InternalGAME.g:1670:3: ( (lv_visible_11_0= ruleCondition ) )
- // InternalGAME.g:1671:4: (lv_visible_11_0= ruleCondition )
+ // InternalGAME.g:1690:3: ( (lv_visible_11_0= ruleCondition ) )
+ // InternalGAME.g:1691:4: (lv_visible_11_0= ruleCondition )
{
- // InternalGAME.g:1671:4: (lv_visible_11_0= ruleCondition )
- // InternalGAME.g:1672:5: lv_visible_11_0= ruleCondition
+ // InternalGAME.g:1691:4: (lv_visible_11_0= ruleCondition )
+ // InternalGAME.g:1692:5: lv_visible_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getObjetAccess().getVisibleConditionParserRuleCall_11_0());
@@ -3339,11 +3459,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_15, grammarAccess.getObjetAccess().getLeftSquareBracketKeyword_15());
- // InternalGAME.g:1705:3: ( (lv_descriptions_16_0= ruleDescription ) )
- // InternalGAME.g:1706:4: (lv_descriptions_16_0= ruleDescription )
+ // InternalGAME.g:1725:3: ( (lv_descriptions_16_0= ruleDescription ) )
+ // InternalGAME.g:1726:4: (lv_descriptions_16_0= ruleDescription )
{
- // InternalGAME.g:1706:4: (lv_descriptions_16_0= ruleDescription )
- // InternalGAME.g:1707:5: lv_descriptions_16_0= ruleDescription
+ // InternalGAME.g:1726:4: (lv_descriptions_16_0= ruleDescription )
+ // InternalGAME.g:1727:5: lv_descriptions_16_0= ruleDescription
{
newCompositeNode(grammarAccess.getObjetAccess().getDescriptionsDescriptionParserRuleCall_16_0());
@@ -3370,7 +3490,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1724:3: (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )*
+ // InternalGAME.g:1744:3: (otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) ) )*
loop31:
do {
int alt31=2;
@@ -3383,17 +3503,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt31) {
case 1 :
- // InternalGAME.g:1725:4: otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) )
+ // InternalGAME.g:1745:4: otherlv_17= ',' ( (lv_descriptions_18_0= ruleDescription ) )
{
otherlv_17=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_17, grammarAccess.getObjetAccess().getCommaKeyword_17_0());
- // InternalGAME.g:1729:4: ( (lv_descriptions_18_0= ruleDescription ) )
- // InternalGAME.g:1730:5: (lv_descriptions_18_0= ruleDescription )
+ // InternalGAME.g:1749:4: ( (lv_descriptions_18_0= ruleDescription ) )
+ // InternalGAME.g:1750:5: (lv_descriptions_18_0= ruleDescription )
{
- // InternalGAME.g:1730:5: (lv_descriptions_18_0= ruleDescription )
- // InternalGAME.g:1731:6: lv_descriptions_18_0= ruleDescription
+ // InternalGAME.g:1750:5: (lv_descriptions_18_0= ruleDescription )
+ // InternalGAME.g:1751:6: lv_descriptions_18_0= ruleDescription
{
newCompositeNode(grammarAccess.getObjetAccess().getDescriptionsDescriptionParserRuleCall_17_1_0());
@@ -3460,7 +3580,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleTransformation"
- // InternalGAME.g:1761:1: entryRuleTransformation returns [EObject current=null] : iv_ruleTransformation= ruleTransformation EOF ;
+ // InternalGAME.g:1781:1: entryRuleTransformation returns [EObject current=null] : iv_ruleTransformation= ruleTransformation EOF ;
public final EObject entryRuleTransformation() throws RecognitionException {
EObject current = null;
@@ -3468,8 +3588,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:1761:55: (iv_ruleTransformation= ruleTransformation EOF )
- // InternalGAME.g:1762:2: iv_ruleTransformation= ruleTransformation EOF
+ // InternalGAME.g:1781:55: (iv_ruleTransformation= ruleTransformation EOF )
+ // InternalGAME.g:1782:2: iv_ruleTransformation= ruleTransformation EOF
{
newCompositeNode(grammarAccess.getTransformationRule());
pushFollow(FOLLOW_1);
@@ -3496,7 +3616,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleTransformation"
- // InternalGAME.g:1768:1: ruleTransformation returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' ) ;
+ // InternalGAME.g:1788:1: ruleTransformation returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' ) ;
public final EObject ruleTransformation() throws RecognitionException {
EObject current = null;
@@ -3507,32 +3627,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_7=null;
- Token lv_objetsIn_8_0=null;
Token otherlv_9=null;
- Token lv_objetsIn_10_0=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
- Token lv_objetsOut_16_0=null;
Token otherlv_17=null;
- Token lv_objetsOut_18_0=null;
Token otherlv_19=null;
Token otherlv_20=null;
Token otherlv_21=null;
EObject lv_condition_3_0 = null;
+ EObject lv_objetsIn_8_0 = null;
+
+ EObject lv_objetsIn_10_0 = null;
+
+ EObject lv_objetsOut_16_0 = null;
+
+ EObject lv_objetsOut_18_0 = null;
+
enterRule();
try {
- // InternalGAME.g:1774:2: ( (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' ) )
- // InternalGAME.g:1775:2: (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' )
+ // InternalGAME.g:1794:2: ( (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' ) )
+ // InternalGAME.g:1795:2: (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' )
{
- // InternalGAME.g:1775:2: (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' )
- // InternalGAME.g:1776:3: otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}'
+ // InternalGAME.g:1795:2: (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}' )
+ // InternalGAME.g:1796:3: otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_out\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_38);
@@ -3546,11 +3670,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getTransformationAccess().getColonKeyword_2());
- // InternalGAME.g:1788:3: ( (lv_condition_3_0= ruleCondition ) )
- // InternalGAME.g:1789:4: (lv_condition_3_0= ruleCondition )
+ // InternalGAME.g:1808:3: ( (lv_condition_3_0= ruleCondition ) )
+ // InternalGAME.g:1809:4: (lv_condition_3_0= ruleCondition )
{
- // InternalGAME.g:1789:4: (lv_condition_3_0= ruleCondition )
- // InternalGAME.g:1790:5: lv_condition_3_0= ruleCondition
+ // InternalGAME.g:1809:4: (lv_condition_3_0= ruleCondition )
+ // InternalGAME.g:1810:5: lv_condition_3_0= ruleCondition
{
newCompositeNode(grammarAccess.getTransformationAccess().getConditionConditionParserRuleCall_3_0());
@@ -3593,7 +3717,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_7, grammarAccess.getTransformationAccess().getLeftSquareBracketKeyword_7());
- // InternalGAME.g:1823:3: ( ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1843:3: ( ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )* )?
int alt33=2;
int LA33_0 = input.LA(1);
@@ -3602,27 +3726,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt33) {
case 1 :
- // InternalGAME.g:1824:4: ( (lv_objetsIn_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1844:4: ( (lv_objetsIn_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )*
{
- // InternalGAME.g:1824:4: ( (lv_objetsIn_8_0= RULE_STRING ) )
- // InternalGAME.g:1825:5: (lv_objetsIn_8_0= RULE_STRING )
+ // InternalGAME.g:1844:4: ( (lv_objetsIn_8_0= ruleNom ) )
+ // InternalGAME.g:1845:5: (lv_objetsIn_8_0= ruleNom )
{
- // InternalGAME.g:1825:5: (lv_objetsIn_8_0= RULE_STRING )
- // InternalGAME.g:1826:6: lv_objetsIn_8_0= RULE_STRING
+ // InternalGAME.g:1845:5: (lv_objetsIn_8_0= ruleNom )
+ // InternalGAME.g:1846:6: lv_objetsIn_8_0= ruleNom
{
- lv_objetsIn_8_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsIn_8_0, grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_0_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsIn_8_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getTransformationRule());
+ current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsIn",
lv_objetsIn_8_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3630,7 +3759,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1842:4: (otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1863:4: (otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) ) )*
loop32:
do {
int alt32=2;
@@ -3643,31 +3772,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt32) {
case 1 :
- // InternalGAME.g:1843:5: otherlv_9= ',' ( (lv_objetsIn_10_0= RULE_STRING ) )
+ // InternalGAME.g:1864:5: otherlv_9= ',' ( (lv_objetsIn_10_0= ruleNom ) )
{
otherlv_9=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_9, grammarAccess.getTransformationAccess().getCommaKeyword_8_1_0());
- // InternalGAME.g:1847:5: ( (lv_objetsIn_10_0= RULE_STRING ) )
- // InternalGAME.g:1848:6: (lv_objetsIn_10_0= RULE_STRING )
+ // InternalGAME.g:1868:5: ( (lv_objetsIn_10_0= ruleNom ) )
+ // InternalGAME.g:1869:6: (lv_objetsIn_10_0= ruleNom )
{
- // InternalGAME.g:1848:6: (lv_objetsIn_10_0= RULE_STRING )
- // InternalGAME.g:1849:7: lv_objetsIn_10_0= RULE_STRING
+ // InternalGAME.g:1869:6: (lv_objetsIn_10_0= ruleNom )
+ // InternalGAME.g:1870:7: lv_objetsIn_10_0= ruleNom
{
- lv_objetsIn_10_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsIn_10_0, grammarAccess.getTransformationAccess().getObjetsInSTRINGTerminalRuleCall_8_1_1_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsIn_10_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getTransformationRule());
+ current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsIn",
lv_objetsIn_10_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3710,7 +3844,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_15, grammarAccess.getTransformationAccess().getLeftSquareBracketKeyword_13());
- // InternalGAME.g:1887:3: ( ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:1909:3: ( ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )* )?
int alt35=2;
int LA35_0 = input.LA(1);
@@ -3719,27 +3853,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt35) {
case 1 :
- // InternalGAME.g:1888:4: ( (lv_objetsOut_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1910:4: ( (lv_objetsOut_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )*
{
- // InternalGAME.g:1888:4: ( (lv_objetsOut_16_0= RULE_STRING ) )
- // InternalGAME.g:1889:5: (lv_objetsOut_16_0= RULE_STRING )
+ // InternalGAME.g:1910:4: ( (lv_objetsOut_16_0= ruleNom ) )
+ // InternalGAME.g:1911:5: (lv_objetsOut_16_0= ruleNom )
{
- // InternalGAME.g:1889:5: (lv_objetsOut_16_0= RULE_STRING )
- // InternalGAME.g:1890:6: lv_objetsOut_16_0= RULE_STRING
+ // InternalGAME.g:1911:5: (lv_objetsOut_16_0= ruleNom )
+ // InternalGAME.g:1912:6: lv_objetsOut_16_0= ruleNom
{
- lv_objetsOut_16_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsOut_16_0, grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_0_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsOut_16_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getTransformationRule());
+ current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsOut",
lv_objetsOut_16_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3747,7 +3886,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:1906:4: (otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) ) )*
+ // InternalGAME.g:1929:4: (otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) ) )*
loop34:
do {
int alt34=2;
@@ -3760,31 +3899,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt34) {
case 1 :
- // InternalGAME.g:1907:5: otherlv_17= ',' ( (lv_objetsOut_18_0= RULE_STRING ) )
+ // InternalGAME.g:1930:5: otherlv_17= ',' ( (lv_objetsOut_18_0= ruleNom ) )
{
otherlv_17=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_17, grammarAccess.getTransformationAccess().getCommaKeyword_14_1_0());
- // InternalGAME.g:1911:5: ( (lv_objetsOut_18_0= RULE_STRING ) )
- // InternalGAME.g:1912:6: (lv_objetsOut_18_0= RULE_STRING )
+ // InternalGAME.g:1934:5: ( (lv_objetsOut_18_0= ruleNom ) )
+ // InternalGAME.g:1935:6: (lv_objetsOut_18_0= ruleNom )
{
- // InternalGAME.g:1912:6: (lv_objetsOut_18_0= RULE_STRING )
- // InternalGAME.g:1913:7: lv_objetsOut_18_0= RULE_STRING
+ // InternalGAME.g:1935:6: (lv_objetsOut_18_0= ruleNom )
+ // InternalGAME.g:1936:7: lv_objetsOut_18_0= ruleNom
{
- lv_objetsOut_18_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsOut_18_0, grammarAccess.getTransformationAccess().getObjetsOutSTRINGTerminalRuleCall_14_1_1_0());
+ newCompositeNode(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsOut_18_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getTransformationRule());
+ current = createModelElementForParent(grammarAccess.getTransformationRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsOut",
lv_objetsOut_18_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3842,7 +3986,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleConnaissance"
- // InternalGAME.g:1947:1: entryRuleConnaissance returns [EObject current=null] : iv_ruleConnaissance= ruleConnaissance EOF ;
+ // InternalGAME.g:1971:1: entryRuleConnaissance returns [EObject current=null] : iv_ruleConnaissance= ruleConnaissance EOF ;
public final EObject entryRuleConnaissance() throws RecognitionException {
EObject current = null;
@@ -3850,8 +3994,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:1947:53: (iv_ruleConnaissance= ruleConnaissance EOF )
- // InternalGAME.g:1948:2: iv_ruleConnaissance= ruleConnaissance EOF
+ // InternalGAME.g:1971:53: (iv_ruleConnaissance= ruleConnaissance EOF )
+ // InternalGAME.g:1972:2: iv_ruleConnaissance= ruleConnaissance EOF
{
newCompositeNode(grammarAccess.getConnaissanceRule());
pushFollow(FOLLOW_1);
@@ -3878,14 +4022,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleConnaissance"
- // InternalGAME.g:1954:1: ruleConnaissance returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' ) ;
+ // InternalGAME.g:1978:1: ruleConnaissance returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' ) ;
public final EObject ruleConnaissance() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
- Token lv_nom_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
@@ -3896,6 +4039,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_13=null;
Token otherlv_15=null;
Token otherlv_16=null;
+ EObject lv_nom_3_0 = null;
+
EObject lv_visible_7_0 = null;
EObject lv_descriptions_12_0 = null;
@@ -3907,11 +4052,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:1960:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' ) )
- // InternalGAME.g:1961:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' )
+ // InternalGAME.g:1984:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' ) )
+ // InternalGAME.g:1985:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' )
{
- // InternalGAME.g:1961:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' )
- // InternalGAME.g:1962:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}'
+ // InternalGAME.g:1985:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}' )
+ // InternalGAME.g:1986:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) ) (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )* otherlv_15= ']' otherlv_16= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
@@ -3925,25 +4070,30 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getConnaissanceAccess().getColonKeyword_2());
- // InternalGAME.g:1974:3: ( (lv_nom_3_0= RULE_STRING ) )
- // InternalGAME.g:1975:4: (lv_nom_3_0= RULE_STRING )
+ // InternalGAME.g:1998:3: ( (lv_nom_3_0= ruleNom ) )
+ // InternalGAME.g:1999:4: (lv_nom_3_0= ruleNom )
{
- // InternalGAME.g:1975:4: (lv_nom_3_0= RULE_STRING )
- // InternalGAME.g:1976:5: lv_nom_3_0= RULE_STRING
+ // InternalGAME.g:1999:4: (lv_nom_3_0= ruleNom )
+ // InternalGAME.g:2000:5: lv_nom_3_0= ruleNom
{
- lv_nom_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
- newLeafNode(lv_nom_3_0, grammarAccess.getConnaissanceAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getConnaissanceAccess().getNomNomParserRuleCall_3_0());
+ pushFollow(FOLLOW_6);
+ lv_nom_3_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getConnaissanceRule());
+ current = createModelElementForParent(grammarAccess.getConnaissanceRule());
}
- setWithLastConsumed(
+ set(
current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -3963,11 +4113,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getConnaissanceAccess().getColonKeyword_6());
- // InternalGAME.g:2004:3: ( (lv_visible_7_0= ruleCondition ) )
- // InternalGAME.g:2005:4: (lv_visible_7_0= ruleCondition )
+ // InternalGAME.g:2029:3: ( (lv_visible_7_0= ruleCondition ) )
+ // InternalGAME.g:2030:4: (lv_visible_7_0= ruleCondition )
{
- // InternalGAME.g:2005:4: (lv_visible_7_0= ruleCondition )
- // InternalGAME.g:2006:5: lv_visible_7_0= ruleCondition
+ // InternalGAME.g:2030:4: (lv_visible_7_0= ruleCondition )
+ // InternalGAME.g:2031:5: lv_visible_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getConnaissanceAccess().getVisibleConditionParserRuleCall_7_0());
@@ -4010,11 +4160,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_11, grammarAccess.getConnaissanceAccess().getLeftSquareBracketKeyword_11());
- // InternalGAME.g:2039:3: ( (lv_descriptions_12_0= ruleDescription ) )
- // InternalGAME.g:2040:4: (lv_descriptions_12_0= ruleDescription )
+ // InternalGAME.g:2064:3: ( (lv_descriptions_12_0= ruleDescription ) )
+ // InternalGAME.g:2065:4: (lv_descriptions_12_0= ruleDescription )
{
- // InternalGAME.g:2040:4: (lv_descriptions_12_0= ruleDescription )
- // InternalGAME.g:2041:5: lv_descriptions_12_0= ruleDescription
+ // InternalGAME.g:2065:4: (lv_descriptions_12_0= ruleDescription )
+ // InternalGAME.g:2066:5: lv_descriptions_12_0= ruleDescription
{
newCompositeNode(grammarAccess.getConnaissanceAccess().getDescriptionsDescriptionParserRuleCall_12_0());
@@ -4041,7 +4191,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2058:3: (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )*
+ // InternalGAME.g:2083:3: (otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) ) )*
loop36:
do {
int alt36=2;
@@ -4054,17 +4204,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt36) {
case 1 :
- // InternalGAME.g:2059:4: otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) )
+ // InternalGAME.g:2084:4: otherlv_13= ',' ( (lv_descriptions_14_0= ruleDescription ) )
{
otherlv_13=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_13, grammarAccess.getConnaissanceAccess().getCommaKeyword_13_0());
- // InternalGAME.g:2063:4: ( (lv_descriptions_14_0= ruleDescription ) )
- // InternalGAME.g:2064:5: (lv_descriptions_14_0= ruleDescription )
+ // InternalGAME.g:2088:4: ( (lv_descriptions_14_0= ruleDescription ) )
+ // InternalGAME.g:2089:5: (lv_descriptions_14_0= ruleDescription )
{
- // InternalGAME.g:2064:5: (lv_descriptions_14_0= ruleDescription )
- // InternalGAME.g:2065:6: lv_descriptions_14_0= ruleDescription
+ // InternalGAME.g:2089:5: (lv_descriptions_14_0= ruleDescription )
+ // InternalGAME.g:2090:6: lv_descriptions_14_0= ruleDescription
{
newCompositeNode(grammarAccess.getConnaissanceAccess().getDescriptionsDescriptionParserRuleCall_13_1_0());
@@ -4131,7 +4281,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRulePersonne"
- // InternalGAME.g:2095:1: entryRulePersonne returns [EObject current=null] : iv_rulePersonne= rulePersonne EOF ;
+ // InternalGAME.g:2120:1: entryRulePersonne returns [EObject current=null] : iv_rulePersonne= rulePersonne EOF ;
public final EObject entryRulePersonne() throws RecognitionException {
EObject current = null;
@@ -4139,8 +4289,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:2095:49: (iv_rulePersonne= rulePersonne EOF )
- // InternalGAME.g:2096:2: iv_rulePersonne= rulePersonne EOF
+ // InternalGAME.g:2120:49: (iv_rulePersonne= rulePersonne EOF )
+ // InternalGAME.g:2121:2: iv_rulePersonne= rulePersonne EOF
{
newCompositeNode(grammarAccess.getPersonneRule());
pushFollow(FOLLOW_1);
@@ -4167,14 +4317,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "rulePersonne"
- // InternalGAME.g:2102:1: rulePersonne returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) ;
+ // InternalGAME.g:2127:1: rulePersonne returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) ;
public final EObject rulePersonne() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
- Token lv_nom_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
@@ -4188,6 +4337,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_17=null;
Token otherlv_19=null;
Token otherlv_20=null;
+ EObject lv_nom_3_0 = null;
+
EObject lv_visible_7_0 = null;
EObject lv_obligatoire_11_0 = null;
@@ -4201,11 +4352,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:2108:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) )
- // InternalGAME.g:2109:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
+ // InternalGAME.g:2133:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) )
+ // InternalGAME.g:2134:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
{
- // InternalGAME.g:2109:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
- // InternalGAME.g:2110:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}'
+ // InternalGAME.g:2134:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
+ // InternalGAME.g:2135:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )? otherlv_19= ']' otherlv_20= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
@@ -4219,25 +4370,30 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getPersonneAccess().getColonKeyword_2());
- // InternalGAME.g:2122:3: ( (lv_nom_3_0= RULE_STRING ) )
- // InternalGAME.g:2123:4: (lv_nom_3_0= RULE_STRING )
+ // InternalGAME.g:2147:3: ( (lv_nom_3_0= ruleNom ) )
+ // InternalGAME.g:2148:4: (lv_nom_3_0= ruleNom )
{
- // InternalGAME.g:2123:4: (lv_nom_3_0= RULE_STRING )
- // InternalGAME.g:2124:5: lv_nom_3_0= RULE_STRING
+ // InternalGAME.g:2148:4: (lv_nom_3_0= ruleNom )
+ // InternalGAME.g:2149:5: lv_nom_3_0= ruleNom
{
- lv_nom_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
- newLeafNode(lv_nom_3_0, grammarAccess.getPersonneAccess().getNomSTRINGTerminalRuleCall_3_0());
+ newCompositeNode(grammarAccess.getPersonneAccess().getNomNomParserRuleCall_3_0());
+ pushFollow(FOLLOW_6);
+ lv_nom_3_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getPersonneRule());
+ current = createModelElementForParent(grammarAccess.getPersonneRule());
}
- setWithLastConsumed(
+ set(
current,
"nom",
lv_nom_3_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4257,11 +4413,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getPersonneAccess().getColonKeyword_6());
- // InternalGAME.g:2152:3: ( (lv_visible_7_0= ruleCondition ) )
- // InternalGAME.g:2153:4: (lv_visible_7_0= ruleCondition )
+ // InternalGAME.g:2178:3: ( (lv_visible_7_0= ruleCondition ) )
+ // InternalGAME.g:2179:4: (lv_visible_7_0= ruleCondition )
{
- // InternalGAME.g:2153:4: (lv_visible_7_0= ruleCondition )
- // InternalGAME.g:2154:5: lv_visible_7_0= ruleCondition
+ // InternalGAME.g:2179:4: (lv_visible_7_0= ruleCondition )
+ // InternalGAME.g:2180:5: lv_visible_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getPersonneAccess().getVisibleConditionParserRuleCall_7_0());
@@ -4300,11 +4456,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_10, grammarAccess.getPersonneAccess().getColonKeyword_10());
- // InternalGAME.g:2183:3: ( (lv_obligatoire_11_0= ruleCondition ) )
- // InternalGAME.g:2184:4: (lv_obligatoire_11_0= ruleCondition )
+ // InternalGAME.g:2209:3: ( (lv_obligatoire_11_0= ruleCondition ) )
+ // InternalGAME.g:2210:4: (lv_obligatoire_11_0= ruleCondition )
{
- // InternalGAME.g:2184:4: (lv_obligatoire_11_0= ruleCondition )
- // InternalGAME.g:2185:5: lv_obligatoire_11_0= ruleCondition
+ // InternalGAME.g:2210:4: (lv_obligatoire_11_0= ruleCondition )
+ // InternalGAME.g:2211:5: lv_obligatoire_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getPersonneAccess().getObligatoireConditionParserRuleCall_11_0());
@@ -4347,7 +4503,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_15, grammarAccess.getPersonneAccess().getLeftSquareBracketKeyword_15());
- // InternalGAME.g:2218:3: ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )?
+ // InternalGAME.g:2244:3: ( ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )* )?
int alt38=2;
int LA38_0 = input.LA(1);
@@ -4356,13 +4512,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt38) {
case 1 :
- // InternalGAME.g:2219:4: ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )*
+ // InternalGAME.g:2245:4: ( (lv_interactions_16_0= ruleInteraction ) ) (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )*
{
- // InternalGAME.g:2219:4: ( (lv_interactions_16_0= ruleInteraction ) )
- // InternalGAME.g:2220:5: (lv_interactions_16_0= ruleInteraction )
+ // InternalGAME.g:2245:4: ( (lv_interactions_16_0= ruleInteraction ) )
+ // InternalGAME.g:2246:5: (lv_interactions_16_0= ruleInteraction )
{
- // InternalGAME.g:2220:5: (lv_interactions_16_0= ruleInteraction )
- // InternalGAME.g:2221:6: lv_interactions_16_0= ruleInteraction
+ // InternalGAME.g:2246:5: (lv_interactions_16_0= ruleInteraction )
+ // InternalGAME.g:2247:6: lv_interactions_16_0= ruleInteraction
{
newCompositeNode(grammarAccess.getPersonneAccess().getInteractionsInteractionParserRuleCall_16_0_0());
@@ -4389,7 +4545,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2238:4: (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )*
+ // InternalGAME.g:2264:4: (otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) ) )*
loop37:
do {
int alt37=2;
@@ -4402,17 +4558,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt37) {
case 1 :
- // InternalGAME.g:2239:5: otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) )
+ // InternalGAME.g:2265:5: otherlv_17= ',' ( (lv_interactions_18_0= ruleInteraction ) )
{
otherlv_17=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_17, grammarAccess.getPersonneAccess().getCommaKeyword_16_1_0());
- // InternalGAME.g:2243:5: ( (lv_interactions_18_0= ruleInteraction ) )
- // InternalGAME.g:2244:6: (lv_interactions_18_0= ruleInteraction )
+ // InternalGAME.g:2269:5: ( (lv_interactions_18_0= ruleInteraction ) )
+ // InternalGAME.g:2270:6: (lv_interactions_18_0= ruleInteraction )
{
- // InternalGAME.g:2244:6: (lv_interactions_18_0= ruleInteraction )
- // InternalGAME.g:2245:7: lv_interactions_18_0= ruleInteraction
+ // InternalGAME.g:2270:6: (lv_interactions_18_0= ruleInteraction )
+ // InternalGAME.g:2271:7: lv_interactions_18_0= ruleInteraction
{
newCompositeNode(grammarAccess.getPersonneAccess().getInteractionsInteractionParserRuleCall_16_1_1_0());
@@ -4485,7 +4641,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleInteraction"
- // InternalGAME.g:2276:1: entryRuleInteraction returns [EObject current=null] : iv_ruleInteraction= ruleInteraction EOF ;
+ // InternalGAME.g:2302:1: entryRuleInteraction returns [EObject current=null] : iv_ruleInteraction= ruleInteraction EOF ;
public final EObject entryRuleInteraction() throws RecognitionException {
EObject current = null;
@@ -4493,8 +4649,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:2276:52: (iv_ruleInteraction= ruleInteraction EOF )
- // InternalGAME.g:2277:2: iv_ruleInteraction= ruleInteraction EOF
+ // InternalGAME.g:2302:52: (iv_ruleInteraction= ruleInteraction EOF )
+ // InternalGAME.g:2303:2: iv_ruleInteraction= ruleInteraction EOF
{
newCompositeNode(grammarAccess.getInteractionRule());
pushFollow(FOLLOW_1);
@@ -4521,7 +4677,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleInteraction"
- // InternalGAME.g:2283:1: ruleInteraction returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' ) ;
+ // InternalGAME.g:2309:1: ruleInteraction returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' ) ;
public final EObject ruleInteraction() throws RecognitionException {
EObject current = null;
@@ -4532,25 +4688,19 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_7=null;
- Token lv_connaissances_8_0=null;
Token otherlv_9=null;
- Token lv_connaissances_10_0=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
- Token lv_objetsRecus_16_0=null;
Token otherlv_17=null;
- Token lv_objetsRecus_18_0=null;
Token otherlv_19=null;
Token otherlv_20=null;
Token otherlv_21=null;
Token otherlv_22=null;
Token otherlv_23=null;
- Token lv_objetsConso_24_0=null;
Token otherlv_25=null;
- Token lv_objetsRecus_26_0=null;
Token otherlv_27=null;
Token otherlv_28=null;
Token otherlv_29=null;
@@ -4561,6 +4711,18 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_36=null;
EObject lv_visible_3_0 = null;
+ EObject lv_connaissances_8_0 = null;
+
+ EObject lv_connaissances_10_0 = null;
+
+ EObject lv_objetsRecus_16_0 = null;
+
+ EObject lv_objetsRecus_18_0 = null;
+
+ EObject lv_objetsConso_24_0 = null;
+
+ EObject lv_objetsRecus_26_0 = null;
+
EObject lv_actions_32_0 = null;
EObject lv_actions_34_0 = null;
@@ -4570,11 +4732,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:2289:2: ( (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' ) )
- // InternalGAME.g:2290:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' )
+ // InternalGAME.g:2315:2: ( (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' ) )
+ // InternalGAME.g:2316:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' )
{
- // InternalGAME.g:2290:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' )
- // InternalGAME.g:2291:3: otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}'
+ // InternalGAME.g:2316:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}' )
+ // InternalGAME.g:2317:3: otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets_recus\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"objets_conso\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )* )? otherlv_27= ']' otherlv_28= ',' otherlv_29= '\"actions\"' otherlv_30= ':' otherlv_31= '[' ( (lv_actions_32_0= ruleAction ) ) (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )* otherlv_35= ']' otherlv_36= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_34);
@@ -4588,11 +4750,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getInteractionAccess().getColonKeyword_2());
- // InternalGAME.g:2303:3: ( (lv_visible_3_0= ruleCondition ) )
- // InternalGAME.g:2304:4: (lv_visible_3_0= ruleCondition )
+ // InternalGAME.g:2329:3: ( (lv_visible_3_0= ruleCondition ) )
+ // InternalGAME.g:2330:4: (lv_visible_3_0= ruleCondition )
{
- // InternalGAME.g:2304:4: (lv_visible_3_0= ruleCondition )
- // InternalGAME.g:2305:5: lv_visible_3_0= ruleCondition
+ // InternalGAME.g:2330:4: (lv_visible_3_0= ruleCondition )
+ // InternalGAME.g:2331:5: lv_visible_3_0= ruleCondition
{
newCompositeNode(grammarAccess.getInteractionAccess().getVisibleConditionParserRuleCall_3_0());
@@ -4635,7 +4797,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_7, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_7());
- // InternalGAME.g:2338:3: ( ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:2364:3: ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )?
int alt40=2;
int LA40_0 = input.LA(1);
@@ -4644,27 +4806,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt40) {
case 1 :
- // InternalGAME.g:2339:4: ( (lv_connaissances_8_0= RULE_STRING ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2365:4: ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )*
{
- // InternalGAME.g:2339:4: ( (lv_connaissances_8_0= RULE_STRING ) )
- // InternalGAME.g:2340:5: (lv_connaissances_8_0= RULE_STRING )
+ // InternalGAME.g:2365:4: ( (lv_connaissances_8_0= ruleNom ) )
+ // InternalGAME.g:2366:5: (lv_connaissances_8_0= ruleNom )
{
- // InternalGAME.g:2340:5: (lv_connaissances_8_0= RULE_STRING )
- // InternalGAME.g:2341:6: lv_connaissances_8_0= RULE_STRING
+ // InternalGAME.g:2366:5: (lv_connaissances_8_0= ruleNom )
+ // InternalGAME.g:2367:6: lv_connaissances_8_0= ruleNom
{
- lv_connaissances_8_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_8_0, grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_0_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_0_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_8_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getInteractionRule());
+ current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_8_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4672,7 +4839,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2357:4: (otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2384:4: (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )*
loop39:
do {
int alt39=2;
@@ -4685,31 +4852,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt39) {
case 1 :
- // InternalGAME.g:2358:5: otherlv_9= ',' ( (lv_connaissances_10_0= RULE_STRING ) )
+ // InternalGAME.g:2385:5: otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) )
{
otherlv_9=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_9, grammarAccess.getInteractionAccess().getCommaKeyword_8_1_0());
- // InternalGAME.g:2362:5: ( (lv_connaissances_10_0= RULE_STRING ) )
- // InternalGAME.g:2363:6: (lv_connaissances_10_0= RULE_STRING )
+ // InternalGAME.g:2389:5: ( (lv_connaissances_10_0= ruleNom ) )
+ // InternalGAME.g:2390:6: (lv_connaissances_10_0= ruleNom )
{
- // InternalGAME.g:2363:6: (lv_connaissances_10_0= RULE_STRING )
- // InternalGAME.g:2364:7: lv_connaissances_10_0= RULE_STRING
+ // InternalGAME.g:2390:6: (lv_connaissances_10_0= ruleNom )
+ // InternalGAME.g:2391:7: lv_connaissances_10_0= ruleNom
{
- lv_connaissances_10_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_10_0, grammarAccess.getInteractionAccess().getConnaissancesSTRINGTerminalRuleCall_8_1_1_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_10_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getInteractionRule());
+ current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_10_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4752,7 +4924,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_15, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_13());
- // InternalGAME.g:2402:3: ( ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:2430:3: ( ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )* )?
int alt42=2;
int LA42_0 = input.LA(1);
@@ -4761,27 +4933,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt42) {
case 1 :
- // InternalGAME.g:2403:4: ( (lv_objetsRecus_16_0= RULE_STRING ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2431:4: ( (lv_objetsRecus_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )*
{
- // InternalGAME.g:2403:4: ( (lv_objetsRecus_16_0= RULE_STRING ) )
- // InternalGAME.g:2404:5: (lv_objetsRecus_16_0= RULE_STRING )
+ // InternalGAME.g:2431:4: ( (lv_objetsRecus_16_0= ruleNom ) )
+ // InternalGAME.g:2432:5: (lv_objetsRecus_16_0= ruleNom )
{
- // InternalGAME.g:2404:5: (lv_objetsRecus_16_0= RULE_STRING )
- // InternalGAME.g:2405:6: lv_objetsRecus_16_0= RULE_STRING
+ // InternalGAME.g:2432:5: (lv_objetsRecus_16_0= ruleNom )
+ // InternalGAME.g:2433:6: lv_objetsRecus_16_0= ruleNom
{
- lv_objetsRecus_16_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_16_0, grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_0_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_16_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getInteractionRule());
+ current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_16_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4789,7 +4966,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2421:4: (otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2450:4: (otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) ) )*
loop41:
do {
int alt41=2;
@@ -4802,31 +4979,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt41) {
case 1 :
- // InternalGAME.g:2422:5: otherlv_17= ',' ( (lv_objetsRecus_18_0= RULE_STRING ) )
+ // InternalGAME.g:2451:5: otherlv_17= ',' ( (lv_objetsRecus_18_0= ruleNom ) )
{
otherlv_17=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_17, grammarAccess.getInteractionAccess().getCommaKeyword_14_1_0());
- // InternalGAME.g:2426:5: ( (lv_objetsRecus_18_0= RULE_STRING ) )
- // InternalGAME.g:2427:6: (lv_objetsRecus_18_0= RULE_STRING )
+ // InternalGAME.g:2455:5: ( (lv_objetsRecus_18_0= ruleNom ) )
+ // InternalGAME.g:2456:6: (lv_objetsRecus_18_0= ruleNom )
{
- // InternalGAME.g:2427:6: (lv_objetsRecus_18_0= RULE_STRING )
- // InternalGAME.g:2428:7: lv_objetsRecus_18_0= RULE_STRING
+ // InternalGAME.g:2456:6: (lv_objetsRecus_18_0= ruleNom )
+ // InternalGAME.g:2457:7: lv_objetsRecus_18_0= ruleNom
{
- lv_objetsRecus_18_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_18_0, grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_14_1_1_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_18_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getInteractionRule());
+ current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_18_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4869,7 +5051,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_23, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_19());
- // InternalGAME.g:2466:3: ( ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:2496:3: ( ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )* )?
int alt44=2;
int LA44_0 = input.LA(1);
@@ -4878,27 +5060,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt44) {
case 1 :
- // InternalGAME.g:2467:4: ( (lv_objetsConso_24_0= RULE_STRING ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2497:4: ( (lv_objetsConso_24_0= ruleNom ) ) (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )*
{
- // InternalGAME.g:2467:4: ( (lv_objetsConso_24_0= RULE_STRING ) )
- // InternalGAME.g:2468:5: (lv_objetsConso_24_0= RULE_STRING )
+ // InternalGAME.g:2497:4: ( (lv_objetsConso_24_0= ruleNom ) )
+ // InternalGAME.g:2498:5: (lv_objetsConso_24_0= ruleNom )
{
- // InternalGAME.g:2468:5: (lv_objetsConso_24_0= RULE_STRING )
- // InternalGAME.g:2469:6: lv_objetsConso_24_0= RULE_STRING
+ // InternalGAME.g:2498:5: (lv_objetsConso_24_0= ruleNom )
+ // InternalGAME.g:2499:6: lv_objetsConso_24_0= ruleNom
{
- lv_objetsConso_24_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsConso_24_0, grammarAccess.getInteractionAccess().getObjetsConsoSTRINGTerminalRuleCall_20_0_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsConsoNomParserRuleCall_20_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsConso_24_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getInteractionRule());
+ current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsConso",
lv_objetsConso_24_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4906,7 +5093,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2485:4: (otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2516:4: (otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) ) )*
loop43:
do {
int alt43=2;
@@ -4919,31 +5106,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt43) {
case 1 :
- // InternalGAME.g:2486:5: otherlv_25= ',' ( (lv_objetsRecus_26_0= RULE_STRING ) )
+ // InternalGAME.g:2517:5: otherlv_25= ',' ( (lv_objetsRecus_26_0= ruleNom ) )
{
otherlv_25=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_25, grammarAccess.getInteractionAccess().getCommaKeyword_20_1_0());
- // InternalGAME.g:2490:5: ( (lv_objetsRecus_26_0= RULE_STRING ) )
- // InternalGAME.g:2491:6: (lv_objetsRecus_26_0= RULE_STRING )
+ // InternalGAME.g:2521:5: ( (lv_objetsRecus_26_0= ruleNom ) )
+ // InternalGAME.g:2522:6: (lv_objetsRecus_26_0= ruleNom )
{
- // InternalGAME.g:2491:6: (lv_objetsRecus_26_0= RULE_STRING )
- // InternalGAME.g:2492:7: lv_objetsRecus_26_0= RULE_STRING
+ // InternalGAME.g:2522:6: (lv_objetsRecus_26_0= ruleNom )
+ // InternalGAME.g:2523:7: lv_objetsRecus_26_0= ruleNom
{
- lv_objetsRecus_26_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_26_0, grammarAccess.getInteractionAccess().getObjetsRecusSTRINGTerminalRuleCall_20_1_1_0());
+ newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_20_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_26_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getInteractionRule());
+ current = createModelElementForParent(grammarAccess.getInteractionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_26_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -4986,11 +5178,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_31, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_25());
- // InternalGAME.g:2530:3: ( (lv_actions_32_0= ruleAction ) )
- // InternalGAME.g:2531:4: (lv_actions_32_0= ruleAction )
+ // InternalGAME.g:2562:3: ( (lv_actions_32_0= ruleAction ) )
+ // InternalGAME.g:2563:4: (lv_actions_32_0= ruleAction )
{
- // InternalGAME.g:2531:4: (lv_actions_32_0= ruleAction )
- // InternalGAME.g:2532:5: lv_actions_32_0= ruleAction
+ // InternalGAME.g:2563:4: (lv_actions_32_0= ruleAction )
+ // InternalGAME.g:2564:5: lv_actions_32_0= ruleAction
{
newCompositeNode(grammarAccess.getInteractionAccess().getActionsActionParserRuleCall_26_0());
@@ -5017,7 +5209,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2549:3: (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )*
+ // InternalGAME.g:2581:3: (otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) ) )*
loop45:
do {
int alt45=2;
@@ -5030,17 +5222,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt45) {
case 1 :
- // InternalGAME.g:2550:4: otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) )
+ // InternalGAME.g:2582:4: otherlv_33= ',' ( (lv_actions_34_0= ruleAction ) )
{
otherlv_33=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_33, grammarAccess.getInteractionAccess().getCommaKeyword_27_0());
- // InternalGAME.g:2554:4: ( (lv_actions_34_0= ruleAction ) )
- // InternalGAME.g:2555:5: (lv_actions_34_0= ruleAction )
+ // InternalGAME.g:2586:4: ( (lv_actions_34_0= ruleAction ) )
+ // InternalGAME.g:2587:5: (lv_actions_34_0= ruleAction )
{
- // InternalGAME.g:2555:5: (lv_actions_34_0= ruleAction )
- // InternalGAME.g:2556:6: lv_actions_34_0= ruleAction
+ // InternalGAME.g:2587:5: (lv_actions_34_0= ruleAction )
+ // InternalGAME.g:2588:6: lv_actions_34_0= ruleAction
{
newCompositeNode(grammarAccess.getInteractionAccess().getActionsActionParserRuleCall_27_1_0());
@@ -5107,7 +5299,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleAction"
- // InternalGAME.g:2586:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
+ // InternalGAME.g:2618:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
public final EObject entryRuleAction() throws RecognitionException {
EObject current = null;
@@ -5115,8 +5307,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:2586:47: (iv_ruleAction= ruleAction EOF )
- // InternalGAME.g:2587:2: iv_ruleAction= ruleAction EOF
+ // InternalGAME.g:2618:47: (iv_ruleAction= ruleAction EOF )
+ // InternalGAME.g:2619:2: iv_ruleAction= ruleAction EOF
{
newCompositeNode(grammarAccess.getActionRule());
pushFollow(FOLLOW_1);
@@ -5143,7 +5335,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleAction"
- // InternalGAME.g:2593:1: ruleAction returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' ) ;
+ // InternalGAME.g:2625:1: ruleAction returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' ) ;
public final EObject ruleAction() throws RecognitionException {
EObject current = null;
@@ -5157,25 +5349,19 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_11=null;
- Token lv_connaissances_12_0=null;
Token otherlv_13=null;
- Token lv_connaissances_14_0=null;
Token otherlv_15=null;
Token otherlv_16=null;
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_19=null;
- Token lv_objetsRecus_20_0=null;
Token otherlv_21=null;
- Token lv_objetsRecus_22_0=null;
Token otherlv_23=null;
Token otherlv_24=null;
Token otherlv_25=null;
Token otherlv_26=null;
Token otherlv_27=null;
- Token lv_objetsConso_28_0=null;
Token otherlv_29=null;
- Token lv_objetsConso_30_0=null;
Token otherlv_31=null;
Token otherlv_32=null;
Token otherlv_33=null;
@@ -5188,6 +5374,18 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
EObject lv_finInteraction_7_0 = null;
+ EObject lv_connaissances_12_0 = null;
+
+ EObject lv_connaissances_14_0 = null;
+
+ EObject lv_objetsRecus_20_0 = null;
+
+ EObject lv_objetsRecus_22_0 = null;
+
+ EObject lv_objetsConso_28_0 = null;
+
+ EObject lv_objetsConso_30_0 = null;
+
EObject lv_descriptions_36_0 = null;
EObject lv_descriptions_38_0 = null;
@@ -5197,11 +5395,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:2599:2: ( (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' ) )
- // InternalGAME.g:2600:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' )
+ // InternalGAME.g:2631:2: ( (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' ) )
+ // InternalGAME.g:2632:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' )
{
- // InternalGAME.g:2600:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' )
- // InternalGAME.g:2601:3: otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}'
+ // InternalGAME.g:2632:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}' )
+ // InternalGAME.g:2633:3: otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"fin_interaction\"' otherlv_6= ':' ( (lv_finInteraction_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"connaissances\"' otherlv_10= ':' otherlv_11= '[' ( ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )* )? otherlv_15= ']' otherlv_16= ',' otherlv_17= '\"objets_recus\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )* )? otherlv_23= ']' otherlv_24= ',' otherlv_25= '\"objets_conso\"' otherlv_26= ':' otherlv_27= '[' ( ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"descriptions\"' otherlv_34= ':' otherlv_35= '[' ( (lv_descriptions_36_0= ruleDescription ) ) (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )* otherlv_39= ']' otherlv_40= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_34);
@@ -5215,11 +5413,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getActionAccess().getColonKeyword_2());
- // InternalGAME.g:2613:3: ( (lv_visible_3_0= ruleCondition ) )
- // InternalGAME.g:2614:4: (lv_visible_3_0= ruleCondition )
+ // InternalGAME.g:2645:3: ( (lv_visible_3_0= ruleCondition ) )
+ // InternalGAME.g:2646:4: (lv_visible_3_0= ruleCondition )
{
- // InternalGAME.g:2614:4: (lv_visible_3_0= ruleCondition )
- // InternalGAME.g:2615:5: lv_visible_3_0= ruleCondition
+ // InternalGAME.g:2646:4: (lv_visible_3_0= ruleCondition )
+ // InternalGAME.g:2647:5: lv_visible_3_0= ruleCondition
{
newCompositeNode(grammarAccess.getActionAccess().getVisibleConditionParserRuleCall_3_0());
@@ -5258,11 +5456,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getActionAccess().getColonKeyword_6());
- // InternalGAME.g:2644:3: ( (lv_finInteraction_7_0= ruleCondition ) )
- // InternalGAME.g:2645:4: (lv_finInteraction_7_0= ruleCondition )
+ // InternalGAME.g:2676:3: ( (lv_finInteraction_7_0= ruleCondition ) )
+ // InternalGAME.g:2677:4: (lv_finInteraction_7_0= ruleCondition )
{
- // InternalGAME.g:2645:4: (lv_finInteraction_7_0= ruleCondition )
- // InternalGAME.g:2646:5: lv_finInteraction_7_0= ruleCondition
+ // InternalGAME.g:2677:4: (lv_finInteraction_7_0= ruleCondition )
+ // InternalGAME.g:2678:5: lv_finInteraction_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getActionAccess().getFinInteractionConditionParserRuleCall_7_0());
@@ -5305,7 +5503,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_11, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_11());
- // InternalGAME.g:2679:3: ( ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:2711:3: ( ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )* )?
int alt47=2;
int LA47_0 = input.LA(1);
@@ -5314,27 +5512,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt47) {
case 1 :
- // InternalGAME.g:2680:4: ( (lv_connaissances_12_0= RULE_STRING ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2712:4: ( (lv_connaissances_12_0= ruleNom ) ) (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )*
{
- // InternalGAME.g:2680:4: ( (lv_connaissances_12_0= RULE_STRING ) )
- // InternalGAME.g:2681:5: (lv_connaissances_12_0= RULE_STRING )
+ // InternalGAME.g:2712:4: ( (lv_connaissances_12_0= ruleNom ) )
+ // InternalGAME.g:2713:5: (lv_connaissances_12_0= ruleNom )
{
- // InternalGAME.g:2681:5: (lv_connaissances_12_0= RULE_STRING )
- // InternalGAME.g:2682:6: lv_connaissances_12_0= RULE_STRING
+ // InternalGAME.g:2713:5: (lv_connaissances_12_0= ruleNom )
+ // InternalGAME.g:2714:6: lv_connaissances_12_0= ruleNom
{
- lv_connaissances_12_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_12_0, grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_0_0());
+ newCompositeNode(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_0_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_12_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getActionRule());
+ current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_12_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -5342,7 +5545,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2698:4: (otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2731:4: (otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) ) )*
loop46:
do {
int alt46=2;
@@ -5355,31 +5558,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt46) {
case 1 :
- // InternalGAME.g:2699:5: otherlv_13= ',' ( (lv_connaissances_14_0= RULE_STRING ) )
+ // InternalGAME.g:2732:5: otherlv_13= ',' ( (lv_connaissances_14_0= ruleNom ) )
{
otherlv_13=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_13, grammarAccess.getActionAccess().getCommaKeyword_12_1_0());
- // InternalGAME.g:2703:5: ( (lv_connaissances_14_0= RULE_STRING ) )
- // InternalGAME.g:2704:6: (lv_connaissances_14_0= RULE_STRING )
+ // InternalGAME.g:2736:5: ( (lv_connaissances_14_0= ruleNom ) )
+ // InternalGAME.g:2737:6: (lv_connaissances_14_0= ruleNom )
{
- // InternalGAME.g:2704:6: (lv_connaissances_14_0= RULE_STRING )
- // InternalGAME.g:2705:7: lv_connaissances_14_0= RULE_STRING
+ // InternalGAME.g:2737:6: (lv_connaissances_14_0= ruleNom )
+ // InternalGAME.g:2738:7: lv_connaissances_14_0= ruleNom
{
- lv_connaissances_14_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_connaissances_14_0, grammarAccess.getActionAccess().getConnaissancesSTRINGTerminalRuleCall_12_1_1_0());
+ newCompositeNode(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_12_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_connaissances_14_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getActionRule());
+ current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
current,
"connaissances",
lv_connaissances_14_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -5422,7 +5630,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_19, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_17());
- // InternalGAME.g:2743:3: ( ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:2777:3: ( ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )* )?
int alt49=2;
int LA49_0 = input.LA(1);
@@ -5431,27 +5639,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt49) {
case 1 :
- // InternalGAME.g:2744:4: ( (lv_objetsRecus_20_0= RULE_STRING ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2778:4: ( (lv_objetsRecus_20_0= ruleNom ) ) (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )*
{
- // InternalGAME.g:2744:4: ( (lv_objetsRecus_20_0= RULE_STRING ) )
- // InternalGAME.g:2745:5: (lv_objetsRecus_20_0= RULE_STRING )
+ // InternalGAME.g:2778:4: ( (lv_objetsRecus_20_0= ruleNom ) )
+ // InternalGAME.g:2779:5: (lv_objetsRecus_20_0= ruleNom )
{
- // InternalGAME.g:2745:5: (lv_objetsRecus_20_0= RULE_STRING )
- // InternalGAME.g:2746:6: lv_objetsRecus_20_0= RULE_STRING
+ // InternalGAME.g:2779:5: (lv_objetsRecus_20_0= ruleNom )
+ // InternalGAME.g:2780:6: lv_objetsRecus_20_0= ruleNom
{
- lv_objetsRecus_20_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_20_0, grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_0_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_20_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getActionRule());
+ current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_20_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -5459,7 +5672,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2762:4: (otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2797:4: (otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) ) )*
loop48:
do {
int alt48=2;
@@ -5472,31 +5685,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt48) {
case 1 :
- // InternalGAME.g:2763:5: otherlv_21= ',' ( (lv_objetsRecus_22_0= RULE_STRING ) )
+ // InternalGAME.g:2798:5: otherlv_21= ',' ( (lv_objetsRecus_22_0= ruleNom ) )
{
otherlv_21=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_21, grammarAccess.getActionAccess().getCommaKeyword_18_1_0());
- // InternalGAME.g:2767:5: ( (lv_objetsRecus_22_0= RULE_STRING ) )
- // InternalGAME.g:2768:6: (lv_objetsRecus_22_0= RULE_STRING )
+ // InternalGAME.g:2802:5: ( (lv_objetsRecus_22_0= ruleNom ) )
+ // InternalGAME.g:2803:6: (lv_objetsRecus_22_0= ruleNom )
{
- // InternalGAME.g:2768:6: (lv_objetsRecus_22_0= RULE_STRING )
- // InternalGAME.g:2769:7: lv_objetsRecus_22_0= RULE_STRING
+ // InternalGAME.g:2803:6: (lv_objetsRecus_22_0= ruleNom )
+ // InternalGAME.g:2804:7: lv_objetsRecus_22_0= ruleNom
{
- lv_objetsRecus_22_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsRecus_22_0, grammarAccess.getActionAccess().getObjetsRecusSTRINGTerminalRuleCall_18_1_1_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_18_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsRecus_22_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getActionRule());
+ current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsRecus",
lv_objetsRecus_22_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -5539,7 +5757,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_27, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_23());
- // InternalGAME.g:2807:3: ( ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )* )?
+ // InternalGAME.g:2843:3: ( ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )* )?
int alt51=2;
int LA51_0 = input.LA(1);
@@ -5548,27 +5766,32 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
switch (alt51) {
case 1 :
- // InternalGAME.g:2808:4: ( (lv_objetsConso_28_0= RULE_STRING ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2844:4: ( (lv_objetsConso_28_0= ruleNom ) ) (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )*
{
- // InternalGAME.g:2808:4: ( (lv_objetsConso_28_0= RULE_STRING ) )
- // InternalGAME.g:2809:5: (lv_objetsConso_28_0= RULE_STRING )
+ // InternalGAME.g:2844:4: ( (lv_objetsConso_28_0= ruleNom ) )
+ // InternalGAME.g:2845:5: (lv_objetsConso_28_0= ruleNom )
{
- // InternalGAME.g:2809:5: (lv_objetsConso_28_0= RULE_STRING )
- // InternalGAME.g:2810:6: lv_objetsConso_28_0= RULE_STRING
+ // InternalGAME.g:2845:5: (lv_objetsConso_28_0= ruleNom )
+ // InternalGAME.g:2846:6: lv_objetsConso_28_0= ruleNom
{
- lv_objetsConso_28_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsConso_28_0, grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_0_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_0_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsConso_28_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getActionRule());
+ current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsConso",
lv_objetsConso_28_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -5576,7 +5799,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2826:4: (otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) ) )*
+ // InternalGAME.g:2863:4: (otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) ) )*
loop50:
do {
int alt50=2;
@@ -5589,31 +5812,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt50) {
case 1 :
- // InternalGAME.g:2827:5: otherlv_29= ',' ( (lv_objetsConso_30_0= RULE_STRING ) )
+ // InternalGAME.g:2864:5: otherlv_29= ',' ( (lv_objetsConso_30_0= ruleNom ) )
{
otherlv_29=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_29, grammarAccess.getActionAccess().getCommaKeyword_24_1_0());
- // InternalGAME.g:2831:5: ( (lv_objetsConso_30_0= RULE_STRING ) )
- // InternalGAME.g:2832:6: (lv_objetsConso_30_0= RULE_STRING )
+ // InternalGAME.g:2868:5: ( (lv_objetsConso_30_0= ruleNom ) )
+ // InternalGAME.g:2869:6: (lv_objetsConso_30_0= ruleNom )
{
- // InternalGAME.g:2832:6: (lv_objetsConso_30_0= RULE_STRING )
- // InternalGAME.g:2833:7: lv_objetsConso_30_0= RULE_STRING
+ // InternalGAME.g:2869:6: (lv_objetsConso_30_0= ruleNom )
+ // InternalGAME.g:2870:7: lv_objetsConso_30_0= ruleNom
{
- lv_objetsConso_30_0=(Token)match(input,RULE_STRING,FOLLOW_11);
- newLeafNode(lv_objetsConso_30_0, grammarAccess.getActionAccess().getObjetsConsoSTRINGTerminalRuleCall_24_1_1_0());
+ newCompositeNode(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_24_1_1_0());
+ pushFollow(FOLLOW_11);
+ lv_objetsConso_30_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getActionRule());
+ current = createModelElementForParent(grammarAccess.getActionRule());
}
- addWithLastConsumed(
+ add(
current,
"objetsConso",
lv_objetsConso_30_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -5656,11 +5884,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_35, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_29());
- // InternalGAME.g:2871:3: ( (lv_descriptions_36_0= ruleDescription ) )
- // InternalGAME.g:2872:4: (lv_descriptions_36_0= ruleDescription )
+ // InternalGAME.g:2909:3: ( (lv_descriptions_36_0= ruleDescription ) )
+ // InternalGAME.g:2910:4: (lv_descriptions_36_0= ruleDescription )
{
- // InternalGAME.g:2872:4: (lv_descriptions_36_0= ruleDescription )
- // InternalGAME.g:2873:5: lv_descriptions_36_0= ruleDescription
+ // InternalGAME.g:2910:4: (lv_descriptions_36_0= ruleDescription )
+ // InternalGAME.g:2911:5: lv_descriptions_36_0= ruleDescription
{
newCompositeNode(grammarAccess.getActionAccess().getDescriptionsDescriptionParserRuleCall_30_0());
@@ -5687,7 +5915,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:2890:3: (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )*
+ // InternalGAME.g:2928:3: (otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) ) )*
loop52:
do {
int alt52=2;
@@ -5700,17 +5928,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt52) {
case 1 :
- // InternalGAME.g:2891:4: otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) )
+ // InternalGAME.g:2929:4: otherlv_37= ',' ( (lv_descriptions_38_0= ruleDescription ) )
{
otherlv_37=(Token)match(input,14,FOLLOW_5);
newLeafNode(otherlv_37, grammarAccess.getActionAccess().getCommaKeyword_31_0());
- // InternalGAME.g:2895:4: ( (lv_descriptions_38_0= ruleDescription ) )
- // InternalGAME.g:2896:5: (lv_descriptions_38_0= ruleDescription )
+ // InternalGAME.g:2933:4: ( (lv_descriptions_38_0= ruleDescription ) )
+ // InternalGAME.g:2934:5: (lv_descriptions_38_0= ruleDescription )
{
- // InternalGAME.g:2896:5: (lv_descriptions_38_0= ruleDescription )
- // InternalGAME.g:2897:6: lv_descriptions_38_0= ruleDescription
+ // InternalGAME.g:2934:5: (lv_descriptions_38_0= ruleDescription )
+ // InternalGAME.g:2935:6: lv_descriptions_38_0= ruleDescription
{
newCompositeNode(grammarAccess.getActionAccess().getDescriptionsDescriptionParserRuleCall_31_1_0());
@@ -5777,7 +6005,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleDescription"
- // InternalGAME.g:2927:1: entryRuleDescription returns [EObject current=null] : iv_ruleDescription= ruleDescription EOF ;
+ // InternalGAME.g:2965:1: entryRuleDescription returns [EObject current=null] : iv_ruleDescription= ruleDescription EOF ;
public final EObject entryRuleDescription() throws RecognitionException {
EObject current = null;
@@ -5785,8 +6013,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:2927:52: (iv_ruleDescription= ruleDescription EOF )
- // InternalGAME.g:2928:2: iv_ruleDescription= ruleDescription EOF
+ // InternalGAME.g:2965:52: (iv_ruleDescription= ruleDescription EOF )
+ // InternalGAME.g:2966:2: iv_ruleDescription= ruleDescription EOF
{
newCompositeNode(grammarAccess.getDescriptionRule());
pushFollow(FOLLOW_1);
@@ -5813,7 +6041,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleDescription"
- // InternalGAME.g:2934:1: ruleDescription returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' ) ;
+ // InternalGAME.g:2972:1: ruleDescription returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' ) ;
public final EObject ruleDescription() throws RecognitionException {
EObject current = null;
@@ -5832,11 +6060,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:2940:2: ( (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' ) )
- // InternalGAME.g:2941:2: (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' )
+ // InternalGAME.g:2978:2: ( (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' ) )
+ // InternalGAME.g:2979:2: (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' )
{
- // InternalGAME.g:2941:2: (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' )
- // InternalGAME.g:2942:3: otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}'
+ // InternalGAME.g:2979:2: (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' )
+ // InternalGAME.g:2980:3: otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_44);
@@ -5850,11 +6078,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_2, grammarAccess.getDescriptionAccess().getColonKeyword_2());
- // InternalGAME.g:2954:3: ( (lv_texte_3_0= RULE_STRING ) )
- // InternalGAME.g:2955:4: (lv_texte_3_0= RULE_STRING )
+ // InternalGAME.g:2992:3: ( (lv_texte_3_0= RULE_STRING ) )
+ // InternalGAME.g:2993:4: (lv_texte_3_0= RULE_STRING )
{
- // InternalGAME.g:2955:4: (lv_texte_3_0= RULE_STRING )
- // InternalGAME.g:2956:5: lv_texte_3_0= RULE_STRING
+ // InternalGAME.g:2993:4: (lv_texte_3_0= RULE_STRING )
+ // InternalGAME.g:2994:5: lv_texte_3_0= RULE_STRING
{
lv_texte_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
@@ -5888,11 +6116,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
newLeafNode(otherlv_6, grammarAccess.getDescriptionAccess().getColonKeyword_6());
- // InternalGAME.g:2984:3: ( (lv_condition_7_0= ruleCondition ) )
- // InternalGAME.g:2985:4: (lv_condition_7_0= ruleCondition )
+ // InternalGAME.g:3022:3: ( (lv_condition_7_0= ruleCondition ) )
+ // InternalGAME.g:3023:4: (lv_condition_7_0= ruleCondition )
{
- // InternalGAME.g:2985:4: (lv_condition_7_0= ruleCondition )
- // InternalGAME.g:2986:5: lv_condition_7_0= ruleCondition
+ // InternalGAME.g:3023:4: (lv_condition_7_0= ruleCondition )
+ // InternalGAME.g:3024:5: lv_condition_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getDescriptionAccess().getConditionConditionParserRuleCall_7_0());
@@ -5946,7 +6174,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleCondition"
- // InternalGAME.g:3011:1: entryRuleCondition returns [EObject current=null] : iv_ruleCondition= ruleCondition EOF ;
+ // InternalGAME.g:3049:1: entryRuleCondition returns [EObject current=null] : iv_ruleCondition= ruleCondition EOF ;
public final EObject entryRuleCondition() throws RecognitionException {
EObject current = null;
@@ -5954,8 +6182,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3011:50: (iv_ruleCondition= ruleCondition EOF )
- // InternalGAME.g:3012:2: iv_ruleCondition= ruleCondition EOF
+ // InternalGAME.g:3049:50: (iv_ruleCondition= ruleCondition EOF )
+ // InternalGAME.g:3050:2: iv_ruleCondition= ruleCondition EOF
{
newCompositeNode(grammarAccess.getConditionRule());
pushFollow(FOLLOW_1);
@@ -5982,7 +6210,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleCondition"
- // InternalGAME.g:3018:1: ruleCondition returns [EObject current=null] : ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* ) ;
+ // InternalGAME.g:3056:1: ruleCondition returns [EObject current=null] : ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* ) ;
public final EObject ruleCondition() throws RecognitionException {
EObject current = null;
@@ -5996,17 +6224,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:3024:2: ( ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* ) )
- // InternalGAME.g:3025:2: ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* )
+ // InternalGAME.g:3062:2: ( ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* ) )
+ // InternalGAME.g:3063:2: ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* )
{
- // InternalGAME.g:3025:2: ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* )
- // InternalGAME.g:3026:3: ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )*
+ // InternalGAME.g:3063:2: ( ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )* )
+ // InternalGAME.g:3064:3: ( (lv_condition_0_0= ruleConditionEt ) ) (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )*
{
- // InternalGAME.g:3026:3: ( (lv_condition_0_0= ruleConditionEt ) )
- // InternalGAME.g:3027:4: (lv_condition_0_0= ruleConditionEt )
+ // InternalGAME.g:3064:3: ( (lv_condition_0_0= ruleConditionEt ) )
+ // InternalGAME.g:3065:4: (lv_condition_0_0= ruleConditionEt )
{
- // InternalGAME.g:3027:4: (lv_condition_0_0= ruleConditionEt )
- // InternalGAME.g:3028:5: lv_condition_0_0= ruleConditionEt
+ // InternalGAME.g:3065:4: (lv_condition_0_0= ruleConditionEt )
+ // InternalGAME.g:3066:5: lv_condition_0_0= ruleConditionEt
{
newCompositeNode(grammarAccess.getConditionAccess().getConditionConditionEtParserRuleCall_0_0());
@@ -6033,7 +6261,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:3045:3: (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )*
+ // InternalGAME.g:3083:3: (otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) ) )*
loop53:
do {
int alt53=2;
@@ -6046,17 +6274,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt53) {
case 1 :
- // InternalGAME.g:3046:4: otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) )
+ // InternalGAME.g:3084:4: otherlv_1= '||' ( (lv_condition_2_0= ruleConditionEt ) )
{
otherlv_1=(Token)match(input,48,FOLLOW_26);
newLeafNode(otherlv_1, grammarAccess.getConditionAccess().getVerticalLineVerticalLineKeyword_1_0());
- // InternalGAME.g:3050:4: ( (lv_condition_2_0= ruleConditionEt ) )
- // InternalGAME.g:3051:5: (lv_condition_2_0= ruleConditionEt )
+ // InternalGAME.g:3088:4: ( (lv_condition_2_0= ruleConditionEt ) )
+ // InternalGAME.g:3089:5: (lv_condition_2_0= ruleConditionEt )
{
- // InternalGAME.g:3051:5: (lv_condition_2_0= ruleConditionEt )
- // InternalGAME.g:3052:6: lv_condition_2_0= ruleConditionEt
+ // InternalGAME.g:3089:5: (lv_condition_2_0= ruleConditionEt )
+ // InternalGAME.g:3090:6: lv_condition_2_0= ruleConditionEt
{
newCompositeNode(grammarAccess.getConditionAccess().getConditionConditionEtParserRuleCall_1_1_0());
@@ -6115,7 +6343,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleConditionEt"
- // InternalGAME.g:3074:1: entryRuleConditionEt returns [EObject current=null] : iv_ruleConditionEt= ruleConditionEt EOF ;
+ // InternalGAME.g:3112:1: entryRuleConditionEt returns [EObject current=null] : iv_ruleConditionEt= ruleConditionEt EOF ;
public final EObject entryRuleConditionEt() throws RecognitionException {
EObject current = null;
@@ -6123,8 +6351,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3074:52: (iv_ruleConditionEt= ruleConditionEt EOF )
- // InternalGAME.g:3075:2: iv_ruleConditionEt= ruleConditionEt EOF
+ // InternalGAME.g:3112:52: (iv_ruleConditionEt= ruleConditionEt EOF )
+ // InternalGAME.g:3113:2: iv_ruleConditionEt= ruleConditionEt EOF
{
newCompositeNode(grammarAccess.getConditionEtRule());
pushFollow(FOLLOW_1);
@@ -6151,7 +6379,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleConditionEt"
- // InternalGAME.g:3081:1: ruleConditionEt returns [EObject current=null] : ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* ) ;
+ // InternalGAME.g:3119:1: ruleConditionEt returns [EObject current=null] : ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* ) ;
public final EObject ruleConditionEt() throws RecognitionException {
EObject current = null;
@@ -6165,17 +6393,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:3087:2: ( ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* ) )
- // InternalGAME.g:3088:2: ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* )
+ // InternalGAME.g:3125:2: ( ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* ) )
+ // InternalGAME.g:3126:2: ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* )
{
- // InternalGAME.g:3088:2: ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* )
- // InternalGAME.g:3089:3: ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )*
+ // InternalGAME.g:3126:2: ( ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )* )
+ // InternalGAME.g:3127:3: ( (lv_conditionTest_0_0= ruleConditionTest ) ) (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )*
{
- // InternalGAME.g:3089:3: ( (lv_conditionTest_0_0= ruleConditionTest ) )
- // InternalGAME.g:3090:4: (lv_conditionTest_0_0= ruleConditionTest )
+ // InternalGAME.g:3127:3: ( (lv_conditionTest_0_0= ruleConditionTest ) )
+ // InternalGAME.g:3128:4: (lv_conditionTest_0_0= ruleConditionTest )
{
- // InternalGAME.g:3090:4: (lv_conditionTest_0_0= ruleConditionTest )
- // InternalGAME.g:3091:5: lv_conditionTest_0_0= ruleConditionTest
+ // InternalGAME.g:3128:4: (lv_conditionTest_0_0= ruleConditionTest )
+ // InternalGAME.g:3129:5: lv_conditionTest_0_0= ruleConditionTest
{
newCompositeNode(grammarAccess.getConditionEtAccess().getConditionTestConditionTestParserRuleCall_0_0());
@@ -6202,7 +6430,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:3108:3: (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )*
+ // InternalGAME.g:3146:3: (otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) ) )*
loop54:
do {
int alt54=2;
@@ -6215,17 +6443,17 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt54) {
case 1 :
- // InternalGAME.g:3109:4: otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) )
+ // InternalGAME.g:3147:4: otherlv_1= '&&' ( (lv_conditionTest_2_0= ruleConditionTest ) )
{
otherlv_1=(Token)match(input,49,FOLLOW_26);
newLeafNode(otherlv_1, grammarAccess.getConditionEtAccess().getAmpersandAmpersandKeyword_1_0());
- // InternalGAME.g:3113:4: ( (lv_conditionTest_2_0= ruleConditionTest ) )
- // InternalGAME.g:3114:5: (lv_conditionTest_2_0= ruleConditionTest )
+ // InternalGAME.g:3151:4: ( (lv_conditionTest_2_0= ruleConditionTest ) )
+ // InternalGAME.g:3152:5: (lv_conditionTest_2_0= ruleConditionTest )
{
- // InternalGAME.g:3114:5: (lv_conditionTest_2_0= ruleConditionTest )
- // InternalGAME.g:3115:6: lv_conditionTest_2_0= ruleConditionTest
+ // InternalGAME.g:3152:5: (lv_conditionTest_2_0= ruleConditionTest )
+ // InternalGAME.g:3153:6: lv_conditionTest_2_0= ruleConditionTest
{
newCompositeNode(grammarAccess.getConditionEtAccess().getConditionTestConditionTestParserRuleCall_1_1_0());
@@ -6284,7 +6512,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleConditionTest"
- // InternalGAME.g:3137:1: entryRuleConditionTest returns [EObject current=null] : iv_ruleConditionTest= ruleConditionTest EOF ;
+ // InternalGAME.g:3175:1: entryRuleConditionTest returns [EObject current=null] : iv_ruleConditionTest= ruleConditionTest EOF ;
public final EObject entryRuleConditionTest() throws RecognitionException {
EObject current = null;
@@ -6292,8 +6520,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3137:54: (iv_ruleConditionTest= ruleConditionTest EOF )
- // InternalGAME.g:3138:2: iv_ruleConditionTest= ruleConditionTest EOF
+ // InternalGAME.g:3175:54: (iv_ruleConditionTest= ruleConditionTest EOF )
+ // InternalGAME.g:3176:2: iv_ruleConditionTest= ruleConditionTest EOF
{
newCompositeNode(grammarAccess.getConditionTestRule());
pushFollow(FOLLOW_1);
@@ -6320,7 +6548,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleConditionTest"
- // InternalGAME.g:3144:1: ruleConditionTest returns [EObject current=null] : (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' ) ;
+ // InternalGAME.g:3182:1: ruleConditionTest returns [EObject current=null] : (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' ) ;
public final EObject ruleConditionTest() throws RecognitionException {
EObject current = null;
@@ -6337,10 +6565,10 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:3150:2: ( (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' ) )
- // InternalGAME.g:3151:2: (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' )
+ // InternalGAME.g:3188:2: ( (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' ) )
+ // InternalGAME.g:3189:2: (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' )
{
- // InternalGAME.g:3151:2: (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' )
+ // InternalGAME.g:3189:2: (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' )
int alt55=5;
switch ( input.LA(1) ) {
case RULE_STRING:
@@ -6385,7 +6613,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt55) {
case 1 :
- // InternalGAME.g:3152:3: this_ConditionConnaissance_0= ruleConditionConnaissance
+ // InternalGAME.g:3190:3: this_ConditionConnaissance_0= ruleConditionConnaissance
{
newCompositeNode(grammarAccess.getConditionTestAccess().getConditionConnaissanceParserRuleCall_0());
@@ -6403,7 +6631,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // InternalGAME.g:3161:3: this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance
+ // InternalGAME.g:3199:3: this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance
{
newCompositeNode(grammarAccess.getConditionTestAccess().getNOTConditionConnaissanceParserRuleCall_1());
@@ -6421,7 +6649,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 3 :
- // InternalGAME.g:3170:3: this_ConditionObjet_2= ruleConditionObjet
+ // InternalGAME.g:3208:3: this_ConditionObjet_2= ruleConditionObjet
{
newCompositeNode(grammarAccess.getConditionTestAccess().getConditionObjetParserRuleCall_2());
@@ -6439,7 +6667,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 4 :
- // InternalGAME.g:3179:3: otherlv_3= 'true'
+ // InternalGAME.g:3217:3: otherlv_3= 'true'
{
otherlv_3=(Token)match(input,50,FOLLOW_2);
@@ -6449,7 +6677,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 5 :
- // InternalGAME.g:3184:3: otherlv_4= 'false'
+ // InternalGAME.g:3222:3: otherlv_4= 'false'
{
otherlv_4=(Token)match(input,51,FOLLOW_2);
@@ -6481,7 +6709,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleConditionConnaissance"
- // InternalGAME.g:3192:1: entryRuleConditionConnaissance returns [EObject current=null] : iv_ruleConditionConnaissance= ruleConditionConnaissance EOF ;
+ // InternalGAME.g:3230:1: entryRuleConditionConnaissance returns [EObject current=null] : iv_ruleConditionConnaissance= ruleConditionConnaissance EOF ;
public final EObject entryRuleConditionConnaissance() throws RecognitionException {
EObject current = null;
@@ -6489,8 +6717,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3192:62: (iv_ruleConditionConnaissance= ruleConditionConnaissance EOF )
- // InternalGAME.g:3193:2: iv_ruleConditionConnaissance= ruleConditionConnaissance EOF
+ // InternalGAME.g:3230:62: (iv_ruleConditionConnaissance= ruleConditionConnaissance EOF )
+ // InternalGAME.g:3231:2: iv_ruleConditionConnaissance= ruleConditionConnaissance EOF
{
newCompositeNode(grammarAccess.getConditionConnaissanceRule());
pushFollow(FOLLOW_1);
@@ -6517,38 +6745,44 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleConditionConnaissance"
- // InternalGAME.g:3199:1: ruleConditionConnaissance returns [EObject current=null] : ( (lv_connaissance_0_0= RULE_STRING ) ) ;
+ // InternalGAME.g:3237:1: ruleConditionConnaissance returns [EObject current=null] : ( (lv_connaissance_0_0= ruleNom ) ) ;
public final EObject ruleConditionConnaissance() throws RecognitionException {
EObject current = null;
- Token lv_connaissance_0_0=null;
+ EObject lv_connaissance_0_0 = null;
+
enterRule();
try {
- // InternalGAME.g:3205:2: ( ( (lv_connaissance_0_0= RULE_STRING ) ) )
- // InternalGAME.g:3206:2: ( (lv_connaissance_0_0= RULE_STRING ) )
+ // InternalGAME.g:3243:2: ( ( (lv_connaissance_0_0= ruleNom ) ) )
+ // InternalGAME.g:3244:2: ( (lv_connaissance_0_0= ruleNom ) )
{
- // InternalGAME.g:3206:2: ( (lv_connaissance_0_0= RULE_STRING ) )
- // InternalGAME.g:3207:3: (lv_connaissance_0_0= RULE_STRING )
+ // InternalGAME.g:3244:2: ( (lv_connaissance_0_0= ruleNom ) )
+ // InternalGAME.g:3245:3: (lv_connaissance_0_0= ruleNom )
{
- // InternalGAME.g:3207:3: (lv_connaissance_0_0= RULE_STRING )
- // InternalGAME.g:3208:4: lv_connaissance_0_0= RULE_STRING
+ // InternalGAME.g:3245:3: (lv_connaissance_0_0= ruleNom )
+ // InternalGAME.g:3246:4: lv_connaissance_0_0= ruleNom
{
- lv_connaissance_0_0=(Token)match(input,RULE_STRING,FOLLOW_2);
- newLeafNode(lv_connaissance_0_0, grammarAccess.getConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_0());
+ newCompositeNode(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0());
+ pushFollow(FOLLOW_2);
+ lv_connaissance_0_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getConditionConnaissanceRule());
+ current = createModelElementForParent(grammarAccess.getConditionConnaissanceRule());
}
- setWithLastConsumed(
+ set(
current,
"connaissance",
lv_connaissance_0_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -6576,7 +6810,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleNOTConditionConnaissance"
- // InternalGAME.g:3227:1: entryRuleNOTConditionConnaissance returns [EObject current=null] : iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF ;
+ // InternalGAME.g:3266:1: entryRuleNOTConditionConnaissance returns [EObject current=null] : iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF ;
public final EObject entryRuleNOTConditionConnaissance() throws RecognitionException {
EObject current = null;
@@ -6584,8 +6818,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3227:65: (iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF )
- // InternalGAME.g:3228:2: iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF
+ // InternalGAME.g:3266:65: (iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF )
+ // InternalGAME.g:3267:2: iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF
{
newCompositeNode(grammarAccess.getNOTConditionConnaissanceRule());
pushFollow(FOLLOW_1);
@@ -6612,46 +6846,52 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleNOTConditionConnaissance"
- // InternalGAME.g:3234:1: ruleNOTConditionConnaissance returns [EObject current=null] : (otherlv_0= '!' ( (lv_connaissance_1_0= RULE_STRING ) ) ) ;
+ // InternalGAME.g:3273:1: ruleNOTConditionConnaissance returns [EObject current=null] : (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) ) ;
public final EObject ruleNOTConditionConnaissance() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
- Token lv_connaissance_1_0=null;
+ EObject lv_connaissance_1_0 = null;
+
enterRule();
try {
- // InternalGAME.g:3240:2: ( (otherlv_0= '!' ( (lv_connaissance_1_0= RULE_STRING ) ) ) )
- // InternalGAME.g:3241:2: (otherlv_0= '!' ( (lv_connaissance_1_0= RULE_STRING ) ) )
+ // InternalGAME.g:3279:2: ( (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) ) )
+ // InternalGAME.g:3280:2: (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) )
{
- // InternalGAME.g:3241:2: (otherlv_0= '!' ( (lv_connaissance_1_0= RULE_STRING ) ) )
- // InternalGAME.g:3242:3: otherlv_0= '!' ( (lv_connaissance_1_0= RULE_STRING ) )
+ // InternalGAME.g:3280:2: (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) )
+ // InternalGAME.g:3281:3: otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) )
{
otherlv_0=(Token)match(input,52,FOLLOW_20);
newLeafNode(otherlv_0, grammarAccess.getNOTConditionConnaissanceAccess().getExclamationMarkKeyword_0());
- // InternalGAME.g:3246:3: ( (lv_connaissance_1_0= RULE_STRING ) )
- // InternalGAME.g:3247:4: (lv_connaissance_1_0= RULE_STRING )
+ // InternalGAME.g:3285:3: ( (lv_connaissance_1_0= ruleNom ) )
+ // InternalGAME.g:3286:4: (lv_connaissance_1_0= ruleNom )
{
- // InternalGAME.g:3247:4: (lv_connaissance_1_0= RULE_STRING )
- // InternalGAME.g:3248:5: lv_connaissance_1_0= RULE_STRING
+ // InternalGAME.g:3286:4: (lv_connaissance_1_0= ruleNom )
+ // InternalGAME.g:3287:5: lv_connaissance_1_0= ruleNom
{
- lv_connaissance_1_0=(Token)match(input,RULE_STRING,FOLLOW_2);
- newLeafNode(lv_connaissance_1_0, grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_1_0());
+ newCompositeNode(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0());
+ pushFollow(FOLLOW_2);
+ lv_connaissance_1_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getNOTConditionConnaissanceRule());
+ current = createModelElementForParent(grammarAccess.getNOTConditionConnaissanceRule());
}
- setWithLastConsumed(
+ set(
current,
"connaissance",
lv_connaissance_1_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -6682,7 +6922,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleConditionObjet"
- // InternalGAME.g:3268:1: entryRuleConditionObjet returns [EObject current=null] : iv_ruleConditionObjet= ruleConditionObjet EOF ;
+ // InternalGAME.g:3308:1: entryRuleConditionObjet returns [EObject current=null] : iv_ruleConditionObjet= ruleConditionObjet EOF ;
public final EObject entryRuleConditionObjet() throws RecognitionException {
EObject current = null;
@@ -6690,8 +6930,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3268:55: (iv_ruleConditionObjet= ruleConditionObjet EOF )
- // InternalGAME.g:3269:2: iv_ruleConditionObjet= ruleConditionObjet EOF
+ // InternalGAME.g:3308:55: (iv_ruleConditionObjet= ruleConditionObjet EOF )
+ // InternalGAME.g:3309:2: iv_ruleConditionObjet= ruleConditionObjet EOF
{
newCompositeNode(grammarAccess.getConditionObjetRule());
pushFollow(FOLLOW_1);
@@ -6718,12 +6958,13 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleConditionObjet"
- // InternalGAME.g:3275:1: ruleConditionObjet returns [EObject current=null] : ( ( (lv_objet_0_0= RULE_STRING ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) ) ;
+ // InternalGAME.g:3315:1: ruleConditionObjet returns [EObject current=null] : ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) ) ;
public final EObject ruleConditionObjet() throws RecognitionException {
EObject current = null;
- Token lv_objet_0_0=null;
Token lv_nombre_2_0=null;
+ EObject lv_objet_0_0 = null;
+
AntlrDatatypeRuleToken lv_comparateur_1_0 = null;
@@ -6731,31 +6972,36 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:3281:2: ( ( ( (lv_objet_0_0= RULE_STRING ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) ) )
- // InternalGAME.g:3282:2: ( ( (lv_objet_0_0= RULE_STRING ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) )
+ // InternalGAME.g:3321:2: ( ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) ) )
+ // InternalGAME.g:3322:2: ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) )
{
- // InternalGAME.g:3282:2: ( ( (lv_objet_0_0= RULE_STRING ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) )
- // InternalGAME.g:3283:3: ( (lv_objet_0_0= RULE_STRING ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) )
+ // InternalGAME.g:3322:2: ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) )
+ // InternalGAME.g:3323:3: ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) )
{
- // InternalGAME.g:3283:3: ( (lv_objet_0_0= RULE_STRING ) )
- // InternalGAME.g:3284:4: (lv_objet_0_0= RULE_STRING )
+ // InternalGAME.g:3323:3: ( (lv_objet_0_0= ruleNom ) )
+ // InternalGAME.g:3324:4: (lv_objet_0_0= ruleNom )
{
- // InternalGAME.g:3284:4: (lv_objet_0_0= RULE_STRING )
- // InternalGAME.g:3285:5: lv_objet_0_0= RULE_STRING
+ // InternalGAME.g:3324:4: (lv_objet_0_0= ruleNom )
+ // InternalGAME.g:3325:5: lv_objet_0_0= ruleNom
{
- lv_objet_0_0=(Token)match(input,RULE_STRING,FOLLOW_47);
- newLeafNode(lv_objet_0_0, grammarAccess.getConditionObjetAccess().getObjetSTRINGTerminalRuleCall_0_0());
+ newCompositeNode(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0());
+ pushFollow(FOLLOW_47);
+ lv_objet_0_0=ruleNom();
+
+ state._fsp--;
+
if (current==null) {
- current = createModelElement(grammarAccess.getConditionObjetRule());
+ current = createModelElementForParent(grammarAccess.getConditionObjetRule());
}
- setWithLastConsumed(
+ set(
current,
"objet",
lv_objet_0_0,
- "org.eclipse.xtext.common.Terminals.STRING");
+ "fr.n7.xtext.GAME.Nom");
+ afterParserOrEnumRuleCall();
}
@@ -6763,11 +7009,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:3301:3: ( (lv_comparateur_1_0= ruleComparateur ) )
- // InternalGAME.g:3302:4: (lv_comparateur_1_0= ruleComparateur )
+ // InternalGAME.g:3342:3: ( (lv_comparateur_1_0= ruleComparateur ) )
+ // InternalGAME.g:3343:4: (lv_comparateur_1_0= ruleComparateur )
{
- // InternalGAME.g:3302:4: (lv_comparateur_1_0= ruleComparateur )
- // InternalGAME.g:3303:5: lv_comparateur_1_0= ruleComparateur
+ // InternalGAME.g:3343:4: (lv_comparateur_1_0= ruleComparateur )
+ // InternalGAME.g:3344:5: lv_comparateur_1_0= ruleComparateur
{
newCompositeNode(grammarAccess.getConditionObjetAccess().getComparateurComparateurParserRuleCall_1_0());
@@ -6794,11 +7040,11 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
- // InternalGAME.g:3320:3: ( (lv_nombre_2_0= RULE_INT ) )
- // InternalGAME.g:3321:4: (lv_nombre_2_0= RULE_INT )
+ // InternalGAME.g:3361:3: ( (lv_nombre_2_0= RULE_INT ) )
+ // InternalGAME.g:3362:4: (lv_nombre_2_0= RULE_INT )
{
- // InternalGAME.g:3321:4: (lv_nombre_2_0= RULE_INT )
- // InternalGAME.g:3322:5: lv_nombre_2_0= RULE_INT
+ // InternalGAME.g:3362:4: (lv_nombre_2_0= RULE_INT )
+ // InternalGAME.g:3363:5: lv_nombre_2_0= RULE_INT
{
lv_nombre_2_0=(Token)match(input,RULE_INT,FOLLOW_2);
@@ -6843,7 +7089,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleComparateur"
- // InternalGAME.g:3342:1: entryRuleComparateur returns [String current=null] : iv_ruleComparateur= ruleComparateur EOF ;
+ // InternalGAME.g:3383:1: entryRuleComparateur returns [String current=null] : iv_ruleComparateur= ruleComparateur EOF ;
public final String entryRuleComparateur() throws RecognitionException {
String current = null;
@@ -6851,8 +7097,8 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
try {
- // InternalGAME.g:3342:51: (iv_ruleComparateur= ruleComparateur EOF )
- // InternalGAME.g:3343:2: iv_ruleComparateur= ruleComparateur EOF
+ // InternalGAME.g:3383:51: (iv_ruleComparateur= ruleComparateur EOF )
+ // InternalGAME.g:3384:2: iv_ruleComparateur= ruleComparateur EOF
{
newCompositeNode(grammarAccess.getComparateurRule());
pushFollow(FOLLOW_1);
@@ -6879,7 +7125,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleComparateur"
- // InternalGAME.g:3349:1: ruleComparateur returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' ) ;
+ // InternalGAME.g:3390:1: ruleComparateur returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' ) ;
public final AntlrDatatypeRuleToken ruleComparateur() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -6889,10 +7135,10 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // InternalGAME.g:3355:2: ( (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' ) )
- // InternalGAME.g:3356:2: (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' )
+ // InternalGAME.g:3396:2: ( (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' ) )
+ // InternalGAME.g:3397:2: (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' )
{
- // InternalGAME.g:3356:2: (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' )
+ // InternalGAME.g:3397:2: (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' )
int alt56=6;
switch ( input.LA(1) ) {
case 53:
@@ -6934,7 +7180,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
switch (alt56) {
case 1 :
- // InternalGAME.g:3357:3: kw= '<'
+ // InternalGAME.g:3398:3: kw= '<'
{
kw=(Token)match(input,53,FOLLOW_2);
@@ -6945,7 +7191,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // InternalGAME.g:3363:3: kw= '>'
+ // InternalGAME.g:3404:3: kw= '>'
{
kw=(Token)match(input,54,FOLLOW_2);
@@ -6956,7 +7202,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 3 :
- // InternalGAME.g:3369:3: kw= '=='
+ // InternalGAME.g:3410:3: kw= '=='
{
kw=(Token)match(input,55,FOLLOW_2);
@@ -6967,7 +7213,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 4 :
- // InternalGAME.g:3375:3: kw= '<='
+ // InternalGAME.g:3416:3: kw= '<='
{
kw=(Token)match(input,56,FOLLOW_2);
@@ -6978,7 +7224,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 5 :
- // InternalGAME.g:3381:3: kw= '>='
+ // InternalGAME.g:3422:3: kw= '>='
{
kw=(Token)match(input,57,FOLLOW_2);
@@ -6989,7 +7235,7 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
break;
case 6 :
- // InternalGAME.g:3387:3: kw= '!='
+ // InternalGAME.g:3428:3: kw= '!='
{
kw=(Token)match(input,58,FOLLOW_2);
@@ -7020,6 +7266,101 @@ public class InternalGAMEParser extends AbstractInternalAntlrParser {
}
// $ANTLR end "ruleComparateur"
+
+ // $ANTLR start "entryRuleNom"
+ // InternalGAME.g:3437:1: entryRuleNom returns [EObject current=null] : iv_ruleNom= ruleNom EOF ;
+ public final EObject entryRuleNom() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNom = null;
+
+
+ try {
+ // InternalGAME.g:3437:44: (iv_ruleNom= ruleNom EOF )
+ // InternalGAME.g:3438:2: iv_ruleNom= ruleNom EOF
+ {
+ newCompositeNode(grammarAccess.getNomRule());
+ pushFollow(FOLLOW_1);
+ iv_ruleNom=ruleNom();
+
+ state._fsp--;
+
+ current =iv_ruleNom;
+ match(input,EOF,FOLLOW_2);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNom"
+
+
+ // $ANTLR start "ruleNom"
+ // InternalGAME.g:3444:1: ruleNom returns [EObject current=null] : ( (lv_nom_0_0= RULE_STRING ) ) ;
+ public final EObject ruleNom() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_nom_0_0=null;
+
+
+ enterRule();
+
+ try {
+ // InternalGAME.g:3450:2: ( ( (lv_nom_0_0= RULE_STRING ) ) )
+ // InternalGAME.g:3451:2: ( (lv_nom_0_0= RULE_STRING ) )
+ {
+ // InternalGAME.g:3451:2: ( (lv_nom_0_0= RULE_STRING ) )
+ // InternalGAME.g:3452:3: (lv_nom_0_0= RULE_STRING )
+ {
+ // InternalGAME.g:3452:3: (lv_nom_0_0= RULE_STRING )
+ // InternalGAME.g:3453:4: lv_nom_0_0= RULE_STRING
+ {
+ lv_nom_0_0=(Token)match(input,RULE_STRING,FOLLOW_2);
+
+ newLeafNode(lv_nom_0_0, grammarAccess.getNomAccess().getNomSTRINGTerminalRuleCall_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getNomRule());
+ }
+ setWithLastConsumed(
+ current,
+ "nom",
+ lv_nom_0_0,
+ "org.eclipse.xtext.common.Terminals.STRING");
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ leaveRule();
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNom"
+
// Delegated rules
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/serializer/GAMESemanticSequencer.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/serializer/GAMESemanticSequencer.java
index 79a0d82..bfaa974 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/serializer/GAMESemanticSequencer.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/serializer/GAMESemanticSequencer.java
@@ -17,6 +17,7 @@ import fr.n7.xtext.gAME.Interaction;
import fr.n7.xtext.gAME.Jeu;
import fr.n7.xtext.gAME.Lieu;
import fr.n7.xtext.gAME.NOTConditionConnaissance;
+import fr.n7.xtext.gAME.Nom;
import fr.n7.xtext.gAME.Objet;
import fr.n7.xtext.gAME.Personne;
import fr.n7.xtext.gAME.Territoire;
@@ -86,6 +87,9 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
case GAMEPackage.NOT_CONDITION_CONNAISSANCE:
sequence_NOTConditionConnaissance(context, (NOTConditionConnaissance) semanticObject);
return;
+ case GAMEPackage.NOM:
+ sequence_Nom(context, (Nom) semanticObject);
+ return;
case GAMEPackage.OBJET:
sequence_Objet(context, (Objet) semanticObject);
return;
@@ -111,9 +115,9 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* (
* visible=Condition
* finInteraction=Condition
- * (connaissances+=STRING connaissances+=STRING*)?
- * (objetsRecus+=STRING objetsRecus+=STRING*)?
- * (objetsConso+=STRING objetsConso+=STRING*)?
+ * (connaissances+=Nom connaissances+=Nom*)?
+ * (objetsRecus+=Nom objetsRecus+=Nom*)?
+ * (objetsConso+=Nom objetsConso+=Nom*)?
* descriptions+=Description
* descriptions+=Description*
* )
@@ -129,14 +133,14 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
*
* Constraint:
* (
- * lieuIn=STRING
- * lieuOut=STRING
+ * lieuIn=Nom
+ * lieuOut=Nom
* ouvert=Condition
* visible=Condition
* obligatoire=Condition
- * (connaissances+=STRING connaissances+=STRING*)?
- * (objetsRecus+=STRING objetsRecus+=STRING*)?
- * (objetsConso+=STRING objetsConso+=STRING*)?
+ * (connaissances+=Nom connaissances+=Nom*)?
+ * (objetsRecus+=Nom objetsRecus+=Nom*)?
+ * (objetsConso+=Nom objetsConso+=Nom*)?
* descriptions+=Description
* descriptions+=Description*
* )
@@ -152,7 +156,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* ConditionConnaissance returns ConditionConnaissance
*
* Constraint:
- * connaissance=STRING
+ * connaissance=Nom
*/
protected void sequence_ConditionConnaissance(ISerializationContext context, ConditionConnaissance semanticObject) {
if (errorAcceptor != null) {
@@ -160,7 +164,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.CONDITION_CONNAISSANCE__CONNAISSANCE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_0(), semanticObject.getConnaissance());
+ feeder.accept(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0(), semanticObject.getConnaissance());
feeder.finish();
}
@@ -183,7 +187,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* ConditionObjet returns ConditionObjet
*
* Constraint:
- * (objet=STRING comparateur=Comparateur nombre=INT)
+ * (objet=Nom comparateur=Comparateur nombre=INT)
*/
protected void sequence_ConditionObjet(ISerializationContext context, ConditionObjet semanticObject) {
if (errorAcceptor != null) {
@@ -195,7 +199,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.CONDITION_OBJET__NOMBRE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getConditionObjetAccess().getObjetSTRINGTerminalRuleCall_0_0(), semanticObject.getObjet());
+ feeder.accept(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0(), semanticObject.getObjet());
feeder.accept(grammarAccess.getConditionObjetAccess().getComparateurComparateurParserRuleCall_1_0(), semanticObject.getComparateur());
feeder.accept(grammarAccess.getConditionObjetAccess().getNombreINTTerminalRuleCall_2_0(), semanticObject.getNombre());
feeder.finish();
@@ -219,7 +223,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* Connaissance returns Connaissance
*
* Constraint:
- * (nom=STRING visible=Condition descriptions+=Description descriptions+=Description*)
+ * (nom=Nom visible=Condition descriptions+=Description descriptions+=Description*)
*/
protected void sequence_Connaissance(ISerializationContext context, Connaissance semanticObject) {
genericSequencer.createSequence(context, semanticObject);
@@ -252,7 +256,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* Explorateur returns Explorateur
*
* Constraint:
- * (tailleInventaire=INT (connaissances+=STRING connaissances+=STRING*)? (objets+=STRING objets+=STRING*)?)
+ * (tailleInventaire=INT (connaissances+=Nom connaissances+=Nom*)? (objets+=Nom objets+=Nom*)?)
*/
protected void sequence_Explorateur(ISerializationContext context, Explorateur semanticObject) {
genericSequencer.createSequence(context, semanticObject);
@@ -266,9 +270,9 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* Constraint:
* (
* visible=Condition
- * (connaissances+=STRING connaissances+=STRING*)?
- * (objetsRecus+=STRING objetsRecus+=STRING*)?
- * (objetsConso+=STRING objetsRecus+=STRING*)?
+ * (connaissances+=Nom connaissances+=Nom*)?
+ * (objetsRecus+=Nom objetsRecus+=Nom*)?
+ * (objetsConso+=Nom objetsRecus+=Nom*)?
* actions+=Action
* actions+=Action*
* )
@@ -303,15 +307,15 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
*
* Constraint:
* (
- * nom=STRING
+ * nom=Nom
* deposable=Condition
* depart=Condition
* fin=Condition
- * (personnes+=STRING personnes+=STRING*)?
+ * (personnes+=Nom personnes+=Nom*)?
* descriptions+=Description
* descriptions+=Description*
- * (objets+=STRING objets+=STRING*)?
- * (connaissances+=STRING connaissances+=STRING*)?
+ * (objets+=Nom objets+=Nom*)?
+ * (connaissances+=Nom connaissances+=Nom*)?
* )
*/
protected void sequence_Lieu(ISerializationContext context, Lieu semanticObject) {
@@ -325,7 +329,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* NOTConditionConnaissance returns NOTConditionConnaissance
*
* Constraint:
- * connaissance=STRING
+ * connaissance=Nom
*/
protected void sequence_NOTConditionConnaissance(ISerializationContext context, NOTConditionConnaissance semanticObject) {
if (errorAcceptor != null) {
@@ -333,7 +337,25 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.NOT_CONDITION_CONNAISSANCE__CONNAISSANCE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceSTRINGTerminalRuleCall_1_0(), semanticObject.getConnaissance());
+ feeder.accept(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0(), semanticObject.getConnaissance());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Nom returns Nom
+ *
+ * Constraint:
+ * nom=STRING
+ */
+ protected void sequence_Nom(ISerializationContext context, Nom semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, GAMEPackage.Literals.NOM__NOM) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GAMEPackage.Literals.NOM__NOM));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getNomAccess().getNomSTRINGTerminalRuleCall_0(), semanticObject.getNom());
feeder.finish();
}
@@ -343,7 +365,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* Objet returns Objet
*
* Constraint:
- * (nom=STRING taille=INT visible=Condition descriptions+=Description descriptions+=Description*)
+ * (nom=Nom taille=INT visible=Condition descriptions+=Description descriptions+=Description*)
*/
protected void sequence_Objet(ISerializationContext context, Objet semanticObject) {
genericSequencer.createSequence(context, semanticObject);
@@ -355,7 +377,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* Personne returns Personne
*
* Constraint:
- * (nom=STRING visible=Condition obligatoire=Condition (interactions+=Interaction interactions+=Interaction*)?)
+ * (nom=Nom visible=Condition obligatoire=Condition (interactions+=Interaction interactions+=Interaction*)?)
*/
protected void sequence_Personne(ISerializationContext context, Personne semanticObject) {
genericSequencer.createSequence(context, semanticObject);
@@ -379,7 +401,7 @@ public class GAMESemanticSequencer extends AbstractDelegatingSemanticSequencer {
* Transformation returns Transformation
*
* Constraint:
- * (condition=Condition (objetsIn+=STRING objetsIn+=STRING*)? (objetsOut+=STRING objetsOut+=STRING*)?)
+ * (condition=Condition (objetsIn+=Nom objetsIn+=Nom*)? (objetsOut+=Nom objetsOut+=Nom*)?)
*/
protected void sequence_Transformation(ISerializationContext context, Transformation semanticObject) {
genericSequencer.createSequence(context, semanticObject);
diff --git a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/services/GAMEGrammarAccess.java b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/services/GAMEGrammarAccess.java
index ad4e407..a3654ca 100644
--- a/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/services/GAMEGrammarAccess.java
+++ b/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/services/GAMEGrammarAccess.java
@@ -294,11 +294,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Group cGroup_8 = (Group)cGroup.eContents().get(8);
private final Assignment cConnaissancesAssignment_8_0 = (Assignment)cGroup_8.eContents().get(0);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cObjetsKeyword_11 = (Keyword)cGroup.eContents().get(11);
@@ -306,24 +306,24 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Group cGroup_14 = (Group)cGroup.eContents().get(14);
private final Assignment cObjetsAssignment_14_0 = (Assignment)cGroup_14.eContents().get(0);
- private final RuleCall cObjetsSTRINGTerminalRuleCall_14_0_0 = (RuleCall)cObjetsAssignment_14_0.eContents().get(0);
+ private final RuleCall cObjetsNomParserRuleCall_14_0_0 = (RuleCall)cObjetsAssignment_14_0.eContents().get(0);
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
private final Assignment cObjetsAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
- private final RuleCall cObjetsSTRINGTerminalRuleCall_14_1_1_0 = (RuleCall)cObjetsAssignment_14_1_1.eContents().get(0);
+ private final RuleCall cObjetsNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsAssignment_14_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cRightCurlyBracketKeyword_16 = (Keyword)cGroup.eContents().get(16);
//Explorateur:
// '{'
// '"taille"' ':' tailleInventaire=INT ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']'
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"taille"' ':' tailleInventaire=INT ',' '"connaissances"' ':' '[' (connaissances+=STRING (','
- //connaissances+=STRING)*)? ']' ',' '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' '}'
+ //'{' '"taille"' ':' tailleInventaire=INT ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)?
+ //']' ',' '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
@@ -353,26 +353,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
- //(connaissances+=STRING (',' connaissances+=STRING)*)?
+ //(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_8() { return cGroup_8; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_0_0() { return cConnaissancesSTRINGTerminalRuleCall_8_0_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_8_0_0() { return cConnaissancesNomParserRuleCall_8_0_0; }
- //(',' connaissances+=STRING)*
+ //(',' connaissances+=Nom)*
public Group getGroup_8_1() { return cGroup_8_1; }
//','
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_8_1_1_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_8_1_1_0() { return cConnaissancesNomParserRuleCall_8_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
@@ -389,26 +389,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
- //(objets+=STRING (',' objets+=STRING)*)?
+ //(objets+=Nom (',' objets+=Nom)*)?
public Group getGroup_14() { return cGroup_14; }
- //objets+=STRING
+ //objets+=Nom
public Assignment getObjetsAssignment_14_0() { return cObjetsAssignment_14_0; }
- //STRING
- public RuleCall getObjetsSTRINGTerminalRuleCall_14_0_0() { return cObjetsSTRINGTerminalRuleCall_14_0_0; }
+ //Nom
+ public RuleCall getObjetsNomParserRuleCall_14_0_0() { return cObjetsNomParserRuleCall_14_0_0; }
- //(',' objets+=STRING)*
+ //(',' objets+=Nom)*
public Group getGroup_14_1() { return cGroup_14_1; }
//','
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
- //objets+=STRING
+ //objets+=Nom
public Assignment getObjetsAssignment_14_1_1() { return cObjetsAssignment_14_1_1; }
- //STRING
- public RuleCall getObjetsSTRINGTerminalRuleCall_14_1_1_0() { return cObjetsSTRINGTerminalRuleCall_14_1_1_0; }
+ //Nom
+ public RuleCall getObjetsNomParserRuleCall_14_1_1_0() { return cObjetsNomParserRuleCall_14_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
@@ -538,7 +538,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
+ private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cDeposableKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
@@ -560,11 +560,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Group cGroup_20 = (Group)cGroup.eContents().get(20);
private final Assignment cPersonnesAssignment_20_0 = (Assignment)cGroup_20.eContents().get(0);
- private final RuleCall cPersonnesSTRINGTerminalRuleCall_20_0_0 = (RuleCall)cPersonnesAssignment_20_0.eContents().get(0);
+ private final RuleCall cPersonnesNomParserRuleCall_20_0_0 = (RuleCall)cPersonnesAssignment_20_0.eContents().get(0);
private final Group cGroup_20_1 = (Group)cGroup_20.eContents().get(1);
private final Keyword cCommaKeyword_20_1_0 = (Keyword)cGroup_20_1.eContents().get(0);
private final Assignment cPersonnesAssignment_20_1_1 = (Assignment)cGroup_20_1.eContents().get(1);
- private final RuleCall cPersonnesSTRINGTerminalRuleCall_20_1_1_0 = (RuleCall)cPersonnesAssignment_20_1_1.eContents().get(0);
+ private final RuleCall cPersonnesNomParserRuleCall_20_1_1_0 = (RuleCall)cPersonnesAssignment_20_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cCommaKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cDescriptionsKeyword_23 = (Keyword)cGroup.eContents().get(23);
@@ -583,11 +583,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_32 = (Keyword)cGroup.eContents().get(32);
private final Group cGroup_33 = (Group)cGroup.eContents().get(33);
private final Assignment cObjetsAssignment_33_0 = (Assignment)cGroup_33.eContents().get(0);
- private final RuleCall cObjetsSTRINGTerminalRuleCall_33_0_0 = (RuleCall)cObjetsAssignment_33_0.eContents().get(0);
+ private final RuleCall cObjetsNomParserRuleCall_33_0_0 = (RuleCall)cObjetsAssignment_33_0.eContents().get(0);
private final Group cGroup_33_1 = (Group)cGroup_33.eContents().get(1);
private final Keyword cCommaKeyword_33_1_0 = (Keyword)cGroup_33_1.eContents().get(0);
private final Assignment cObjetsAssignment_33_1_1 = (Assignment)cGroup_33_1.eContents().get(1);
- private final RuleCall cObjetsSTRINGTerminalRuleCall_33_1_1_0 = (RuleCall)cObjetsAssignment_33_1_1.eContents().get(0);
+ private final RuleCall cObjetsNomParserRuleCall_33_1_1_0 = (RuleCall)cObjetsAssignment_33_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_34 = (Keyword)cGroup.eContents().get(34);
private final Keyword cCommaKeyword_35 = (Keyword)cGroup.eContents().get(35);
private final Keyword cConnaissancesKeyword_36 = (Keyword)cGroup.eContents().get(36);
@@ -595,31 +595,31 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_38 = (Keyword)cGroup.eContents().get(38);
private final Group cGroup_39 = (Group)cGroup.eContents().get(39);
private final Assignment cConnaissancesAssignment_39_0 = (Assignment)cGroup_39.eContents().get(0);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_39_0_0 = (RuleCall)cConnaissancesAssignment_39_0.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_39_0_0 = (RuleCall)cConnaissancesAssignment_39_0.eContents().get(0);
private final Group cGroup_39_1 = (Group)cGroup_39.eContents().get(1);
private final Keyword cCommaKeyword_39_1_0 = (Keyword)cGroup_39_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_39_1_1 = (Assignment)cGroup_39_1.eContents().get(1);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_39_1_1_0 = (RuleCall)cConnaissancesAssignment_39_1_1.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_39_1_1_0 = (RuleCall)cConnaissancesAssignment_39_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_40 = (Keyword)cGroup.eContents().get(40);
private final Keyword cRightCurlyBracketKeyword_41 = (Keyword)cGroup.eContents().get(41);
//Lieu:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"deposable"' ':' deposable=Condition ','
// '"depart"' ':' depart=Condition ','
// '"fin"' ':' fin=Condition ','
- // '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ','
+ // '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
- // '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']'
+ // '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"nom"' ':' nom=STRING ',' '"deposable"' ':' deposable=Condition ',' '"depart"' ':' depart=Condition ',' '"fin"' ':'
- //fin=Condition ',' '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ',' '"descriptions"' ':' '['
- //descriptions+=Description (',' descriptions+=Description)* ']' ',' '"objets"' ':' '[' (objets+=STRING (','
- //objets+=STRING)*)? ']' ',' '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' '}'
+ //'{' '"nom"' ':' nom=Nom ',' '"deposable"' ':' deposable=Condition ',' '"depart"' ':' depart=Condition ',' '"fin"' ':'
+ //fin=Condition ',' '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ',' '"descriptions"' ':' '['
+ //descriptions+=Description (',' descriptions+=Description)* ']' ',' '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)?
+ //']' ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
@@ -631,11 +631,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
- //nom=STRING
+ //nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
- //STRING
- public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
+ //Nom
+ public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
@@ -694,26 +694,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_19() { return cLeftSquareBracketKeyword_19; }
- //(personnes+=STRING (',' personnes+=STRING)*)?
+ //(personnes+=Nom (',' personnes+=Nom)*)?
public Group getGroup_20() { return cGroup_20; }
- //personnes+=STRING
+ //personnes+=Nom
public Assignment getPersonnesAssignment_20_0() { return cPersonnesAssignment_20_0; }
- //STRING
- public RuleCall getPersonnesSTRINGTerminalRuleCall_20_0_0() { return cPersonnesSTRINGTerminalRuleCall_20_0_0; }
+ //Nom
+ public RuleCall getPersonnesNomParserRuleCall_20_0_0() { return cPersonnesNomParserRuleCall_20_0_0; }
- //(',' personnes+=STRING)*
+ //(',' personnes+=Nom)*
public Group getGroup_20_1() { return cGroup_20_1; }
//','
public Keyword getCommaKeyword_20_1_0() { return cCommaKeyword_20_1_0; }
- //personnes+=STRING
+ //personnes+=Nom
public Assignment getPersonnesAssignment_20_1_1() { return cPersonnesAssignment_20_1_1; }
- //STRING
- public RuleCall getPersonnesSTRINGTerminalRuleCall_20_1_1_0() { return cPersonnesSTRINGTerminalRuleCall_20_1_1_0; }
+ //Nom
+ public RuleCall getPersonnesNomParserRuleCall_20_1_1_0() { return cPersonnesNomParserRuleCall_20_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_21() { return cRightSquareBracketKeyword_21; }
@@ -763,26 +763,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_32() { return cLeftSquareBracketKeyword_32; }
- //(objets+=STRING (',' objets+=STRING)*)?
+ //(objets+=Nom (',' objets+=Nom)*)?
public Group getGroup_33() { return cGroup_33; }
- //objets+=STRING
+ //objets+=Nom
public Assignment getObjetsAssignment_33_0() { return cObjetsAssignment_33_0; }
- //STRING
- public RuleCall getObjetsSTRINGTerminalRuleCall_33_0_0() { return cObjetsSTRINGTerminalRuleCall_33_0_0; }
+ //Nom
+ public RuleCall getObjetsNomParserRuleCall_33_0_0() { return cObjetsNomParserRuleCall_33_0_0; }
- //(',' objets+=STRING)*
+ //(',' objets+=Nom)*
public Group getGroup_33_1() { return cGroup_33_1; }
//','
public Keyword getCommaKeyword_33_1_0() { return cCommaKeyword_33_1_0; }
- //objets+=STRING
+ //objets+=Nom
public Assignment getObjetsAssignment_33_1_1() { return cObjetsAssignment_33_1_1; }
- //STRING
- public RuleCall getObjetsSTRINGTerminalRuleCall_33_1_1_0() { return cObjetsSTRINGTerminalRuleCall_33_1_1_0; }
+ //Nom
+ public RuleCall getObjetsNomParserRuleCall_33_1_1_0() { return cObjetsNomParserRuleCall_33_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_34() { return cRightSquareBracketKeyword_34; }
@@ -799,26 +799,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_38() { return cLeftSquareBracketKeyword_38; }
- //(connaissances+=STRING (',' connaissances+=STRING)*)?
+ //(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_39() { return cGroup_39; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_39_0() { return cConnaissancesAssignment_39_0; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_39_0_0() { return cConnaissancesSTRINGTerminalRuleCall_39_0_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_39_0_0() { return cConnaissancesNomParserRuleCall_39_0_0; }
- //(',' connaissances+=STRING)*
+ //(',' connaissances+=Nom)*
public Group getGroup_39_1() { return cGroup_39_1; }
//','
public Keyword getCommaKeyword_39_1_0() { return cCommaKeyword_39_1_0; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_39_1_1() { return cConnaissancesAssignment_39_1_1; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_39_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_39_1_1_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_39_1_1_0() { return cConnaissancesNomParserRuleCall_39_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_40() { return cRightSquareBracketKeyword_40; }
@@ -833,12 +833,12 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLieu_inKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cLieuInAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cLieuInSTRINGTerminalRuleCall_3_0 = (RuleCall)cLieuInAssignment_3.eContents().get(0);
+ private final RuleCall cLieuInNomParserRuleCall_3_0 = (RuleCall)cLieuInAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cLieu_outKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cLieuOutAssignment_7 = (Assignment)cGroup.eContents().get(7);
- private final RuleCall cLieuOutSTRINGTerminalRuleCall_7_0 = (RuleCall)cLieuOutAssignment_7.eContents().get(0);
+ private final RuleCall cLieuOutNomParserRuleCall_7_0 = (RuleCall)cLieuOutAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cOuvertKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
@@ -860,11 +860,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Group cGroup_24 = (Group)cGroup.eContents().get(24);
private final Assignment cConnaissancesAssignment_24_0 = (Assignment)cGroup_24.eContents().get(0);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_24_0_0 = (RuleCall)cConnaissancesAssignment_24_0.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_24_0_0 = (RuleCall)cConnaissancesAssignment_24_0.eContents().get(0);
private final Group cGroup_24_1 = (Group)cGroup_24.eContents().get(1);
private final Keyword cCommaKeyword_24_1_0 = (Keyword)cGroup_24_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_24_1_1 = (Assignment)cGroup_24_1.eContents().get(1);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_24_1_1_0 = (RuleCall)cConnaissancesAssignment_24_1_1.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_24_1_1_0 = (RuleCall)cConnaissancesAssignment_24_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
private final Keyword cObjets_recusKeyword_27 = (Keyword)cGroup.eContents().get(27);
@@ -872,11 +872,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
private final Group cGroup_30 = (Group)cGroup.eContents().get(30);
private final Assignment cObjetsRecusAssignment_30_0 = (Assignment)cGroup_30.eContents().get(0);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_30_0_0 = (RuleCall)cObjetsRecusAssignment_30_0.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_30_0_0 = (RuleCall)cObjetsRecusAssignment_30_0.eContents().get(0);
private final Group cGroup_30_1 = (Group)cGroup_30.eContents().get(1);
private final Keyword cCommaKeyword_30_1_0 = (Keyword)cGroup_30_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_30_1_1 = (Assignment)cGroup_30_1.eContents().get(1);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_30_1_1_0 = (RuleCall)cObjetsRecusAssignment_30_1_1.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_30_1_1_0 = (RuleCall)cObjetsRecusAssignment_30_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_31 = (Keyword)cGroup.eContents().get(31);
private final Keyword cCommaKeyword_32 = (Keyword)cGroup.eContents().get(32);
private final Keyword cObjets_consoKeyword_33 = (Keyword)cGroup.eContents().get(33);
@@ -884,11 +884,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_35 = (Keyword)cGroup.eContents().get(35);
private final Group cGroup_36 = (Group)cGroup.eContents().get(36);
private final Assignment cObjetsConsoAssignment_36_0 = (Assignment)cGroup_36.eContents().get(0);
- private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_36_0_0 = (RuleCall)cObjetsConsoAssignment_36_0.eContents().get(0);
+ private final RuleCall cObjetsConsoNomParserRuleCall_36_0_0 = (RuleCall)cObjetsConsoAssignment_36_0.eContents().get(0);
private final Group cGroup_36_1 = (Group)cGroup_36.eContents().get(1);
private final Keyword cCommaKeyword_36_1_0 = (Keyword)cGroup_36_1.eContents().get(0);
private final Assignment cObjetsConsoAssignment_36_1_1 = (Assignment)cGroup_36_1.eContents().get(1);
- private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_36_1_1_0 = (RuleCall)cObjetsConsoAssignment_36_1_1.eContents().get(0);
+ private final RuleCall cObjetsConsoNomParserRuleCall_36_1_1_0 = (RuleCall)cObjetsConsoAssignment_36_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_37 = (Keyword)cGroup.eContents().get(37);
private final Keyword cCommaKeyword_38 = (Keyword)cGroup.eContents().get(38);
private final Keyword cDescriptionsKeyword_39 = (Keyword)cGroup.eContents().get(39);
@@ -905,23 +905,23 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Chemin:
// '{'
- // '"lieu_in"' ':' lieuIn=STRING ','
- // '"lieu_out"' ':' lieuOut=STRING ','
+ // '"lieu_in"' ':' lieuIn=Nom ','
+ // '"lieu_out"' ':' lieuOut=Nom ','
// '"ouvert"' ':' ouvert=Condition ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- // '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ // '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"lieu_in"' ':' lieuIn=STRING ',' '"lieu_out"' ':' lieuOut=STRING ',' '"ouvert"' ':' ouvert=Condition ','
- //'"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ',' '"connaissances"' ':' '['
- //(connaissances+=STRING (',' connaissances+=STRING)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=STRING (','
- //objetsRecus+=STRING)*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
- //'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
+ //'{' '"lieu_in"' ':' lieuIn=Nom ',' '"lieu_out"' ':' lieuOut=Nom ',' '"ouvert"' ':' ouvert=Condition ',' '"visible"' ':'
+ //visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom (','
+ //connaissances+=Nom)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ //'"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ',' '"descriptions"' ':' '['
+ //descriptions+=Description (',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
@@ -933,11 +933,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
- //lieuIn=STRING
+ //lieuIn=Nom
public Assignment getLieuInAssignment_3() { return cLieuInAssignment_3; }
- //STRING
- public RuleCall getLieuInSTRINGTerminalRuleCall_3_0() { return cLieuInSTRINGTerminalRuleCall_3_0; }
+ //Nom
+ public RuleCall getLieuInNomParserRuleCall_3_0() { return cLieuInNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
@@ -948,11 +948,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
- //lieuOut=STRING
+ //lieuOut=Nom
public Assignment getLieuOutAssignment_7() { return cLieuOutAssignment_7; }
- //STRING
- public RuleCall getLieuOutSTRINGTerminalRuleCall_7_0() { return cLieuOutSTRINGTerminalRuleCall_7_0; }
+ //Nom
+ public RuleCall getLieuOutNomParserRuleCall_7_0() { return cLieuOutNomParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
@@ -1011,26 +1011,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
- //(connaissances+=STRING (',' connaissances+=STRING)*)?
+ //(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_24() { return cGroup_24; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_24_0() { return cConnaissancesAssignment_24_0; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_24_0_0() { return cConnaissancesSTRINGTerminalRuleCall_24_0_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_24_0_0() { return cConnaissancesNomParserRuleCall_24_0_0; }
- //(',' connaissances+=STRING)*
+ //(',' connaissances+=Nom)*
public Group getGroup_24_1() { return cGroup_24_1; }
//','
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_24_1_1() { return cConnaissancesAssignment_24_1_1; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_24_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_24_1_1_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_24_1_1_0() { return cConnaissancesNomParserRuleCall_24_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
@@ -1047,26 +1047,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
- //(objetsRecus+=STRING (',' objetsRecus+=STRING)*)?
+ //(objetsRecus+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_30() { return cGroup_30; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_30_0() { return cObjetsRecusAssignment_30_0; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_30_0_0() { return cObjetsRecusSTRINGTerminalRuleCall_30_0_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_30_0_0() { return cObjetsRecusNomParserRuleCall_30_0_0; }
- //(',' objetsRecus+=STRING)*
+ //(',' objetsRecus+=Nom)*
public Group getGroup_30_1() { return cGroup_30_1; }
//','
public Keyword getCommaKeyword_30_1_0() { return cCommaKeyword_30_1_0; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_30_1_1() { return cObjetsRecusAssignment_30_1_1; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_30_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_30_1_1_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_30_1_1_0() { return cObjetsRecusNomParserRuleCall_30_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_31() { return cRightSquareBracketKeyword_31; }
@@ -1083,26 +1083,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_35() { return cLeftSquareBracketKeyword_35; }
- //(objetsConso+=STRING (',' objetsConso+=STRING)*)?
+ //(objetsConso+=Nom (',' objetsConso+=Nom)*)?
public Group getGroup_36() { return cGroup_36; }
- //objetsConso+=STRING
+ //objetsConso+=Nom
public Assignment getObjetsConsoAssignment_36_0() { return cObjetsConsoAssignment_36_0; }
- //STRING
- public RuleCall getObjetsConsoSTRINGTerminalRuleCall_36_0_0() { return cObjetsConsoSTRINGTerminalRuleCall_36_0_0; }
+ //Nom
+ public RuleCall getObjetsConsoNomParserRuleCall_36_0_0() { return cObjetsConsoNomParserRuleCall_36_0_0; }
- //(',' objetsConso+=STRING)*
+ //(',' objetsConso+=Nom)*
public Group getGroup_36_1() { return cGroup_36_1; }
//','
public Keyword getCommaKeyword_36_1_0() { return cCommaKeyword_36_1_0; }
- //objetsConso+=STRING
+ //objetsConso+=Nom
public Assignment getObjetsConsoAssignment_36_1_1() { return cObjetsConsoAssignment_36_1_1; }
- //STRING
- public RuleCall getObjetsConsoSTRINGTerminalRuleCall_36_1_1_0() { return cObjetsConsoSTRINGTerminalRuleCall_36_1_1_0; }
+ //Nom
+ public RuleCall getObjetsConsoNomParserRuleCall_36_1_1_0() { return cObjetsConsoNomParserRuleCall_36_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_37() { return cRightSquareBracketKeyword_37; }
@@ -1150,7 +1150,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
+ private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cTailleKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
@@ -1176,15 +1176,15 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Objet:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"taille"' ':' taille=INT ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"nom"' ':' nom=STRING ',' '"taille"' ':' taille=INT ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':'
- //'[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
+ //'{' '"nom"' ':' nom=Nom ',' '"taille"' ':' taille=INT ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '['
+ //descriptions+=Description (',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
@@ -1196,11 +1196,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
- //nom=STRING
+ //nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
- //STRING
- public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
+ //Nom
+ public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
@@ -1282,11 +1282,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Group cGroup_8 = (Group)cGroup.eContents().get(8);
private final Assignment cObjetsInAssignment_8_0 = (Assignment)cGroup_8.eContents().get(0);
- private final RuleCall cObjetsInSTRINGTerminalRuleCall_8_0_0 = (RuleCall)cObjetsInAssignment_8_0.eContents().get(0);
+ private final RuleCall cObjetsInNomParserRuleCall_8_0_0 = (RuleCall)cObjetsInAssignment_8_0.eContents().get(0);
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
private final Assignment cObjetsInAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
- private final RuleCall cObjetsInSTRINGTerminalRuleCall_8_1_1_0 = (RuleCall)cObjetsInAssignment_8_1_1.eContents().get(0);
+ private final RuleCall cObjetsInNomParserRuleCall_8_1_1_0 = (RuleCall)cObjetsInAssignment_8_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cObjets_outKeyword_11 = (Keyword)cGroup.eContents().get(11);
@@ -1294,11 +1294,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Group cGroup_14 = (Group)cGroup.eContents().get(14);
private final Assignment cObjetsOutAssignment_14_0 = (Assignment)cGroup_14.eContents().get(0);
- private final RuleCall cObjetsOutSTRINGTerminalRuleCall_14_0_0 = (RuleCall)cObjetsOutAssignment_14_0.eContents().get(0);
+ private final RuleCall cObjetsOutNomParserRuleCall_14_0_0 = (RuleCall)cObjetsOutAssignment_14_0.eContents().get(0);
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
private final Assignment cObjetsOutAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
- private final RuleCall cObjetsOutSTRINGTerminalRuleCall_14_1_1_0 = (RuleCall)cObjetsOutAssignment_14_1_1.eContents().get(0);
+ private final RuleCall cObjetsOutNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsOutAssignment_14_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cRightCurlyBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
@@ -1306,13 +1306,13 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Transformation:
// '{'
// '"condition"' ':' condition=Condition ','
- // '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
- // '"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ','
+ // '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
+ // '"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ','
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"condition"' ':' condition=Condition ',' '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
- //'"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ',' '}'
+ //'{' '"condition"' ':' condition=Condition ',' '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
+ //'"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ',' '}'
public Group getGroup() { return cGroup; }
//'{'
@@ -1342,26 +1342,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
- //(objetsIn+=STRING (',' objetsIn+=STRING)*)?
+ //(objetsIn+=Nom (',' objetsIn+=Nom)*)?
public Group getGroup_8() { return cGroup_8; }
- //objetsIn+=STRING
+ //objetsIn+=Nom
public Assignment getObjetsInAssignment_8_0() { return cObjetsInAssignment_8_0; }
- //STRING
- public RuleCall getObjetsInSTRINGTerminalRuleCall_8_0_0() { return cObjetsInSTRINGTerminalRuleCall_8_0_0; }
+ //Nom
+ public RuleCall getObjetsInNomParserRuleCall_8_0_0() { return cObjetsInNomParserRuleCall_8_0_0; }
- //(',' objetsIn+=STRING)*
+ //(',' objetsIn+=Nom)*
public Group getGroup_8_1() { return cGroup_8_1; }
//','
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
- //objetsIn+=STRING
+ //objetsIn+=Nom
public Assignment getObjetsInAssignment_8_1_1() { return cObjetsInAssignment_8_1_1; }
- //STRING
- public RuleCall getObjetsInSTRINGTerminalRuleCall_8_1_1_0() { return cObjetsInSTRINGTerminalRuleCall_8_1_1_0; }
+ //Nom
+ public RuleCall getObjetsInNomParserRuleCall_8_1_1_0() { return cObjetsInNomParserRuleCall_8_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
@@ -1378,26 +1378,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
- //(objetsOut+=STRING (',' objetsOut+=STRING)*)?
+ //(objetsOut+=Nom (',' objetsOut+=Nom)*)?
public Group getGroup_14() { return cGroup_14; }
- //objetsOut+=STRING
+ //objetsOut+=Nom
public Assignment getObjetsOutAssignment_14_0() { return cObjetsOutAssignment_14_0; }
- //STRING
- public RuleCall getObjetsOutSTRINGTerminalRuleCall_14_0_0() { return cObjetsOutSTRINGTerminalRuleCall_14_0_0; }
+ //Nom
+ public RuleCall getObjetsOutNomParserRuleCall_14_0_0() { return cObjetsOutNomParserRuleCall_14_0_0; }
- //(',' objetsOut+=STRING)*
+ //(',' objetsOut+=Nom)*
public Group getGroup_14_1() { return cGroup_14_1; }
//','
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
- //objetsOut+=STRING
+ //objetsOut+=Nom
public Assignment getObjetsOutAssignment_14_1_1() { return cObjetsOutAssignment_14_1_1; }
- //STRING
- public RuleCall getObjetsOutSTRINGTerminalRuleCall_14_1_1_0() { return cObjetsOutSTRINGTerminalRuleCall_14_1_1_0; }
+ //Nom
+ public RuleCall getObjetsOutNomParserRuleCall_14_1_1_0() { return cObjetsOutNomParserRuleCall_14_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
@@ -1415,7 +1415,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
+ private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cVisibleKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
@@ -1436,13 +1436,13 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Connaissance:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"nom"' ':' nom=STRING ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '[' descriptions+=Description
+ //'{' '"nom"' ':' nom=Nom ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '[' descriptions+=Description
//(',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
@@ -1455,11 +1455,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
- //nom=STRING
+ //nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
- //STRING
- public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
+ //Nom
+ public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
@@ -1519,7 +1519,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
+ private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cVisibleKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
@@ -1546,14 +1546,14 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Personne:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
// '"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"nom"' ':' nom=STRING ',' '"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ','
+ //'{' '"nom"' ':' nom=Nom ',' '"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ','
//'"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']' '}'
public Group getGroup() { return cGroup; }
@@ -1566,11 +1566,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
- //nom=STRING
+ //nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
- //STRING
- public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
+ //Nom
+ public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
@@ -1655,11 +1655,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Group cGroup_8 = (Group)cGroup.eContents().get(8);
private final Assignment cConnaissancesAssignment_8_0 = (Assignment)cGroup_8.eContents().get(0);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cObjets_recusKeyword_11 = (Keyword)cGroup.eContents().get(11);
@@ -1667,11 +1667,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Group cGroup_14 = (Group)cGroup.eContents().get(14);
private final Assignment cObjetsRecusAssignment_14_0 = (Assignment)cGroup_14.eContents().get(0);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_14_0_0 = (RuleCall)cObjetsRecusAssignment_14_0.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_14_0_0 = (RuleCall)cObjetsRecusAssignment_14_0.eContents().get(0);
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_14_1_1_0 = (RuleCall)cObjetsRecusAssignment_14_1_1.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsRecusAssignment_14_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cObjets_consoKeyword_17 = (Keyword)cGroup.eContents().get(17);
@@ -1679,11 +1679,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Group cGroup_20 = (Group)cGroup.eContents().get(20);
private final Assignment cObjetsConsoAssignment_20_0 = (Assignment)cGroup_20.eContents().get(0);
- private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_20_0_0 = (RuleCall)cObjetsConsoAssignment_20_0.eContents().get(0);
+ private final RuleCall cObjetsConsoNomParserRuleCall_20_0_0 = (RuleCall)cObjetsConsoAssignment_20_0.eContents().get(0);
private final Group cGroup_20_1 = (Group)cGroup_20.eContents().get(1);
private final Keyword cCommaKeyword_20_1_0 = (Keyword)cGroup_20_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_20_1_1 = (Assignment)cGroup_20_1.eContents().get(1);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_20_1_1_0 = (RuleCall)cObjetsRecusAssignment_20_1_1.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_20_1_1_0 = (RuleCall)cObjetsRecusAssignment_20_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cCommaKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cActionsKeyword_23 = (Keyword)cGroup.eContents().get(23);
@@ -1701,17 +1701,16 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Interaction:
// '{'
// '"visible"' ':' visible=Condition ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- // '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ // '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
- //'{' '"visible"' ':' visible=Condition ',' '"connaissances"' ':' '[' (connaissances+=STRING (','
- //connaissances+=STRING)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- //'"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ',' '"actions"' ':' '[' actions+=Action
- //(',' actions+=Action)* ']' '}'
+ //'{' '"visible"' ':' visible=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
+ //',' '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ',' '"objets_conso"' ':' '['
+ //(objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ',' '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
@@ -1741,26 +1740,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
- //(connaissances+=STRING (',' connaissances+=STRING)*)?
+ //(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_8() { return cGroup_8; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_0_0() { return cConnaissancesSTRINGTerminalRuleCall_8_0_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_8_0_0() { return cConnaissancesNomParserRuleCall_8_0_0; }
- //(',' connaissances+=STRING)*
+ //(',' connaissances+=Nom)*
public Group getGroup_8_1() { return cGroup_8_1; }
//','
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_8_1_1_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_8_1_1_0() { return cConnaissancesNomParserRuleCall_8_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
@@ -1777,26 +1776,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
- //(objetsRecus+=STRING (',' objetsRecus+=STRING)*)?
+ //(objetsRecus+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_14() { return cGroup_14; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_14_0() { return cObjetsRecusAssignment_14_0; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_14_0_0() { return cObjetsRecusSTRINGTerminalRuleCall_14_0_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_14_0_0() { return cObjetsRecusNomParserRuleCall_14_0_0; }
- //(',' objetsRecus+=STRING)*
+ //(',' objetsRecus+=Nom)*
public Group getGroup_14_1() { return cGroup_14_1; }
//','
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_14_1_1() { return cObjetsRecusAssignment_14_1_1; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_14_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_14_1_1_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_14_1_1_0() { return cObjetsRecusNomParserRuleCall_14_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
@@ -1813,26 +1812,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_19() { return cLeftSquareBracketKeyword_19; }
- //(objetsConso+=STRING (',' objetsRecus+=STRING)*)?
+ //(objetsConso+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_20() { return cGroup_20; }
- //objetsConso+=STRING
+ //objetsConso+=Nom
public Assignment getObjetsConsoAssignment_20_0() { return cObjetsConsoAssignment_20_0; }
- //STRING
- public RuleCall getObjetsConsoSTRINGTerminalRuleCall_20_0_0() { return cObjetsConsoSTRINGTerminalRuleCall_20_0_0; }
+ //Nom
+ public RuleCall getObjetsConsoNomParserRuleCall_20_0_0() { return cObjetsConsoNomParserRuleCall_20_0_0; }
- //(',' objetsRecus+=STRING)*
+ //(',' objetsRecus+=Nom)*
public Group getGroup_20_1() { return cGroup_20_1; }
//','
public Keyword getCommaKeyword_20_1_0() { return cCommaKeyword_20_1_0; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_20_1_1() { return cObjetsRecusAssignment_20_1_1; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_20_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_20_1_1_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_20_1_1_0() { return cObjetsRecusNomParserRuleCall_20_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_21() { return cRightSquareBracketKeyword_21; }
@@ -1892,11 +1891,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Group cGroup_12 = (Group)cGroup.eContents().get(12);
private final Assignment cConnaissancesAssignment_12_0 = (Assignment)cGroup_12.eContents().get(0);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_12_0_0 = (RuleCall)cConnaissancesAssignment_12_0.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_12_0_0 = (RuleCall)cConnaissancesAssignment_12_0.eContents().get(0);
private final Group cGroup_12_1 = (Group)cGroup_12.eContents().get(1);
private final Keyword cCommaKeyword_12_1_0 = (Keyword)cGroup_12_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_12_1_1 = (Assignment)cGroup_12_1.eContents().get(1);
- private final RuleCall cConnaissancesSTRINGTerminalRuleCall_12_1_1_0 = (RuleCall)cConnaissancesAssignment_12_1_1.eContents().get(0);
+ private final RuleCall cConnaissancesNomParserRuleCall_12_1_1_0 = (RuleCall)cConnaissancesAssignment_12_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cCommaKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Keyword cObjets_recusKeyword_15 = (Keyword)cGroup.eContents().get(15);
@@ -1904,11 +1903,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Group cGroup_18 = (Group)cGroup.eContents().get(18);
private final Assignment cObjetsRecusAssignment_18_0 = (Assignment)cGroup_18.eContents().get(0);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_18_0_0 = (RuleCall)cObjetsRecusAssignment_18_0.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_18_0_0 = (RuleCall)cObjetsRecusAssignment_18_0.eContents().get(0);
private final Group cGroup_18_1 = (Group)cGroup_18.eContents().get(1);
private final Keyword cCommaKeyword_18_1_0 = (Keyword)cGroup_18_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_18_1_1 = (Assignment)cGroup_18_1.eContents().get(1);
- private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_18_1_1_0 = (RuleCall)cObjetsRecusAssignment_18_1_1.eContents().get(0);
+ private final RuleCall cObjetsRecusNomParserRuleCall_18_1_1_0 = (RuleCall)cObjetsRecusAssignment_18_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Keyword cCommaKeyword_20 = (Keyword)cGroup.eContents().get(20);
private final Keyword cObjets_consoKeyword_21 = (Keyword)cGroup.eContents().get(21);
@@ -1916,11 +1915,11 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final Keyword cLeftSquareBracketKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Group cGroup_24 = (Group)cGroup.eContents().get(24);
private final Assignment cObjetsConsoAssignment_24_0 = (Assignment)cGroup_24.eContents().get(0);
- private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_24_0_0 = (RuleCall)cObjetsConsoAssignment_24_0.eContents().get(0);
+ private final RuleCall cObjetsConsoNomParserRuleCall_24_0_0 = (RuleCall)cObjetsConsoAssignment_24_0.eContents().get(0);
private final Group cGroup_24_1 = (Group)cGroup_24.eContents().get(1);
private final Keyword cCommaKeyword_24_1_0 = (Keyword)cGroup_24_1.eContents().get(0);
private final Assignment cObjetsConsoAssignment_24_1_1 = (Assignment)cGroup_24_1.eContents().get(1);
- private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_24_1_1_0 = (RuleCall)cObjetsConsoAssignment_24_1_1.eContents().get(0);
+ private final RuleCall cObjetsConsoNomParserRuleCall_24_1_1_0 = (RuleCall)cObjetsConsoAssignment_24_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
private final Keyword cDescriptionsKeyword_27 = (Keyword)cGroup.eContents().get(27);
@@ -1939,16 +1938,16 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
// '{'
// '"visible"' ':' visible=Condition ','
// '"fin_interaction"' ':' finInteraction=Condition ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- // '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ // '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"visible"' ':' visible=Condition ',' '"fin_interaction"' ':' finInteraction=Condition ',' '"connaissances"' ':' '['
- //(connaissances+=STRING (',' connaissances+=STRING)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=STRING (','
- //objetsRecus+=STRING)*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ //(connaissances+=Nom (',' connaissances+=Nom)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=Nom (','
+ //objetsRecus+=Nom)*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
//'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
@@ -1994,26 +1993,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
- //(connaissances+=STRING (',' connaissances+=STRING)*)?
+ //(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_12() { return cGroup_12; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_12_0() { return cConnaissancesAssignment_12_0; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_12_0_0() { return cConnaissancesSTRINGTerminalRuleCall_12_0_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_12_0_0() { return cConnaissancesNomParserRuleCall_12_0_0; }
- //(',' connaissances+=STRING)*
+ //(',' connaissances+=Nom)*
public Group getGroup_12_1() { return cGroup_12_1; }
//','
public Keyword getCommaKeyword_12_1_0() { return cCommaKeyword_12_1_0; }
- //connaissances+=STRING
+ //connaissances+=Nom
public Assignment getConnaissancesAssignment_12_1_1() { return cConnaissancesAssignment_12_1_1; }
- //STRING
- public RuleCall getConnaissancesSTRINGTerminalRuleCall_12_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_12_1_1_0; }
+ //Nom
+ public RuleCall getConnaissancesNomParserRuleCall_12_1_1_0() { return cConnaissancesNomParserRuleCall_12_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_13() { return cRightSquareBracketKeyword_13; }
@@ -2030,26 +2029,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_17() { return cLeftSquareBracketKeyword_17; }
- //(objetsRecus+=STRING (',' objetsRecus+=STRING)*)?
+ //(objetsRecus+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_18() { return cGroup_18; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_18_0() { return cObjetsRecusAssignment_18_0; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_18_0_0() { return cObjetsRecusSTRINGTerminalRuleCall_18_0_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_18_0_0() { return cObjetsRecusNomParserRuleCall_18_0_0; }
- //(',' objetsRecus+=STRING)*
+ //(',' objetsRecus+=Nom)*
public Group getGroup_18_1() { return cGroup_18_1; }
//','
public Keyword getCommaKeyword_18_1_0() { return cCommaKeyword_18_1_0; }
- //objetsRecus+=STRING
+ //objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_18_1_1() { return cObjetsRecusAssignment_18_1_1; }
- //STRING
- public RuleCall getObjetsRecusSTRINGTerminalRuleCall_18_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_18_1_1_0; }
+ //Nom
+ public RuleCall getObjetsRecusNomParserRuleCall_18_1_1_0() { return cObjetsRecusNomParserRuleCall_18_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_19() { return cRightSquareBracketKeyword_19; }
@@ -2066,26 +2065,26 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'['
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
- //(objetsConso+=STRING (',' objetsConso+=STRING)*)?
+ //(objetsConso+=Nom (',' objetsConso+=Nom)*)?
public Group getGroup_24() { return cGroup_24; }
- //objetsConso+=STRING
+ //objetsConso+=Nom
public Assignment getObjetsConsoAssignment_24_0() { return cObjetsConsoAssignment_24_0; }
- //STRING
- public RuleCall getObjetsConsoSTRINGTerminalRuleCall_24_0_0() { return cObjetsConsoSTRINGTerminalRuleCall_24_0_0; }
+ //Nom
+ public RuleCall getObjetsConsoNomParserRuleCall_24_0_0() { return cObjetsConsoNomParserRuleCall_24_0_0; }
- //(',' objetsConso+=STRING)*
+ //(',' objetsConso+=Nom)*
public Group getGroup_24_1() { return cGroup_24_1; }
//','
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
- //objetsConso+=STRING
+ //objetsConso+=Nom
public Assignment getObjetsConsoAssignment_24_1_1() { return cObjetsConsoAssignment_24_1_1; }
- //STRING
- public RuleCall getObjetsConsoSTRINGTerminalRuleCall_24_1_1_0() { return cObjetsConsoSTRINGTerminalRuleCall_24_1_1_0; }
+ //Nom
+ public RuleCall getObjetsConsoNomParserRuleCall_24_1_1_0() { return cObjetsConsoNomParserRuleCall_24_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
@@ -2288,63 +2287,63 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
public class ConditionConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionConnaissance");
private final Assignment cConnaissanceAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cConnaissanceSTRINGTerminalRuleCall_0 = (RuleCall)cConnaissanceAssignment.eContents().get(0);
+ private final RuleCall cConnaissanceNomParserRuleCall_0 = (RuleCall)cConnaissanceAssignment.eContents().get(0);
//ConditionConnaissance:
- // connaissance=STRING;
+ // connaissance=Nom;
@Override public ParserRule getRule() { return rule; }
- //connaissance=STRING
+ //connaissance=Nom
public Assignment getConnaissanceAssignment() { return cConnaissanceAssignment; }
- //STRING
- public RuleCall getConnaissanceSTRINGTerminalRuleCall_0() { return cConnaissanceSTRINGTerminalRuleCall_0; }
+ //Nom
+ public RuleCall getConnaissanceNomParserRuleCall_0() { return cConnaissanceNomParserRuleCall_0; }
}
public class NOTConditionConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.NOTConditionConnaissance");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cExclamationMarkKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cConnaissanceAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cConnaissanceSTRINGTerminalRuleCall_1_0 = (RuleCall)cConnaissanceAssignment_1.eContents().get(0);
+ private final RuleCall cConnaissanceNomParserRuleCall_1_0 = (RuleCall)cConnaissanceAssignment_1.eContents().get(0);
//NOTConditionConnaissance:
- // '!' connaissance=STRING;
+ // '!' connaissance=Nom;
@Override public ParserRule getRule() { return rule; }
- //'!' connaissance=STRING
+ //'!' connaissance=Nom
public Group getGroup() { return cGroup; }
//'!'
public Keyword getExclamationMarkKeyword_0() { return cExclamationMarkKeyword_0; }
- //connaissance=STRING
+ //connaissance=Nom
public Assignment getConnaissanceAssignment_1() { return cConnaissanceAssignment_1; }
- //STRING
- public RuleCall getConnaissanceSTRINGTerminalRuleCall_1_0() { return cConnaissanceSTRINGTerminalRuleCall_1_0; }
+ //Nom
+ public RuleCall getConnaissanceNomParserRuleCall_1_0() { return cConnaissanceNomParserRuleCall_1_0; }
}
public class ConditionObjetElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionObjet");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cObjetAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cObjetSTRINGTerminalRuleCall_0_0 = (RuleCall)cObjetAssignment_0.eContents().get(0);
+ private final RuleCall cObjetNomParserRuleCall_0_0 = (RuleCall)cObjetAssignment_0.eContents().get(0);
private final Assignment cComparateurAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cComparateurComparateurParserRuleCall_1_0 = (RuleCall)cComparateurAssignment_1.eContents().get(0);
private final Assignment cNombreAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNombreINTTerminalRuleCall_2_0 = (RuleCall)cNombreAssignment_2.eContents().get(0);
//ConditionObjet:
- // objet=STRING comparateur=Comparateur nombre=INT;
+ // objet=Nom comparateur=Comparateur nombre=INT;
@Override public ParserRule getRule() { return rule; }
- //objet=STRING comparateur=Comparateur nombre=INT
+ //objet=Nom comparateur=Comparateur nombre=INT
public Group getGroup() { return cGroup; }
- //objet=STRING
+ //objet=Nom
public Assignment getObjetAssignment_0() { return cObjetAssignment_0; }
- //STRING
- public RuleCall getObjetSTRINGTerminalRuleCall_0_0() { return cObjetSTRINGTerminalRuleCall_0_0; }
+ //Nom
+ public RuleCall getObjetNomParserRuleCall_0_0() { return cObjetNomParserRuleCall_0_0; }
//comparateur=Comparateur
public Assignment getComparateurAssignment_1() { return cComparateurAssignment_1; }
@@ -2393,6 +2392,21 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//'!='
public Keyword getExclamationMarkEqualsSignKeyword_5() { return cExclamationMarkEqualsSignKeyword_5; }
}
+ public class NomElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Nom");
+ private final Assignment cNomAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cNomSTRINGTerminalRuleCall_0 = (RuleCall)cNomAssignment.eContents().get(0);
+
+ //Nom:
+ // nom=STRING;
+ @Override public ParserRule getRule() { return rule; }
+
+ //nom=STRING
+ public Assignment getNomAssignment() { return cNomAssignment; }
+
+ //STRING
+ public RuleCall getNomSTRINGTerminalRuleCall_0() { return cNomSTRINGTerminalRuleCall_0; }
+ }
private final JeuElements pJeu;
@@ -2414,6 +2428,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
private final NOTConditionConnaissanceElements pNOTConditionConnaissance;
private final ConditionObjetElements pConditionObjet;
private final ComparateurElements pComparateur;
+ private final NomElements pNom;
private final Grammar grammar;
@@ -2443,6 +2458,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
this.pNOTConditionConnaissance = new NOTConditionConnaissanceElements();
this.pConditionObjet = new ConditionObjetElements();
this.pComparateur = new ComparateurElements();
+ this.pNom = new NomElements();
}
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
@@ -2493,8 +2509,8 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Explorateur:
// '{'
// '"taille"' ':' tailleInventaire=INT ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']'
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
// '}';
public ExplorateurElements getExplorateurAccess() {
return pExplorateur;
@@ -2519,14 +2535,14 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Lieu:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"deposable"' ':' deposable=Condition ','
// '"depart"' ':' depart=Condition ','
// '"fin"' ':' fin=Condition ','
- // '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ','
+ // '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
- // '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']'
+ // '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
// '}';
public LieuElements getLieuAccess() {
return pLieu;
@@ -2538,14 +2554,14 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Chemin:
// '{'
- // '"lieu_in"' ':' lieuIn=STRING ','
- // '"lieu_out"' ':' lieuOut=STRING ','
+ // '"lieu_in"' ':' lieuIn=Nom ','
+ // '"lieu_out"' ':' lieuOut=Nom ','
// '"ouvert"' ':' ouvert=Condition ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- // '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ // '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
public CheminElements getCheminAccess() {
@@ -2558,7 +2574,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Objet:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"taille"' ':' taille=INT ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
@@ -2574,8 +2590,8 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Transformation:
// '{'
// '"condition"' ':' condition=Condition ','
- // '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
- // '"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ','
+ // '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
+ // '"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ','
// '}';
public TransformationElements getTransformationAccess() {
return pTransformation;
@@ -2587,7 +2603,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Connaissance:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@@ -2601,7 +2617,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Personne:
// '{'
- // '"nom"' ':' nom=STRING ','
+ // '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
// '"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
@@ -2617,9 +2633,9 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
//Interaction:
// '{'
// '"visible"' ':' visible=Condition ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- // '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ // '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
// '}';
public InteractionElements getInteractionAccess() {
@@ -2634,9 +2650,9 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
// '{'
// '"visible"' ':' visible=Condition ','
// '"fin_interaction"' ':' finInteraction=Condition ','
- // '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- // '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- // '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ // '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ // '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ // '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
public ActionElements getActionAccess() {
@@ -2691,7 +2707,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
}
//ConditionConnaissance:
- // connaissance=STRING;
+ // connaissance=Nom;
public ConditionConnaissanceElements getConditionConnaissanceAccess() {
return pConditionConnaissance;
}
@@ -2701,7 +2717,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
}
//NOTConditionConnaissance:
- // '!' connaissance=STRING;
+ // '!' connaissance=Nom;
public NOTConditionConnaissanceElements getNOTConditionConnaissanceAccess() {
return pNOTConditionConnaissance;
}
@@ -2711,7 +2727,7 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
}
//ConditionObjet:
- // objet=STRING comparateur=Comparateur nombre=INT;
+ // objet=Nom comparateur=Comparateur nombre=INT;
public ConditionObjetElements getConditionObjetAccess() {
return pConditionObjet;
}
@@ -2730,6 +2746,16 @@ public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElem
return getComparateurAccess().getRule();
}
+ //Nom:
+ // nom=STRING;
+ public NomElements getNomAccess() {
+ return pNom;
+ }
+
+ public ParserRule getNomRule() {
+ return getNomAccess().getRule();
+ }
+
//terminal ID:
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
public TerminalRule getIDRule() {
diff --git a/workspace/fr.n7.xtext.game/src/fr/n7/xtext/GAME.xtext b/workspace/fr.n7.xtext.game/src/fr/n7/xtext/GAME.xtext
index dd2ee13..99e4d60 100644
--- a/workspace/fr.n7.xtext.game/src/fr/n7/xtext/GAME.xtext
+++ b/workspace/fr.n7.xtext.game/src/fr/n7/xtext/GAME.xtext
@@ -18,8 +18,8 @@ Jeu:
Explorateur:
'{'
'"taille"' ':' tailleInventaire=INT ','
- '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']'
+ '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
'}'
;
@@ -32,34 +32,34 @@ Territoire:
Lieu:
'{'
- '"nom"' ':' nom=STRING ','
+ '"nom"' ':' nom=Nom ','
'"deposable"' ':' deposable=Condition ','
'"depart"' ':' depart=Condition ','
'"fin"' ':' fin=Condition ','
- '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ','
+ '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ','
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
- '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' ','
- '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']'
+ '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' ','
+ '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
'}'
;
Chemin:
'{'
- '"lieu_in"' ':' lieuIn=STRING ','
- '"lieu_out"' ':' lieuOut=STRING ','
+ '"lieu_in"' ':' lieuIn=Nom ','
+ '"lieu_out"' ':' lieuOut=Nom ','
'"ouvert"' ':' ouvert=Condition ','
'"visible"' ':' visible=Condition ','
'"obligatoire"' ':' obligatoire=Condition ','
- '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
'}'
;
Objet:
'{'
- '"nom"' ':' nom=STRING ','
+ '"nom"' ':' nom=Nom ','
'"taille"' ':' taille=INT ','
'"visible"' ':' visible=Condition ','
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
@@ -69,14 +69,14 @@ Objet:
Transformation:
'{'
'"condition"' ':' condition=Condition ','
- '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
- '"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ','
+ '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
+ '"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ','
'}'
;
Connaissance:
'{'
- '"nom"' ':' nom=STRING ','
+ '"nom"' ':' nom=Nom ','
'"visible"' ':' visible=Condition ','
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
'}'
@@ -84,7 +84,7 @@ Connaissance:
Personne:
'{'
- '"nom"' ':' nom=STRING ','
+ '"nom"' ':' nom=Nom ','
'"visible"' ':' visible=Condition ','
'"obligatoire"' ':' obligatoire=Condition ','
'"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
@@ -94,9 +94,9 @@ Personne:
Interaction:
'{'
'"visible"' ':' visible=Condition ','
- '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ','
+ '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ','
'"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
'}'
;
@@ -105,9 +105,9 @@ Action:
'{'
'"visible"' ':' visible=Condition ','
'"fin_interaction"' ':' finInteraction=Condition ','
- '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
- '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
- '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
+ '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
+ '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
+ '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
'}'
;
@@ -132,17 +132,21 @@ ConditionTest:
;
ConditionConnaissance:
- connaissance=STRING
+ connaissance=Nom
;
NOTConditionConnaissance:
- '!' connaissance=STRING
+ '!' connaissance=Nom
;
ConditionObjet:
- objet=STRING comparateur=Comparateur nombre=INT
+ objet=Nom comparateur=Comparateur nombre=INT
;
Comparateur:
'<' | '>' | '==' | '<=' | '>=' | '!='
;
+
+Nom:
+ nom=STRING
+;
diff --git a/workspace/fr.n7.xtext.game/xtend-gen/fr/n7/xtext/generator/.GAMEGenerator.xtendbin b/workspace/fr.n7.xtext.game/xtend-gen/fr/n7/xtext/generator/.GAMEGenerator.xtendbin
index 7084cb4..c969bcc 100644
Binary files a/workspace/fr.n7.xtext.game/xtend-gen/fr/n7/xtext/generator/.GAMEGenerator.xtendbin and b/workspace/fr.n7.xtext.game/xtend-gen/fr/n7/xtext/generator/.GAMEGenerator.xtendbin differ