2021-12-03 07:36:23 +00:00
|
|
|
/*
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
2021-12-03 07:37:31 +00:00
|
|
|
package fr.n7.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 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final Assignment cObjetsAssignment_12 = (Assignment)cGroup.eContents().get(12);
|
|
|
|
private final RuleCall cObjetsObjetParserRuleCall_12_0 = (RuleCall)cObjetsAssignment_12.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 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);
|
|
|
|
private final Assignment cConnaissancesAssignment_18 = (Assignment)cGroup.eContents().get(18);
|
|
|
|
private final RuleCall cConnaissancesConnaissanceParserRuleCall_18_0 = (RuleCall)cConnaissancesAssignment_18.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 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);
|
|
|
|
private final Assignment cPersonnesAssignment_24 = (Assignment)cGroup.eContents().get(24);
|
|
|
|
private final RuleCall cPersonnesPersonneParserRuleCall_24_0 = (RuleCall)cPersonnesAssignment_24.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 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);
|
|
|
|
private final Assignment cTransformationsAssignment_30 = (Assignment)cGroup.eContents().get(30);
|
|
|
|
private final RuleCall cTransformationsTransformationParserRuleCall_30_0 = (RuleCall)cTransformationsAssignment_30.eContents().get(0);
|
|
|
|
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 ','
|
|
|
|
// '"Objets"' ':' '[' objets+=Objet* ']' ','
|
|
|
|
// '"Connaissances"' ':' '[' connaissances+=Connaissance* ']' ','
|
|
|
|
// '"Personnes"' ':' '[' personnes+=Personne* ']' ','
|
|
|
|
// '"Transformations"' ':' '[' transformations+=Transformation* ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"Explorateur"' ':' explorateur=Explorateur ',' '"Territoire"' ':' territoire=Territoire ',' '"Objets"' ':' '['
|
|
|
|
//objets+=Objet* ']' ',' '"Connaissances"' ':' '[' connaissances+=Connaissance* ']' ',' '"Personnes"' ':' '['
|
|
|
|
//personnes+=Personne* ']' ',' '"Transformations"' ':' '[' transformations+=Transformation* ']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//objets+=Objet*
|
|
|
|
public Assignment getObjetsAssignment_12() { return cObjetsAssignment_12; }
|
|
|
|
|
|
|
|
//Objet
|
|
|
|
public RuleCall getObjetsObjetParserRuleCall_12_0() { return cObjetsObjetParserRuleCall_12_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//connaissances+=Connaissance*
|
|
|
|
public Assignment getConnaissancesAssignment_18() { return cConnaissancesAssignment_18; }
|
|
|
|
|
|
|
|
//Connaissance
|
|
|
|
public RuleCall getConnaissancesConnaissanceParserRuleCall_18_0() { return cConnaissancesConnaissanceParserRuleCall_18_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//personnes+=Personne*
|
|
|
|
public Assignment getPersonnesAssignment_24() { return cPersonnesAssignment_24; }
|
|
|
|
|
|
|
|
//Personne
|
|
|
|
public RuleCall getPersonnesPersonneParserRuleCall_24_0() { return cPersonnesPersonneParserRuleCall_24_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//transformations+=Transformation*
|
|
|
|
public Assignment getTransformationsAssignment_30() { return cTransformationsAssignment_30; }
|
|
|
|
|
|
|
|
//Transformation
|
|
|
|
public RuleCall getTransformationsTransformationParserRuleCall_30_0() { return cTransformationsTransformationParserRuleCall_30_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_31() { return cRightSquareBracketKeyword_31; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_32() { return cRightCurlyBracketKeyword_32; }
|
|
|
|
}
|
|
|
|
public class ExplorateurElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
|
|
|
|
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
|
|
|
|
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
|
|
|
|
private final Assignment cConnaissancesAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Keyword cObjetsKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
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);
|
|
|
|
private final RuleCall cObjetsNomParserRuleCall_14_0_0 = (RuleCall)cObjetsAssignment_14_0.eContents().get(0);
|
|
|
|
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
|
|
|
|
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
|
|
|
|
private final Assignment cObjetsAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsAssignment_14_1_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
|
|
|
|
//Explorateur:
|
|
|
|
// '{'
|
|
|
|
// '"taille"' ':' tailleInventaire=INT ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
|
|
|
|
// '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"taille"' ':' tailleInventaire=INT ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)?
|
|
|
|
//']' ',' '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(connaissances+=Nom (',' connaissances+=Nom)*)?
|
|
|
|
public Group getGroup_8() { return cGroup_8; }
|
|
|
|
|
|
|
|
//connaissances+=Nom
|
|
|
|
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_8_0_0() { return cConnaissancesNomParserRuleCall_8_0_0; }
|
|
|
|
|
|
|
|
//(',' connaissances+=Nom)*
|
|
|
|
public Group getGroup_8_1() { return cGroup_8_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
|
|
|
|
|
|
|
|
//connaissances+=Nom
|
|
|
|
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_8_1_1_0() { return cConnaissancesNomParserRuleCall_8_1_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objets+=Nom (',' objets+=Nom)*)?
|
|
|
|
public Group getGroup_14() { return cGroup_14; }
|
|
|
|
|
|
|
|
//objets+=Nom
|
|
|
|
public Assignment getObjetsAssignment_14_0() { return cObjetsAssignment_14_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsNomParserRuleCall_14_0_0() { return cObjetsNomParserRuleCall_14_0_0; }
|
|
|
|
|
|
|
|
//(',' objets+=Nom)*
|
|
|
|
public Group getGroup_14_1() { return cGroup_14_1; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
|
|
|
|
|
|
|
|
//objets+=Nom
|
|
|
|
public Assignment getObjetsAssignment_14_1_1() { return cObjetsAssignment_14_1_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsNomParserRuleCall_14_1_1_0() { return cObjetsNomParserRuleCall_14_1_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_16() { return cRightCurlyBracketKeyword_16; }
|
|
|
|
}
|
|
|
|
public class TerritoireElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final Assignment cLieuxAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
|
|
|
|
private final RuleCall cLieuxLieuParserRuleCall_4_1_0 = (RuleCall)cLieuxAssignment_4_1.eContents().get(0);
|
|
|
|
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);
|
|
|
|
private final Assignment cCheminsAssignment_10_1 = (Assignment)cGroup_10.eContents().get(1);
|
|
|
|
private final RuleCall cCheminsCheminParserRuleCall_10_1_0 = (RuleCall)cCheminsAssignment_10_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
|
|
|
|
//Territoire:
|
|
|
|
// '{'
|
|
|
|
// '"Lieux"' ':' '[' (lieux+=Lieu lieux+=Lieu*)? ']' ','
|
|
|
|
// '"Chemins"' ':' '[' (chemins+=Chemin chemins+=Chemin*)? ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"Lieux"' ':' '[' (lieux+=Lieu lieux+=Lieu*)? ']' ',' '"Chemins"' ':' '[' (chemins+=Chemin chemins+=Chemin*)? ']'
|
|
|
|
//'}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(lieux+=Lieu lieux+=Lieu*)?
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//lieux+=Lieu*
|
|
|
|
public Assignment getLieuxAssignment_4_1() { return cLieuxAssignment_4_1; }
|
|
|
|
|
|
|
|
//Lieu
|
|
|
|
public RuleCall getLieuxLieuParserRuleCall_4_1_0() { return cLieuxLieuParserRuleCall_4_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(chemins+=Chemin chemins+=Chemin*)?
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//chemins+=Chemin*
|
|
|
|
public Assignment getCheminsAssignment_10_1() { return cCheminsAssignment_10_1; }
|
|
|
|
|
|
|
|
//Chemin
|
|
|
|
public RuleCall getCheminsCheminParserRuleCall_10_1_0() { return cCheminsCheminParserRuleCall_10_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_11() { return cRightSquareBracketKeyword_11; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_12() { return cRightCurlyBracketKeyword_12; }
|
|
|
|
}
|
|
|
|
public class LieuElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cDeposableKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
|
|
|
private final RuleCall cPersonnesNomParserRuleCall_20_0_0 = (RuleCall)cPersonnesAssignment_20_0.eContents().get(0);
|
|
|
|
private final Assignment cPersonnesAssignment_20_1 = (Assignment)cGroup_20.eContents().get(1);
|
|
|
|
private final RuleCall cPersonnesNomParserRuleCall_20_1_0 = (RuleCall)cPersonnesAssignment_20_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_21 = (Keyword)cGroup.eContents().get(21);
|
|
|
|
private final Keyword cCommaKeyword_22 = (Keyword)cGroup.eContents().get(22);
|
|
|
|
private final Keyword cDescriptionsKeyword_23 = (Keyword)cGroup.eContents().get(23);
|
|
|
|
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);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_27 = (Keyword)cGroup.eContents().get(27);
|
|
|
|
private final Keyword cCommaKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
|
|
|
private final Keyword cObjetsKeyword_29 = (Keyword)cGroup.eContents().get(29);
|
|
|
|
private final Keyword cColonKeyword_30 = (Keyword)cGroup.eContents().get(30);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_31 = (Keyword)cGroup.eContents().get(31);
|
|
|
|
private final Group cGroup_32 = (Group)cGroup.eContents().get(32);
|
|
|
|
private final Assignment cObjetsAssignment_32_0 = (Assignment)cGroup_32.eContents().get(0);
|
|
|
|
private final RuleCall cObjetsNomParserRuleCall_32_0_0 = (RuleCall)cObjetsAssignment_32_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsAssignment_32_1 = (Assignment)cGroup_32.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsNomParserRuleCall_32_1_0 = (RuleCall)cObjetsAssignment_32_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_33 = (Keyword)cGroup.eContents().get(33);
|
|
|
|
private final Keyword cCommaKeyword_34 = (Keyword)cGroup.eContents().get(34);
|
|
|
|
private final Keyword cConnaissancesKeyword_35 = (Keyword)cGroup.eContents().get(35);
|
|
|
|
private final Keyword cColonKeyword_36 = (Keyword)cGroup.eContents().get(36);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_37 = (Keyword)cGroup.eContents().get(37);
|
|
|
|
private final Group cGroup_38 = (Group)cGroup.eContents().get(38);
|
|
|
|
private final Assignment cConnaissancesAssignment_38_0 = (Assignment)cGroup_38.eContents().get(0);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_38_0_0 = (RuleCall)cConnaissancesAssignment_38_0.eContents().get(0);
|
|
|
|
private final Assignment cConnaissancesAssignment_38_1 = (Assignment)cGroup_38.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_38_1_0 = (RuleCall)cConnaissancesAssignment_38_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_39 = (Keyword)cGroup.eContents().get(39);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_40 = (Keyword)cGroup.eContents().get(40);
|
|
|
|
|
|
|
|
//Lieu:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"deposable"' ':' deposable=Condition ','
|
|
|
|
// '"depart"' ':' depart=Condition ','
|
|
|
|
// '"fin"' ':' fin=Condition ','
|
|
|
|
// '"personnes"' ':' '[' (personnes+=Nom personnes+=Nom*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']' ','
|
|
|
|
// '"objets"' ':' '[' (objets+=Nom objets+=Nom*)? ']' ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"nom"' ':' nom=Nom ',' '"deposable"' ':' deposable=Condition ',' '"depart"' ':' depart=Condition ',' '"fin"' ':'
|
|
|
|
//fin=Condition ',' '"personnes"' ':' '[' (personnes+=Nom personnes+=Nom*)? ']' ',' '"descriptions"' ':' '['
|
|
|
|
//descriptions+=Description+ ']' ',' '"objets"' ':' '[' (objets+=Nom objets+=Nom*)? ']' ',' '"connaissances"' ':' '['
|
|
|
|
//(connaissances+=Nom connaissances+=Nom*)? ']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//nom=Nom
|
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(personnes+=Nom personnes+=Nom*)?
|
|
|
|
public Group getGroup_20() { return cGroup_20; }
|
|
|
|
|
|
|
|
//personnes+=Nom
|
|
|
|
public Assignment getPersonnesAssignment_20_0() { return cPersonnesAssignment_20_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getPersonnesNomParserRuleCall_20_0_0() { return cPersonnesNomParserRuleCall_20_0_0; }
|
|
|
|
|
|
|
|
//personnes+=Nom*
|
|
|
|
public Assignment getPersonnesAssignment_20_1() { return cPersonnesAssignment_20_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getPersonnesNomParserRuleCall_20_1_0() { return cPersonnesNomParserRuleCall_20_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//descriptions+=Description+
|
|
|
|
public Assignment getDescriptionsAssignment_26() { return cDescriptionsAssignment_26; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_26_0() { return cDescriptionsDescriptionParserRuleCall_26_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_27() { return cRightSquareBracketKeyword_27; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_28() { return cCommaKeyword_28; }
|
|
|
|
|
|
|
|
//'"objets"'
|
|
|
|
public Keyword getObjetsKeyword_29() { return cObjetsKeyword_29; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_30() { return cColonKeyword_30; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_31() { return cLeftSquareBracketKeyword_31; }
|
|
|
|
|
|
|
|
//(objets+=Nom objets+=Nom*)?
|
|
|
|
public Group getGroup_32() { return cGroup_32; }
|
|
|
|
|
|
|
|
//objets+=Nom
|
|
|
|
public Assignment getObjetsAssignment_32_0() { return cObjetsAssignment_32_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsNomParserRuleCall_32_0_0() { return cObjetsNomParserRuleCall_32_0_0; }
|
|
|
|
|
|
|
|
//objets+=Nom*
|
|
|
|
public Assignment getObjetsAssignment_32_1() { return cObjetsAssignment_32_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsNomParserRuleCall_32_1_0() { return cObjetsNomParserRuleCall_32_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_33() { return cRightSquareBracketKeyword_33; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_34() { return cCommaKeyword_34; }
|
|
|
|
|
|
|
|
//'"connaissances"'
|
|
|
|
public Keyword getConnaissancesKeyword_35() { return cConnaissancesKeyword_35; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_36() { return cColonKeyword_36; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_37() { return cLeftSquareBracketKeyword_37; }
|
|
|
|
|
|
|
|
//(connaissances+=Nom connaissances+=Nom*)?
|
|
|
|
public Group getGroup_38() { return cGroup_38; }
|
|
|
|
|
|
|
|
//connaissances+=Nom
|
|
|
|
public Assignment getConnaissancesAssignment_38_0() { return cConnaissancesAssignment_38_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_38_0_0() { return cConnaissancesNomParserRuleCall_38_0_0; }
|
|
|
|
|
|
|
|
//connaissances+=Nom*
|
|
|
|
public Assignment getConnaissancesAssignment_38_1() { return cConnaissancesAssignment_38_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_38_1_0() { return cConnaissancesNomParserRuleCall_38_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_39() { return cRightSquareBracketKeyword_39; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_40() { return cRightCurlyBracketKeyword_40; }
|
|
|
|
}
|
|
|
|
public class CheminElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cLieuInNomParserRuleCall_3_0 = (RuleCall)cLieuInAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cLieu_outKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
private final Assignment cLieuOutAssignment_7 = (Assignment)cGroup.eContents().get(7);
|
|
|
|
private final RuleCall cLieuOutNomParserRuleCall_7_0 = (RuleCall)cLieuOutAssignment_7.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cOuvertKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
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);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_24_0_0 = (RuleCall)cConnaissancesAssignment_24_0.eContents().get(0);
|
|
|
|
private final Assignment cConnaissancesAssignment_24_1 = (Assignment)cGroup_24.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_24_1_0 = (RuleCall)cConnaissancesAssignment_24_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
|
|
|
|
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
|
|
|
|
private final Keyword cObjets_recusKeyword_27 = (Keyword)cGroup.eContents().get(27);
|
|
|
|
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);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_30_0_0 = (RuleCall)cObjetsRecusAssignment_30_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsRecusAssignment_30_1 = (Assignment)cGroup_30.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_30_1_0 = (RuleCall)cObjetsRecusAssignment_30_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_31 = (Keyword)cGroup.eContents().get(31);
|
|
|
|
private final Keyword cCommaKeyword_32 = (Keyword)cGroup.eContents().get(32);
|
|
|
|
private final Keyword cObjets_consoKeyword_33 = (Keyword)cGroup.eContents().get(33);
|
|
|
|
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);
|
|
|
|
private final RuleCall cObjetsConsoNomParserRuleCall_36_0_0 = (RuleCall)cObjetsConsoAssignment_36_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsConsoAssignment_36_1 = (Assignment)cGroup_36.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsConsoNomParserRuleCall_36_1_0 = (RuleCall)cObjetsConsoAssignment_36_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_37 = (Keyword)cGroup.eContents().get(37);
|
|
|
|
private final Keyword cCommaKeyword_38 = (Keyword)cGroup.eContents().get(38);
|
|
|
|
private final Keyword cDescriptionsKeyword_39 = (Keyword)cGroup.eContents().get(39);
|
|
|
|
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);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_43 = (Keyword)cGroup.eContents().get(43);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_44 = (Keyword)cGroup.eContents().get(44);
|
|
|
|
|
|
|
|
//Chemin:
|
|
|
|
// '{'
|
|
|
|
// '"lieu_in"' ':' lieuIn=Nom ','
|
|
|
|
// '"lieu_out"' ':' lieuOut=Nom ','
|
|
|
|
// '"ouvert"' ':' ouvert=Condition ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=Nom objetsConso+=Nom*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"lieu_in"' ':' lieuIn=Nom ',' '"lieu_out"' ':' lieuOut=Nom ',' '"ouvert"' ':' ouvert=Condition ',' '"visible"' ':'
|
|
|
|
//visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom
|
|
|
|
//connaissances+=Nom*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ',' '"objets_conso"'
|
|
|
|
//':' '[' (objetsConso+=Nom objetsConso+=Nom*)? ']' ',' '"descriptions"' ':' '[' descriptions+=Description+ ']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//lieuIn=Nom
|
|
|
|
public Assignment getLieuInAssignment_3() { return cLieuInAssignment_3; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getLieuInNomParserRuleCall_3_0() { return cLieuInNomParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//lieuOut=Nom
|
|
|
|
public Assignment getLieuOutAssignment_7() { return cLieuOutAssignment_7; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getLieuOutNomParserRuleCall_7_0() { return cLieuOutNomParserRuleCall_7_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(connaissances+=Nom connaissances+=Nom*)?
|
|
|
|
public Group getGroup_24() { return cGroup_24; }
|
|
|
|
|
|
|
|
//connaissances+=Nom
|
|
|
|
public Assignment getConnaissancesAssignment_24_0() { return cConnaissancesAssignment_24_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_24_0_0() { return cConnaissancesNomParserRuleCall_24_0_0; }
|
|
|
|
|
|
|
|
//connaissances+=Nom*
|
|
|
|
public Assignment getConnaissancesAssignment_24_1() { return cConnaissancesAssignment_24_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_24_1_0() { return cConnaissancesNomParserRuleCall_24_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objetsRecus+=Nom objetsRecus+=Nom*)?
|
|
|
|
public Group getGroup_30() { return cGroup_30; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom
|
|
|
|
public Assignment getObjetsRecusAssignment_30_0() { return cObjetsRecusAssignment_30_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_30_0_0() { return cObjetsRecusNomParserRuleCall_30_0_0; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom*
|
|
|
|
public Assignment getObjetsRecusAssignment_30_1() { return cObjetsRecusAssignment_30_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_30_1_0() { return cObjetsRecusNomParserRuleCall_30_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objetsConso+=Nom objetsConso+=Nom*)?
|
|
|
|
public Group getGroup_36() { return cGroup_36; }
|
|
|
|
|
|
|
|
//objetsConso+=Nom
|
|
|
|
public Assignment getObjetsConsoAssignment_36_0() { return cObjetsConsoAssignment_36_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsConsoNomParserRuleCall_36_0_0() { return cObjetsConsoNomParserRuleCall_36_0_0; }
|
|
|
|
|
|
|
|
//objetsConso+=Nom*
|
|
|
|
public Assignment getObjetsConsoAssignment_36_1() { return cObjetsConsoAssignment_36_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsConsoNomParserRuleCall_36_1_0() { return cObjetsConsoNomParserRuleCall_36_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//descriptions+=Description+
|
|
|
|
public Assignment getDescriptionsAssignment_42() { return cDescriptionsAssignment_42; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_42_0() { return cDescriptionsDescriptionParserRuleCall_42_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_43() { return cRightSquareBracketKeyword_43; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_44() { return cRightCurlyBracketKeyword_44; }
|
|
|
|
}
|
|
|
|
public class ObjetElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cTailleKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
|
|
|
|
//Objet:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"taille"' ':' taille=INT ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"nom"' ':' nom=Nom ',' '"taille"' ':' taille=INT ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '['
|
|
|
|
//descriptions+=Description+ ']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//nom=Nom
|
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//descriptions+=Description+
|
|
|
|
public Assignment getDescriptionsAssignment_16() { return cDescriptionsAssignment_16; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_16_0() { return cDescriptionsDescriptionParserRuleCall_16_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_17() { return cRightSquareBracketKeyword_17; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_18() { return cRightCurlyBracketKeyword_18; }
|
|
|
|
}
|
|
|
|
public class TransformationElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cObjetsInNomParserRuleCall_8_0_0 = (RuleCall)cObjetsInAssignment_8_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsInAssignment_8_1 = (Assignment)cGroup_8.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsInNomParserRuleCall_8_1_0 = (RuleCall)cObjetsInAssignment_8_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Keyword cObjets_outKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
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);
|
|
|
|
private final RuleCall cObjetsOutNomParserRuleCall_14_0_0 = (RuleCall)cObjetsOutAssignment_14_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsOutAssignment_14_1 = (Assignment)cGroup_14.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsOutNomParserRuleCall_14_1_0 = (RuleCall)cObjetsOutAssignment_14_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
|
|
|
|
//Transformation:
|
|
|
|
// '{'
|
|
|
|
// '"condition"' ':' condition=Condition ','
|
|
|
|
// '"objets_in"' ':' '[' (objetsIn+=Nom objetsIn+=Nom*)? ']' ','
|
|
|
|
// '"objets_out"' ':' '[' (objetsOut+=Nom objetsOut+=Nom*)? ']' ','
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"condition"' ':' condition=Condition ',' '"objets_in"' ':' '[' (objetsIn+=Nom objetsIn+=Nom*)? ']' ','
|
|
|
|
//'"objets_out"' ':' '[' (objetsOut+=Nom objetsOut+=Nom*)? ']' ',' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objetsIn+=Nom objetsIn+=Nom*)?
|
|
|
|
public Group getGroup_8() { return cGroup_8; }
|
|
|
|
|
|
|
|
//objetsIn+=Nom
|
|
|
|
public Assignment getObjetsInAssignment_8_0() { return cObjetsInAssignment_8_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsInNomParserRuleCall_8_0_0() { return cObjetsInNomParserRuleCall_8_0_0; }
|
|
|
|
|
|
|
|
//objetsIn+=Nom*
|
|
|
|
public Assignment getObjetsInAssignment_8_1() { return cObjetsInAssignment_8_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsInNomParserRuleCall_8_1_0() { return cObjetsInNomParserRuleCall_8_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objetsOut+=Nom objetsOut+=Nom*)?
|
|
|
|
public Group getGroup_14() { return cGroup_14; }
|
|
|
|
|
|
|
|
//objetsOut+=Nom
|
|
|
|
public Assignment getObjetsOutAssignment_14_0() { return cObjetsOutAssignment_14_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsOutNomParserRuleCall_14_0_0() { return cObjetsOutNomParserRuleCall_14_0_0; }
|
|
|
|
|
|
|
|
//objetsOut+=Nom*
|
|
|
|
public Assignment getObjetsOutAssignment_14_1() { return cObjetsOutAssignment_14_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsOutNomParserRuleCall_14_1_0() { return cObjetsOutNomParserRuleCall_14_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cVisibleKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
|
|
|
|
//Connaissance:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"nom"' ':' nom=Nom ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '[' descriptions+=Description+
|
|
|
|
//']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//nom=Nom
|
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//descriptions+=Description+
|
|
|
|
public Assignment getDescriptionsAssignment_12() { return cDescriptionsAssignment_12; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_12_0() { return cDescriptionsDescriptionParserRuleCall_12_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_13() { return cRightSquareBracketKeyword_13; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_14() { return cRightCurlyBracketKeyword_14; }
|
|
|
|
}
|
|
|
|
public class PersonneElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
|
|
|
|
private final Keyword cVisibleKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
|
|
|
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
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);
|
|
|
|
private final Assignment cInteractionsAssignment_16_1 = (Assignment)cGroup_16.eContents().get(1);
|
|
|
|
private final RuleCall cInteractionsInteractionParserRuleCall_16_1_0 = (RuleCall)cInteractionsAssignment_16_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
|
|
|
|
//Personne:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
|
|
|
// '"interactions"' ':' '[' (interactions+=Interaction interactions+=Interaction*)? ']'
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"nom"' ':' nom=Nom ',' '"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ','
|
|
|
|
//'"interactions"' ':' '[' (interactions+=Interaction interactions+=Interaction*)? ']' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//nom=Nom
|
|
|
|
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(interactions+=Interaction interactions+=Interaction*)?
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//interactions+=Interaction*
|
|
|
|
public Assignment getInteractionsAssignment_16_1() { return cInteractionsAssignment_16_1; }
|
|
|
|
|
|
|
|
//Interaction
|
|
|
|
public RuleCall getInteractionsInteractionParserRuleCall_16_1_0() { return cInteractionsInteractionParserRuleCall_16_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_17() { return cRightSquareBracketKeyword_17; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_18() { return cRightCurlyBracketKeyword_18; }
|
|
|
|
}
|
|
|
|
public class InteractionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
|
|
|
|
private final Assignment cConnaissancesAssignment_8_1 = (Assignment)cGroup_8.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_8_1_0 = (RuleCall)cConnaissancesAssignment_8_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
|
|
|
|
private final Keyword cObjets_recusKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
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);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_14_0_0 = (RuleCall)cObjetsRecusAssignment_14_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsRecusAssignment_14_1 = (Assignment)cGroup_14.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_14_1_0 = (RuleCall)cObjetsRecusAssignment_14_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
|
|
|
|
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
private final Keyword cObjets_consoKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
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);
|
|
|
|
private final RuleCall cObjetsConsoNomParserRuleCall_20_0_0 = (RuleCall)cObjetsConsoAssignment_20_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsRecusAssignment_20_1 = (Assignment)cGroup_20.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_20_1_0 = (RuleCall)cObjetsRecusAssignment_20_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_21 = (Keyword)cGroup.eContents().get(21);
|
|
|
|
private final Keyword cCommaKeyword_22 = (Keyword)cGroup.eContents().get(22);
|
|
|
|
private final Keyword cActionsKeyword_23 = (Keyword)cGroup.eContents().get(23);
|
|
|
|
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);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_27 = (Keyword)cGroup.eContents().get(27);
|
|
|
|
private final Keyword cCommaKeyword_28 = (Keyword)cGroup.eContents().get(28);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
|
|
|
|
|
|
|
|
//Interaction:
|
|
|
|
// '{'
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"actions"' ':' '[' actions+=Action+ ']' ','
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"visible"' ':' visible=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
//'"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=Nom
|
|
|
|
//objetsRecus+=Nom*)? ']' ',' '"actions"' ':' '[' actions+=Action+ ']' ',' '}'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(connaissances+=Nom connaissances+=Nom*)?
|
|
|
|
public Group getGroup_8() { return cGroup_8; }
|
|
|
|
|
|
|
|
//connaissances+=Nom
|
|
|
|
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_8_0_0() { return cConnaissancesNomParserRuleCall_8_0_0; }
|
|
|
|
|
|
|
|
//connaissances+=Nom*
|
|
|
|
public Assignment getConnaissancesAssignment_8_1() { return cConnaissancesAssignment_8_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_8_1_0() { return cConnaissancesNomParserRuleCall_8_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objetsRecus+=Nom objetsRecus+=Nom*)?
|
|
|
|
public Group getGroup_14() { return cGroup_14; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom
|
|
|
|
public Assignment getObjetsRecusAssignment_14_0() { return cObjetsRecusAssignment_14_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_14_0_0() { return cObjetsRecusNomParserRuleCall_14_0_0; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom*
|
|
|
|
public Assignment getObjetsRecusAssignment_14_1() { return cObjetsRecusAssignment_14_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_14_1_0() { return cObjetsRecusNomParserRuleCall_14_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//(objetsConso+=Nom objetsRecus+=Nom*)?
|
|
|
|
public Group getGroup_20() { return cGroup_20; }
|
|
|
|
|
|
|
|
//objetsConso+=Nom
|
|
|
|
public Assignment getObjetsConsoAssignment_20_0() { return cObjetsConsoAssignment_20_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsConsoNomParserRuleCall_20_0_0() { return cObjetsConsoNomParserRuleCall_20_0_0; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom*
|
|
|
|
public Assignment getObjetsRecusAssignment_20_1() { return cObjetsRecusAssignment_20_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_20_1_0() { return cObjetsRecusNomParserRuleCall_20_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
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; }
|
|
|
|
|
|
|
|
//actions+=Action+
|
|
|
|
public Assignment getActionsAssignment_26() { return cActionsAssignment_26; }
|
|
|
|
|
|
|
|
//Action
|
|
|
|
public RuleCall getActionsActionParserRuleCall_26_0() { return cActionsActionParserRuleCall_26_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_27() { return cRightSquareBracketKeyword_27; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_28() { return cCommaKeyword_28; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_29() { return cRightCurlyBracketKeyword_29; }
|
|
|
|
}
|
|
|
|
public class ActionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final Keyword cDescriptionKeyword_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 Assignment cDescriptionsAssignment_4 = (Assignment)cGroup.eContents().get(4);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_4_0 = (RuleCall)cDescriptionsAssignment_4.eContents().get(0);
|
|
|
|
private final Assignment cDescriptionsAssignment_5 = (Assignment)cGroup.eContents().get(5);
|
|
|
|
private final RuleCall cDescriptionsDescriptionParserRuleCall_5_0 = (RuleCall)cDescriptionsAssignment_5.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_6 = (Keyword)cGroup.eContents().get(6);
|
|
|
|
private final Keyword cCommaKeyword_7 = (Keyword)cGroup.eContents().get(7);
|
|
|
|
private final Keyword cVisibleKeyword_8 = (Keyword)cGroup.eContents().get(8);
|
|
|
|
private final Keyword cColonKeyword_9 = (Keyword)cGroup.eContents().get(9);
|
|
|
|
private final Assignment cVisibleAssignment_10 = (Assignment)cGroup.eContents().get(10);
|
|
|
|
private final RuleCall cVisibleConditionParserRuleCall_10_0 = (RuleCall)cVisibleAssignment_10.eContents().get(0);
|
|
|
|
private final Keyword cCommaKeyword_11 = (Keyword)cGroup.eContents().get(11);
|
|
|
|
private final Keyword cConnaissancesKeyword_12 = (Keyword)cGroup.eContents().get(12);
|
|
|
|
private final Keyword cColonKeyword_13 = (Keyword)cGroup.eContents().get(13);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_14 = (Keyword)cGroup.eContents().get(14);
|
|
|
|
private final Group cGroup_15 = (Group)cGroup.eContents().get(15);
|
|
|
|
private final Assignment cConnaissancesAssignment_15_0 = (Assignment)cGroup_15.eContents().get(0);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_15_0_0 = (RuleCall)cConnaissancesAssignment_15_0.eContents().get(0);
|
|
|
|
private final Assignment cConnaissancesAssignment_15_1 = (Assignment)cGroup_15.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissancesNomParserRuleCall_15_1_0 = (RuleCall)cConnaissancesAssignment_15_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_16 = (Keyword)cGroup.eContents().get(16);
|
|
|
|
private final Keyword cCommaKeyword_17 = (Keyword)cGroup.eContents().get(17);
|
|
|
|
private final Keyword cObjets_recusKeyword_18 = (Keyword)cGroup.eContents().get(18);
|
|
|
|
private final Keyword cColonKeyword_19 = (Keyword)cGroup.eContents().get(19);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_20 = (Keyword)cGroup.eContents().get(20);
|
|
|
|
private final Group cGroup_21 = (Group)cGroup.eContents().get(21);
|
|
|
|
private final Assignment cObjetsRecusAssignment_21_0 = (Assignment)cGroup_21.eContents().get(0);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_21_0_0 = (RuleCall)cObjetsRecusAssignment_21_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsRecusAssignment_21_1 = (Assignment)cGroup_21.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsRecusNomParserRuleCall_21_1_0 = (RuleCall)cObjetsRecusAssignment_21_1.eContents().get(0);
|
|
|
|
private final Keyword cRightSquareBracketKeyword_22 = (Keyword)cGroup.eContents().get(22);
|
|
|
|
private final Keyword cCommaKeyword_23 = (Keyword)cGroup.eContents().get(23);
|
|
|
|
private final Keyword cObjets_consoKeyword_24 = (Keyword)cGroup.eContents().get(24);
|
|
|
|
private final Keyword cColonKeyword_25 = (Keyword)cGroup.eContents().get(25);
|
|
|
|
private final Keyword cLeftSquareBracketKeyword_26 = (Keyword)cGroup.eContents().get(26);
|
|
|
|
private final Group cGroup_27 = (Group)cGroup.eContents().get(27);
|
|
|
|
private final Assignment cObjetsConsoAssignment_27_0 = (Assignment)cGroup_27.eContents().get(0);
|
|
|
|
private final RuleCall cObjetsConsoNomParserRuleCall_27_0_0 = (RuleCall)cObjetsConsoAssignment_27_0.eContents().get(0);
|
|
|
|
private final Assignment cObjetsConsoAssignment_27_1 = (Assignment)cGroup_27.eContents().get(1);
|
|
|
|
private final RuleCall cObjetsConsoNomParserRuleCall_27_1_0 = (RuleCall)cObjetsConsoAssignment_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 cFin_interactionKeyword_30 = (Keyword)cGroup.eContents().get(30);
|
|
|
|
private final Keyword cColonKeyword_31 = (Keyword)cGroup.eContents().get(31);
|
|
|
|
private final Assignment cFinInteractionAssignment_32 = (Assignment)cGroup.eContents().get(32);
|
|
|
|
private final RuleCall cFinInteractionConditionParserRuleCall_32_0 = (RuleCall)cFinInteractionAssignment_32.eContents().get(0);
|
|
|
|
private final Keyword cRightCurlyBracketKeyword_33 = (Keyword)cGroup.eContents().get(33);
|
|
|
|
|
|
|
|
//Action:
|
|
|
|
// '{'
|
|
|
|
// '"Description"' ':' '[' descriptions+=Description descriptions+=Description* ']' ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=Nom objetsConso+=Nom*)? ']' ','
|
|
|
|
// '"fin_interaction"' ':' finInteraction=Condition
|
|
|
|
// '}';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'{' '"Description"' ':' '[' descriptions+=Description descriptions+=Description* ']' ',' '"visible"' ':'
|
|
|
|
//visible=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ',' '"objets_recus"' ':'
|
|
|
|
//'[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=Nom objetsConso+=Nom*)? ']'
|
|
|
|
//',' '"fin_interaction"' ':' finInteraction=Condition '}'
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'{'
|
|
|
|
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
|
|
|
|
|
|
|
//'"Description"'
|
|
|
|
public Keyword getDescriptionKeyword_1() { return cDescriptionKeyword_1; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_3() { return cLeftSquareBracketKeyword_3; }
|
|
|
|
|
|
|
|
//descriptions+=Description
|
|
|
|
public Assignment getDescriptionsAssignment_4() { return cDescriptionsAssignment_4; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_4_0() { return cDescriptionsDescriptionParserRuleCall_4_0; }
|
|
|
|
|
|
|
|
//descriptions+=Description*
|
|
|
|
public Assignment getDescriptionsAssignment_5() { return cDescriptionsAssignment_5; }
|
|
|
|
|
|
|
|
//Description
|
|
|
|
public RuleCall getDescriptionsDescriptionParserRuleCall_5_0() { return cDescriptionsDescriptionParserRuleCall_5_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_6() { return cRightSquareBracketKeyword_6; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_7() { return cCommaKeyword_7; }
|
|
|
|
|
|
|
|
//'"visible"'
|
|
|
|
public Keyword getVisibleKeyword_8() { return cVisibleKeyword_8; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_9() { return cColonKeyword_9; }
|
|
|
|
|
|
|
|
//visible=Condition
|
|
|
|
public Assignment getVisibleAssignment_10() { return cVisibleAssignment_10; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getVisibleConditionParserRuleCall_10_0() { return cVisibleConditionParserRuleCall_10_0; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_11() { return cCommaKeyword_11; }
|
|
|
|
|
|
|
|
//'"connaissances"'
|
|
|
|
public Keyword getConnaissancesKeyword_12() { return cConnaissancesKeyword_12; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_13() { return cColonKeyword_13; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_14() { return cLeftSquareBracketKeyword_14; }
|
|
|
|
|
|
|
|
//(connaissances+=Nom connaissances+=Nom*)?
|
|
|
|
public Group getGroup_15() { return cGroup_15; }
|
|
|
|
|
|
|
|
//connaissances+=Nom
|
|
|
|
public Assignment getConnaissancesAssignment_15_0() { return cConnaissancesAssignment_15_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_15_0_0() { return cConnaissancesNomParserRuleCall_15_0_0; }
|
|
|
|
|
|
|
|
//connaissances+=Nom*
|
|
|
|
public Assignment getConnaissancesAssignment_15_1() { return cConnaissancesAssignment_15_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissancesNomParserRuleCall_15_1_0() { return cConnaissancesNomParserRuleCall_15_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_16() { return cRightSquareBracketKeyword_16; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_17() { return cCommaKeyword_17; }
|
|
|
|
|
|
|
|
//'"objets_recus"'
|
|
|
|
public Keyword getObjets_recusKeyword_18() { return cObjets_recusKeyword_18; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_19() { return cColonKeyword_19; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_20() { return cLeftSquareBracketKeyword_20; }
|
|
|
|
|
|
|
|
//(objetsRecus+=Nom objetsRecus+=Nom*)?
|
|
|
|
public Group getGroup_21() { return cGroup_21; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom
|
|
|
|
public Assignment getObjetsRecusAssignment_21_0() { return cObjetsRecusAssignment_21_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_21_0_0() { return cObjetsRecusNomParserRuleCall_21_0_0; }
|
|
|
|
|
|
|
|
//objetsRecus+=Nom*
|
|
|
|
public Assignment getObjetsRecusAssignment_21_1() { return cObjetsRecusAssignment_21_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsRecusNomParserRuleCall_21_1_0() { return cObjetsRecusNomParserRuleCall_21_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_22() { return cRightSquareBracketKeyword_22; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_23() { return cCommaKeyword_23; }
|
|
|
|
|
|
|
|
//'"objets_conso"'
|
|
|
|
public Keyword getObjets_consoKeyword_24() { return cObjets_consoKeyword_24; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_25() { return cColonKeyword_25; }
|
|
|
|
|
|
|
|
//'['
|
|
|
|
public Keyword getLeftSquareBracketKeyword_26() { return cLeftSquareBracketKeyword_26; }
|
|
|
|
|
|
|
|
//(objetsConso+=Nom objetsConso+=Nom*)?
|
|
|
|
public Group getGroup_27() { return cGroup_27; }
|
|
|
|
|
|
|
|
//objetsConso+=Nom
|
|
|
|
public Assignment getObjetsConsoAssignment_27_0() { return cObjetsConsoAssignment_27_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsConsoNomParserRuleCall_27_0_0() { return cObjetsConsoNomParserRuleCall_27_0_0; }
|
|
|
|
|
|
|
|
//objetsConso+=Nom*
|
|
|
|
public Assignment getObjetsConsoAssignment_27_1() { return cObjetsConsoAssignment_27_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetsConsoNomParserRuleCall_27_1_0() { return cObjetsConsoNomParserRuleCall_27_1_0; }
|
|
|
|
|
|
|
|
//']'
|
|
|
|
public Keyword getRightSquareBracketKeyword_28() { return cRightSquareBracketKeyword_28; }
|
|
|
|
|
|
|
|
//','
|
|
|
|
public Keyword getCommaKeyword_29() { return cCommaKeyword_29; }
|
|
|
|
|
|
|
|
//'"fin_interaction"'
|
|
|
|
public Keyword getFin_interactionKeyword_30() { return cFin_interactionKeyword_30; }
|
|
|
|
|
|
|
|
//':'
|
|
|
|
public Keyword getColonKeyword_31() { return cColonKeyword_31; }
|
|
|
|
|
|
|
|
//finInteraction=Condition
|
|
|
|
public Assignment getFinInteractionAssignment_32() { return cFinInteractionAssignment_32; }
|
|
|
|
|
|
|
|
//Condition
|
|
|
|
public RuleCall getFinInteractionConditionParserRuleCall_32_0() { return cFinInteractionConditionParserRuleCall_32_0; }
|
|
|
|
|
|
|
|
//'}'
|
|
|
|
public Keyword getRightCurlyBracketKeyword_33() { return cRightCurlyBracketKeyword_33; }
|
|
|
|
}
|
|
|
|
public class DescriptionElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.GAME.Condition");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Assignment cConditionAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
|
|
|
private final RuleCall cConditionConditionEtParserRuleCall_1_0 = (RuleCall)cConditionAssignment_1.eContents().get(0);
|
|
|
|
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
|
|
|
|
private final Keyword cVerticalLineVerticalLineKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
|
|
|
|
private final Assignment cConditionAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
|
|
|
|
private final RuleCall cConditionConditionEtParserRuleCall_2_1_0 = (RuleCall)cConditionAssignment_2_1.eContents().get(0);
|
|
|
|
private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
|
|
|
|
|
|
|
|
//Condition:
|
|
|
|
// '(' condition+=ConditionEt ('||' condition+=ConditionEt)* ')';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'(' condition+=ConditionEt ('||' condition+=ConditionEt)* ')'
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'('
|
|
|
|
public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
|
|
|
|
|
|
|
|
//condition+=ConditionEt
|
|
|
|
public Assignment getConditionAssignment_1() { return cConditionAssignment_1; }
|
|
|
|
|
|
|
|
//ConditionEt
|
|
|
|
public RuleCall getConditionConditionEtParserRuleCall_1_0() { return cConditionConditionEtParserRuleCall_1_0; }
|
|
|
|
|
|
|
|
//('||' condition+=ConditionEt)*
|
|
|
|
public Group getGroup_2() { return cGroup_2; }
|
|
|
|
|
|
|
|
//'||'
|
|
|
|
public Keyword getVerticalLineVerticalLineKeyword_2_0() { return cVerticalLineVerticalLineKeyword_2_0; }
|
|
|
|
|
|
|
|
//condition+=ConditionEt
|
|
|
|
public Assignment getConditionAssignment_2_1() { return cConditionAssignment_2_1; }
|
|
|
|
|
|
|
|
//ConditionEt
|
|
|
|
public RuleCall getConditionConditionEtParserRuleCall_2_1_0() { return cConditionConditionEtParserRuleCall_2_1_0; }
|
|
|
|
|
|
|
|
//')'
|
|
|
|
public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
|
|
|
|
}
|
|
|
|
public class ConditionEtElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.GAME.ConditionEt");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final Assignment cConditionTestAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
|
|
|
private final RuleCall cConditionTestConditionTestParserRuleCall_1_0 = (RuleCall)cConditionTestAssignment_1.eContents().get(0);
|
|
|
|
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
|
|
|
|
private final Keyword cAmpersandAmpersandKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
|
|
|
|
private final Assignment cConditionTestAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
|
|
|
|
private final RuleCall cConditionTestConditionTestParserRuleCall_2_1_0 = (RuleCall)cConditionTestAssignment_2_1.eContents().get(0);
|
|
|
|
private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
|
|
|
|
|
|
|
|
//ConditionEt:
|
|
|
|
// '(' conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)* ')';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'(' conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)* ')'
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'('
|
|
|
|
public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
|
|
|
|
|
|
|
|
//conditionTest+=ConditionTest
|
|
|
|
public Assignment getConditionTestAssignment_1() { return cConditionTestAssignment_1; }
|
|
|
|
|
|
|
|
//ConditionTest
|
|
|
|
public RuleCall getConditionTestConditionTestParserRuleCall_1_0() { return cConditionTestConditionTestParserRuleCall_1_0; }
|
|
|
|
|
|
|
|
//('&&' conditionTest+=ConditionTest)*
|
|
|
|
public Group getGroup_2() { return cGroup_2; }
|
|
|
|
|
|
|
|
//'&&'
|
|
|
|
public Keyword getAmpersandAmpersandKeyword_2_0() { return cAmpersandAmpersandKeyword_2_0; }
|
|
|
|
|
|
|
|
//conditionTest+=ConditionTest
|
|
|
|
public Assignment getConditionTestAssignment_2_1() { return cConditionTestAssignment_2_1; }
|
|
|
|
|
|
|
|
//ConditionTest
|
|
|
|
public RuleCall getConditionTestConditionTestParserRuleCall_2_1_0() { return cConditionTestConditionTestParserRuleCall_2_1_0; }
|
|
|
|
|
|
|
|
//')'
|
|
|
|
public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
|
|
|
|
}
|
|
|
|
public class ConditionTestElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.GAME.ConditionConnaissance");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Assignment cConnaissanceAssignment = (Assignment)rule.eContents().get(1);
|
|
|
|
private final RuleCall cConnaissanceNomParserRuleCall_0 = (RuleCall)cConnaissanceAssignment.eContents().get(0);
|
|
|
|
|
|
|
|
//ConditionConnaissance:
|
|
|
|
// connaissance=Nom;
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//connaissance=Nom
|
|
|
|
public Assignment getConnaissanceAssignment() { return cConnaissanceAssignment; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissanceNomParserRuleCall_0() { return cConnaissanceNomParserRuleCall_0; }
|
|
|
|
}
|
|
|
|
public class NOTConditionConnaissanceElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cConnaissanceNomParserRuleCall_1_0 = (RuleCall)cConnaissanceAssignment_1.eContents().get(0);
|
|
|
|
|
|
|
|
//NOTConditionConnaissance:
|
|
|
|
// '!' connaissance=Nom;
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'!' connaissance=Nom
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'!'
|
|
|
|
public Keyword getExclamationMarkKeyword_0() { return cExclamationMarkKeyword_0; }
|
|
|
|
|
|
|
|
//connaissance=Nom
|
|
|
|
public Assignment getConnaissanceAssignment_1() { return cConnaissanceAssignment_1; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getConnaissanceNomParserRuleCall_1_0() { return cConnaissanceNomParserRuleCall_1_0; }
|
|
|
|
}
|
|
|
|
public class ConditionObjetElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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);
|
|
|
|
private final RuleCall cObjetNomParserRuleCall_0_0 = (RuleCall)cObjetAssignment_0.eContents().get(0);
|
|
|
|
private final Assignment cComparateurAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
|
|
|
private final RuleCall cComparateurComparateurParserRuleCall_1_0 = (RuleCall)cComparateurAssignment_1.eContents().get(0);
|
|
|
|
private final Assignment cNombreAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
|
|
|
private final RuleCall cNombreINTTerminalRuleCall_2_0 = (RuleCall)cNombreAssignment_2.eContents().get(0);
|
|
|
|
|
|
|
|
//ConditionObjet:
|
|
|
|
// objet=Nom comparateur=Comparateur nombre=INT;
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//objet=Nom comparateur=Comparateur nombre=INT
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//objet=Nom
|
|
|
|
public Assignment getObjetAssignment_0() { return cObjetAssignment_0; }
|
|
|
|
|
|
|
|
//Nom
|
|
|
|
public RuleCall getObjetNomParserRuleCall_0_0() { return cObjetNomParserRuleCall_0_0; }
|
|
|
|
|
|
|
|
//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 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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; }
|
|
|
|
}
|
|
|
|
public class NomElements extends AbstractParserRuleElementFinder {
|
2021-12-03 07:37:31 +00:00
|
|
|
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.GAME.Nom");
|
2021-12-03 07:36:23 +00:00
|
|
|
private final Group cGroup = (Group)rule.eContents().get(1);
|
|
|
|
private final Keyword cQuotationMarkKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
|
|
|
private final RuleCall cSTRINGTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
|
|
|
|
private final Keyword cQuotationMarkKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
|
|
|
|
|
|
|
//Nom:
|
|
|
|
// '"' STRING '"';
|
|
|
|
@Override public ParserRule getRule() { return rule; }
|
|
|
|
|
|
|
|
//'"' STRING '"'
|
|
|
|
public Group getGroup() { return cGroup; }
|
|
|
|
|
|
|
|
//'"'
|
|
|
|
public Keyword getQuotationMarkKeyword_0() { return cQuotationMarkKeyword_0; }
|
|
|
|
|
|
|
|
//STRING
|
|
|
|
public RuleCall getSTRINGTerminalRuleCall_1() { return cSTRINGTerminalRuleCall_1; }
|
|
|
|
|
|
|
|
//'"'
|
|
|
|
public Keyword getQuotationMarkKeyword_2() { return cQuotationMarkKeyword_2; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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 NomElements pNom;
|
|
|
|
|
|
|
|
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();
|
|
|
|
this.pNom = new NomElements();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
|
|
|
|
Grammar grammar = grammarProvider.getGrammar(this);
|
|
|
|
while (grammar != null) {
|
2021-12-03 07:37:31 +00:00
|
|
|
if ("fr.n7.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 ','
|
|
|
|
// '"Objets"' ':' '[' objets+=Objet* ']' ','
|
|
|
|
// '"Connaissances"' ':' '[' connaissances+=Connaissance* ']' ','
|
|
|
|
// '"Personnes"' ':' '[' personnes+=Personne* ']' ','
|
|
|
|
// '"Transformations"' ':' '[' transformations+=Transformation* ']'
|
|
|
|
// '}';
|
|
|
|
public JeuElements getJeuAccess() {
|
|
|
|
return pJeu;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getJeuRule() {
|
|
|
|
return getJeuAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Explorateur:
|
|
|
|
// '{'
|
|
|
|
// '"taille"' ':' tailleInventaire=INT ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
|
|
|
|
// '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
|
|
|
|
// '}';
|
|
|
|
public ExplorateurElements getExplorateurAccess() {
|
|
|
|
return pExplorateur;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getExplorateurRule() {
|
|
|
|
return getExplorateurAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Territoire:
|
|
|
|
// '{'
|
|
|
|
// '"Lieux"' ':' '[' (lieux+=Lieu lieux+=Lieu*)? ']' ','
|
|
|
|
// '"Chemins"' ':' '[' (chemins+=Chemin chemins+=Chemin*)? ']'
|
|
|
|
// '}';
|
|
|
|
public TerritoireElements getTerritoireAccess() {
|
|
|
|
return pTerritoire;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getTerritoireRule() {
|
|
|
|
return getTerritoireAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lieu:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"deposable"' ':' deposable=Condition ','
|
|
|
|
// '"depart"' ':' depart=Condition ','
|
|
|
|
// '"fin"' ':' fin=Condition ','
|
|
|
|
// '"personnes"' ':' '[' (personnes+=Nom personnes+=Nom*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']' ','
|
|
|
|
// '"objets"' ':' '[' (objets+=Nom objets+=Nom*)? ']' ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']'
|
|
|
|
// '}';
|
|
|
|
public LieuElements getLieuAccess() {
|
|
|
|
return pLieu;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getLieuRule() {
|
|
|
|
return getLieuAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Chemin:
|
|
|
|
// '{'
|
|
|
|
// '"lieu_in"' ':' lieuIn=Nom ','
|
|
|
|
// '"lieu_out"' ':' lieuOut=Nom ','
|
|
|
|
// '"ouvert"' ':' ouvert=Condition ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=Nom objetsConso+=Nom*)? ']' ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']'
|
|
|
|
// '}';
|
|
|
|
public CheminElements getCheminAccess() {
|
|
|
|
return pChemin;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getCheminRule() {
|
|
|
|
return getCheminAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Objet:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"taille"' ':' taille=INT ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']'
|
|
|
|
// '}';
|
|
|
|
public ObjetElements getObjetAccess() {
|
|
|
|
return pObjet;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getObjetRule() {
|
|
|
|
return getObjetAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Transformation:
|
|
|
|
// '{'
|
|
|
|
// '"condition"' ':' condition=Condition ','
|
|
|
|
// '"objets_in"' ':' '[' (objetsIn+=Nom objetsIn+=Nom*)? ']' ','
|
|
|
|
// '"objets_out"' ':' '[' (objetsOut+=Nom objetsOut+=Nom*)? ']' ','
|
|
|
|
// '}';
|
|
|
|
public TransformationElements getTransformationAccess() {
|
|
|
|
return pTransformation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getTransformationRule() {
|
|
|
|
return getTransformationAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Connaissance:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"descriptions"' ':' '[' descriptions+=Description+ ']'
|
|
|
|
// '}';
|
|
|
|
public ConnaissanceElements getConnaissanceAccess() {
|
|
|
|
return pConnaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConnaissanceRule() {
|
|
|
|
return getConnaissanceAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Personne:
|
|
|
|
// '{'
|
|
|
|
// '"nom"' ':' nom=Nom ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"obligatoire"' ':' obligatoire=Condition ','
|
|
|
|
// '"interactions"' ':' '[' (interactions+=Interaction interactions+=Interaction*)? ']'
|
|
|
|
// '}';
|
|
|
|
public PersonneElements getPersonneAccess() {
|
|
|
|
return pPersonne;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getPersonneRule() {
|
|
|
|
return getPersonneAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Interaction:
|
|
|
|
// '{'
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"actions"' ':' '[' actions+=Action+ ']' ','
|
|
|
|
// '}';
|
|
|
|
public InteractionElements getInteractionAccess() {
|
|
|
|
return pInteraction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getInteractionRule() {
|
|
|
|
return getInteractionAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Action:
|
|
|
|
// '{'
|
|
|
|
// '"Description"' ':' '[' descriptions+=Description descriptions+=Description* ']' ','
|
|
|
|
// '"visible"' ':' visible=Condition ','
|
|
|
|
// '"connaissances"' ':' '[' (connaissances+=Nom connaissances+=Nom*)? ']' ','
|
|
|
|
// '"objets_recus"' ':' '[' (objetsRecus+=Nom objetsRecus+=Nom*)? ']' ','
|
|
|
|
// '"objets_conso"' ':' '[' (objetsConso+=Nom objetsConso+=Nom*)? ']' ','
|
|
|
|
// '"fin_interaction"' ':' finInteraction=Condition
|
|
|
|
// '}';
|
|
|
|
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:
|
|
|
|
// '(' condition+=ConditionEt ('||' condition+=ConditionEt)* ')';
|
|
|
|
public ConditionElements getConditionAccess() {
|
|
|
|
return pCondition;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionRule() {
|
|
|
|
return getConditionAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//ConditionEt:
|
|
|
|
// '(' conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)* ')';
|
|
|
|
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:
|
|
|
|
// connaissance=Nom;
|
|
|
|
public ConditionConnaissanceElements getConditionConnaissanceAccess() {
|
|
|
|
return pConditionConnaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionConnaissanceRule() {
|
|
|
|
return getConditionConnaissanceAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//NOTConditionConnaissance:
|
|
|
|
// '!' connaissance=Nom;
|
|
|
|
public NOTConditionConnaissanceElements getNOTConditionConnaissanceAccess() {
|
|
|
|
return pNOTConditionConnaissance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getNOTConditionConnaissanceRule() {
|
|
|
|
return getNOTConditionConnaissanceAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//ConditionObjet:
|
|
|
|
// objet=Nom comparateur=Comparateur nombre=INT;
|
|
|
|
public ConditionObjetElements getConditionObjetAccess() {
|
|
|
|
return pConditionObjet;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getConditionObjetRule() {
|
|
|
|
return getConditionObjetAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Comparateur:
|
|
|
|
// '<' | '>' | '==' | '<=' | '>=' | '!=';
|
|
|
|
public ComparateurElements getComparateurAccess() {
|
|
|
|
return pComparateur;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getComparateurRule() {
|
|
|
|
return getComparateurAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//Nom:
|
|
|
|
// '"' STRING '"';
|
|
|
|
public NomElements getNomAccess() {
|
|
|
|
return pNom;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ParserRule getNomRule() {
|
|
|
|
return getNomAccess().getRule();
|
|
|
|
}
|
|
|
|
|
|
|
|
//terminal ID:
|
|
|
|
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
|
|
|
|
public TerminalRule getIDRule() {
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|