2021-12-03 07:36:23 +00:00
|
|
|
/*
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
2021-12-03 10:28:42 +00:00
|
|
|
package fr.n7.xtext.services;
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
import com.google.inject.Inject;
|
|
|
|
import com.google.inject.Singleton;
|
|
|
|
import java.util.List;
|
|
|
|
import org.eclipse.xtext.Alternatives;
|
|
|
|
import org.eclipse.xtext.Assignment;
|
|
|
|
import org.eclipse.xtext.Grammar;
|
|
|
|
import org.eclipse.xtext.GrammarUtil;
|
|
|
|
import org.eclipse.xtext.Group;
|
|
|
|
import org.eclipse.xtext.Keyword;
|
|
|
|
import org.eclipse.xtext.ParserRule;
|
|
|
|
import org.eclipse.xtext.RuleCall;
|
|
|
|
import org.eclipse.xtext.TerminalRule;
|
|
|
|
import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
|
|
|
|
import org.eclipse.xtext.service.AbstractElementFinder;
|
|
|
|
import org.eclipse.xtext.service.GrammarProvider;
|
|
|
|
|
|
|
|
@Singleton
|
2021-12-03 07:37:31 +00:00
|
|
|
public class GAMEGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder {
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
public class JeuElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Jeu");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Keyword cExplorateurKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
private final Assignment cExplorateurAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
|
|
|
private final RuleCall cExplorateurExplorateurParserRuleCall_3_0 = (RuleCall)cExplorateurAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cTerritoireKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
private final Assignment cTerritoireAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cTerritoireTerritoireParserRuleCall_7_0 = (RuleCall)cTerritoireAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cObjetsKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_12 = (Group)cGroup.eContents().get(12);
|
|
|
|
private final Assignment cObjetsAssignment_12_0 = (Assignment)cGroup_12.eContents().get(0);
|
|
|
|
private final RuleCall cObjetsObjetParserRuleCall_12_0_0 = (RuleCall)cObjetsAssignment_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 cObjetsAssignment_12_1_1 = (Assignment)cGroup_12_1.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsObjetParserRuleCall_12_1_1_0 = (RuleCall)cObjetsAssignment_12_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cCommaKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Keyword cConnaissancesKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Keyword cColonKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_18 = (Group)cGroup.eContents().get(18);
|
|
|
|
private final Assignment cConnaissancesAssignment_18_0 = (Assignment)cGroup_18.eContents().get(0);
|
|
|
|
private final RuleCall cConnaissancesConnaissanceParserRuleCall_18_0_0 = (RuleCall)cConnaissancesAssignment_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 cConnaissancesAssignment_18_1_1 = (Assignment)cGroup_18_1.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissancesConnaissanceParserRuleCall_18_1_1_0 = (RuleCall)cConnaissancesAssignment_18_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
|
|
|
|
private final Keyword cCommaKeyword_20 = (Keyword)cGroup.eContents().get(20);
|
|
|
|
private final Keyword cPersonnesKeyword_21 = (Keyword)cGroup.eContents().get(21);
|
|
|
|
private final Keyword cColonKeyword_22 = (Keyword)cGroup.eContents().get(22);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_23 = (Keyword)cGroup.eContents().get(23);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_24 = (Group)cGroup.eContents().get(24);
|
|
|
|
private final Assignment cPersonnesAssignment_24_0 = (Assignment)cGroup_24.eContents().get(0);
|
|
|
|
private final RuleCall cPersonnesPersonneParserRuleCall_24_0_0 = (RuleCall)cPersonnesAssignment_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 cPersonnesAssignment_24_1_1 = (Assignment)cGroup_24_1.eContents().get(1);
|
|
|
|
private final RuleCall cPersonnesPersonneParserRuleCall_24_1_1_0 = (RuleCall)cPersonnesAssignment_24_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
|
|
|
|
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
|
|
|
|
private final Keyword cTransformationsKeyword_27 = (Keyword)cGroup.eContents().get(27);
|
|
|
|
private final Keyword cColonKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_30 = (Group)cGroup.eContents().get(30);
|
|
|
|
private final Assignment cTransformationsAssignment_30_0 = (Assignment)cGroup_30.eContents().get(0);
|
|
|
|
private final RuleCall cTransformationsTransformationParserRuleCall_30_0_0 = (RuleCall)cTransformationsAssignment_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 cTransformationsAssignment_30_1_1 = (Assignment)cGroup_30_1.eContents().get(1);
|
|
|
|
private final RuleCall cTransformationsTransformationParserRuleCall_30_1_1_0 = (RuleCall)cTransformationsAssignment_30_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_31 = (Keyword)cGroup.eContents().get(31);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_32 = (Keyword)cGroup.eContents().get(32);
|
|
|
|
|
|
|
|
//// https://gist.github.com/nightscape/629651
|
|
|
|
//Jeu:
|
|
|
|
// '{'
|
|
|
|
// '"Explorateur"' ':' explorateur=Explorateur ','
|
|
|
|
// '"Territoire"' ':' territoire=Territoire ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"Objets"' ':' '[' (objets+=Objet (',' objets+=Objet)*)? ']' ','
|
|
|
|
// '"Connaissances"' ':' '[' (connaissances+=Connaissance (',' connaissances+=Connaissance)*)? ']' ','
|
|
|
|
// '"Personnes"' ':' '[' (personnes+=Personne (',' personnes+=Personne)*)? ']' ','
|
|
|
|
// '"Transformations"' ':' '[' (transformations+=Transformation (',' transformations+=Transformation)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"Explorateur"' ':' explorateur=Explorateur ',' '"Territoire"' ':' territoire=Territoire ',' '"Objets"' ':' '['
|
2021-12-03 08:38:29 +00:00
|
|
|
//(objets+=Objet (',' objets+=Objet)*)? ']' ',' '"Connaissances"' ':' '[' (connaissances+=Connaissance (','
|
|
|
|
//connaissances+=Connaissance)*)? ']' ',' '"Personnes"' ':' '[' (personnes+=Personne (',' personnes+=Personne)*)? ']' ','
|
|
|
|
//'"Transformations"' ':' '[' (transformations+=Transformation (',' transformations+=Transformation)*)? ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"Explorateur"'
|
|
|
|
public Keyword getExplorateurKeyword_1() { return cExplorateurKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//explorateur=Explorateur
|
|
|
|
public Assignment getExplorateurAssignment_3() { return cExplorateurAssignment_3; }
|
|
|
|
|
|
|
|
//Explorateur
|
|
|
|
public RuleCall getExplorateurExplorateurParserRuleCall_3_0() { return cExplorateurExplorateurParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"Territoire"'
|
|
|
|
public Keyword getTerritoireKeyword_5() { return cTerritoireKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//territoire=Territoire
|
|
|
|
public Assignment getTerritoireAssignment_7() { return cTerritoireAssignment_7; }
|
|
|
|
|
|
|
|
//Territoire
|
|
|
|
public RuleCall getTerritoireTerritoireParserRuleCall_7_0() { return cTerritoireTerritoireParserRuleCall_7_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
|
|
|
|
|
|
|
//'"Objets"'
|
|
|
|
public Keyword getObjetsKeyword_9() { return cObjetsKeyword_9; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(objets+=Objet (',' objets+=Objet)*)?
|
|
|
|
public Group getGroup_12() { return cGroup_12; }
|
|
|
|
|
|
|
|
//objets+=Objet
|
|
|
|
public Assignment getObjetsAssignment_12_0() { return cObjetsAssignment_12_0; }
|
|
|
|
|
|
|
|
//Objet
|
|
|
|
public RuleCall getObjetsObjetParserRuleCall_12_0_0() { return cObjetsObjetParserRuleCall_12_0_0; }
|
|
|
|
|
|
|
|
//(',' objets+=Objet)*
|
|
|
|
public Group getGroup_12_1() { return cGroup_12_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_12_1_0() { return cCommaKeyword_12_1_0; }
|
|
|
|
|
|
|
|
//objets+=Objet
|
|
|
|
public Assignment getObjetsAssignment_12_1_1() { return cObjetsAssignment_12_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Objet
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getObjetsObjetParserRuleCall_12_1_1_0() { return cObjetsObjetParserRuleCall_12_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_13() { return cRightSquareBracketKeyword_13; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_14() { return cCommaKeyword_14; }
|
|
|
|
|
|
|
|
//'"Connaissances"'
|
|
|
|
public Keyword getConnaissancesKeyword_15() { return cConnaissancesKeyword_15; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_16() { return cColonKeyword_16; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_17() { return cLeftSquareBracketKeyword_17; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(connaissances+=Connaissance (',' connaissances+=Connaissance)*)?
|
|
|
|
public Group getGroup_18() { return cGroup_18; }
|
|
|
|
|
|
|
|
//connaissances+=Connaissance
|
|
|
|
public Assignment getConnaissancesAssignment_18_0() { return cConnaissancesAssignment_18_0; }
|
|
|
|
|
|
|
|
//Connaissance
|
|
|
|
public RuleCall getConnaissancesConnaissanceParserRuleCall_18_0_0() { return cConnaissancesConnaissanceParserRuleCall_18_0_0; }
|
|
|
|
|
|
|
|
//(',' connaissances+=Connaissance)*
|
|
|
|
public Group getGroup_18_1() { return cGroup_18_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_18_1_0() { return cCommaKeyword_18_1_0; }
|
|
|
|
|
|
|
|
//connaissances+=Connaissance
|
|
|
|
public Assignment getConnaissancesAssignment_18_1_1() { return cConnaissancesAssignment_18_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Connaissance
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getConnaissancesConnaissanceParserRuleCall_18_1_1_0() { return cConnaissancesConnaissanceParserRuleCall_18_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_19() { return cRightSquareBracketKeyword_19; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_20() { return cCommaKeyword_20; }
|
|
|
|
|
|
|
|
//'"Personnes"'
|
|
|
|
public Keyword getPersonnesKeyword_21() { return cPersonnesKeyword_21; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_22() { return cColonKeyword_22; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(personnes+=Personne (',' personnes+=Personne)*)?
|
|
|
|
public Group getGroup_24() { return cGroup_24; }
|
|
|
|
|
|
|
|
//personnes+=Personne
|
|
|
|
public Assignment getPersonnesAssignment_24_0() { return cPersonnesAssignment_24_0; }
|
|
|
|
|
|
|
|
//Personne
|
|
|
|
public RuleCall getPersonnesPersonneParserRuleCall_24_0_0() { return cPersonnesPersonneParserRuleCall_24_0_0; }
|
|
|
|
|
|
|
|
//(',' personnes+=Personne)*
|
|
|
|
public Group getGroup_24_1() { return cGroup_24_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
|
|
|
|
|
|
|
|
//personnes+=Personne
|
|
|
|
public Assignment getPersonnesAssignment_24_1_1() { return cPersonnesAssignment_24_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Personne
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getPersonnesPersonneParserRuleCall_24_1_1_0() { return cPersonnesPersonneParserRuleCall_24_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_26() { return cCommaKeyword_26; }
|
|
|
|
|
|
|
|
//'"Transformations"'
|
|
|
|
public Keyword getTransformationsKeyword_27() { return cTransformationsKeyword_27; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_28() { return cColonKeyword_28; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(transformations+=Transformation (',' transformations+=Transformation)*)?
|
|
|
|
public Group getGroup_30() { return cGroup_30; }
|
|
|
|
|
|
|
|
//transformations+=Transformation
|
|
|
|
public Assignment getTransformationsAssignment_30_0() { return cTransformationsAssignment_30_0; }
|
|
|
|
|
|
|
|
//Transformation
|
|
|
|
public RuleCall getTransformationsTransformationParserRuleCall_30_0_0() { return cTransformationsTransformationParserRuleCall_30_0_0; }
|
|
|
|
|
|
|
|
//(',' transformations+=Transformation)*
|
|
|
|
public Group getGroup_30_1() { return cGroup_30_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_30_1_0() { return cCommaKeyword_30_1_0; }
|
|
|
|
|
|
|
|
//transformations+=Transformation
|
|
|
|
public Assignment getTransformationsAssignment_30_1_1() { return cTransformationsAssignment_30_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Transformation
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getTransformationsTransformationParserRuleCall_30_1_1_0() { return cTransformationsTransformationParserRuleCall_30_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_31() { return cRightSquareBracketKeyword_31; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_32() { return cRightCurlyBracketKeyword_32; }
|
|
|
|
}
|
|
|
|
public class ExplorateurElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Explorateur");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Keyword cTailleKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
private final Assignment cTailleInventaireAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
|
|
|
private final RuleCall cTailleInventaireINTTerminalRuleCall_3_0 = (RuleCall)cTailleInventaireAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cConnaissancesKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsSTRINGTerminalRuleCall_14_0_0 = (RuleCall)cObjetsAssignment_14_0.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsSTRINGTerminalRuleCall_14_1_1_0 = (RuleCall)cObjetsAssignment_14_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
|
|
|
|
//Explorateur:
|
|
|
|
// '{'
|
|
|
|
// '"taille"' ':' tailleInventaire=INT ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"taille"' ':' tailleInventaire=INT ',' '"connaissances"' ':' '[' (connaissances+=STRING (','
|
|
|
|
//connaissances+=STRING)*)? ']' ',' '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"taille"'
|
|
|
|
public Keyword getTailleKeyword_1() { return cTailleKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//tailleInventaire=INT
|
|
|
|
public Assignment getTailleInventaireAssignment_3() { return cTailleInventaireAssignment_3; }
|
|
|
|
|
|
|
|
//INT
|
|
|
|
public RuleCall getTailleInventaireINTTerminalRuleCall_3_0() { return cTailleInventaireINTTerminalRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"connaissances"'
|
|
|
|
public Keyword getConnaissancesKeyword_5() { return cConnaissancesKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_8() { return cGroup_8; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_0_0() { return cConnaissancesSTRINGTerminalRuleCall_8_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' connaissances+=STRING)*
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_8_1() { return cGroup_8_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_8_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_10() { return cCommaKeyword_10; }
|
|
|
|
|
|
|
|
//'"objets"'
|
|
|
|
public Keyword getObjetsKeyword_11() { return cObjetsKeyword_11; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_12() { return cColonKeyword_12; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objets+=STRING (',' objets+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_14() { return cGroup_14; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objets+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsAssignment_14_0() { return cObjetsAssignment_14_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsSTRINGTerminalRuleCall_14_0_0() { return cObjetsSTRINGTerminalRuleCall_14_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objets+=STRING)*
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_14_1() { return cGroup_14_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objets+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsAssignment_14_1_1() { return cObjetsAssignment_14_1_1; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsSTRINGTerminalRuleCall_14_1_1_0() { return cObjetsSTRINGTerminalRuleCall_14_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_16() { return cRightCurlyBracketKeyword_16; }
|
|
|
|
}
|
|
|
|
public class TerritoireElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Territoire");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Keyword cLieuxKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
|
|
|
|
private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
|
|
|
|
private final Assignment cLieuxAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0);
|
|
|
|
private final RuleCall cLieuxLieuParserRuleCall_4_0_0 = (RuleCall)cLieuxAssignment_4_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_4_1 = (Group)cGroup_4.eContents().get(1);
|
|
|
|
private final Keyword cCommaKeyword_4_1_0 = (Keyword)cGroup_4_1.eContents().get(0);
|
|
|
|
private final Assignment cLieuxAssignment_4_1_1 = (Assignment)cGroup_4_1.eContents().get(1);
|
|
|
|
private final RuleCall cLieuxLieuParserRuleCall_4_1_1_0 = (RuleCall)cLieuxAssignment_4_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cCommaKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
private final Keyword cCheminsKeyword_7 = (Keyword)cGroup.eContents().get(7);
|
|
|
|
private final Keyword cColonKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Group cGroup_10 = (Group)cGroup.eContents().get(10);
|
|
|
|
private final Assignment cCheminsAssignment_10_0 = (Assignment)cGroup_10.eContents().get(0);
|
|
|
|
private final RuleCall cCheminsCheminParserRuleCall_10_0_0 = (RuleCall)cCheminsAssignment_10_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_10_1 = (Group)cGroup_10.eContents().get(1);
|
|
|
|
private final Keyword cCommaKeyword_10_1_0 = (Keyword)cGroup_10_1.eContents().get(0);
|
|
|
|
private final Assignment cCheminsAssignment_10_1_1 = (Assignment)cGroup_10_1.eContents().get(1);
|
|
|
|
private final RuleCall cCheminsCheminParserRuleCall_10_1_1_0 = (RuleCall)cCheminsAssignment_10_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
|
|
|
|
//Territoire:
|
|
|
|
// '{'
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"Lieux"' ':' '[' (lieux+=Lieu (',' lieux+=Lieu)*)? ']' ','
|
|
|
|
// '"Chemins"' ':' '[' (chemins+=Chemin (',' chemins+=Chemin)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//'{' '"Lieux"' ':' '[' (lieux+=Lieu (',' lieux+=Lieu)*)? ']' ',' '"Chemins"' ':' '[' (chemins+=Chemin (','
|
|
|
|
//chemins+=Chemin)*)? ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"Lieux"'
|
|
|
|
public Keyword getLieuxKeyword_1() { return cLieuxKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_3() { return cLeftSquareBracketKeyword_3; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(lieux+=Lieu (',' lieux+=Lieu)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_4() { return cGroup_4; }
|
|
|
|
|
|
|
|
//lieux+=Lieu
|
|
|
|
public Assignment getLieuxAssignment_4_0() { return cLieuxAssignment_4_0; }
|
|
|
|
|
|
|
|
//Lieu
|
|
|
|
public RuleCall getLieuxLieuParserRuleCall_4_0_0() { return cLieuxLieuParserRuleCall_4_0_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' lieux+=Lieu)*
|
|
|
|
public Group getGroup_4_1() { return cGroup_4_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4_1_0() { return cCommaKeyword_4_1_0; }
|
|
|
|
|
|
|
|
//lieux+=Lieu
|
|
|
|
public Assignment getLieuxAssignment_4_1_1() { return cLieuxAssignment_4_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Lieu
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getLieuxLieuParserRuleCall_4_1_1_0() { return cLieuxLieuParserRuleCall_4_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_5() { return cRightSquareBracketKeyword_5; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_6() { return cCommaKeyword_6; }
|
|
|
|
|
|
|
|
//'"Chemins"'
|
|
|
|
public Keyword getCheminsKeyword_7() { return cCheminsKeyword_7; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_8() { return cColonKeyword_8; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_9() { return cLeftSquareBracketKeyword_9; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(chemins+=Chemin (',' chemins+=Chemin)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_10() { return cGroup_10; }
|
|
|
|
|
|
|
|
//chemins+=Chemin
|
|
|
|
public Assignment getCheminsAssignment_10_0() { return cCheminsAssignment_10_0; }
|
|
|
|
|
|
|
|
//Chemin
|
|
|
|
public RuleCall getCheminsCheminParserRuleCall_10_0_0() { return cCheminsCheminParserRuleCall_10_0_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' chemins+=Chemin)*
|
|
|
|
public Group getGroup_10_1() { return cGroup_10_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_10_1_0() { return cCommaKeyword_10_1_0; }
|
|
|
|
|
|
|
|
//chemins+=Chemin
|
|
|
|
public Assignment getCheminsAssignment_10_1_1() { return cCheminsAssignment_10_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Chemin
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getCheminsCheminParserRuleCall_10_1_1_0() { return cCheminsCheminParserRuleCall_10_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_11() { return cRightSquareBracketKeyword_11; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_12() { return cRightCurlyBracketKeyword_12; }
|
|
|
|
}
|
|
|
|
public class LieuElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Lieu");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Assignment cDeposableAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cDeposableConditionParserRuleCall_7_0 = (RuleCall)cDeposableAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cDepartKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Assignment cDepartAssignment_11 = (Assignment)cGroup.eContents().get(11);
|
|
|
|
private final RuleCall cDepartConditionParserRuleCall_11_0 = (RuleCall)cDepartAssignment_11.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
private final Keyword cFinKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Assignment cFinAssignment_15 = (Assignment)cGroup.eContents().get(15);
|
|
|
|
private final RuleCall cFinConditionParserRuleCall_15_0 = (RuleCall)cFinAssignment_15.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
private final Keyword cPersonnesKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cColonKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
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);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final RuleCall cPersonnesSTRINGTerminalRuleCall_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);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_24 = (Keyword)cGroup.eContents().get(24);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
|
|
|
|
private final Assignment cDescriptionsAssignment_26 = (Assignment)cGroup.eContents().get(26);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_26_0 = (RuleCall)cDescriptionsAssignment_26.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_27 = (Group)cGroup.eContents().get(27);
|
|
|
|
private final Keyword cCommaKeyword_27_0 = (Keyword)cGroup_27.eContents().get(0);
|
|
|
|
private final Assignment cDescriptionsAssignment_27_1 = (Assignment)cGroup_27.eContents().get(1);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_27_1_0 = (RuleCall)cDescriptionsAssignment_27_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
|
|
|
private final Keyword cCommaKeyword_29 = (Keyword)cGroup.eContents().get(29);
|
|
|
|
private final Keyword cObjetsKeyword_30 = (Keyword)cGroup.eContents().get(30);
|
|
|
|
private final Keyword cColonKeyword_31 = (Keyword)cGroup.eContents().get(31);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsSTRINGTerminalRuleCall_33_0_0 = (RuleCall)cObjetsAssignment_33_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsSTRINGTerminalRuleCall_33_1_1_0 = (RuleCall)cObjetsAssignment_33_1_1.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_37 = (Keyword)cGroup.eContents().get(37);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_39_0_0 = (RuleCall)cConnaissancesAssignment_39_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_39_1_1_0 = (RuleCall)cConnaissancesAssignment_39_1_1.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_40 = (Keyword)cGroup.eContents().get(40);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_41 = (Keyword)cGroup.eContents().get(41);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Lieu:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"deposable"' ':' deposable=Condition ','
|
|
|
|
// '"depart"' ':' depart=Condition ','
|
|
|
|
// '"fin"' ':' fin=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"nom"' ':' nom=STRING ',' '"deposable"' ':' deposable=Condition ',' '"depart"' ':' depart=Condition ',' '"fin"' ':'
|
2021-12-03 08:38:29 +00:00
|
|
|
//fin=Condition ',' '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ',' '"descriptions"' ':' '['
|
2021-12-03 09:02:04 +00:00
|
|
|
//descriptions+=Description (',' descriptions+=Description)* ']' ',' '"objets"' ':' '[' (objets+=STRING (','
|
|
|
|
//objets+=STRING)*)? ']' ',' '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"nom"'
|
|
|
|
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//nom=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"deposable"'
|
|
|
|
public Keyword getDeposableKeyword_5() { return cDeposableKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//deposable=Condition
|
|
|
|
public Assignment getDeposableAssignment_7() { return cDeposableAssignment_7; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getDeposableConditionParserRuleCall_7_0() { return cDeposableConditionParserRuleCall_7_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
|
|
|
|
|
|
|
//'"depart"'
|
|
|
|
public Keyword getDepartKeyword_9() { return cDepartKeyword_9; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
|
|
|
|
|
|
|
//depart=Condition
|
|
|
|
public Assignment getDepartAssignment_11() { return cDepartAssignment_11; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getDepartConditionParserRuleCall_11_0() { return cDepartConditionParserRuleCall_11_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
|
|
|
|
|
|
|
|
//'"fin"'
|
|
|
|
public Keyword getFinKeyword_13() { return cFinKeyword_13; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
|
|
|
|
|
|
|
|
//fin=Condition
|
|
|
|
public Assignment getFinAssignment_15() { return cFinAssignment_15; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getFinConditionParserRuleCall_15_0() { return cFinConditionParserRuleCall_15_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
|
|
|
|
|
|
|
|
//'"personnes"'
|
|
|
|
public Keyword getPersonnesKeyword_17() { return cPersonnesKeyword_17; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_18() { return cColonKeyword_18; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_19() { return cLeftSquareBracketKeyword_19; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(personnes+=STRING (',' personnes+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_20() { return cGroup_20; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//personnes+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getPersonnesAssignment_20_0() { return cPersonnesAssignment_20_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getPersonnesSTRINGTerminalRuleCall_20_0_0() { return cPersonnesSTRINGTerminalRuleCall_20_0_0; }
|
|
|
|
|
|
|
|
//(',' personnes+=STRING)*
|
|
|
|
public Group getGroup_20_1() { return cGroup_20_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_20_1_0() { return cCommaKeyword_20_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//personnes+=STRING
|
|
|
|
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; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_21() { return cRightSquareBracketKeyword_21; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_22() { return cCommaKeyword_22; }
|
|
|
|
|
|
|
|
//'"descriptions"'
|
|
|
|
public Keyword getDescriptionsKeyword_23() { return cDescriptionsKeyword_23; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_24() { return cColonKeyword_24; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_25() { return cLeftSquareBracketKeyword_25; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//descriptions+=Description
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getDescriptionsAssignment_26() { return cDescriptionsAssignment_26; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_26_0() { return cDescriptionsDescriptionParserRuleCall_26_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' descriptions+=Description)*
|
|
|
|
public Group getGroup_27() { return cGroup_27; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_27_0() { return cCommaKeyword_27_0; }
|
|
|
|
|
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_27_1() { return cDescriptionsAssignment_27_1; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_27_1_0() { return cDescriptionsDescriptionParserRuleCall_27_1_0; }
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_28() { return cRightSquareBracketKeyword_28; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getCommaKeyword_29() { return cCommaKeyword_29; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'"objets"'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getObjetsKeyword_30() { return cObjetsKeyword_30; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getColonKeyword_31() { return cColonKeyword_31; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'['
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getLeftSquareBracketKeyword_32() { return cLeftSquareBracketKeyword_32; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objets+=STRING (',' objets+=STRING)*)?
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_33() { return cGroup_33; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objets+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsAssignment_33_0() { return cObjetsAssignment_33_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsSTRINGTerminalRuleCall_33_0_0() { return cObjetsSTRINGTerminalRuleCall_33_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objets+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_33_1() { return cGroup_33_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_33_1_0() { return cCommaKeyword_33_1_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objets+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsAssignment_33_1_1() { return cObjetsAssignment_33_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsSTRINGTerminalRuleCall_33_1_1_0() { return cObjetsSTRINGTerminalRuleCall_33_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_34() { return cRightSquareBracketKeyword_34; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getCommaKeyword_35() { return cCommaKeyword_35; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'"connaissances"'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getConnaissancesKeyword_36() { return cConnaissancesKeyword_36; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getColonKeyword_37() { return cColonKeyword_37; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'['
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getLeftSquareBracketKeyword_38() { return cLeftSquareBracketKeyword_38; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)?
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_39() { return cGroup_39; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConnaissancesAssignment_39_0() { return cConnaissancesAssignment_39_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_39_0_0() { return cConnaissancesSTRINGTerminalRuleCall_39_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' connaissances+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_39_1() { return cGroup_39_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_39_1_0() { return cCommaKeyword_39_1_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConnaissancesAssignment_39_1_1() { return cConnaissancesAssignment_39_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_39_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_39_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_40() { return cRightSquareBracketKeyword_40; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'}'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightCurlyBracketKeyword_41() { return cRightCurlyBracketKeyword_41; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class CheminElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Chemin");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
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);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final RuleCall cLieuInSTRINGTerminalRuleCall_3_0 = (RuleCall)cLieuInAssignment_3.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final RuleCall cLieuOutSTRINGTerminalRuleCall_7_0 = (RuleCall)cLieuOutAssignment_7.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Assignment cOuvertAssignment_11 = (Assignment)cGroup.eContents().get(11);
|
|
|
|
private final RuleCall cOuvertConditionParserRuleCall_11_0 = (RuleCall)cOuvertAssignment_11.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
private final Keyword cVisibleKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Assignment cVisibleAssignment_15 = (Assignment)cGroup.eContents().get(15);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_15_0 = (RuleCall)cVisibleAssignment_15.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
private final Keyword cObligatoireKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cColonKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
private final Assignment cObligatoireAssignment_19 = (Assignment)cGroup.eContents().get(19);
|
|
|
|
private final RuleCall cObligatoireConditionParserRuleCall_19_0 = (RuleCall)cObligatoireAssignment_19.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_20 = (Keyword)cGroup.eContents().get(20);
|
|
|
|
private final Keyword cConnaissancesKeyword_21 = (Keyword)cGroup.eContents().get(21);
|
|
|
|
private final Keyword cColonKeyword_22 = (Keyword)cGroup.eContents().get(22);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_24_0_0 = (RuleCall)cConnaissancesAssignment_24_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_24_1_1_0 = (RuleCall)cConnaissancesAssignment_24_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_30_0_0 = (RuleCall)cObjetsRecusAssignment_30_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_30_1_1_0 = (RuleCall)cObjetsRecusAssignment_30_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_34 = (Keyword)cGroup.eContents().get(34);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_36_0_0 = (RuleCall)cObjetsConsoAssignment_36_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_36_1_1_0 = (RuleCall)cObjetsConsoAssignment_36_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_40 = (Keyword)cGroup.eContents().get(40);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_41 = (Keyword)cGroup.eContents().get(41);
|
|
|
|
private final Assignment cDescriptionsAssignment_42 = (Assignment)cGroup.eContents().get(42);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_42_0 = (RuleCall)cDescriptionsAssignment_42.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_43 = (Group)cGroup.eContents().get(43);
|
|
|
|
private final Keyword cCommaKeyword_43_0 = (Keyword)cGroup_43.eContents().get(0);
|
|
|
|
private final Assignment cDescriptionsAssignment_43_1 = (Assignment)cGroup_43.eContents().get(1);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_43_1_0 = (RuleCall)cDescriptionsAssignment_43_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_44 = (Keyword)cGroup.eContents().get(44);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_45 = (Keyword)cGroup.eContents().get(45);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Chemin:
|
|
|
|
// '{'
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"lieu_in"' ':' lieuIn=STRING ','
|
|
|
|
// '"lieu_out"' ':' lieuOut=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"ouvert"' ':' ouvert=Condition ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//'{' '"lieu_in"' ':' lieuIn=STRING ',' '"lieu_out"' ':' lieuOut=STRING ',' '"ouvert"' ':' ouvert=Condition ','
|
|
|
|
//'"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ',' '"connaissances"' ':' '['
|
2021-12-03 09:02:04 +00:00
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=STRING (','
|
|
|
|
//objetsRecus+=STRING)*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
|
|
|
//'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"lieu_in"'
|
|
|
|
public Keyword getLieu_inKeyword_1() { return cLieu_inKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//lieuIn=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getLieuInAssignment_3() { return cLieuInAssignment_3; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getLieuInSTRINGTerminalRuleCall_3_0() { return cLieuInSTRINGTerminalRuleCall_3_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"lieu_out"'
|
|
|
|
public Keyword getLieu_outKeyword_5() { return cLieu_outKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//lieuOut=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getLieuOutAssignment_7() { return cLieuOutAssignment_7; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getLieuOutSTRINGTerminalRuleCall_7_0() { return cLieuOutSTRINGTerminalRuleCall_7_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
|
|
|
|
|
|
|
//'"ouvert"'
|
|
|
|
public Keyword getOuvertKeyword_9() { return cOuvertKeyword_9; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
|
|
|
|
|
|
|
//ouvert=Condition
|
|
|
|
public Assignment getOuvertAssignment_11() { return cOuvertAssignment_11; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getOuvertConditionParserRuleCall_11_0() { return cOuvertConditionParserRuleCall_11_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
|
|
|
|
|
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_13() { return cVisibleKeyword_13; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
|
|
|
|
|
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_15() { return cVisibleAssignment_15; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_15_0() { return cVisibleConditionParserRuleCall_15_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
|
|
|
|
|
|
|
|
//'"obligatoire"'
|
|
|
|
public Keyword getObligatoireKeyword_17() { return cObligatoireKeyword_17; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_18() { return cColonKeyword_18; }
|
|
|
|
|
|
|
|
//obligatoire=Condition
|
|
|
|
public Assignment getObligatoireAssignment_19() { return cObligatoireAssignment_19; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getObligatoireConditionParserRuleCall_19_0() { return cObligatoireConditionParserRuleCall_19_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_20() { return cCommaKeyword_20; }
|
|
|
|
|
|
|
|
//'"connaissances"'
|
|
|
|
public Keyword getConnaissancesKeyword_21() { return cConnaissancesKeyword_21; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_22() { return cColonKeyword_22; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_24() { return cGroup_24; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getConnaissancesAssignment_24_0() { return cConnaissancesAssignment_24_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_24_0_0() { return cConnaissancesSTRINGTerminalRuleCall_24_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' connaissances+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_24_1() { return cGroup_24_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConnaissancesAssignment_24_1_1() { return cConnaissancesAssignment_24_1_1; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_24_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_24_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_26() { return cCommaKeyword_26; }
|
|
|
|
|
|
|
|
//'"objets_recus"'
|
|
|
|
public Keyword getObjets_recusKeyword_27() { return cObjets_recusKeyword_27; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_28() { return cColonKeyword_28; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsRecus+=STRING (',' objetsRecus+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_30() { return cGroup_30; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsRecusAssignment_30_0() { return cObjetsRecusAssignment_30_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_30_0_0() { return cObjetsRecusSTRINGTerminalRuleCall_30_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsRecus+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_30_1() { return cGroup_30_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_30_1_0() { return cCommaKeyword_30_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsRecusAssignment_30_1_1() { return cObjetsRecusAssignment_30_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_30_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_30_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_31() { return cRightSquareBracketKeyword_31; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_32() { return cCommaKeyword_32; }
|
|
|
|
|
|
|
|
//'"objets_conso"'
|
|
|
|
public Keyword getObjets_consoKeyword_33() { return cObjets_consoKeyword_33; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_34() { return cColonKeyword_34; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_35() { return cLeftSquareBracketKeyword_35; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsConso+=STRING (',' objetsConso+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_36() { return cGroup_36; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsConso+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsConsoAssignment_36_0() { return cObjetsConsoAssignment_36_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsConsoSTRINGTerminalRuleCall_36_0_0() { return cObjetsConsoSTRINGTerminalRuleCall_36_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsConso+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_36_1() { return cGroup_36_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_36_1_0() { return cCommaKeyword_36_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsConso+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsConsoAssignment_36_1_1() { return cObjetsConsoAssignment_36_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsConsoSTRINGTerminalRuleCall_36_1_1_0() { return cObjetsConsoSTRINGTerminalRuleCall_36_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_37() { return cRightSquareBracketKeyword_37; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_38() { return cCommaKeyword_38; }
|
|
|
|
|
|
|
|
//'"descriptions"'
|
|
|
|
public Keyword getDescriptionsKeyword_39() { return cDescriptionsKeyword_39; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_40() { return cColonKeyword_40; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_41() { return cLeftSquareBracketKeyword_41; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//descriptions+=Description
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getDescriptionsAssignment_42() { return cDescriptionsAssignment_42; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_42_0() { return cDescriptionsDescriptionParserRuleCall_42_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' descriptions+=Description)*
|
|
|
|
public Group getGroup_43() { return cGroup_43; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_43_0() { return cCommaKeyword_43_0; }
|
|
|
|
|
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_43_1() { return cDescriptionsAssignment_43_1; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_43_1_0() { return cDescriptionsDescriptionParserRuleCall_43_1_0; }
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_44() { return cRightSquareBracketKeyword_44; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'}'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightCurlyBracketKeyword_45() { return cRightCurlyBracketKeyword_45; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class ObjetElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Objet");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Assignment cTailleAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cTailleINTTerminalRuleCall_7_0 = (RuleCall)cTailleAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cVisibleKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Assignment cVisibleAssignment_11 = (Assignment)cGroup.eContents().get(11);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_11_0 = (RuleCall)cVisibleAssignment_11.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
private final Keyword cDescriptionsKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Assignment cDescriptionsAssignment_16 = (Assignment)cGroup.eContents().get(16);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_16_0 = (RuleCall)cDescriptionsAssignment_16.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_17 = (Group)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cCommaKeyword_17_0 = (Keyword)cGroup_17.eContents().get(0);
|
|
|
|
private final Assignment cDescriptionsAssignment_17_1 = (Assignment)cGroup_17.eContents().get(1);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_17_1_0 = (RuleCall)cDescriptionsAssignment_17_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Objet:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"taille"' ':' taille=INT ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"nom"' ':' nom=STRING ',' '"taille"' ':' taille=INT ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':'
|
|
|
|
//'[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"nom"'
|
|
|
|
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//nom=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"taille"'
|
|
|
|
public Keyword getTailleKeyword_5() { return cTailleKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//taille=INT
|
|
|
|
public Assignment getTailleAssignment_7() { return cTailleAssignment_7; }
|
|
|
|
|
|
|
|
//INT
|
|
|
|
public RuleCall getTailleINTTerminalRuleCall_7_0() { return cTailleINTTerminalRuleCall_7_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
|
|
|
|
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_9() { return cVisibleKeyword_9; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
|
|
|
|
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_11() { return cVisibleAssignment_11; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_11_0() { return cVisibleConditionParserRuleCall_11_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
|
|
|
|
|
|
|
|
//'"descriptions"'
|
|
|
|
public Keyword getDescriptionsKeyword_13() { return cDescriptionsKeyword_13; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_15() { return cLeftSquareBracketKeyword_15; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//descriptions+=Description
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getDescriptionsAssignment_16() { return cDescriptionsAssignment_16; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_16_0() { return cDescriptionsDescriptionParserRuleCall_16_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' descriptions+=Description)*
|
|
|
|
public Group getGroup_17() { return cGroup_17; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_17_0() { return cCommaKeyword_17_0; }
|
|
|
|
|
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_17_1() { return cDescriptionsAssignment_17_1; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_17_1_0() { return cDescriptionsDescriptionParserRuleCall_17_1_0; }
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_18() { return cRightSquareBracketKeyword_18; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'}'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightCurlyBracketKeyword_19() { return cRightCurlyBracketKeyword_19; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class TransformationElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Transformation");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Keyword cConditionKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
private final Assignment cConditionAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
|
|
|
private final RuleCall cConditionConditionParserRuleCall_3_0 = (RuleCall)cConditionAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cObjets_inKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsInSTRINGTerminalRuleCall_8_0_0 = (RuleCall)cObjetsInAssignment_8_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsInSTRINGTerminalRuleCall_8_1_1_0 = (RuleCall)cObjetsInAssignment_8_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsOutSTRINGTerminalRuleCall_14_0_0 = (RuleCall)cObjetsOutAssignment_14_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsOutSTRINGTerminalRuleCall_14_1_1_0 = (RuleCall)cObjetsOutAssignment_14_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
|
|
|
|
//Transformation:
|
|
|
|
// '{'
|
|
|
|
// '"condition"' ':' condition=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
|
|
|
|
// '"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"condition"' ':' condition=Condition ',' '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
|
|
|
|
//'"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ',' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"condition"'
|
|
|
|
public Keyword getConditionKeyword_1() { return cConditionKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//condition=Condition
|
|
|
|
public Assignment getConditionAssignment_3() { return cConditionAssignment_3; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getConditionConditionParserRuleCall_3_0() { return cConditionConditionParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"objets_in"'
|
|
|
|
public Keyword getObjets_inKeyword_5() { return cObjets_inKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsIn+=STRING (',' objetsIn+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_8() { return cGroup_8; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsIn+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsInAssignment_8_0() { return cObjetsInAssignment_8_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsInSTRINGTerminalRuleCall_8_0_0() { return cObjetsInSTRINGTerminalRuleCall_8_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsIn+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_8_1() { return cGroup_8_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsIn+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsInAssignment_8_1_1() { return cObjetsInAssignment_8_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsInSTRINGTerminalRuleCall_8_1_1_0() { return cObjetsInSTRINGTerminalRuleCall_8_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_10() { return cCommaKeyword_10; }
|
|
|
|
|
|
|
|
//'"objets_out"'
|
|
|
|
public Keyword getObjets_outKeyword_11() { return cObjets_outKeyword_11; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_12() { return cColonKeyword_12; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsOut+=STRING (',' objetsOut+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_14() { return cGroup_14; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsOut+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsOutAssignment_14_0() { return cObjetsOutAssignment_14_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsOutSTRINGTerminalRuleCall_14_0_0() { return cObjetsOutSTRINGTerminalRuleCall_14_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsOut+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_14_1() { return cGroup_14_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsOut+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsOutAssignment_14_1_1() { return cObjetsOutAssignment_14_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsOutSTRINGTerminalRuleCall_14_1_1_0() { return cObjetsOutSTRINGTerminalRuleCall_14_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_17() { return cRightCurlyBracketKeyword_17; }
|
|
|
|
}
|
|
|
|
public class ConnaissanceElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Connaissance");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Assignment cVisibleAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_7_0 = (RuleCall)cVisibleAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cDescriptionsKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
private final Assignment cDescriptionsAssignment_12 = (Assignment)cGroup.eContents().get(12);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_12_0 = (RuleCall)cDescriptionsAssignment_12.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_13 = (Group)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cCommaKeyword_13_0 = (Keyword)cGroup_13.eContents().get(0);
|
|
|
|
private final Assignment cDescriptionsAssignment_13_1 = (Assignment)cGroup_13.eContents().get(1);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_13_1_0 = (RuleCall)cDescriptionsAssignment_13_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Connaissance:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"nom"' ':' nom=STRING ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '[' descriptions+=Description
|
|
|
|
//(',' descriptions+=Description)* ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"nom"'
|
|
|
|
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//nom=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_5() { return cVisibleKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_7() { return cVisibleAssignment_7; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_7_0() { return cVisibleConditionParserRuleCall_7_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
|
|
|
|
|
|
|
//'"descriptions"'
|
|
|
|
public Keyword getDescriptionsKeyword_9() { return cDescriptionsKeyword_9; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//descriptions+=Description
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getDescriptionsAssignment_12() { return cDescriptionsAssignment_12; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_12_0() { return cDescriptionsDescriptionParserRuleCall_12_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' descriptions+=Description)*
|
|
|
|
public Group getGroup_13() { return cGroup_13; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_13_0() { return cCommaKeyword_13_0; }
|
|
|
|
|
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_13_1() { return cDescriptionsAssignment_13_1; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_13_1_0() { return cDescriptionsDescriptionParserRuleCall_13_1_0; }
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_14() { return cRightSquareBracketKeyword_14; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'}'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightCurlyBracketKeyword_15() { return cRightCurlyBracketKeyword_15; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class PersonneElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Personne");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cNomSTRINGTerminalRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Assignment cVisibleAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_7_0 = (RuleCall)cVisibleAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cObligatoireKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Assignment cObligatoireAssignment_11 = (Assignment)cGroup.eContents().get(11);
|
|
|
|
private final RuleCall cObligatoireConditionParserRuleCall_11_0 = (RuleCall)cObligatoireAssignment_11.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
private final Keyword cInteractionsKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Group cGroup_16 = (Group)cGroup.eContents().get(16);
|
|
|
|
private final Assignment cInteractionsAssignment_16_0 = (Assignment)cGroup_16.eContents().get(0);
|
|
|
|
private final RuleCall cInteractionsInteractionParserRuleCall_16_0_0 = (RuleCall)cInteractionsAssignment_16_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_16_1 = (Group)cGroup_16.eContents().get(1);
|
|
|
|
private final Keyword cCommaKeyword_16_1_0 = (Keyword)cGroup_16_1.eContents().get(0);
|
|
|
|
private final Assignment cInteractionsAssignment_16_1_1 = (Assignment)cGroup_16_1.eContents().get(1);
|
|
|
|
private final RuleCall cInteractionsInteractionParserRuleCall_16_1_1_0 = (RuleCall)cInteractionsAssignment_16_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
|
|
|
|
//Personne:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"nom"' ':' nom=STRING ',' '"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
//'"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"nom"'
|
|
|
|
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//nom=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getNomSTRINGTerminalRuleCall_3_0() { return cNomSTRINGTerminalRuleCall_3_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_5() { return cVisibleKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_7() { return cVisibleAssignment_7; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_7_0() { return cVisibleConditionParserRuleCall_7_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
|
|
|
|
|
|
|
//'"obligatoire"'
|
|
|
|
public Keyword getObligatoireKeyword_9() { return cObligatoireKeyword_9; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
|
|
|
|
|
|
|
//obligatoire=Condition
|
|
|
|
public Assignment getObligatoireAssignment_11() { return cObligatoireAssignment_11; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getObligatoireConditionParserRuleCall_11_0() { return cObligatoireConditionParserRuleCall_11_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
|
|
|
|
|
|
|
|
//'"interactions"'
|
|
|
|
public Keyword getInteractionsKeyword_13() { return cInteractionsKeyword_13; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_15() { return cLeftSquareBracketKeyword_15; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(interactions+=Interaction (',' interactions+=Interaction)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_16() { return cGroup_16; }
|
|
|
|
|
|
|
|
//interactions+=Interaction
|
|
|
|
public Assignment getInteractionsAssignment_16_0() { return cInteractionsAssignment_16_0; }
|
|
|
|
|
|
|
|
//Interaction
|
|
|
|
public RuleCall getInteractionsInteractionParserRuleCall_16_0_0() { return cInteractionsInteractionParserRuleCall_16_0_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' interactions+=Interaction)*
|
|
|
|
public Group getGroup_16_1() { return cGroup_16_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_16_1_0() { return cCommaKeyword_16_1_0; }
|
|
|
|
|
|
|
|
//interactions+=Interaction
|
|
|
|
public Assignment getInteractionsAssignment_16_1_1() { return cInteractionsAssignment_16_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Interaction
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getInteractionsInteractionParserRuleCall_16_1_1_0() { return cInteractionsInteractionParserRuleCall_16_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_17() { return cRightSquareBracketKeyword_17; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_18() { return cRightCurlyBracketKeyword_18; }
|
|
|
|
}
|
|
|
|
public class InteractionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Interaction");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Keyword cVisibleKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
private final Assignment cVisibleAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_3_0 = (RuleCall)cVisibleAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cConnaissancesKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissancesSTRINGTerminalRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_14_0_0 = (RuleCall)cObjetsRecusAssignment_14_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_14_1_1_0 = (RuleCall)cObjetsRecusAssignment_14_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsConsoSTRINGTerminalRuleCall_20_0_0 = (RuleCall)cObjetsConsoAssignment_20_0.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetsRecusSTRINGTerminalRuleCall_20_1_1_0 = (RuleCall)cObjetsRecusAssignment_20_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
|
|
|
private final Keyword cColonKeyword_24 = (Keyword)cGroup.eContents().get(24);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
|
|
|
|
private final Assignment cActionsAssignment_26 = (Assignment)cGroup.eContents().get(26);
|
|
|
|
private final RuleCall cActionsActionParserRuleCall_26_0 = (RuleCall)cActionsAssignment_26.eContents().get(0);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Group cGroup_27 = (Group)cGroup.eContents().get(27);
|
|
|
|
private final Keyword cCommaKeyword_27_0 = (Keyword)cGroup_27.eContents().get(0);
|
|
|
|
private final Assignment cActionsAssignment_27_1 = (Assignment)cGroup_27.eContents().get(1);
|
|
|
|
private final RuleCall cActionsActionParserRuleCall_27_1_0 = (RuleCall)cActionsAssignment_27_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final Keyword cRightCurlyBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Interaction:
|
|
|
|
// '{'
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"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)* ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_1() { return cVisibleKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_3() { return cVisibleAssignment_3; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_3_0() { return cVisibleConditionParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"connaissances"'
|
|
|
|
public Keyword getConnaissancesKeyword_5() { return cConnaissancesKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_8() { return cGroup_8; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_0_0() { return cConnaissancesSTRINGTerminalRuleCall_8_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' connaissances+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_8_1() { return cGroup_8_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_8_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_8_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_10() { return cCommaKeyword_10; }
|
|
|
|
|
|
|
|
//'"objets_recus"'
|
|
|
|
public Keyword getObjets_recusKeyword_11() { return cObjets_recusKeyword_11; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_12() { return cColonKeyword_12; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsRecus+=STRING (',' objetsRecus+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_14() { return cGroup_14; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsRecusAssignment_14_0() { return cObjetsRecusAssignment_14_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_14_0_0() { return cObjetsRecusSTRINGTerminalRuleCall_14_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsRecus+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_14_1() { return cGroup_14_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsRecusAssignment_14_1_1() { return cObjetsRecusAssignment_14_1_1; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_14_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_14_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
|
|
|
|
|
|
|
|
//'"objets_conso"'
|
|
|
|
public Keyword getObjets_consoKeyword_17() { return cObjets_consoKeyword_17; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_18() { return cColonKeyword_18; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_19() { return cLeftSquareBracketKeyword_19; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsConso+=STRING (',' objetsRecus+=STRING)*)?
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup_20() { return cGroup_20; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsConso+=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetsConsoAssignment_20_0() { return cObjetsConsoAssignment_20_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsConsoSTRINGTerminalRuleCall_20_0_0() { return cObjetsConsoSTRINGTerminalRuleCall_20_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsRecus+=STRING)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_20_1() { return cGroup_20_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_20_1_0() { return cCommaKeyword_20_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getObjetsRecusAssignment_20_1_1() { return cObjetsRecusAssignment_20_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_20_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_20_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_21() { return cRightSquareBracketKeyword_21; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_22() { return cCommaKeyword_22; }
|
|
|
|
|
|
|
|
//'"actions"'
|
|
|
|
public Keyword getActionsKeyword_23() { return cActionsKeyword_23; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_24() { return cColonKeyword_24; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_25() { return cLeftSquareBracketKeyword_25; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//actions+=Action
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getActionsAssignment_26() { return cActionsAssignment_26; }
|
|
|
|
|
|
|
|
//Action
|
|
|
|
public RuleCall getActionsActionParserRuleCall_26_0() { return cActionsActionParserRuleCall_26_0; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//(',' actions+=Action)*
|
|
|
|
public Group getGroup_27() { return cGroup_27; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_27_0() { return cCommaKeyword_27_0; }
|
|
|
|
|
|
|
|
//actions+=Action
|
|
|
|
public Assignment getActionsAssignment_27_1() { return cActionsAssignment_27_1; }
|
|
|
|
|
|
|
|
//Action
|
|
|
|
public RuleCall getActionsActionParserRuleCall_27_1_0() { return cActionsActionParserRuleCall_27_1_0; }
|
|
|
|
|
2021-12-03 07:36:23 +00:00
|
|
|
//']'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_28() { return cRightSquareBracketKeyword_28; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'}'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getRightCurlyBracketKeyword_29() { return cRightCurlyBracketKeyword_29; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class ActionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Action");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final Keyword cVisibleKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final Assignment cVisibleAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_3_0 = (RuleCall)cVisibleAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cFin_interactionKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
private final Assignment cFinInteractionAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cFinInteractionConditionParserRuleCall_7_0 = (RuleCall)cFinInteractionAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cConnaissancesKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
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 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 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);
|
|
|
|
private final Keyword cColonKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
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 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 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);
|
|
|
|
private final Keyword cColonKeyword_22 = (Keyword)cGroup.eContents().get(22);
|
|
|
|
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 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 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);
|
|
|
|
private final Keyword cColonKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
|
|
|
|
private final Assignment cDescriptionsAssignment_30 = (Assignment)cGroup.eContents().get(30);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_30_0 = (RuleCall)cDescriptionsAssignment_30.eContents().get(0);
|
|
|
|
private final Group cGroup_31 = (Group)cGroup.eContents().get(31);
|
|
|
|
private final Keyword cCommaKeyword_31_0 = (Keyword)cGroup_31.eContents().get(0);
|
|
|
|
private final Assignment cDescriptionsAssignment_31_1 = (Assignment)cGroup_31.eContents().get(1);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_31_1_0 = (RuleCall)cDescriptionsAssignment_31_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_32 = (Keyword)cGroup.eContents().get(32);
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Keyword cRightCurlyBracketKeyword_33 = (Keyword)cGroup.eContents().get(33);
|
|
|
|
|
|
|
|
//Action:
|
|
|
|
// '{'
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"fin_interaction"' ':' finInteraction=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'{' '"visible"' ':' visible=Condition ',' '"fin_interaction"' ':' finInteraction=Condition ',' '"connaissances"' ':' '['
|
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=STRING (','
|
|
|
|
//objetsRecus+=STRING)*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
|
|
|
//'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_1() { return cVisibleKeyword_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_3() { return cVisibleAssignment_3; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_3_0() { return cVisibleConditionParserRuleCall_3_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'"fin_interaction"'
|
|
|
|
public Keyword getFin_interactionKeyword_5() { return cFin_interactionKeyword_5; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//finInteraction=Condition
|
|
|
|
public Assignment getFinInteractionAssignment_7() { return cFinInteractionAssignment_7; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Condition
|
2021-12-03 09:02:04 +00:00
|
|
|
public RuleCall getFinInteractionConditionParserRuleCall_7_0() { return cFinInteractionConditionParserRuleCall_7_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'"connaissances"'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getConnaissancesKeyword_9() { return cConnaissancesKeyword_9; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'['
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(connaissances+=STRING (',' connaissances+=STRING)*)?
|
|
|
|
public Group getGroup_12() { return cGroup_12; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
|
|
|
public Assignment getConnaissancesAssignment_12_0() { return cConnaissancesAssignment_12_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_12_0_0() { return cConnaissancesSTRINGTerminalRuleCall_12_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' connaissances+=STRING)*
|
|
|
|
public Group getGroup_12_1() { return cGroup_12_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_12_1_0() { return cCommaKeyword_12_1_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissances+=STRING
|
|
|
|
public Assignment getConnaissancesAssignment_12_1_1() { return cConnaissancesAssignment_12_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissancesSTRINGTerminalRuleCall_12_1_1_0() { return cConnaissancesSTRINGTerminalRuleCall_12_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_13() { return cRightSquareBracketKeyword_13; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_14() { return cCommaKeyword_14; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'"objets_recus"'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getObjets_recusKeyword_15() { return cObjets_recusKeyword_15; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getColonKeyword_16() { return cColonKeyword_16; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'['
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getLeftSquareBracketKeyword_17() { return cLeftSquareBracketKeyword_17; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsRecus+=STRING (',' objetsRecus+=STRING)*)?
|
|
|
|
public Group getGroup_18() { return cGroup_18; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
|
|
|
public Assignment getObjetsRecusAssignment_18_0() { return cObjetsRecusAssignment_18_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_18_0_0() { return cObjetsRecusSTRINGTerminalRuleCall_18_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsRecus+=STRING)*
|
|
|
|
public Group getGroup_18_1() { return cGroup_18_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_18_1_0() { return cCommaKeyword_18_1_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsRecus+=STRING
|
|
|
|
public Assignment getObjetsRecusAssignment_18_1_1() { return cObjetsRecusAssignment_18_1_1; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsRecusSTRINGTerminalRuleCall_18_1_1_0() { return cObjetsRecusSTRINGTerminalRuleCall_18_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_19() { return cRightSquareBracketKeyword_19; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_20() { return cCommaKeyword_20; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'"objets_conso"'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getObjets_consoKeyword_21() { return cObjets_consoKeyword_21; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getColonKeyword_22() { return cColonKeyword_22; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'['
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(objetsConso+=STRING (',' objetsConso+=STRING)*)?
|
|
|
|
public Group getGroup_24() { return cGroup_24; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsConso+=STRING
|
|
|
|
public Assignment getObjetsConsoAssignment_24_0() { return cObjetsConsoAssignment_24_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsConsoSTRINGTerminalRuleCall_24_0_0() { return cObjetsConsoSTRINGTerminalRuleCall_24_0_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//(',' objetsConso+=STRING)*
|
|
|
|
public Group getGroup_24_1() { return cGroup_24_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
|
2021-12-03 08:38:29 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objetsConso+=STRING
|
|
|
|
public Assignment getObjetsConsoAssignment_24_1_1() { return cObjetsConsoAssignment_24_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetsConsoSTRINGTerminalRuleCall_24_1_1_0() { return cObjetsConsoSTRINGTerminalRuleCall_24_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//']'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//','
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getCommaKeyword_26() { return cCommaKeyword_26; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'"descriptions"'
|
|
|
|
public Keyword getDescriptionsKeyword_27() { return cDescriptionsKeyword_27; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//':'
|
2021-12-03 09:02:04 +00:00
|
|
|
public Keyword getColonKeyword_28() { return cColonKeyword_28; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_30() { return cDescriptionsAssignment_30; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_30_0() { return cDescriptionsDescriptionParserRuleCall_30_0; }
|
|
|
|
|
|
|
|
//(',' descriptions+=Description)*
|
|
|
|
public Group getGroup_31() { return cGroup_31; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_31_0() { return cCommaKeyword_31_0; }
|
|
|
|
|
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_31_1() { return cDescriptionsAssignment_31_1; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_31_1_0() { return cDescriptionsDescriptionParserRuleCall_31_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_32() { return cRightSquareBracketKeyword_32; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_33() { return cRightCurlyBracketKeyword_33; }
|
|
|
|
}
|
|
|
|
public class DescriptionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Description");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Keyword cTexteKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
private final Assignment cTexteAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
|
|
|
private final RuleCall cTexteSTRINGTerminalRuleCall_3_0 = (RuleCall)cTexteAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cConditionKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
private final Assignment cConditionAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cConditionConditionParserRuleCall_7_0 = (RuleCall)cConditionAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
|
|
|
|
//Description:
|
|
|
|
// '{'
|
|
|
|
// '"texte"' ':' texte=STRING ','
|
|
|
|
// '"condition"' ':' condition=Condition
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"texte"' ':' texte=STRING ',' '"condition"' ':' condition=Condition '}'
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"texte"'
|
|
|
|
public Keyword getTexteKeyword_1() { return cTexteKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//texte=STRING
|
|
|
|
public Assignment getTexteAssignment_3() { return cTexteAssignment_3; }
|
|
|
|
|
|
|
|
//STRING
|
|
|
|
public RuleCall getTexteSTRINGTerminalRuleCall_3_0() { return cTexteSTRINGTerminalRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
|
|
|
|
|
|
|
|
//'"condition"'
|
|
|
|
public Keyword getConditionKeyword_5() { return cConditionKeyword_5; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
|
|
|
|
|
|
|
|
//condition=Condition
|
|
|
|
public Assignment getConditionAssignment_7() { return cConditionAssignment_7; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getConditionConditionParserRuleCall_7_0() { return cConditionConditionParserRuleCall_7_0; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
|
|
|
|
}
|
|
|
|
public class ConditionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Condition");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Assignment cConditionAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
|
|
|
private final RuleCall cConditionConditionEtParserRuleCall_0_0 = (RuleCall)cConditionAssignment_0.eContents().get(0);
|
|
|
|
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cVerticalLineVerticalLineKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
|
|
|
|
private final Assignment cConditionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
|
|
|
|
private final RuleCall cConditionConditionEtParserRuleCall_1_1_0 = (RuleCall)cConditionAssignment_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//Condition:
|
2021-12-03 08:38:29 +00:00
|
|
|
// condition+=ConditionEt ('||' condition+=ConditionEt)*;
|
2021-12-03 07:36:23 +00:00
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//condition+=ConditionEt ('||' condition+=ConditionEt)*
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//condition+=ConditionEt
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConditionAssignment_0() { return cConditionAssignment_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//ConditionEt
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getConditionConditionEtParserRuleCall_0_0() { return cConditionConditionEtParserRuleCall_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//('||' condition+=ConditionEt)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_1() { return cGroup_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'||'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getVerticalLineVerticalLineKeyword_1_0() { return cVerticalLineVerticalLineKeyword_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//condition+=ConditionEt
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConditionAssignment_1_1() { return cConditionAssignment_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//ConditionEt
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getConditionConditionEtParserRuleCall_1_1_0() { return cConditionConditionEtParserRuleCall_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class ConditionEtElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionEt");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
2021-12-03 08:38:29 +00:00
|
|
|
private final Assignment cConditionTestAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
|
|
|
private final RuleCall cConditionTestConditionTestParserRuleCall_0_0 = (RuleCall)cConditionTestAssignment_0.eContents().get(0);
|
|
|
|
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cAmpersandAmpersandKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
|
|
|
|
private final Assignment cConditionTestAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
|
|
|
|
private final RuleCall cConditionTestConditionTestParserRuleCall_1_1_0 = (RuleCall)cConditionTestAssignment_1_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//ConditionEt:
|
2021-12-03 08:38:29 +00:00
|
|
|
// conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)*;
|
2021-12-03 07:36:23 +00:00
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 08:38:29 +00:00
|
|
|
//conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)*
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//conditionTest+=ConditionTest
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConditionTestAssignment_0() { return cConditionTestAssignment_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//ConditionTest
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getConditionTestConditionTestParserRuleCall_0_0() { return cConditionTestConditionTestParserRuleCall_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//('&&' conditionTest+=ConditionTest)*
|
2021-12-03 08:38:29 +00:00
|
|
|
public Group getGroup_1() { return cGroup_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//'&&'
|
2021-12-03 08:38:29 +00:00
|
|
|
public Keyword getAmpersandAmpersandKeyword_1_0() { return cAmpersandAmpersandKeyword_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//conditionTest+=ConditionTest
|
2021-12-03 08:38:29 +00:00
|
|
|
public Assignment getConditionTestAssignment_1_1() { return cConditionTestAssignment_1_1; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//ConditionTest
|
2021-12-03 08:38:29 +00:00
|
|
|
public RuleCall getConditionTestConditionTestParserRuleCall_1_1_0() { return cConditionTestConditionTestParserRuleCall_1_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class ConditionTestElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionTest");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
|
|
|
private final RuleCall cConditionConnaissanceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
|
|
|
private final RuleCall cNOTConditionConnaissanceParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
|
|
|
private final RuleCall cConditionObjetParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
|
|
|
|
private final Keyword cTrueKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
|
|
|
|
private final Keyword cFalseKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
|
|
|
|
|
|
|
|
//ConditionTest:
|
|
|
|
// ConditionConnaissance | NOTConditionConnaissance | ConditionObjet | 'true' | 'false';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//ConditionConnaissance | NOTConditionConnaissance | ConditionObjet | 'true' | 'false'
|
|
|
|
public Alternatives getAlternatives() { return cAlternatives; }
|
|
|
|
|
|
|
|
//ConditionConnaissance
|
|
|
|
public RuleCall getConditionConnaissanceParserRuleCall_0() { return cConditionConnaissanceParserRuleCall_0; }
|
|
|
|
|
|
|
|
//NOTConditionConnaissance
|
|
|
|
public RuleCall getNOTConditionConnaissanceParserRuleCall_1() { return cNOTConditionConnaissanceParserRuleCall_1; }
|
|
|
|
|
|
|
|
//ConditionObjet
|
|
|
|
public RuleCall getConditionObjetParserRuleCall_2() { return cConditionObjetParserRuleCall_2; }
|
|
|
|
|
|
|
|
//'true'
|
|
|
|
public Keyword getTrueKeyword_3() { return cTrueKeyword_3; }
|
|
|
|
|
|
|
|
//'false'
|
|
|
|
public Keyword getFalseKeyword_4() { return cFalseKeyword_4; }
|
|
|
|
}
|
|
|
|
public class ConditionConnaissanceElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionConnaissance");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Assignment cConnaissanceAssignment = (Assignment)rule.eContents().get(1);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissanceSTRINGTerminalRuleCall_0 = (RuleCall)cConnaissanceAssignment.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//ConditionConnaissance:
|
2021-12-03 09:02:04 +00:00
|
|
|
// connaissance=STRING;
|
2021-12-03 07:36:23 +00:00
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissance=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getConnaissanceAssignment() { return cConnaissanceAssignment; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissanceSTRINGTerminalRuleCall_0() { return cConnaissanceSTRINGTerminalRuleCall_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class NOTConditionConnaissanceElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.NOTConditionConnaissance");
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cConnaissanceSTRINGTerminalRuleCall_1_0 = (RuleCall)cConnaissanceAssignment_1.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//NOTConditionConnaissance:
|
2021-12-03 09:02:04 +00:00
|
|
|
// '!' connaissance=STRING;
|
2021-12-03 07:36:23 +00:00
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//'!' connaissance=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'!'
|
|
|
|
public Keyword getExclamationMarkKeyword_0() { return cExclamationMarkKeyword_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//connaissance=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getConnaissanceAssignment_1() { return cConnaissanceAssignment_1; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getConnaissanceSTRINGTerminalRuleCall_1_0() { return cConnaissanceSTRINGTerminalRuleCall_1_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
}
|
|
|
|
public class ConditionObjetElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionObjet");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Assignment cObjetAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
2021-12-03 09:02:04 +00:00
|
|
|
private final RuleCall cObjetSTRINGTerminalRuleCall_0_0 = (RuleCall)cObjetAssignment_0.eContents().get(0);
|
2021-12-03 07:36:23 +00:00
|
|
|
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:
|
2021-12-03 09:02:04 +00:00
|
|
|
// objet=STRING comparateur=Comparateur nombre=INT;
|
2021-12-03 07:36:23 +00:00
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objet=STRING comparateur=Comparateur nombre=INT
|
2021-12-03 07:36:23 +00:00
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//objet=STRING
|
2021-12-03 07:36:23 +00:00
|
|
|
public Assignment getObjetAssignment_0() { return cObjetAssignment_0; }
|
|
|
|
|
2021-12-03 09:02:04 +00:00
|
|
|
//STRING
|
|
|
|
public RuleCall getObjetSTRINGTerminalRuleCall_0_0() { return cObjetSTRINGTerminalRuleCall_0_0; }
|
2021-12-03 07:36:23 +00:00
|
|
|
|
|
|
|
//comparateur=Comparateur
|
|
|
|
public Assignment getComparateurAssignment_1() { return cComparateurAssignment_1; }
|
|
|
|
|
|
|
|
//Comparateur
|
|
|
|
public RuleCall getComparateurComparateurParserRuleCall_1_0() { return cComparateurComparateurParserRuleCall_1_0; }
|
|
|
|
|
|
|
|
//nombre=INT
|
|
|
|
public Assignment getNombreAssignment_2() { return cNombreAssignment_2; }
|
|
|
|
|
|
|
|
//INT
|
|
|
|
public RuleCall getNombreINTTerminalRuleCall_2_0() { return cNombreINTTerminalRuleCall_2_0; }
|
|
|
|
}
|
|
|
|
public class ComparateurElements extends AbstractParserRuleElementFinder {
|
2021-12-03 10:28:42 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Comparateur");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
|
|
|
private final Keyword cLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
|
|
|
|
private final Keyword cGreaterThanSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
|
|
|
|
private final Keyword cEqualsSignEqualsSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
|
|
|
|
private final Keyword cLessThanSignEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
|
|
|
|
private final Keyword cGreaterThanSignEqualsSignKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
|
|
|
|
private final Keyword cExclamationMarkEqualsSignKeyword_5 = (Keyword)cAlternatives.eContents().get(5);
|
|
|
|
|
|
|
|
//Comparateur:
|
|
|
|
// '<' | '>' | '==' | '<=' | '>=' | '!=';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'<' | '>' | '==' | '<=' | '>=' | '!='
|
|
|
|
public Alternatives getAlternatives() { return cAlternatives; }
|
|
|
|
|
|
|
|
//'<'
|
|
|
|
public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
|
|
|
|
|
|
|
|
//'>'
|
|
|
|
public Keyword getGreaterThanSignKeyword_1() { return cGreaterThanSignKeyword_1; }
|
|
|
|
|
|
|
|
//'=='
|
|
|
|
public Keyword getEqualsSignEqualsSignKeyword_2() { return cEqualsSignEqualsSignKeyword_2; }
|
|
|
|
|
|
|
|
//'<='
|
|
|
|
public Keyword getLessThanSignEqualsSignKeyword_3() { return cLessThanSignEqualsSignKeyword_3; }
|
|
|
|
|
|
|
|
//'>='
|
|
|
|
public Keyword getGreaterThanSignEqualsSignKeyword_4() { return cGreaterThanSignEqualsSignKeyword_4; }
|
|
|
|
|
|
|
|
//'!='
|
|
|
|
public Keyword getExclamationMarkEqualsSignKeyword_5() { return cExclamationMarkEqualsSignKeyword_5; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private final JeuElements pJeu;
|
|
|
|
private final ExplorateurElements pExplorateur;
|
|
|
|
private final TerritoireElements pTerritoire;
|
|
|
|
private final LieuElements pLieu;
|
|
|
|
private final CheminElements pChemin;
|
|
|
|
private final ObjetElements pObjet;
|
|
|
|
private final TransformationElements pTransformation;
|
|
|
|
private final ConnaissanceElements pConnaissance;
|
|
|
|
private final PersonneElements pPersonne;
|
|
|
|
private final InteractionElements pInteraction;
|
|
|
|
private final ActionElements pAction;
|
|
|
|
private final DescriptionElements pDescription;
|
|
|
|
private final ConditionElements pCondition;
|
|
|
|
private final ConditionEtElements pConditionEt;
|
|
|
|
private final ConditionTestElements pConditionTest;
|
|
|
|
private final ConditionConnaissanceElements pConditionConnaissance;
|
|
|
|
private final NOTConditionConnaissanceElements pNOTConditionConnaissance;
|
|
|
|
private final ConditionObjetElements pConditionObjet;
|
|
|
|
private final ComparateurElements pComparateur;
|
|
|
|
|
|
|
|
private final Grammar grammar;
|
|
|
|
|
|
|
|
private final TerminalsGrammarAccess gaTerminals;
|
|
|
|
|
|
|
|
@Inject
|
2021-12-03 07:37:31 +00:00
|
|
|
public GAMEGrammarAccess(GrammarProvider grammarProvider,
|
2021-12-03 07:36:23 +00:00
|
|
|
TerminalsGrammarAccess gaTerminals) {
|
|
|
|
this.grammar = internalFindGrammar(grammarProvider);
|
|
|
|
this.gaTerminals = gaTerminals;
|
|
|
|
this.pJeu = new JeuElements();
|
|
|
|
this.pExplorateur = new ExplorateurElements();
|
|
|
|
this.pTerritoire = new TerritoireElements();
|
|
|
|
this.pLieu = new LieuElements();
|
|
|
|
this.pChemin = new CheminElements();
|
|
|
|
this.pObjet = new ObjetElements();
|
|
|
|
this.pTransformation = new TransformationElements();
|
|
|
|
this.pConnaissance = new ConnaissanceElements();
|
|
|
|
this.pPersonne = new PersonneElements();
|
|
|
|
this.pInteraction = new InteractionElements();
|
|
|
|
this.pAction = new ActionElements();
|
|
|
|
this.pDescription = new DescriptionElements();
|
|
|
|
this.pCondition = new ConditionElements();
|
|
|
|
this.pConditionEt = new ConditionEtElements();
|
|
|
|
this.pConditionTest = new ConditionTestElements();
|
|
|
|
this.pConditionConnaissance = new ConditionConnaissanceElements();
|
|
|
|
this.pNOTConditionConnaissance = new NOTConditionConnaissanceElements();
|
|
|
|
this.pConditionObjet = new ConditionObjetElements();
|
|
|
|
this.pComparateur = new ComparateurElements();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
|
|
|
|
Grammar grammar = grammarProvider.getGrammar(this);
|
|
|
|
while (grammar != null) {
|
2021-12-03 10:28:42 +00:00
|
|
|
if ("fr.n7.xtext.GAME".equals(grammar.getName())) {
|
2021-12-03 07:36:23 +00:00
|
|
|
return grammar;
|
|
|
|
}
|
|
|
|
List<Grammar> grammars = grammar.getUsedGrammars();
|
|
|
|
if (!grammars.isEmpty()) {
|
|
|
|
grammar = grammars.iterator().next();
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return grammar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Grammar getGrammar() {
|
|
|
|
return grammar;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public TerminalsGrammarAccess getTerminalsGrammarAccess() {
|
|
|
|
return gaTerminals;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// https://gist.github.com/nightscape/629651
|
|
|
|
//Jeu:
|
|
|
|
// '{'
|
|
|
|
// '"Explorateur"' ':' explorateur=Explorateur ','
|
|
|
|
// '"Territoire"' ':' territoire=Territoire ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"Objets"' ':' '[' (objets+=Objet (',' objets+=Objet)*)? ']' ','
|
|
|
|
// '"Connaissances"' ':' '[' (connaissances+=Connaissance (',' connaissances+=Connaissance)*)? ']' ','
|
|
|
|
// '"Personnes"' ':' '[' (personnes+=Personne (',' personnes+=Personne)*)? ']' ','
|
|
|
|
// '"Transformations"' ':' '[' (transformations+=Transformation (',' transformations+=Transformation)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public JeuElements getJeuAccess() {
|
|
|
|
return pJeu;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getJeuRule() {
|
|
|
|
return getJeuAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Explorateur:
|
|
|
|
// '{'
|
|
|
|
// '"taille"' ':' tailleInventaire=INT ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public ExplorateurElements getExplorateurAccess() {
|
|
|
|
return pExplorateur;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getExplorateurRule() {
|
|
|
|
return getExplorateurAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Territoire:
|
|
|
|
// '{'
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"Lieux"' ':' '[' (lieux+=Lieu (',' lieux+=Lieu)*)? ']' ','
|
|
|
|
// '"Chemins"' ':' '[' (chemins+=Chemin (',' chemins+=Chemin)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public TerritoireElements getTerritoireAccess() {
|
|
|
|
return pTerritoire;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getTerritoireRule() {
|
|
|
|
return getTerritoireAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lieu:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"deposable"' ':' deposable=Condition ','
|
|
|
|
// '"depart"' ':' depart=Condition ','
|
|
|
|
// '"fin"' ':' fin=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"personnes"' ':' '[' (personnes+=STRING (',' personnes+=STRING)*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"objets"' ':' '[' (objets+=STRING (',' objets+=STRING)*)? ']' ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public LieuElements getLieuAccess() {
|
|
|
|
return pLieu;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getLieuRule() {
|
|
|
|
return getLieuAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Chemin:
|
|
|
|
// '{'
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"lieu_in"' ':' lieuIn=STRING ','
|
|
|
|
// '"lieu_out"' ':' lieuOut=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"ouvert"' ':' ouvert=Condition ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public CheminElements getCheminAccess() {
|
|
|
|
return pChemin;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getCheminRule() {
|
|
|
|
return getCheminAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Objet:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"taille"' ':' taille=INT ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public ObjetElements getObjetAccess() {
|
|
|
|
return pObjet;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getObjetRule() {
|
|
|
|
return getObjetAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Transformation:
|
|
|
|
// '{'
|
|
|
|
// '"condition"' ':' condition=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"objets_in"' ':' '[' (objetsIn+=STRING (',' objetsIn+=STRING)*)? ']' ','
|
|
|
|
// '"objets_out"' ':' '[' (objetsOut+=STRING (',' objetsOut+=STRING)*)? ']' ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public TransformationElements getTransformationAccess() {
|
|
|
|
return pTransformation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getTransformationRule() {
|
|
|
|
return getTransformationAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Connaissance:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public ConnaissanceElements getConnaissanceAccess() {
|
|
|
|
return pConnaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConnaissanceRule() {
|
|
|
|
return getConnaissanceAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Personne:
|
|
|
|
// '{'
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"nom"' ':' nom=STRING ','
|
2021-12-03 07:36:23 +00:00
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
2021-12-03 08:38:29 +00:00
|
|
|
// '"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public PersonneElements getPersonneAccess() {
|
|
|
|
return pPersonne;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getPersonneRule() {
|
|
|
|
return getPersonneAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Interaction:
|
|
|
|
// '{'
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public InteractionElements getInteractionAccess() {
|
|
|
|
return pInteraction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getInteractionRule() {
|
|
|
|
return getInteractionAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Action:
|
|
|
|
// '{'
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
2021-12-03 09:02:04 +00:00
|
|
|
// '"fin_interaction"' ':' finInteraction=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=STRING (',' connaissances+=STRING)*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=STRING (',' objetsRecus+=STRING)*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=STRING (',' objetsConso+=STRING)*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
|
2021-12-03 07:36:23 +00:00
|
|
|
// '}';
|
|
|
|
public ActionElements getActionAccess() {
|
|
|
|
return pAction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getActionRule() {
|
|
|
|
return getActionAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Description:
|
|
|
|
// '{'
|
|
|
|
// '"texte"' ':' texte=STRING ','
|
|
|
|
// '"condition"' ':' condition=Condition
|
|
|
|
// '}';
|
|
|
|
public DescriptionElements getDescriptionAccess() {
|
|
|
|
return pDescription;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getDescriptionRule() {
|
|
|
|
return getDescriptionAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Condition:
|
2021-12-03 08:38:29 +00:00
|
|
|
// condition+=ConditionEt ('||' condition+=ConditionEt)*;
|
2021-12-03 07:36:23 +00:00
|
|
|
public ConditionElements getConditionAccess() {
|
|
|
|
return pCondition;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionRule() {
|
|
|
|
return getConditionAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//ConditionEt:
|
2021-12-03 08:38:29 +00:00
|
|
|
// conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)*;
|
2021-12-03 07:36:23 +00:00
|
|
|
public ConditionEtElements getConditionEtAccess() {
|
|
|
|
return pConditionEt;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionEtRule() {
|
|
|
|
return getConditionEtAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//ConditionTest:
|
|
|
|
// ConditionConnaissance | NOTConditionConnaissance | ConditionObjet | 'true' | 'false';
|
|
|
|
public ConditionTestElements getConditionTestAccess() {
|
|
|
|
return pConditionTest;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionTestRule() {
|
|
|
|
return getConditionTestAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//ConditionConnaissance:
|
2021-12-03 09:02:04 +00:00
|
|
|
// connaissance=STRING;
|
2021-12-03 07:36:23 +00:00
|
|
|
public ConditionConnaissanceElements getConditionConnaissanceAccess() {
|
|
|
|
return pConditionConnaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionConnaissanceRule() {
|
|
|
|
return getConditionConnaissanceAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//NOTConditionConnaissance:
|
2021-12-03 09:02:04 +00:00
|
|
|
// '!' connaissance=STRING;
|
2021-12-03 07:36:23 +00:00
|
|
|
public NOTConditionConnaissanceElements getNOTConditionConnaissanceAccess() {
|
|
|
|
return pNOTConditionConnaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getNOTConditionConnaissanceRule() {
|
|
|
|
return getNOTConditionConnaissanceAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//ConditionObjet:
|
2021-12-03 09:02:04 +00:00
|
|
|
// objet=STRING comparateur=Comparateur nombre=INT;
|
2021-12-03 07:36:23 +00:00
|
|
|
public ConditionObjetElements getConditionObjetAccess() {
|
|
|
|
return pConditionObjet;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionObjetRule() {
|
|
|
|
return getConditionObjetAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Comparateur:
|
|
|
|
// '<' | '>' | '==' | '<=' | '>=' | '!=';
|
|
|
|
public ComparateurElements getComparateurAccess() {
|
|
|
|
return pComparateur;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getComparateurRule() {
|
|
|
|
return getComparateurAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal ID:
|
|
|
|
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
|
|
|
|
public TerminalRule getIDRule() {
|
|
|
|
return gaTerminals.getIDRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal INT returns ecore::EInt:
|
|
|
|
// '0'..'9'+;
|
|
|
|
public TerminalRule getINTRule() {
|
|
|
|
return gaTerminals.getINTRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal STRING:
|
|
|
|
// '"' ('\\' . | !('\\' | '"'))* '"' |
|
|
|
|
// "'" ('\\' . | !('\\' | "'"))* "'";
|
|
|
|
public TerminalRule getSTRINGRule() {
|
|
|
|
return gaTerminals.getSTRINGRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal ML_COMMENT:
|
|
|
|
// '/*'->'*/';
|
|
|
|
public TerminalRule getML_COMMENTRule() {
|
|
|
|
return gaTerminals.getML_COMMENTRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal SL_COMMENT:
|
|
|
|
// '//' !('\n' | '\r')* ('\r'? '\n')?;
|
|
|
|
public TerminalRule getSL_COMMENTRule() {
|
|
|
|
return gaTerminals.getSL_COMMENTRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal WS:
|
|
|
|
// ' ' | '\t' | '\r' | '\n'+;
|
|
|
|
public TerminalRule getWSRule() {
|
|
|
|
return gaTerminals.getWSRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal ANY_OTHER:
|
|
|
|
// .;
|
|
|
|
public TerminalRule getANY_OTHERRule() {
|
|
|
|
return gaTerminals.getANY_OTHERRule();
|
|
|
|
}
|
|
|
|
}
|