projet-genie-logiciel-systeme/workspace/fr.n7.game/src-gen/xtext/parser/antlr/internal/InternalGameParser.java
2021-12-03 08:36:23 +01:00

6830 lines
258 KiB
Java

package xtext.parser.antlr.internal;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.*;
import org.eclipse.xtext.parser.impl.*;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
import xtext.services.GameGrammarAccess;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class InternalGameParser extends AbstractInternalAntlrParser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_STRING", "RULE_ID", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'{'", "'\"Explorateur\"'", "':'", "','", "'\"Territoire\"'", "'\"Objets\"'", "'['", "']'", "'\"Connaissances\"'", "'\"Personnes\"'", "'\"Transformations\"'", "'}'", "'\"taille\"'", "'\"connaissances\"'", "'\"objets\"'", "'\"Lieux\"'", "'\"Chemins\"'", "'\"nom\"'", "'\"deposable\"'", "'\"depart\"'", "'\"fin\"'", "'\"personnes\"'", "'\"descriptions\"'", "'\"lieu_in\"'", "'\"lieu_out\"'", "'\"ouvert\"'", "'\"visible\"'", "'\"obligatoire\"'", "'\"objets_recus\"'", "'\"objets_conso\"'", "'\"condition\"'", "'\"objets_in\"'", "'\"objets_out\"'", "'\"interactions\"'", "'\"actions\"'", "'\"Description\"'", "'\"fin_interaction\"'", "'\"texte\"'", "'('", "'||'", "')'", "'&&'", "'true'", "'false'", "'!'", "'<'", "'>'", "'=='", "'<='", "'>='", "'!='", "'\"'"
};
public static final int T__50=50;
public static final int T__19=19;
public static final int T__15=15;
public static final int T__59=59;
public static final int T__16=16;
public static final int T__17=17;
public static final int T__18=18;
public static final int T__11=11;
public static final int T__55=55;
public static final int T__12=12;
public static final int T__56=56;
public static final int T__13=13;
public static final int T__57=57;
public static final int T__14=14;
public static final int T__58=58;
public static final int T__51=51;
public static final int T__52=52;
public static final int T__53=53;
public static final int T__54=54;
public static final int T__60=60;
public static final int T__61=61;
public static final int RULE_ID=6;
public static final int T__26=26;
public static final int T__27=27;
public static final int T__28=28;
public static final int RULE_INT=4;
public static final int T__29=29;
public static final int T__22=22;
public static final int RULE_ML_COMMENT=7;
public static final int T__23=23;
public static final int T__24=24;
public static final int T__25=25;
public static final int T__62=62;
public static final int T__20=20;
public static final int T__21=21;
public static final int RULE_STRING=5;
public static final int RULE_SL_COMMENT=8;
public static final int T__37=37;
public static final int T__38=38;
public static final int T__39=39;
public static final int T__33=33;
public static final int T__34=34;
public static final int T__35=35;
public static final int T__36=36;
public static final int EOF=-1;
public static final int T__30=30;
public static final int T__31=31;
public static final int T__32=32;
public static final int RULE_WS=9;
public static final int RULE_ANY_OTHER=10;
public static final int T__48=48;
public static final int T__49=49;
public static final int T__44=44;
public static final int T__45=45;
public static final int T__46=46;
public static final int T__47=47;
public static final int T__40=40;
public static final int T__41=41;
public static final int T__42=42;
public static final int T__43=43;
// delegates
// delegators
public InternalGameParser(TokenStream input) {
this(input, new RecognizerSharedState());
}
public InternalGameParser(TokenStream input, RecognizerSharedState state) {
super(input, state);
}
public String[] getTokenNames() { return InternalGameParser.tokenNames; }
public String getGrammarFileName() { return "InternalGame.g"; }
private GameGrammarAccess grammarAccess;
public InternalGameParser(TokenStream input, GameGrammarAccess grammarAccess) {
this(input);
this.grammarAccess = grammarAccess;
registerRules(grammarAccess.getGrammar());
}
@Override
protected String getFirstRuleName() {
return "Jeu";
}
@Override
protected GameGrammarAccess getGrammarAccess() {
return grammarAccess;
}
// $ANTLR start "entryRuleJeu"
// InternalGame.g:64:1: entryRuleJeu returns [EObject current=null] : iv_ruleJeu= ruleJeu EOF ;
public final EObject entryRuleJeu() throws RecognitionException {
EObject current = null;
EObject iv_ruleJeu = null;
try {
// InternalGame.g:64:44: (iv_ruleJeu= ruleJeu EOF )
// InternalGame.g:65:2: iv_ruleJeu= ruleJeu EOF
{
newCompositeNode(grammarAccess.getJeuRule());
pushFollow(FOLLOW_1);
iv_ruleJeu=ruleJeu();
state._fsp--;
current =iv_ruleJeu;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleJeu"
// $ANTLR start "ruleJeu"
// InternalGame.g:71:1: ruleJeu returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"Explorateur\"' otherlv_2= ':' ( (lv_explorateur_3_0= ruleExplorateur ) ) otherlv_4= ',' otherlv_5= '\"Territoire\"' otherlv_6= ':' ( (lv_territoire_7_0= ruleTerritoire ) ) otherlv_8= ',' otherlv_9= '\"Objets\"' otherlv_10= ':' otherlv_11= '[' ( (lv_objets_12_0= ruleObjet ) )* otherlv_13= ']' otherlv_14= ',' otherlv_15= '\"Connaissances\"' otherlv_16= ':' otherlv_17= '[' ( (lv_connaissances_18_0= ruleConnaissance ) )* otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"Personnes\"' otherlv_22= ':' otherlv_23= '[' ( (lv_personnes_24_0= rulePersonne ) )* otherlv_25= ']' otherlv_26= ',' otherlv_27= '\"Transformations\"' otherlv_28= ':' otherlv_29= '[' ( (lv_transformations_30_0= ruleTransformation ) )* otherlv_31= ']' otherlv_32= '}' ) ;
public final EObject ruleJeu() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
Token otherlv_16=null;
Token otherlv_17=null;
Token otherlv_19=null;
Token otherlv_20=null;
Token otherlv_21=null;
Token otherlv_22=null;
Token otherlv_23=null;
Token otherlv_25=null;
Token otherlv_26=null;
Token otherlv_27=null;
Token otherlv_28=null;
Token otherlv_29=null;
Token otherlv_31=null;
Token otherlv_32=null;
EObject lv_explorateur_3_0 = null;
EObject lv_territoire_7_0 = null;
EObject lv_objets_12_0 = null;
EObject lv_connaissances_18_0 = null;
EObject lv_personnes_24_0 = null;
EObject lv_transformations_30_0 = null;
enterRule();
try {
// InternalGame.g:77:2: ( (otherlv_0= '{' otherlv_1= '\"Explorateur\"' otherlv_2= ':' ( (lv_explorateur_3_0= ruleExplorateur ) ) otherlv_4= ',' otherlv_5= '\"Territoire\"' otherlv_6= ':' ( (lv_territoire_7_0= ruleTerritoire ) ) otherlv_8= ',' otherlv_9= '\"Objets\"' otherlv_10= ':' otherlv_11= '[' ( (lv_objets_12_0= ruleObjet ) )* otherlv_13= ']' otherlv_14= ',' otherlv_15= '\"Connaissances\"' otherlv_16= ':' otherlv_17= '[' ( (lv_connaissances_18_0= ruleConnaissance ) )* otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"Personnes\"' otherlv_22= ':' otherlv_23= '[' ( (lv_personnes_24_0= rulePersonne ) )* otherlv_25= ']' otherlv_26= ',' otherlv_27= '\"Transformations\"' otherlv_28= ':' otherlv_29= '[' ( (lv_transformations_30_0= ruleTransformation ) )* otherlv_31= ']' otherlv_32= '}' ) )
// InternalGame.g:78:2: (otherlv_0= '{' otherlv_1= '\"Explorateur\"' otherlv_2= ':' ( (lv_explorateur_3_0= ruleExplorateur ) ) otherlv_4= ',' otherlv_5= '\"Territoire\"' otherlv_6= ':' ( (lv_territoire_7_0= ruleTerritoire ) ) otherlv_8= ',' otherlv_9= '\"Objets\"' otherlv_10= ':' otherlv_11= '[' ( (lv_objets_12_0= ruleObjet ) )* otherlv_13= ']' otherlv_14= ',' otherlv_15= '\"Connaissances\"' otherlv_16= ':' otherlv_17= '[' ( (lv_connaissances_18_0= ruleConnaissance ) )* otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"Personnes\"' otherlv_22= ':' otherlv_23= '[' ( (lv_personnes_24_0= rulePersonne ) )* otherlv_25= ']' otherlv_26= ',' otherlv_27= '\"Transformations\"' otherlv_28= ':' otherlv_29= '[' ( (lv_transformations_30_0= ruleTransformation ) )* otherlv_31= ']' otherlv_32= '}' )
{
// InternalGame.g:78:2: (otherlv_0= '{' otherlv_1= '\"Explorateur\"' otherlv_2= ':' ( (lv_explorateur_3_0= ruleExplorateur ) ) otherlv_4= ',' otherlv_5= '\"Territoire\"' otherlv_6= ':' ( (lv_territoire_7_0= ruleTerritoire ) ) otherlv_8= ',' otherlv_9= '\"Objets\"' otherlv_10= ':' otherlv_11= '[' ( (lv_objets_12_0= ruleObjet ) )* otherlv_13= ']' otherlv_14= ',' otherlv_15= '\"Connaissances\"' otherlv_16= ':' otherlv_17= '[' ( (lv_connaissances_18_0= ruleConnaissance ) )* otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"Personnes\"' otherlv_22= ':' otherlv_23= '[' ( (lv_personnes_24_0= rulePersonne ) )* otherlv_25= ']' otherlv_26= ',' otherlv_27= '\"Transformations\"' otherlv_28= ':' otherlv_29= '[' ( (lv_transformations_30_0= ruleTransformation ) )* otherlv_31= ']' otherlv_32= '}' )
// InternalGame.g:79:3: otherlv_0= '{' otherlv_1= '\"Explorateur\"' otherlv_2= ':' ( (lv_explorateur_3_0= ruleExplorateur ) ) otherlv_4= ',' otherlv_5= '\"Territoire\"' otherlv_6= ':' ( (lv_territoire_7_0= ruleTerritoire ) ) otherlv_8= ',' otherlv_9= '\"Objets\"' otherlv_10= ':' otherlv_11= '[' ( (lv_objets_12_0= ruleObjet ) )* otherlv_13= ']' otherlv_14= ',' otherlv_15= '\"Connaissances\"' otherlv_16= ':' otherlv_17= '[' ( (lv_connaissances_18_0= ruleConnaissance ) )* otherlv_19= ']' otherlv_20= ',' otherlv_21= '\"Personnes\"' otherlv_22= ':' otherlv_23= '[' ( (lv_personnes_24_0= rulePersonne ) )* otherlv_25= ']' otherlv_26= ',' otherlv_27= '\"Transformations\"' otherlv_28= ':' otherlv_29= '[' ( (lv_transformations_30_0= ruleTransformation ) )* otherlv_31= ']' otherlv_32= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_3);
newLeafNode(otherlv_0, grammarAccess.getJeuAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,12,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getJeuAccess().getExplorateurKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_5);
newLeafNode(otherlv_2, grammarAccess.getJeuAccess().getColonKeyword_2());
// InternalGame.g:91:3: ( (lv_explorateur_3_0= ruleExplorateur ) )
// InternalGame.g:92:4: (lv_explorateur_3_0= ruleExplorateur )
{
// InternalGame.g:92:4: (lv_explorateur_3_0= ruleExplorateur )
// InternalGame.g:93:5: lv_explorateur_3_0= ruleExplorateur
{
newCompositeNode(grammarAccess.getJeuAccess().getExplorateurExplorateurParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_explorateur_3_0=ruleExplorateur();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getJeuRule());
}
set(
current,
"explorateur",
lv_explorateur_3_0,
"xtext.Game.Explorateur");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_7);
newLeafNode(otherlv_4, grammarAccess.getJeuAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,15,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getJeuAccess().getTerritoireKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_5);
newLeafNode(otherlv_6, grammarAccess.getJeuAccess().getColonKeyword_6());
// InternalGame.g:122:3: ( (lv_territoire_7_0= ruleTerritoire ) )
// InternalGame.g:123:4: (lv_territoire_7_0= ruleTerritoire )
{
// InternalGame.g:123:4: (lv_territoire_7_0= ruleTerritoire )
// InternalGame.g:124:5: lv_territoire_7_0= ruleTerritoire
{
newCompositeNode(grammarAccess.getJeuAccess().getTerritoireTerritoireParserRuleCall_7_0());
pushFollow(FOLLOW_6);
lv_territoire_7_0=ruleTerritoire();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getJeuRule());
}
set(
current,
"territoire",
lv_territoire_7_0,
"xtext.Game.Territoire");
afterParserOrEnumRuleCall();
}
}
otherlv_8=(Token)match(input,14,FOLLOW_8);
newLeafNode(otherlv_8, grammarAccess.getJeuAccess().getCommaKeyword_8());
otherlv_9=(Token)match(input,16,FOLLOW_4);
newLeafNode(otherlv_9, grammarAccess.getJeuAccess().getObjetsKeyword_9());
otherlv_10=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_10, grammarAccess.getJeuAccess().getColonKeyword_10());
otherlv_11=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_11, grammarAccess.getJeuAccess().getLeftSquareBracketKeyword_11());
// InternalGame.g:157:3: ( (lv_objets_12_0= ruleObjet ) )*
loop1:
do {
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==11) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// InternalGame.g:158:4: (lv_objets_12_0= ruleObjet )
{
// InternalGame.g:158:4: (lv_objets_12_0= ruleObjet )
// InternalGame.g:159:5: lv_objets_12_0= ruleObjet
{
newCompositeNode(grammarAccess.getJeuAccess().getObjetsObjetParserRuleCall_12_0());
pushFollow(FOLLOW_10);
lv_objets_12_0=ruleObjet();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getJeuRule());
}
add(
current,
"objets",
lv_objets_12_0,
"xtext.Game.Objet");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop1;
}
} while (true);
otherlv_13=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_13, grammarAccess.getJeuAccess().getRightSquareBracketKeyword_13());
otherlv_14=(Token)match(input,14,FOLLOW_11);
newLeafNode(otherlv_14, grammarAccess.getJeuAccess().getCommaKeyword_14());
otherlv_15=(Token)match(input,19,FOLLOW_4);
newLeafNode(otherlv_15, grammarAccess.getJeuAccess().getConnaissancesKeyword_15());
otherlv_16=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_16, grammarAccess.getJeuAccess().getColonKeyword_16());
otherlv_17=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_17, grammarAccess.getJeuAccess().getLeftSquareBracketKeyword_17());
// InternalGame.g:196:3: ( (lv_connaissances_18_0= ruleConnaissance ) )*
loop2:
do {
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0==11) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// InternalGame.g:197:4: (lv_connaissances_18_0= ruleConnaissance )
{
// InternalGame.g:197:4: (lv_connaissances_18_0= ruleConnaissance )
// InternalGame.g:198:5: lv_connaissances_18_0= ruleConnaissance
{
newCompositeNode(grammarAccess.getJeuAccess().getConnaissancesConnaissanceParserRuleCall_18_0());
pushFollow(FOLLOW_10);
lv_connaissances_18_0=ruleConnaissance();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getJeuRule());
}
add(
current,
"connaissances",
lv_connaissances_18_0,
"xtext.Game.Connaissance");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop2;
}
} while (true);
otherlv_19=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_19, grammarAccess.getJeuAccess().getRightSquareBracketKeyword_19());
otherlv_20=(Token)match(input,14,FOLLOW_12);
newLeafNode(otherlv_20, grammarAccess.getJeuAccess().getCommaKeyword_20());
otherlv_21=(Token)match(input,20,FOLLOW_4);
newLeafNode(otherlv_21, grammarAccess.getJeuAccess().getPersonnesKeyword_21());
otherlv_22=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_22, grammarAccess.getJeuAccess().getColonKeyword_22());
otherlv_23=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_23, grammarAccess.getJeuAccess().getLeftSquareBracketKeyword_23());
// InternalGame.g:235:3: ( (lv_personnes_24_0= rulePersonne ) )*
loop3:
do {
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0==11) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// InternalGame.g:236:4: (lv_personnes_24_0= rulePersonne )
{
// InternalGame.g:236:4: (lv_personnes_24_0= rulePersonne )
// InternalGame.g:237:5: lv_personnes_24_0= rulePersonne
{
newCompositeNode(grammarAccess.getJeuAccess().getPersonnesPersonneParserRuleCall_24_0());
pushFollow(FOLLOW_10);
lv_personnes_24_0=rulePersonne();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getJeuRule());
}
add(
current,
"personnes",
lv_personnes_24_0,
"xtext.Game.Personne");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop3;
}
} while (true);
otherlv_25=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_25, grammarAccess.getJeuAccess().getRightSquareBracketKeyword_25());
otherlv_26=(Token)match(input,14,FOLLOW_13);
newLeafNode(otherlv_26, grammarAccess.getJeuAccess().getCommaKeyword_26());
otherlv_27=(Token)match(input,21,FOLLOW_4);
newLeafNode(otherlv_27, grammarAccess.getJeuAccess().getTransformationsKeyword_27());
otherlv_28=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_28, grammarAccess.getJeuAccess().getColonKeyword_28());
otherlv_29=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_29, grammarAccess.getJeuAccess().getLeftSquareBracketKeyword_29());
// InternalGame.g:274:3: ( (lv_transformations_30_0= ruleTransformation ) )*
loop4:
do {
int alt4=2;
int LA4_0 = input.LA(1);
if ( (LA4_0==11) ) {
alt4=1;
}
switch (alt4) {
case 1 :
// InternalGame.g:275:4: (lv_transformations_30_0= ruleTransformation )
{
// InternalGame.g:275:4: (lv_transformations_30_0= ruleTransformation )
// InternalGame.g:276:5: lv_transformations_30_0= ruleTransformation
{
newCompositeNode(grammarAccess.getJeuAccess().getTransformationsTransformationParserRuleCall_30_0());
pushFollow(FOLLOW_10);
lv_transformations_30_0=ruleTransformation();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getJeuRule());
}
add(
current,
"transformations",
lv_transformations_30_0,
"xtext.Game.Transformation");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop4;
}
} while (true);
otherlv_31=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_31, grammarAccess.getJeuAccess().getRightSquareBracketKeyword_31());
otherlv_32=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_32, grammarAccess.getJeuAccess().getRightCurlyBracketKeyword_32());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleJeu"
// $ANTLR start "entryRuleExplorateur"
// InternalGame.g:305:1: entryRuleExplorateur returns [EObject current=null] : iv_ruleExplorateur= ruleExplorateur EOF ;
public final EObject entryRuleExplorateur() throws RecognitionException {
EObject current = null;
EObject iv_ruleExplorateur = null;
try {
// InternalGame.g:305:52: (iv_ruleExplorateur= ruleExplorateur EOF )
// InternalGame.g:306:2: iv_ruleExplorateur= ruleExplorateur EOF
{
newCompositeNode(grammarAccess.getExplorateurRule());
pushFollow(FOLLOW_1);
iv_ruleExplorateur=ruleExplorateur();
state._fsp--;
current =iv_ruleExplorateur;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleExplorateur"
// $ANTLR start "ruleExplorateur"
// InternalGame.g:312:1: ruleExplorateur returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) ;
public final EObject ruleExplorateur() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token lv_tailleInventaire_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
Token otherlv_17=null;
Token otherlv_19=null;
Token otherlv_20=null;
AntlrDatatypeRuleToken lv_connaissances_8_0 = null;
AntlrDatatypeRuleToken lv_connaissances_10_0 = null;
AntlrDatatypeRuleToken lv_objets_16_0 = null;
AntlrDatatypeRuleToken lv_objets_18_0 = null;
enterRule();
try {
// InternalGame.g:318:2: ( (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' ) )
// InternalGame.g:319:2: (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
{
// InternalGame.g:319:2: (otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}' )
// InternalGame.g:320:3: otherlv_0= '{' otherlv_1= '\"taille\"' otherlv_2= ':' ( (lv_tailleInventaire_3_0= RULE_INT ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )? otherlv_11= ']' otherlv_12= ',' otherlv_13= '\"objets\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )? otherlv_19= ']' otherlv_20= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_15);
newLeafNode(otherlv_0, grammarAccess.getExplorateurAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,23,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getExplorateurAccess().getTailleKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_16);
newLeafNode(otherlv_2, grammarAccess.getExplorateurAccess().getColonKeyword_2());
// InternalGame.g:332:3: ( (lv_tailleInventaire_3_0= RULE_INT ) )
// InternalGame.g:333:4: (lv_tailleInventaire_3_0= RULE_INT )
{
// InternalGame.g:333:4: (lv_tailleInventaire_3_0= RULE_INT )
// InternalGame.g:334:5: lv_tailleInventaire_3_0= RULE_INT
{
lv_tailleInventaire_3_0=(Token)match(input,RULE_INT,FOLLOW_6);
newLeafNode(lv_tailleInventaire_3_0, grammarAccess.getExplorateurAccess().getTailleInventaireINTTerminalRuleCall_3_0());
if (current==null) {
current = createModelElement(grammarAccess.getExplorateurRule());
}
setWithLastConsumed(
current,
"tailleInventaire",
lv_tailleInventaire_3_0,
"org.eclipse.xtext.common.Terminals.INT");
}
}
otherlv_4=(Token)match(input,14,FOLLOW_17);
newLeafNode(otherlv_4, grammarAccess.getExplorateurAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,24,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getExplorateurAccess().getConnaissancesKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_6, grammarAccess.getExplorateurAccess().getColonKeyword_6());
otherlv_7=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_7, grammarAccess.getExplorateurAccess().getLeftSquareBracketKeyword_7());
// InternalGame.g:366:3: ( ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )* )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0==62) ) {
alt6=1;
}
switch (alt6) {
case 1 :
// InternalGame.g:367:4: ( (lv_connaissances_8_0= ruleNom ) ) (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )*
{
// InternalGame.g:367:4: ( (lv_connaissances_8_0= ruleNom ) )
// InternalGame.g:368:5: (lv_connaissances_8_0= ruleNom )
{
// InternalGame.g:368:5: (lv_connaissances_8_0= ruleNom )
// InternalGame.g:369:6: lv_connaissances_8_0= ruleNom
{
newCompositeNode(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_0_0());
pushFollow(FOLLOW_19);
lv_connaissances_8_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
add(
current,
"connaissances",
lv_connaissances_8_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:386:4: (otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) ) )*
loop5:
do {
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0==14) ) {
alt5=1;
}
switch (alt5) {
case 1 :
// InternalGame.g:387:5: otherlv_9= ',' ( (lv_connaissances_10_0= ruleNom ) )
{
otherlv_9=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_9, grammarAccess.getExplorateurAccess().getCommaKeyword_8_1_0());
// InternalGame.g:391:5: ( (lv_connaissances_10_0= ruleNom ) )
// InternalGame.g:392:6: (lv_connaissances_10_0= ruleNom )
{
// InternalGame.g:392:6: (lv_connaissances_10_0= ruleNom )
// InternalGame.g:393:7: lv_connaissances_10_0= ruleNom
{
newCompositeNode(grammarAccess.getExplorateurAccess().getConnaissancesNomParserRuleCall_8_1_1_0());
pushFollow(FOLLOW_19);
lv_connaissances_10_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
add(
current,
"connaissances",
lv_connaissances_10_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop5;
}
} while (true);
}
break;
}
otherlv_11=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_11, grammarAccess.getExplorateurAccess().getRightSquareBracketKeyword_9());
otherlv_12=(Token)match(input,14,FOLLOW_21);
newLeafNode(otherlv_12, grammarAccess.getExplorateurAccess().getCommaKeyword_10());
otherlv_13=(Token)match(input,25,FOLLOW_4);
newLeafNode(otherlv_13, grammarAccess.getExplorateurAccess().getObjetsKeyword_11());
otherlv_14=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_14, grammarAccess.getExplorateurAccess().getColonKeyword_12());
otherlv_15=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_15, grammarAccess.getExplorateurAccess().getLeftSquareBracketKeyword_13());
// InternalGame.g:432:3: ( ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )* )?
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0==62) ) {
alt8=1;
}
switch (alt8) {
case 1 :
// InternalGame.g:433:4: ( (lv_objets_16_0= ruleNom ) ) (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )*
{
// InternalGame.g:433:4: ( (lv_objets_16_0= ruleNom ) )
// InternalGame.g:434:5: (lv_objets_16_0= ruleNom )
{
// InternalGame.g:434:5: (lv_objets_16_0= ruleNom )
// InternalGame.g:435:6: lv_objets_16_0= ruleNom
{
newCompositeNode(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_0_0());
pushFollow(FOLLOW_19);
lv_objets_16_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
add(
current,
"objets",
lv_objets_16_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:452:4: (otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) ) )*
loop7:
do {
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==14) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// InternalGame.g:453:5: otherlv_17= ',' ( (lv_objets_18_0= ruleNom ) )
{
otherlv_17=(Token)match(input,14,FOLLOW_20);
newLeafNode(otherlv_17, grammarAccess.getExplorateurAccess().getCommaKeyword_14_1_0());
// InternalGame.g:457:5: ( (lv_objets_18_0= ruleNom ) )
// InternalGame.g:458:6: (lv_objets_18_0= ruleNom )
{
// InternalGame.g:458:6: (lv_objets_18_0= ruleNom )
// InternalGame.g:459:7: lv_objets_18_0= ruleNom
{
newCompositeNode(grammarAccess.getExplorateurAccess().getObjetsNomParserRuleCall_14_1_1_0());
pushFollow(FOLLOW_19);
lv_objets_18_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getExplorateurRule());
}
add(
current,
"objets",
lv_objets_18_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop7;
}
} while (true);
}
break;
}
otherlv_19=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_19, grammarAccess.getExplorateurAccess().getRightSquareBracketKeyword_15());
otherlv_20=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_20, grammarAccess.getExplorateurAccess().getRightCurlyBracketKeyword_16());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleExplorateur"
// $ANTLR start "entryRuleTerritoire"
// InternalGame.g:490:1: entryRuleTerritoire returns [EObject current=null] : iv_ruleTerritoire= ruleTerritoire EOF ;
public final EObject entryRuleTerritoire() throws RecognitionException {
EObject current = null;
EObject iv_ruleTerritoire = null;
try {
// InternalGame.g:490:51: (iv_ruleTerritoire= ruleTerritoire EOF )
// InternalGame.g:491:2: iv_ruleTerritoire= ruleTerritoire EOF
{
newCompositeNode(grammarAccess.getTerritoireRule());
pushFollow(FOLLOW_1);
iv_ruleTerritoire=ruleTerritoire();
state._fsp--;
current =iv_ruleTerritoire;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleTerritoire"
// $ANTLR start "ruleTerritoire"
// InternalGame.g:497:1: ruleTerritoire returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )* )? otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"Chemins\"' otherlv_9= ':' otherlv_10= '[' ( ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )* )? otherlv_13= ']' otherlv_14= '}' ) ;
public final EObject ruleTerritoire() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_3=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_13=null;
Token otherlv_14=null;
EObject lv_lieux_4_0 = null;
EObject lv_lieux_5_0 = null;
EObject lv_chemins_11_0 = null;
EObject lv_chemins_12_0 = null;
enterRule();
try {
// InternalGame.g:503:2: ( (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )* )? otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"Chemins\"' otherlv_9= ':' otherlv_10= '[' ( ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )* )? otherlv_13= ']' otherlv_14= '}' ) )
// InternalGame.g:504:2: (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )* )? otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"Chemins\"' otherlv_9= ':' otherlv_10= '[' ( ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )* )? otherlv_13= ']' otherlv_14= '}' )
{
// InternalGame.g:504:2: (otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )* )? otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"Chemins\"' otherlv_9= ':' otherlv_10= '[' ( ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )* )? otherlv_13= ']' otherlv_14= '}' )
// InternalGame.g:505:3: otherlv_0= '{' otherlv_1= '\"Lieux\"' otherlv_2= ':' otherlv_3= '[' ( ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )* )? otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"Chemins\"' otherlv_9= ':' otherlv_10= '[' ( ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )* )? otherlv_13= ']' otherlv_14= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_22);
newLeafNode(otherlv_0, grammarAccess.getTerritoireAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,26,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getTerritoireAccess().getLieuxKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_2, grammarAccess.getTerritoireAccess().getColonKeyword_2());
otherlv_3=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_3, grammarAccess.getTerritoireAccess().getLeftSquareBracketKeyword_3());
// InternalGame.g:521:3: ( ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )* )?
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0==11) ) {
alt10=1;
}
switch (alt10) {
case 1 :
// InternalGame.g:522:4: ( (lv_lieux_4_0= ruleLieu ) ) ( (lv_lieux_5_0= ruleLieu ) )*
{
// InternalGame.g:522:4: ( (lv_lieux_4_0= ruleLieu ) )
// InternalGame.g:523:5: (lv_lieux_4_0= ruleLieu )
{
// InternalGame.g:523:5: (lv_lieux_4_0= ruleLieu )
// InternalGame.g:524:6: lv_lieux_4_0= ruleLieu
{
newCompositeNode(grammarAccess.getTerritoireAccess().getLieuxLieuParserRuleCall_4_0_0());
pushFollow(FOLLOW_10);
lv_lieux_4_0=ruleLieu();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTerritoireRule());
}
add(
current,
"lieux",
lv_lieux_4_0,
"xtext.Game.Lieu");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:541:4: ( (lv_lieux_5_0= ruleLieu ) )*
loop9:
do {
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0==11) ) {
alt9=1;
}
switch (alt9) {
case 1 :
// InternalGame.g:542:5: (lv_lieux_5_0= ruleLieu )
{
// InternalGame.g:542:5: (lv_lieux_5_0= ruleLieu )
// InternalGame.g:543:6: lv_lieux_5_0= ruleLieu
{
newCompositeNode(grammarAccess.getTerritoireAccess().getLieuxLieuParserRuleCall_4_1_0());
pushFollow(FOLLOW_10);
lv_lieux_5_0=ruleLieu();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTerritoireRule());
}
add(
current,
"lieux",
lv_lieux_5_0,
"xtext.Game.Lieu");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop9;
}
} while (true);
}
break;
}
otherlv_6=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_6, grammarAccess.getTerritoireAccess().getRightSquareBracketKeyword_5());
otherlv_7=(Token)match(input,14,FOLLOW_23);
newLeafNode(otherlv_7, grammarAccess.getTerritoireAccess().getCommaKeyword_6());
otherlv_8=(Token)match(input,27,FOLLOW_4);
newLeafNode(otherlv_8, grammarAccess.getTerritoireAccess().getCheminsKeyword_7());
otherlv_9=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_9, grammarAccess.getTerritoireAccess().getColonKeyword_8());
otherlv_10=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_10, grammarAccess.getTerritoireAccess().getLeftSquareBracketKeyword_9());
// InternalGame.g:581:3: ( ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )* )?
int alt12=2;
int LA12_0 = input.LA(1);
if ( (LA12_0==11) ) {
alt12=1;
}
switch (alt12) {
case 1 :
// InternalGame.g:582:4: ( (lv_chemins_11_0= ruleChemin ) ) ( (lv_chemins_12_0= ruleChemin ) )*
{
// InternalGame.g:582:4: ( (lv_chemins_11_0= ruleChemin ) )
// InternalGame.g:583:5: (lv_chemins_11_0= ruleChemin )
{
// InternalGame.g:583:5: (lv_chemins_11_0= ruleChemin )
// InternalGame.g:584:6: lv_chemins_11_0= ruleChemin
{
newCompositeNode(grammarAccess.getTerritoireAccess().getCheminsCheminParserRuleCall_10_0_0());
pushFollow(FOLLOW_10);
lv_chemins_11_0=ruleChemin();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTerritoireRule());
}
add(
current,
"chemins",
lv_chemins_11_0,
"xtext.Game.Chemin");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:601:4: ( (lv_chemins_12_0= ruleChemin ) )*
loop11:
do {
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==11) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// InternalGame.g:602:5: (lv_chemins_12_0= ruleChemin )
{
// InternalGame.g:602:5: (lv_chemins_12_0= ruleChemin )
// InternalGame.g:603:6: lv_chemins_12_0= ruleChemin
{
newCompositeNode(grammarAccess.getTerritoireAccess().getCheminsCheminParserRuleCall_10_1_0());
pushFollow(FOLLOW_10);
lv_chemins_12_0=ruleChemin();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTerritoireRule());
}
add(
current,
"chemins",
lv_chemins_12_0,
"xtext.Game.Chemin");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop11;
}
} while (true);
}
break;
}
otherlv_13=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_13, grammarAccess.getTerritoireAccess().getRightSquareBracketKeyword_11());
otherlv_14=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_14, grammarAccess.getTerritoireAccess().getRightCurlyBracketKeyword_12());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleTerritoire"
// $ANTLR start "entryRuleLieu"
// InternalGame.g:633:1: entryRuleLieu returns [EObject current=null] : iv_ruleLieu= ruleLieu EOF ;
public final EObject entryRuleLieu() throws RecognitionException {
EObject current = null;
EObject iv_ruleLieu = null;
try {
// InternalGame.g:633:45: (iv_ruleLieu= ruleLieu EOF )
// InternalGame.g:634:2: iv_ruleLieu= ruleLieu EOF
{
newCompositeNode(grammarAccess.getLieuRule());
pushFollow(FOLLOW_1);
iv_ruleLieu=ruleLieu();
state._fsp--;
current =iv_ruleLieu;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleLieu"
// $ANTLR start "ruleLieu"
// InternalGame.g:640:1: ruleLieu returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )* )? otherlv_22= ']' otherlv_23= ',' otherlv_24= '\"descriptions\"' otherlv_25= ':' otherlv_26= '[' ( (lv_descriptions_27_0= ruleDescription ) )+ otherlv_28= ']' otherlv_29= ',' otherlv_30= '\"objets\"' otherlv_31= ':' otherlv_32= '[' ( ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"connaissances\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )* )? otherlv_42= ']' otherlv_43= '}' ) ;
public final EObject ruleLieu() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_16=null;
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_19=null;
Token otherlv_22=null;
Token otherlv_23=null;
Token otherlv_24=null;
Token otherlv_25=null;
Token otherlv_26=null;
Token otherlv_28=null;
Token otherlv_29=null;
Token otherlv_30=null;
Token otherlv_31=null;
Token otherlv_32=null;
Token otherlv_35=null;
Token otherlv_36=null;
Token otherlv_37=null;
Token otherlv_38=null;
Token otherlv_39=null;
Token otherlv_42=null;
Token otherlv_43=null;
AntlrDatatypeRuleToken lv_nom_3_0 = null;
EObject lv_deposable_7_0 = null;
EObject lv_depart_11_0 = null;
EObject lv_fin_15_0 = null;
AntlrDatatypeRuleToken lv_personnes_20_0 = null;
AntlrDatatypeRuleToken lv_personnes_21_0 = null;
EObject lv_descriptions_27_0 = null;
AntlrDatatypeRuleToken lv_objets_33_0 = null;
AntlrDatatypeRuleToken lv_objets_34_0 = null;
AntlrDatatypeRuleToken lv_connaissances_40_0 = null;
AntlrDatatypeRuleToken lv_connaissances_41_0 = null;
enterRule();
try {
// InternalGame.g:646:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )* )? otherlv_22= ']' otherlv_23= ',' otherlv_24= '\"descriptions\"' otherlv_25= ':' otherlv_26= '[' ( (lv_descriptions_27_0= ruleDescription ) )+ otherlv_28= ']' otherlv_29= ',' otherlv_30= '\"objets\"' otherlv_31= ':' otherlv_32= '[' ( ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"connaissances\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )* )? otherlv_42= ']' otherlv_43= '}' ) )
// InternalGame.g:647:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )* )? otherlv_22= ']' otherlv_23= ',' otherlv_24= '\"descriptions\"' otherlv_25= ':' otherlv_26= '[' ( (lv_descriptions_27_0= ruleDescription ) )+ otherlv_28= ']' otherlv_29= ',' otherlv_30= '\"objets\"' otherlv_31= ':' otherlv_32= '[' ( ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"connaissances\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )* )? otherlv_42= ']' otherlv_43= '}' )
{
// InternalGame.g:647:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )* )? otherlv_22= ']' otherlv_23= ',' otherlv_24= '\"descriptions\"' otherlv_25= ':' otherlv_26= '[' ( (lv_descriptions_27_0= ruleDescription ) )+ otherlv_28= ']' otherlv_29= ',' otherlv_30= '\"objets\"' otherlv_31= ':' otherlv_32= '[' ( ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"connaissances\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )* )? otherlv_42= ']' otherlv_43= '}' )
// InternalGame.g:648:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"deposable\"' otherlv_6= ':' ( (lv_deposable_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"depart\"' otherlv_10= ':' ( (lv_depart_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"fin\"' otherlv_14= ':' ( (lv_fin_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"personnes\"' otherlv_18= ':' otherlv_19= '[' ( ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )* )? otherlv_22= ']' otherlv_23= ',' otherlv_24= '\"descriptions\"' otherlv_25= ':' otherlv_26= '[' ( (lv_descriptions_27_0= ruleDescription ) )+ otherlv_28= ']' otherlv_29= ',' otherlv_30= '\"objets\"' otherlv_31= ':' otherlv_32= '[' ( ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )* )? otherlv_35= ']' otherlv_36= ',' otherlv_37= '\"connaissances\"' otherlv_38= ':' otherlv_39= '[' ( ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )* )? otherlv_42= ']' otherlv_43= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
newLeafNode(otherlv_0, grammarAccess.getLieuAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,28,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getLieuAccess().getNomKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_20);
newLeafNode(otherlv_2, grammarAccess.getLieuAccess().getColonKeyword_2());
// InternalGame.g:660:3: ( (lv_nom_3_0= ruleNom ) )
// InternalGame.g:661:4: (lv_nom_3_0= ruleNom )
{
// InternalGame.g:661:4: (lv_nom_3_0= ruleNom )
// InternalGame.g:662:5: lv_nom_3_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getNomNomParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_nom_3_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
set(
current,
"nom",
lv_nom_3_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_25);
newLeafNode(otherlv_4, grammarAccess.getLieuAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,29,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getLieuAccess().getDeposableKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_6, grammarAccess.getLieuAccess().getColonKeyword_6());
// InternalGame.g:691:3: ( (lv_deposable_7_0= ruleCondition ) )
// InternalGame.g:692:4: (lv_deposable_7_0= ruleCondition )
{
// InternalGame.g:692:4: (lv_deposable_7_0= ruleCondition )
// InternalGame.g:693:5: lv_deposable_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getLieuAccess().getDeposableConditionParserRuleCall_7_0());
pushFollow(FOLLOW_6);
lv_deposable_7_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
set(
current,
"deposable",
lv_deposable_7_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_8=(Token)match(input,14,FOLLOW_27);
newLeafNode(otherlv_8, grammarAccess.getLieuAccess().getCommaKeyword_8());
otherlv_9=(Token)match(input,30,FOLLOW_4);
newLeafNode(otherlv_9, grammarAccess.getLieuAccess().getDepartKeyword_9());
otherlv_10=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_10, grammarAccess.getLieuAccess().getColonKeyword_10());
// InternalGame.g:722:3: ( (lv_depart_11_0= ruleCondition ) )
// InternalGame.g:723:4: (lv_depart_11_0= ruleCondition )
{
// InternalGame.g:723:4: (lv_depart_11_0= ruleCondition )
// InternalGame.g:724:5: lv_depart_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getLieuAccess().getDepartConditionParserRuleCall_11_0());
pushFollow(FOLLOW_6);
lv_depart_11_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
set(
current,
"depart",
lv_depart_11_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_12=(Token)match(input,14,FOLLOW_28);
newLeafNode(otherlv_12, grammarAccess.getLieuAccess().getCommaKeyword_12());
otherlv_13=(Token)match(input,31,FOLLOW_4);
newLeafNode(otherlv_13, grammarAccess.getLieuAccess().getFinKeyword_13());
otherlv_14=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_14, grammarAccess.getLieuAccess().getColonKeyword_14());
// InternalGame.g:753:3: ( (lv_fin_15_0= ruleCondition ) )
// InternalGame.g:754:4: (lv_fin_15_0= ruleCondition )
{
// InternalGame.g:754:4: (lv_fin_15_0= ruleCondition )
// InternalGame.g:755:5: lv_fin_15_0= ruleCondition
{
newCompositeNode(grammarAccess.getLieuAccess().getFinConditionParserRuleCall_15_0());
pushFollow(FOLLOW_6);
lv_fin_15_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
set(
current,
"fin",
lv_fin_15_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_16=(Token)match(input,14,FOLLOW_29);
newLeafNode(otherlv_16, grammarAccess.getLieuAccess().getCommaKeyword_16());
otherlv_17=(Token)match(input,32,FOLLOW_4);
newLeafNode(otherlv_17, grammarAccess.getLieuAccess().getPersonnesKeyword_17());
otherlv_18=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_18, grammarAccess.getLieuAccess().getColonKeyword_18());
otherlv_19=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_19, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_19());
// InternalGame.g:788:3: ( ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )* )?
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==62) ) {
alt14=1;
}
switch (alt14) {
case 1 :
// InternalGame.g:789:4: ( (lv_personnes_20_0= ruleNom ) ) ( (lv_personnes_21_0= ruleNom ) )*
{
// InternalGame.g:789:4: ( (lv_personnes_20_0= ruleNom ) )
// InternalGame.g:790:5: (lv_personnes_20_0= ruleNom )
{
// InternalGame.g:790:5: (lv_personnes_20_0= ruleNom )
// InternalGame.g:791:6: lv_personnes_20_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_0_0());
pushFollow(FOLLOW_18);
lv_personnes_20_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"personnes",
lv_personnes_20_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:808:4: ( (lv_personnes_21_0= ruleNom ) )*
loop13:
do {
int alt13=2;
int LA13_0 = input.LA(1);
if ( (LA13_0==62) ) {
alt13=1;
}
switch (alt13) {
case 1 :
// InternalGame.g:809:5: (lv_personnes_21_0= ruleNom )
{
// InternalGame.g:809:5: (lv_personnes_21_0= ruleNom )
// InternalGame.g:810:6: lv_personnes_21_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getPersonnesNomParserRuleCall_20_1_0());
pushFollow(FOLLOW_18);
lv_personnes_21_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"personnes",
lv_personnes_21_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop13;
}
} while (true);
}
break;
}
otherlv_22=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_22, grammarAccess.getLieuAccess().getRightSquareBracketKeyword_21());
otherlv_23=(Token)match(input,14,FOLLOW_30);
newLeafNode(otherlv_23, grammarAccess.getLieuAccess().getCommaKeyword_22());
otherlv_24=(Token)match(input,33,FOLLOW_4);
newLeafNode(otherlv_24, grammarAccess.getLieuAccess().getDescriptionsKeyword_23());
otherlv_25=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_25, grammarAccess.getLieuAccess().getColonKeyword_24());
otherlv_26=(Token)match(input,17,FOLLOW_5);
newLeafNode(otherlv_26, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_25());
// InternalGame.g:848:3: ( (lv_descriptions_27_0= ruleDescription ) )+
int cnt15=0;
loop15:
do {
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0==11) ) {
alt15=1;
}
switch (alt15) {
case 1 :
// InternalGame.g:849:4: (lv_descriptions_27_0= ruleDescription )
{
// InternalGame.g:849:4: (lv_descriptions_27_0= ruleDescription )
// InternalGame.g:850:5: lv_descriptions_27_0= ruleDescription
{
newCompositeNode(grammarAccess.getLieuAccess().getDescriptionsDescriptionParserRuleCall_26_0());
pushFollow(FOLLOW_10);
lv_descriptions_27_0=ruleDescription();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"descriptions",
lv_descriptions_27_0,
"xtext.Game.Description");
afterParserOrEnumRuleCall();
}
}
break;
default :
if ( cnt15 >= 1 ) break loop15;
EarlyExitException eee =
new EarlyExitException(15, input);
throw eee;
}
cnt15++;
} while (true);
otherlv_28=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_28, grammarAccess.getLieuAccess().getRightSquareBracketKeyword_27());
otherlv_29=(Token)match(input,14,FOLLOW_21);
newLeafNode(otherlv_29, grammarAccess.getLieuAccess().getCommaKeyword_28());
otherlv_30=(Token)match(input,25,FOLLOW_4);
newLeafNode(otherlv_30, grammarAccess.getLieuAccess().getObjetsKeyword_29());
otherlv_31=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_31, grammarAccess.getLieuAccess().getColonKeyword_30());
otherlv_32=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_32, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_31());
// InternalGame.g:887:3: ( ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )* )?
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0==62) ) {
alt17=1;
}
switch (alt17) {
case 1 :
// InternalGame.g:888:4: ( (lv_objets_33_0= ruleNom ) ) ( (lv_objets_34_0= ruleNom ) )*
{
// InternalGame.g:888:4: ( (lv_objets_33_0= ruleNom ) )
// InternalGame.g:889:5: (lv_objets_33_0= ruleNom )
{
// InternalGame.g:889:5: (lv_objets_33_0= ruleNom )
// InternalGame.g:890:6: lv_objets_33_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_32_0_0());
pushFollow(FOLLOW_18);
lv_objets_33_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"objets",
lv_objets_33_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:907:4: ( (lv_objets_34_0= ruleNom ) )*
loop16:
do {
int alt16=2;
int LA16_0 = input.LA(1);
if ( (LA16_0==62) ) {
alt16=1;
}
switch (alt16) {
case 1 :
// InternalGame.g:908:5: (lv_objets_34_0= ruleNom )
{
// InternalGame.g:908:5: (lv_objets_34_0= ruleNom )
// InternalGame.g:909:6: lv_objets_34_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getObjetsNomParserRuleCall_32_1_0());
pushFollow(FOLLOW_18);
lv_objets_34_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"objets",
lv_objets_34_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop16;
}
} while (true);
}
break;
}
otherlv_35=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_35, grammarAccess.getLieuAccess().getRightSquareBracketKeyword_33());
otherlv_36=(Token)match(input,14,FOLLOW_17);
newLeafNode(otherlv_36, grammarAccess.getLieuAccess().getCommaKeyword_34());
otherlv_37=(Token)match(input,24,FOLLOW_4);
newLeafNode(otherlv_37, grammarAccess.getLieuAccess().getConnaissancesKeyword_35());
otherlv_38=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_38, grammarAccess.getLieuAccess().getColonKeyword_36());
otherlv_39=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_39, grammarAccess.getLieuAccess().getLeftSquareBracketKeyword_37());
// InternalGame.g:947:3: ( ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )* )?
int alt19=2;
int LA19_0 = input.LA(1);
if ( (LA19_0==62) ) {
alt19=1;
}
switch (alt19) {
case 1 :
// InternalGame.g:948:4: ( (lv_connaissances_40_0= ruleNom ) ) ( (lv_connaissances_41_0= ruleNom ) )*
{
// InternalGame.g:948:4: ( (lv_connaissances_40_0= ruleNom ) )
// InternalGame.g:949:5: (lv_connaissances_40_0= ruleNom )
{
// InternalGame.g:949:5: (lv_connaissances_40_0= ruleNom )
// InternalGame.g:950:6: lv_connaissances_40_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_38_0_0());
pushFollow(FOLLOW_18);
lv_connaissances_40_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"connaissances",
lv_connaissances_40_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:967:4: ( (lv_connaissances_41_0= ruleNom ) )*
loop18:
do {
int alt18=2;
int LA18_0 = input.LA(1);
if ( (LA18_0==62) ) {
alt18=1;
}
switch (alt18) {
case 1 :
// InternalGame.g:968:5: (lv_connaissances_41_0= ruleNom )
{
// InternalGame.g:968:5: (lv_connaissances_41_0= ruleNom )
// InternalGame.g:969:6: lv_connaissances_41_0= ruleNom
{
newCompositeNode(grammarAccess.getLieuAccess().getConnaissancesNomParserRuleCall_38_1_0());
pushFollow(FOLLOW_18);
lv_connaissances_41_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getLieuRule());
}
add(
current,
"connaissances",
lv_connaissances_41_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop18;
}
} while (true);
}
break;
}
otherlv_42=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_42, grammarAccess.getLieuAccess().getRightSquareBracketKeyword_39());
otherlv_43=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_43, grammarAccess.getLieuAccess().getRightCurlyBracketKeyword_40());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLieu"
// $ANTLR start "entryRuleChemin"
// InternalGame.g:999:1: entryRuleChemin returns [EObject current=null] : iv_ruleChemin= ruleChemin EOF ;
public final EObject entryRuleChemin() throws RecognitionException {
EObject current = null;
EObject iv_ruleChemin = null;
try {
// InternalGame.g:999:47: (iv_ruleChemin= ruleChemin EOF )
// InternalGame.g:1000:2: iv_ruleChemin= ruleChemin EOF
{
newCompositeNode(grammarAccess.getCheminRule());
pushFollow(FOLLOW_1);
iv_ruleChemin=ruleChemin();
state._fsp--;
current =iv_ruleChemin;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleChemin"
// $ANTLR start "ruleChemin"
// InternalGame.g:1006:1: ruleChemin returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )* )? otherlv_26= ']' otherlv_27= ',' otherlv_28= '\"objets_recus\"' otherlv_29= ':' otherlv_30= '[' ( ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )* )? otherlv_33= ']' otherlv_34= ',' otherlv_35= '\"objets_conso\"' otherlv_36= ':' otherlv_37= '[' ( ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )* )? otherlv_40= ']' otherlv_41= ',' otherlv_42= '\"descriptions\"' otherlv_43= ':' otherlv_44= '[' ( (lv_descriptions_45_0= ruleDescription ) )+ otherlv_46= ']' otherlv_47= '}' ) ;
public final EObject ruleChemin() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_16=null;
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_20=null;
Token otherlv_21=null;
Token otherlv_22=null;
Token otherlv_23=null;
Token otherlv_26=null;
Token otherlv_27=null;
Token otherlv_28=null;
Token otherlv_29=null;
Token otherlv_30=null;
Token otherlv_33=null;
Token otherlv_34=null;
Token otherlv_35=null;
Token otherlv_36=null;
Token otherlv_37=null;
Token otherlv_40=null;
Token otherlv_41=null;
Token otherlv_42=null;
Token otherlv_43=null;
Token otherlv_44=null;
Token otherlv_46=null;
Token otherlv_47=null;
AntlrDatatypeRuleToken lv_lieuIn_3_0 = null;
AntlrDatatypeRuleToken lv_lieuOut_7_0 = null;
EObject lv_ouvert_11_0 = null;
EObject lv_visible_15_0 = null;
EObject lv_obligatoire_19_0 = null;
AntlrDatatypeRuleToken lv_connaissances_24_0 = null;
AntlrDatatypeRuleToken lv_connaissances_25_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_31_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_32_0 = null;
AntlrDatatypeRuleToken lv_objetsConso_38_0 = null;
AntlrDatatypeRuleToken lv_objetsConso_39_0 = null;
EObject lv_descriptions_45_0 = null;
enterRule();
try {
// InternalGame.g:1012:2: ( (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )* )? otherlv_26= ']' otherlv_27= ',' otherlv_28= '\"objets_recus\"' otherlv_29= ':' otherlv_30= '[' ( ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )* )? otherlv_33= ']' otherlv_34= ',' otherlv_35= '\"objets_conso\"' otherlv_36= ':' otherlv_37= '[' ( ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )* )? otherlv_40= ']' otherlv_41= ',' otherlv_42= '\"descriptions\"' otherlv_43= ':' otherlv_44= '[' ( (lv_descriptions_45_0= ruleDescription ) )+ otherlv_46= ']' otherlv_47= '}' ) )
// InternalGame.g:1013:2: (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )* )? otherlv_26= ']' otherlv_27= ',' otherlv_28= '\"objets_recus\"' otherlv_29= ':' otherlv_30= '[' ( ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )* )? otherlv_33= ']' otherlv_34= ',' otherlv_35= '\"objets_conso\"' otherlv_36= ':' otherlv_37= '[' ( ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )* )? otherlv_40= ']' otherlv_41= ',' otherlv_42= '\"descriptions\"' otherlv_43= ':' otherlv_44= '[' ( (lv_descriptions_45_0= ruleDescription ) )+ otherlv_46= ']' otherlv_47= '}' )
{
// InternalGame.g:1013:2: (otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )* )? otherlv_26= ']' otherlv_27= ',' otherlv_28= '\"objets_recus\"' otherlv_29= ':' otherlv_30= '[' ( ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )* )? otherlv_33= ']' otherlv_34= ',' otherlv_35= '\"objets_conso\"' otherlv_36= ':' otherlv_37= '[' ( ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )* )? otherlv_40= ']' otherlv_41= ',' otherlv_42= '\"descriptions\"' otherlv_43= ':' otherlv_44= '[' ( (lv_descriptions_45_0= ruleDescription ) )+ otherlv_46= ']' otherlv_47= '}' )
// InternalGame.g:1014:3: otherlv_0= '{' otherlv_1= '\"lieu_in\"' otherlv_2= ':' ( (lv_lieuIn_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"lieu_out\"' otherlv_6= ':' ( (lv_lieuOut_7_0= ruleNom ) ) otherlv_8= ',' otherlv_9= '\"ouvert\"' otherlv_10= ':' ( (lv_ouvert_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"visible\"' otherlv_14= ':' ( (lv_visible_15_0= ruleCondition ) ) otherlv_16= ',' otherlv_17= '\"obligatoire\"' otherlv_18= ':' ( (lv_obligatoire_19_0= ruleCondition ) ) otherlv_20= ',' otherlv_21= '\"connaissances\"' otherlv_22= ':' otherlv_23= '[' ( ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )* )? otherlv_26= ']' otherlv_27= ',' otherlv_28= '\"objets_recus\"' otherlv_29= ':' otherlv_30= '[' ( ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )* )? otherlv_33= ']' otherlv_34= ',' otherlv_35= '\"objets_conso\"' otherlv_36= ':' otherlv_37= '[' ( ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )* )? otherlv_40= ']' otherlv_41= ',' otherlv_42= '\"descriptions\"' otherlv_43= ':' otherlv_44= '[' ( (lv_descriptions_45_0= ruleDescription ) )+ otherlv_46= ']' otherlv_47= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_31);
newLeafNode(otherlv_0, grammarAccess.getCheminAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,34,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getCheminAccess().getLieu_inKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_20);
newLeafNode(otherlv_2, grammarAccess.getCheminAccess().getColonKeyword_2());
// InternalGame.g:1026:3: ( (lv_lieuIn_3_0= ruleNom ) )
// InternalGame.g:1027:4: (lv_lieuIn_3_0= ruleNom )
{
// InternalGame.g:1027:4: (lv_lieuIn_3_0= ruleNom )
// InternalGame.g:1028:5: lv_lieuIn_3_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getLieuInNomParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_lieuIn_3_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
set(
current,
"lieuIn",
lv_lieuIn_3_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_32);
newLeafNode(otherlv_4, grammarAccess.getCheminAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,35,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getCheminAccess().getLieu_outKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_20);
newLeafNode(otherlv_6, grammarAccess.getCheminAccess().getColonKeyword_6());
// InternalGame.g:1057:3: ( (lv_lieuOut_7_0= ruleNom ) )
// InternalGame.g:1058:4: (lv_lieuOut_7_0= ruleNom )
{
// InternalGame.g:1058:4: (lv_lieuOut_7_0= ruleNom )
// InternalGame.g:1059:5: lv_lieuOut_7_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getLieuOutNomParserRuleCall_7_0());
pushFollow(FOLLOW_6);
lv_lieuOut_7_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
set(
current,
"lieuOut",
lv_lieuOut_7_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
otherlv_8=(Token)match(input,14,FOLLOW_33);
newLeafNode(otherlv_8, grammarAccess.getCheminAccess().getCommaKeyword_8());
otherlv_9=(Token)match(input,36,FOLLOW_4);
newLeafNode(otherlv_9, grammarAccess.getCheminAccess().getOuvertKeyword_9());
otherlv_10=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_10, grammarAccess.getCheminAccess().getColonKeyword_10());
// InternalGame.g:1088:3: ( (lv_ouvert_11_0= ruleCondition ) )
// InternalGame.g:1089:4: (lv_ouvert_11_0= ruleCondition )
{
// InternalGame.g:1089:4: (lv_ouvert_11_0= ruleCondition )
// InternalGame.g:1090:5: lv_ouvert_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getCheminAccess().getOuvertConditionParserRuleCall_11_0());
pushFollow(FOLLOW_6);
lv_ouvert_11_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
set(
current,
"ouvert",
lv_ouvert_11_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_12=(Token)match(input,14,FOLLOW_34);
newLeafNode(otherlv_12, grammarAccess.getCheminAccess().getCommaKeyword_12());
otherlv_13=(Token)match(input,37,FOLLOW_4);
newLeafNode(otherlv_13, grammarAccess.getCheminAccess().getVisibleKeyword_13());
otherlv_14=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_14, grammarAccess.getCheminAccess().getColonKeyword_14());
// InternalGame.g:1119:3: ( (lv_visible_15_0= ruleCondition ) )
// InternalGame.g:1120:4: (lv_visible_15_0= ruleCondition )
{
// InternalGame.g:1120:4: (lv_visible_15_0= ruleCondition )
// InternalGame.g:1121:5: lv_visible_15_0= ruleCondition
{
newCompositeNode(grammarAccess.getCheminAccess().getVisibleConditionParserRuleCall_15_0());
pushFollow(FOLLOW_6);
lv_visible_15_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
set(
current,
"visible",
lv_visible_15_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_16=(Token)match(input,14,FOLLOW_35);
newLeafNode(otherlv_16, grammarAccess.getCheminAccess().getCommaKeyword_16());
otherlv_17=(Token)match(input,38,FOLLOW_4);
newLeafNode(otherlv_17, grammarAccess.getCheminAccess().getObligatoireKeyword_17());
otherlv_18=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_18, grammarAccess.getCheminAccess().getColonKeyword_18());
// InternalGame.g:1150:3: ( (lv_obligatoire_19_0= ruleCondition ) )
// InternalGame.g:1151:4: (lv_obligatoire_19_0= ruleCondition )
{
// InternalGame.g:1151:4: (lv_obligatoire_19_0= ruleCondition )
// InternalGame.g:1152:5: lv_obligatoire_19_0= ruleCondition
{
newCompositeNode(grammarAccess.getCheminAccess().getObligatoireConditionParserRuleCall_19_0());
pushFollow(FOLLOW_6);
lv_obligatoire_19_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
set(
current,
"obligatoire",
lv_obligatoire_19_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_20=(Token)match(input,14,FOLLOW_17);
newLeafNode(otherlv_20, grammarAccess.getCheminAccess().getCommaKeyword_20());
otherlv_21=(Token)match(input,24,FOLLOW_4);
newLeafNode(otherlv_21, grammarAccess.getCheminAccess().getConnaissancesKeyword_21());
otherlv_22=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_22, grammarAccess.getCheminAccess().getColonKeyword_22());
otherlv_23=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_23, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_23());
// InternalGame.g:1185:3: ( ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )* )?
int alt21=2;
int LA21_0 = input.LA(1);
if ( (LA21_0==62) ) {
alt21=1;
}
switch (alt21) {
case 1 :
// InternalGame.g:1186:4: ( (lv_connaissances_24_0= ruleNom ) ) ( (lv_connaissances_25_0= ruleNom ) )*
{
// InternalGame.g:1186:4: ( (lv_connaissances_24_0= ruleNom ) )
// InternalGame.g:1187:5: (lv_connaissances_24_0= ruleNom )
{
// InternalGame.g:1187:5: (lv_connaissances_24_0= ruleNom )
// InternalGame.g:1188:6: lv_connaissances_24_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_0_0());
pushFollow(FOLLOW_18);
lv_connaissances_24_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"connaissances",
lv_connaissances_24_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:1205:4: ( (lv_connaissances_25_0= ruleNom ) )*
loop20:
do {
int alt20=2;
int LA20_0 = input.LA(1);
if ( (LA20_0==62) ) {
alt20=1;
}
switch (alt20) {
case 1 :
// InternalGame.g:1206:5: (lv_connaissances_25_0= ruleNom )
{
// InternalGame.g:1206:5: (lv_connaissances_25_0= ruleNom )
// InternalGame.g:1207:6: lv_connaissances_25_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getConnaissancesNomParserRuleCall_24_1_0());
pushFollow(FOLLOW_18);
lv_connaissances_25_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"connaissances",
lv_connaissances_25_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop20;
}
} while (true);
}
break;
}
otherlv_26=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_26, grammarAccess.getCheminAccess().getRightSquareBracketKeyword_25());
otherlv_27=(Token)match(input,14,FOLLOW_36);
newLeafNode(otherlv_27, grammarAccess.getCheminAccess().getCommaKeyword_26());
otherlv_28=(Token)match(input,39,FOLLOW_4);
newLeafNode(otherlv_28, grammarAccess.getCheminAccess().getObjets_recusKeyword_27());
otherlv_29=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_29, grammarAccess.getCheminAccess().getColonKeyword_28());
otherlv_30=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_30, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_29());
// InternalGame.g:1245:3: ( ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )* )?
int alt23=2;
int LA23_0 = input.LA(1);
if ( (LA23_0==62) ) {
alt23=1;
}
switch (alt23) {
case 1 :
// InternalGame.g:1246:4: ( (lv_objetsRecus_31_0= ruleNom ) ) ( (lv_objetsRecus_32_0= ruleNom ) )*
{
// InternalGame.g:1246:4: ( (lv_objetsRecus_31_0= ruleNom ) )
// InternalGame.g:1247:5: (lv_objetsRecus_31_0= ruleNom )
{
// InternalGame.g:1247:5: (lv_objetsRecus_31_0= ruleNom )
// InternalGame.g:1248:6: lv_objetsRecus_31_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_0_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_31_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_31_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:1265:4: ( (lv_objetsRecus_32_0= ruleNom ) )*
loop22:
do {
int alt22=2;
int LA22_0 = input.LA(1);
if ( (LA22_0==62) ) {
alt22=1;
}
switch (alt22) {
case 1 :
// InternalGame.g:1266:5: (lv_objetsRecus_32_0= ruleNom )
{
// InternalGame.g:1266:5: (lv_objetsRecus_32_0= ruleNom )
// InternalGame.g:1267:6: lv_objetsRecus_32_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getObjetsRecusNomParserRuleCall_30_1_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_32_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_32_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop22;
}
} while (true);
}
break;
}
otherlv_33=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_33, grammarAccess.getCheminAccess().getRightSquareBracketKeyword_31());
otherlv_34=(Token)match(input,14,FOLLOW_37);
newLeafNode(otherlv_34, grammarAccess.getCheminAccess().getCommaKeyword_32());
otherlv_35=(Token)match(input,40,FOLLOW_4);
newLeafNode(otherlv_35, grammarAccess.getCheminAccess().getObjets_consoKeyword_33());
otherlv_36=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_36, grammarAccess.getCheminAccess().getColonKeyword_34());
otherlv_37=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_37, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_35());
// InternalGame.g:1305:3: ( ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )* )?
int alt25=2;
int LA25_0 = input.LA(1);
if ( (LA25_0==62) ) {
alt25=1;
}
switch (alt25) {
case 1 :
// InternalGame.g:1306:4: ( (lv_objetsConso_38_0= ruleNom ) ) ( (lv_objetsConso_39_0= ruleNom ) )*
{
// InternalGame.g:1306:4: ( (lv_objetsConso_38_0= ruleNom ) )
// InternalGame.g:1307:5: (lv_objetsConso_38_0= ruleNom )
{
// InternalGame.g:1307:5: (lv_objetsConso_38_0= ruleNom )
// InternalGame.g:1308:6: lv_objetsConso_38_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_0_0());
pushFollow(FOLLOW_18);
lv_objetsConso_38_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"objetsConso",
lv_objetsConso_38_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:1325:4: ( (lv_objetsConso_39_0= ruleNom ) )*
loop24:
do {
int alt24=2;
int LA24_0 = input.LA(1);
if ( (LA24_0==62) ) {
alt24=1;
}
switch (alt24) {
case 1 :
// InternalGame.g:1326:5: (lv_objetsConso_39_0= ruleNom )
{
// InternalGame.g:1326:5: (lv_objetsConso_39_0= ruleNom )
// InternalGame.g:1327:6: lv_objetsConso_39_0= ruleNom
{
newCompositeNode(grammarAccess.getCheminAccess().getObjetsConsoNomParserRuleCall_36_1_0());
pushFollow(FOLLOW_18);
lv_objetsConso_39_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"objetsConso",
lv_objetsConso_39_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop24;
}
} while (true);
}
break;
}
otherlv_40=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_40, grammarAccess.getCheminAccess().getRightSquareBracketKeyword_37());
otherlv_41=(Token)match(input,14,FOLLOW_30);
newLeafNode(otherlv_41, grammarAccess.getCheminAccess().getCommaKeyword_38());
otherlv_42=(Token)match(input,33,FOLLOW_4);
newLeafNode(otherlv_42, grammarAccess.getCheminAccess().getDescriptionsKeyword_39());
otherlv_43=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_43, grammarAccess.getCheminAccess().getColonKeyword_40());
otherlv_44=(Token)match(input,17,FOLLOW_5);
newLeafNode(otherlv_44, grammarAccess.getCheminAccess().getLeftSquareBracketKeyword_41());
// InternalGame.g:1365:3: ( (lv_descriptions_45_0= ruleDescription ) )+
int cnt26=0;
loop26:
do {
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==11) ) {
alt26=1;
}
switch (alt26) {
case 1 :
// InternalGame.g:1366:4: (lv_descriptions_45_0= ruleDescription )
{
// InternalGame.g:1366:4: (lv_descriptions_45_0= ruleDescription )
// InternalGame.g:1367:5: lv_descriptions_45_0= ruleDescription
{
newCompositeNode(grammarAccess.getCheminAccess().getDescriptionsDescriptionParserRuleCall_42_0());
pushFollow(FOLLOW_10);
lv_descriptions_45_0=ruleDescription();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getCheminRule());
}
add(
current,
"descriptions",
lv_descriptions_45_0,
"xtext.Game.Description");
afterParserOrEnumRuleCall();
}
}
break;
default :
if ( cnt26 >= 1 ) break loop26;
EarlyExitException eee =
new EarlyExitException(26, input);
throw eee;
}
cnt26++;
} while (true);
otherlv_46=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_46, grammarAccess.getCheminAccess().getRightSquareBracketKeyword_43());
otherlv_47=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_47, grammarAccess.getCheminAccess().getRightCurlyBracketKeyword_44());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleChemin"
// $ANTLR start "entryRuleObjet"
// InternalGame.g:1396:1: entryRuleObjet returns [EObject current=null] : iv_ruleObjet= ruleObjet EOF ;
public final EObject entryRuleObjet() throws RecognitionException {
EObject current = null;
EObject iv_ruleObjet = null;
try {
// InternalGame.g:1396:46: (iv_ruleObjet= ruleObjet EOF )
// InternalGame.g:1397:2: iv_ruleObjet= ruleObjet EOF
{
newCompositeNode(grammarAccess.getObjetRule());
pushFollow(FOLLOW_1);
iv_ruleObjet=ruleObjet();
state._fsp--;
current =iv_ruleObjet;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleObjet"
// $ANTLR start "ruleObjet"
// InternalGame.g:1403:1: ruleObjet returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) )+ otherlv_17= ']' otherlv_18= '}' ) ;
public final EObject ruleObjet() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token lv_taille_7_0=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
Token otherlv_17=null;
Token otherlv_18=null;
AntlrDatatypeRuleToken lv_nom_3_0 = null;
EObject lv_visible_11_0 = null;
EObject lv_descriptions_16_0 = null;
enterRule();
try {
// InternalGame.g:1409:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) )+ otherlv_17= ']' otherlv_18= '}' ) )
// InternalGame.g:1410:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) )+ otherlv_17= ']' otherlv_18= '}' )
{
// InternalGame.g:1410:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) )+ otherlv_17= ']' otherlv_18= '}' )
// InternalGame.g:1411:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"taille\"' otherlv_6= ':' ( (lv_taille_7_0= RULE_INT ) ) otherlv_8= ',' otherlv_9= '\"visible\"' otherlv_10= ':' ( (lv_visible_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"descriptions\"' otherlv_14= ':' otherlv_15= '[' ( (lv_descriptions_16_0= ruleDescription ) )+ otherlv_17= ']' otherlv_18= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
newLeafNode(otherlv_0, grammarAccess.getObjetAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,28,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getObjetAccess().getNomKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_20);
newLeafNode(otherlv_2, grammarAccess.getObjetAccess().getColonKeyword_2());
// InternalGame.g:1423:3: ( (lv_nom_3_0= ruleNom ) )
// InternalGame.g:1424:4: (lv_nom_3_0= ruleNom )
{
// InternalGame.g:1424:4: (lv_nom_3_0= ruleNom )
// InternalGame.g:1425:5: lv_nom_3_0= ruleNom
{
newCompositeNode(grammarAccess.getObjetAccess().getNomNomParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_nom_3_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getObjetRule());
}
set(
current,
"nom",
lv_nom_3_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_15);
newLeafNode(otherlv_4, grammarAccess.getObjetAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,23,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getObjetAccess().getTailleKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_16);
newLeafNode(otherlv_6, grammarAccess.getObjetAccess().getColonKeyword_6());
// InternalGame.g:1454:3: ( (lv_taille_7_0= RULE_INT ) )
// InternalGame.g:1455:4: (lv_taille_7_0= RULE_INT )
{
// InternalGame.g:1455:4: (lv_taille_7_0= RULE_INT )
// InternalGame.g:1456:5: lv_taille_7_0= RULE_INT
{
lv_taille_7_0=(Token)match(input,RULE_INT,FOLLOW_6);
newLeafNode(lv_taille_7_0, grammarAccess.getObjetAccess().getTailleINTTerminalRuleCall_7_0());
if (current==null) {
current = createModelElement(grammarAccess.getObjetRule());
}
setWithLastConsumed(
current,
"taille",
lv_taille_7_0,
"org.eclipse.xtext.common.Terminals.INT");
}
}
otherlv_8=(Token)match(input,14,FOLLOW_34);
newLeafNode(otherlv_8, grammarAccess.getObjetAccess().getCommaKeyword_8());
otherlv_9=(Token)match(input,37,FOLLOW_4);
newLeafNode(otherlv_9, grammarAccess.getObjetAccess().getVisibleKeyword_9());
otherlv_10=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_10, grammarAccess.getObjetAccess().getColonKeyword_10());
// InternalGame.g:1484:3: ( (lv_visible_11_0= ruleCondition ) )
// InternalGame.g:1485:4: (lv_visible_11_0= ruleCondition )
{
// InternalGame.g:1485:4: (lv_visible_11_0= ruleCondition )
// InternalGame.g:1486:5: lv_visible_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getObjetAccess().getVisibleConditionParserRuleCall_11_0());
pushFollow(FOLLOW_6);
lv_visible_11_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getObjetRule());
}
set(
current,
"visible",
lv_visible_11_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_12=(Token)match(input,14,FOLLOW_30);
newLeafNode(otherlv_12, grammarAccess.getObjetAccess().getCommaKeyword_12());
otherlv_13=(Token)match(input,33,FOLLOW_4);
newLeafNode(otherlv_13, grammarAccess.getObjetAccess().getDescriptionsKeyword_13());
otherlv_14=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_14, grammarAccess.getObjetAccess().getColonKeyword_14());
otherlv_15=(Token)match(input,17,FOLLOW_5);
newLeafNode(otherlv_15, grammarAccess.getObjetAccess().getLeftSquareBracketKeyword_15());
// InternalGame.g:1519:3: ( (lv_descriptions_16_0= ruleDescription ) )+
int cnt27=0;
loop27:
do {
int alt27=2;
int LA27_0 = input.LA(1);
if ( (LA27_0==11) ) {
alt27=1;
}
switch (alt27) {
case 1 :
// InternalGame.g:1520:4: (lv_descriptions_16_0= ruleDescription )
{
// InternalGame.g:1520:4: (lv_descriptions_16_0= ruleDescription )
// InternalGame.g:1521:5: lv_descriptions_16_0= ruleDescription
{
newCompositeNode(grammarAccess.getObjetAccess().getDescriptionsDescriptionParserRuleCall_16_0());
pushFollow(FOLLOW_10);
lv_descriptions_16_0=ruleDescription();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getObjetRule());
}
add(
current,
"descriptions",
lv_descriptions_16_0,
"xtext.Game.Description");
afterParserOrEnumRuleCall();
}
}
break;
default :
if ( cnt27 >= 1 ) break loop27;
EarlyExitException eee =
new EarlyExitException(27, input);
throw eee;
}
cnt27++;
} while (true);
otherlv_17=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_17, grammarAccess.getObjetAccess().getRightSquareBracketKeyword_17());
otherlv_18=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_18, grammarAccess.getObjetAccess().getRightCurlyBracketKeyword_18());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleObjet"
// $ANTLR start "entryRuleTransformation"
// InternalGame.g:1550:1: entryRuleTransformation returns [EObject current=null] : iv_ruleTransformation= ruleTransformation EOF ;
public final EObject entryRuleTransformation() throws RecognitionException {
EObject current = null;
EObject iv_ruleTransformation = null;
try {
// InternalGame.g:1550:55: (iv_ruleTransformation= ruleTransformation EOF )
// InternalGame.g:1551:2: iv_ruleTransformation= ruleTransformation EOF
{
newCompositeNode(grammarAccess.getTransformationRule());
pushFollow(FOLLOW_1);
iv_ruleTransformation=ruleTransformation();
state._fsp--;
current =iv_ruleTransformation;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleTransformation"
// $ANTLR start "ruleTransformation"
// InternalGame.g:1557:1: ruleTransformation returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_out\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '}' ) ;
public final EObject ruleTransformation() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_10=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_19=null;
EObject lv_condition_3_0 = null;
AntlrDatatypeRuleToken lv_objetsIn_8_0 = null;
AntlrDatatypeRuleToken lv_objetsIn_9_0 = null;
AntlrDatatypeRuleToken lv_objetsOut_15_0 = null;
AntlrDatatypeRuleToken lv_objetsOut_16_0 = null;
enterRule();
try {
// InternalGame.g:1563:2: ( (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_out\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '}' ) )
// InternalGame.g:1564:2: (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_out\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '}' )
{
// InternalGame.g:1564:2: (otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_out\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '}' )
// InternalGame.g:1565:3: otherlv_0= '{' otherlv_1= '\"condition\"' otherlv_2= ':' ( (lv_condition_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"objets_in\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_out\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_38);
newLeafNode(otherlv_0, grammarAccess.getTransformationAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,41,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getTransformationAccess().getConditionKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_2, grammarAccess.getTransformationAccess().getColonKeyword_2());
// InternalGame.g:1577:3: ( (lv_condition_3_0= ruleCondition ) )
// InternalGame.g:1578:4: (lv_condition_3_0= ruleCondition )
{
// InternalGame.g:1578:4: (lv_condition_3_0= ruleCondition )
// InternalGame.g:1579:5: lv_condition_3_0= ruleCondition
{
newCompositeNode(grammarAccess.getTransformationAccess().getConditionConditionParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_condition_3_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTransformationRule());
}
set(
current,
"condition",
lv_condition_3_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_39);
newLeafNode(otherlv_4, grammarAccess.getTransformationAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,42,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getTransformationAccess().getObjets_inKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_6, grammarAccess.getTransformationAccess().getColonKeyword_6());
otherlv_7=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_7, grammarAccess.getTransformationAccess().getLeftSquareBracketKeyword_7());
// InternalGame.g:1612:3: ( ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )* )?
int alt29=2;
int LA29_0 = input.LA(1);
if ( (LA29_0==62) ) {
alt29=1;
}
switch (alt29) {
case 1 :
// InternalGame.g:1613:4: ( (lv_objetsIn_8_0= ruleNom ) ) ( (lv_objetsIn_9_0= ruleNom ) )*
{
// InternalGame.g:1613:4: ( (lv_objetsIn_8_0= ruleNom ) )
// InternalGame.g:1614:5: (lv_objetsIn_8_0= ruleNom )
{
// InternalGame.g:1614:5: (lv_objetsIn_8_0= ruleNom )
// InternalGame.g:1615:6: lv_objetsIn_8_0= ruleNom
{
newCompositeNode(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_0_0());
pushFollow(FOLLOW_18);
lv_objetsIn_8_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTransformationRule());
}
add(
current,
"objetsIn",
lv_objetsIn_8_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:1632:4: ( (lv_objetsIn_9_0= ruleNom ) )*
loop28:
do {
int alt28=2;
int LA28_0 = input.LA(1);
if ( (LA28_0==62) ) {
alt28=1;
}
switch (alt28) {
case 1 :
// InternalGame.g:1633:5: (lv_objetsIn_9_0= ruleNom )
{
// InternalGame.g:1633:5: (lv_objetsIn_9_0= ruleNom )
// InternalGame.g:1634:6: lv_objetsIn_9_0= ruleNom
{
newCompositeNode(grammarAccess.getTransformationAccess().getObjetsInNomParserRuleCall_8_1_0());
pushFollow(FOLLOW_18);
lv_objetsIn_9_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTransformationRule());
}
add(
current,
"objetsIn",
lv_objetsIn_9_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop28;
}
} while (true);
}
break;
}
otherlv_10=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_10, grammarAccess.getTransformationAccess().getRightSquareBracketKeyword_9());
otherlv_11=(Token)match(input,14,FOLLOW_40);
newLeafNode(otherlv_11, grammarAccess.getTransformationAccess().getCommaKeyword_10());
otherlv_12=(Token)match(input,43,FOLLOW_4);
newLeafNode(otherlv_12, grammarAccess.getTransformationAccess().getObjets_outKeyword_11());
otherlv_13=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_13, grammarAccess.getTransformationAccess().getColonKeyword_12());
otherlv_14=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_14, grammarAccess.getTransformationAccess().getLeftSquareBracketKeyword_13());
// InternalGame.g:1672:3: ( ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )* )?
int alt31=2;
int LA31_0 = input.LA(1);
if ( (LA31_0==62) ) {
alt31=1;
}
switch (alt31) {
case 1 :
// InternalGame.g:1673:4: ( (lv_objetsOut_15_0= ruleNom ) ) ( (lv_objetsOut_16_0= ruleNom ) )*
{
// InternalGame.g:1673:4: ( (lv_objetsOut_15_0= ruleNom ) )
// InternalGame.g:1674:5: (lv_objetsOut_15_0= ruleNom )
{
// InternalGame.g:1674:5: (lv_objetsOut_15_0= ruleNom )
// InternalGame.g:1675:6: lv_objetsOut_15_0= ruleNom
{
newCompositeNode(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_0_0());
pushFollow(FOLLOW_18);
lv_objetsOut_15_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTransformationRule());
}
add(
current,
"objetsOut",
lv_objetsOut_15_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:1692:4: ( (lv_objetsOut_16_0= ruleNom ) )*
loop30:
do {
int alt30=2;
int LA30_0 = input.LA(1);
if ( (LA30_0==62) ) {
alt30=1;
}
switch (alt30) {
case 1 :
// InternalGame.g:1693:5: (lv_objetsOut_16_0= ruleNom )
{
// InternalGame.g:1693:5: (lv_objetsOut_16_0= ruleNom )
// InternalGame.g:1694:6: lv_objetsOut_16_0= ruleNom
{
newCompositeNode(grammarAccess.getTransformationAccess().getObjetsOutNomParserRuleCall_14_1_0());
pushFollow(FOLLOW_18);
lv_objetsOut_16_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getTransformationRule());
}
add(
current,
"objetsOut",
lv_objetsOut_16_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop30;
}
} while (true);
}
break;
}
otherlv_17=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_17, grammarAccess.getTransformationAccess().getRightSquareBracketKeyword_15());
otherlv_18=(Token)match(input,14,FOLLOW_14);
newLeafNode(otherlv_18, grammarAccess.getTransformationAccess().getCommaKeyword_16());
otherlv_19=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_19, grammarAccess.getTransformationAccess().getRightCurlyBracketKeyword_17());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleTransformation"
// $ANTLR start "entryRuleConnaissance"
// InternalGame.g:1728:1: entryRuleConnaissance returns [EObject current=null] : iv_ruleConnaissance= ruleConnaissance EOF ;
public final EObject entryRuleConnaissance() throws RecognitionException {
EObject current = null;
EObject iv_ruleConnaissance = null;
try {
// InternalGame.g:1728:53: (iv_ruleConnaissance= ruleConnaissance EOF )
// InternalGame.g:1729:2: iv_ruleConnaissance= ruleConnaissance EOF
{
newCompositeNode(grammarAccess.getConnaissanceRule());
pushFollow(FOLLOW_1);
iv_ruleConnaissance=ruleConnaissance();
state._fsp--;
current =iv_ruleConnaissance;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleConnaissance"
// $ANTLR start "ruleConnaissance"
// InternalGame.g:1735:1: ruleConnaissance returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) )+ otherlv_13= ']' otherlv_14= '}' ) ;
public final EObject ruleConnaissance() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
Token otherlv_14=null;
AntlrDatatypeRuleToken lv_nom_3_0 = null;
EObject lv_visible_7_0 = null;
EObject lv_descriptions_12_0 = null;
enterRule();
try {
// InternalGame.g:1741:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) )+ otherlv_13= ']' otherlv_14= '}' ) )
// InternalGame.g:1742:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) )+ otherlv_13= ']' otherlv_14= '}' )
{
// InternalGame.g:1742:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) )+ otherlv_13= ']' otherlv_14= '}' )
// InternalGame.g:1743:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"descriptions\"' otherlv_10= ':' otherlv_11= '[' ( (lv_descriptions_12_0= ruleDescription ) )+ otherlv_13= ']' otherlv_14= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
newLeafNode(otherlv_0, grammarAccess.getConnaissanceAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,28,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getConnaissanceAccess().getNomKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_20);
newLeafNode(otherlv_2, grammarAccess.getConnaissanceAccess().getColonKeyword_2());
// InternalGame.g:1755:3: ( (lv_nom_3_0= ruleNom ) )
// InternalGame.g:1756:4: (lv_nom_3_0= ruleNom )
{
// InternalGame.g:1756:4: (lv_nom_3_0= ruleNom )
// InternalGame.g:1757:5: lv_nom_3_0= ruleNom
{
newCompositeNode(grammarAccess.getConnaissanceAccess().getNomNomParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_nom_3_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConnaissanceRule());
}
set(
current,
"nom",
lv_nom_3_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_34);
newLeafNode(otherlv_4, grammarAccess.getConnaissanceAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,37,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getConnaissanceAccess().getVisibleKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_6, grammarAccess.getConnaissanceAccess().getColonKeyword_6());
// InternalGame.g:1786:3: ( (lv_visible_7_0= ruleCondition ) )
// InternalGame.g:1787:4: (lv_visible_7_0= ruleCondition )
{
// InternalGame.g:1787:4: (lv_visible_7_0= ruleCondition )
// InternalGame.g:1788:5: lv_visible_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getConnaissanceAccess().getVisibleConditionParserRuleCall_7_0());
pushFollow(FOLLOW_6);
lv_visible_7_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConnaissanceRule());
}
set(
current,
"visible",
lv_visible_7_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_8=(Token)match(input,14,FOLLOW_30);
newLeafNode(otherlv_8, grammarAccess.getConnaissanceAccess().getCommaKeyword_8());
otherlv_9=(Token)match(input,33,FOLLOW_4);
newLeafNode(otherlv_9, grammarAccess.getConnaissanceAccess().getDescriptionsKeyword_9());
otherlv_10=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_10, grammarAccess.getConnaissanceAccess().getColonKeyword_10());
otherlv_11=(Token)match(input,17,FOLLOW_5);
newLeafNode(otherlv_11, grammarAccess.getConnaissanceAccess().getLeftSquareBracketKeyword_11());
// InternalGame.g:1821:3: ( (lv_descriptions_12_0= ruleDescription ) )+
int cnt32=0;
loop32:
do {
int alt32=2;
int LA32_0 = input.LA(1);
if ( (LA32_0==11) ) {
alt32=1;
}
switch (alt32) {
case 1 :
// InternalGame.g:1822:4: (lv_descriptions_12_0= ruleDescription )
{
// InternalGame.g:1822:4: (lv_descriptions_12_0= ruleDescription )
// InternalGame.g:1823:5: lv_descriptions_12_0= ruleDescription
{
newCompositeNode(grammarAccess.getConnaissanceAccess().getDescriptionsDescriptionParserRuleCall_12_0());
pushFollow(FOLLOW_10);
lv_descriptions_12_0=ruleDescription();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConnaissanceRule());
}
add(
current,
"descriptions",
lv_descriptions_12_0,
"xtext.Game.Description");
afterParserOrEnumRuleCall();
}
}
break;
default :
if ( cnt32 >= 1 ) break loop32;
EarlyExitException eee =
new EarlyExitException(32, input);
throw eee;
}
cnt32++;
} while (true);
otherlv_13=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_13, grammarAccess.getConnaissanceAccess().getRightSquareBracketKeyword_13());
otherlv_14=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_14, grammarAccess.getConnaissanceAccess().getRightCurlyBracketKeyword_14());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConnaissance"
// $ANTLR start "entryRulePersonne"
// InternalGame.g:1852:1: entryRulePersonne returns [EObject current=null] : iv_rulePersonne= rulePersonne EOF ;
public final EObject entryRulePersonne() throws RecognitionException {
EObject current = null;
EObject iv_rulePersonne = null;
try {
// InternalGame.g:1852:49: (iv_rulePersonne= rulePersonne EOF )
// InternalGame.g:1853:2: iv_rulePersonne= rulePersonne EOF
{
newCompositeNode(grammarAccess.getPersonneRule());
pushFollow(FOLLOW_1);
iv_rulePersonne=rulePersonne();
state._fsp--;
current =iv_rulePersonne;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRulePersonne"
// $ANTLR start "rulePersonne"
// InternalGame.g:1859:1: rulePersonne returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )* )? otherlv_18= ']' otherlv_19= '}' ) ;
public final EObject rulePersonne() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_15=null;
Token otherlv_18=null;
Token otherlv_19=null;
AntlrDatatypeRuleToken lv_nom_3_0 = null;
EObject lv_visible_7_0 = null;
EObject lv_obligatoire_11_0 = null;
EObject lv_interactions_16_0 = null;
EObject lv_interactions_17_0 = null;
enterRule();
try {
// InternalGame.g:1865:2: ( (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )* )? otherlv_18= ']' otherlv_19= '}' ) )
// InternalGame.g:1866:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )* )? otherlv_18= ']' otherlv_19= '}' )
{
// InternalGame.g:1866:2: (otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )* )? otherlv_18= ']' otherlv_19= '}' )
// InternalGame.g:1867:3: otherlv_0= '{' otherlv_1= '\"nom\"' otherlv_2= ':' ( (lv_nom_3_0= ruleNom ) ) otherlv_4= ',' otherlv_5= '\"visible\"' otherlv_6= ':' ( (lv_visible_7_0= ruleCondition ) ) otherlv_8= ',' otherlv_9= '\"obligatoire\"' otherlv_10= ':' ( (lv_obligatoire_11_0= ruleCondition ) ) otherlv_12= ',' otherlv_13= '\"interactions\"' otherlv_14= ':' otherlv_15= '[' ( ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )* )? otherlv_18= ']' otherlv_19= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_24);
newLeafNode(otherlv_0, grammarAccess.getPersonneAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,28,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getPersonneAccess().getNomKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_20);
newLeafNode(otherlv_2, grammarAccess.getPersonneAccess().getColonKeyword_2());
// InternalGame.g:1879:3: ( (lv_nom_3_0= ruleNom ) )
// InternalGame.g:1880:4: (lv_nom_3_0= ruleNom )
{
// InternalGame.g:1880:4: (lv_nom_3_0= ruleNom )
// InternalGame.g:1881:5: lv_nom_3_0= ruleNom
{
newCompositeNode(grammarAccess.getPersonneAccess().getNomNomParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_nom_3_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getPersonneRule());
}
set(
current,
"nom",
lv_nom_3_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_34);
newLeafNode(otherlv_4, grammarAccess.getPersonneAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,37,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getPersonneAccess().getVisibleKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_6, grammarAccess.getPersonneAccess().getColonKeyword_6());
// InternalGame.g:1910:3: ( (lv_visible_7_0= ruleCondition ) )
// InternalGame.g:1911:4: (lv_visible_7_0= ruleCondition )
{
// InternalGame.g:1911:4: (lv_visible_7_0= ruleCondition )
// InternalGame.g:1912:5: lv_visible_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getPersonneAccess().getVisibleConditionParserRuleCall_7_0());
pushFollow(FOLLOW_6);
lv_visible_7_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getPersonneRule());
}
set(
current,
"visible",
lv_visible_7_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_8=(Token)match(input,14,FOLLOW_35);
newLeafNode(otherlv_8, grammarAccess.getPersonneAccess().getCommaKeyword_8());
otherlv_9=(Token)match(input,38,FOLLOW_4);
newLeafNode(otherlv_9, grammarAccess.getPersonneAccess().getObligatoireKeyword_9());
otherlv_10=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_10, grammarAccess.getPersonneAccess().getColonKeyword_10());
// InternalGame.g:1941:3: ( (lv_obligatoire_11_0= ruleCondition ) )
// InternalGame.g:1942:4: (lv_obligatoire_11_0= ruleCondition )
{
// InternalGame.g:1942:4: (lv_obligatoire_11_0= ruleCondition )
// InternalGame.g:1943:5: lv_obligatoire_11_0= ruleCondition
{
newCompositeNode(grammarAccess.getPersonneAccess().getObligatoireConditionParserRuleCall_11_0());
pushFollow(FOLLOW_6);
lv_obligatoire_11_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getPersonneRule());
}
set(
current,
"obligatoire",
lv_obligatoire_11_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_12=(Token)match(input,14,FOLLOW_41);
newLeafNode(otherlv_12, grammarAccess.getPersonneAccess().getCommaKeyword_12());
otherlv_13=(Token)match(input,44,FOLLOW_4);
newLeafNode(otherlv_13, grammarAccess.getPersonneAccess().getInteractionsKeyword_13());
otherlv_14=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_14, grammarAccess.getPersonneAccess().getColonKeyword_14());
otherlv_15=(Token)match(input,17,FOLLOW_10);
newLeafNode(otherlv_15, grammarAccess.getPersonneAccess().getLeftSquareBracketKeyword_15());
// InternalGame.g:1976:3: ( ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )* )?
int alt34=2;
int LA34_0 = input.LA(1);
if ( (LA34_0==11) ) {
alt34=1;
}
switch (alt34) {
case 1 :
// InternalGame.g:1977:4: ( (lv_interactions_16_0= ruleInteraction ) ) ( (lv_interactions_17_0= ruleInteraction ) )*
{
// InternalGame.g:1977:4: ( (lv_interactions_16_0= ruleInteraction ) )
// InternalGame.g:1978:5: (lv_interactions_16_0= ruleInteraction )
{
// InternalGame.g:1978:5: (lv_interactions_16_0= ruleInteraction )
// InternalGame.g:1979:6: lv_interactions_16_0= ruleInteraction
{
newCompositeNode(grammarAccess.getPersonneAccess().getInteractionsInteractionParserRuleCall_16_0_0());
pushFollow(FOLLOW_10);
lv_interactions_16_0=ruleInteraction();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getPersonneRule());
}
add(
current,
"interactions",
lv_interactions_16_0,
"xtext.Game.Interaction");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:1996:4: ( (lv_interactions_17_0= ruleInteraction ) )*
loop33:
do {
int alt33=2;
int LA33_0 = input.LA(1);
if ( (LA33_0==11) ) {
alt33=1;
}
switch (alt33) {
case 1 :
// InternalGame.g:1997:5: (lv_interactions_17_0= ruleInteraction )
{
// InternalGame.g:1997:5: (lv_interactions_17_0= ruleInteraction )
// InternalGame.g:1998:6: lv_interactions_17_0= ruleInteraction
{
newCompositeNode(grammarAccess.getPersonneAccess().getInteractionsInteractionParserRuleCall_16_1_0());
pushFollow(FOLLOW_10);
lv_interactions_17_0=ruleInteraction();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getPersonneRule());
}
add(
current,
"interactions",
lv_interactions_17_0,
"xtext.Game.Interaction");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop33;
}
} while (true);
}
break;
}
otherlv_18=(Token)match(input,18,FOLLOW_14);
newLeafNode(otherlv_18, grammarAccess.getPersonneAccess().getRightSquareBracketKeyword_17());
otherlv_19=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_19, grammarAccess.getPersonneAccess().getRightCurlyBracketKeyword_18());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "rulePersonne"
// $ANTLR start "entryRuleInteraction"
// InternalGame.g:2028:1: entryRuleInteraction returns [EObject current=null] : iv_ruleInteraction= ruleInteraction EOF ;
public final EObject entryRuleInteraction() throws RecognitionException {
EObject current = null;
EObject iv_ruleInteraction = null;
try {
// InternalGame.g:2028:52: (iv_ruleInteraction= ruleInteraction EOF )
// InternalGame.g:2029:2: iv_ruleInteraction= ruleInteraction EOF
{
newCompositeNode(grammarAccess.getInteractionRule());
pushFollow(FOLLOW_1);
iv_ruleInteraction=ruleInteraction();
state._fsp--;
current =iv_ruleInteraction;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleInteraction"
// $ANTLR start "ruleInteraction"
// InternalGame.g:2035:1: ruleInteraction returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_recus\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_conso\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"actions\"' otherlv_27= ':' otherlv_28= '[' ( (lv_actions_29_0= ruleAction ) )+ otherlv_30= ']' otherlv_31= ',' otherlv_32= '}' ) ;
public final EObject ruleInteraction() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_10=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_19=null;
Token otherlv_20=null;
Token otherlv_21=null;
Token otherlv_24=null;
Token otherlv_25=null;
Token otherlv_26=null;
Token otherlv_27=null;
Token otherlv_28=null;
Token otherlv_30=null;
Token otherlv_31=null;
Token otherlv_32=null;
EObject lv_visible_3_0 = null;
AntlrDatatypeRuleToken lv_connaissances_8_0 = null;
AntlrDatatypeRuleToken lv_connaissances_9_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_15_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_16_0 = null;
AntlrDatatypeRuleToken lv_objetsConso_22_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_23_0 = null;
EObject lv_actions_29_0 = null;
enterRule();
try {
// InternalGame.g:2041:2: ( (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_recus\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_conso\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"actions\"' otherlv_27= ':' otherlv_28= '[' ( (lv_actions_29_0= ruleAction ) )+ otherlv_30= ']' otherlv_31= ',' otherlv_32= '}' ) )
// InternalGame.g:2042:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_recus\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_conso\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"actions\"' otherlv_27= ':' otherlv_28= '[' ( (lv_actions_29_0= ruleAction ) )+ otherlv_30= ']' otherlv_31= ',' otherlv_32= '}' )
{
// InternalGame.g:2042:2: (otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_recus\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_conso\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"actions\"' otherlv_27= ':' otherlv_28= '[' ( (lv_actions_29_0= ruleAction ) )+ otherlv_30= ']' otherlv_31= ',' otherlv_32= '}' )
// InternalGame.g:2043:3: otherlv_0= '{' otherlv_1= '\"visible\"' otherlv_2= ':' ( (lv_visible_3_0= ruleCondition ) ) otherlv_4= ',' otherlv_5= '\"connaissances\"' otherlv_6= ':' otherlv_7= '[' ( ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )* )? otherlv_10= ']' otherlv_11= ',' otherlv_12= '\"objets_recus\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_conso\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"actions\"' otherlv_27= ':' otherlv_28= '[' ( (lv_actions_29_0= ruleAction ) )+ otherlv_30= ']' otherlv_31= ',' otherlv_32= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_34);
newLeafNode(otherlv_0, grammarAccess.getInteractionAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,37,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getInteractionAccess().getVisibleKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_2, grammarAccess.getInteractionAccess().getColonKeyword_2());
// InternalGame.g:2055:3: ( (lv_visible_3_0= ruleCondition ) )
// InternalGame.g:2056:4: (lv_visible_3_0= ruleCondition )
{
// InternalGame.g:2056:4: (lv_visible_3_0= ruleCondition )
// InternalGame.g:2057:5: lv_visible_3_0= ruleCondition
{
newCompositeNode(grammarAccess.getInteractionAccess().getVisibleConditionParserRuleCall_3_0());
pushFollow(FOLLOW_6);
lv_visible_3_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
set(
current,
"visible",
lv_visible_3_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_4=(Token)match(input,14,FOLLOW_17);
newLeafNode(otherlv_4, grammarAccess.getInteractionAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,24,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getInteractionAccess().getConnaissancesKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_6, grammarAccess.getInteractionAccess().getColonKeyword_6());
otherlv_7=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_7, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_7());
// InternalGame.g:2090:3: ( ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )* )?
int alt36=2;
int LA36_0 = input.LA(1);
if ( (LA36_0==62) ) {
alt36=1;
}
switch (alt36) {
case 1 :
// InternalGame.g:2091:4: ( (lv_connaissances_8_0= ruleNom ) ) ( (lv_connaissances_9_0= ruleNom ) )*
{
// InternalGame.g:2091:4: ( (lv_connaissances_8_0= ruleNom ) )
// InternalGame.g:2092:5: (lv_connaissances_8_0= ruleNom )
{
// InternalGame.g:2092:5: (lv_connaissances_8_0= ruleNom )
// InternalGame.g:2093:6: lv_connaissances_8_0= ruleNom
{
newCompositeNode(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_0_0());
pushFollow(FOLLOW_18);
lv_connaissances_8_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"connaissances",
lv_connaissances_8_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2110:4: ( (lv_connaissances_9_0= ruleNom ) )*
loop35:
do {
int alt35=2;
int LA35_0 = input.LA(1);
if ( (LA35_0==62) ) {
alt35=1;
}
switch (alt35) {
case 1 :
// InternalGame.g:2111:5: (lv_connaissances_9_0= ruleNom )
{
// InternalGame.g:2111:5: (lv_connaissances_9_0= ruleNom )
// InternalGame.g:2112:6: lv_connaissances_9_0= ruleNom
{
newCompositeNode(grammarAccess.getInteractionAccess().getConnaissancesNomParserRuleCall_8_1_0());
pushFollow(FOLLOW_18);
lv_connaissances_9_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"connaissances",
lv_connaissances_9_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop35;
}
} while (true);
}
break;
}
otherlv_10=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_10, grammarAccess.getInteractionAccess().getRightSquareBracketKeyword_9());
otherlv_11=(Token)match(input,14,FOLLOW_36);
newLeafNode(otherlv_11, grammarAccess.getInteractionAccess().getCommaKeyword_10());
otherlv_12=(Token)match(input,39,FOLLOW_4);
newLeafNode(otherlv_12, grammarAccess.getInteractionAccess().getObjets_recusKeyword_11());
otherlv_13=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_13, grammarAccess.getInteractionAccess().getColonKeyword_12());
otherlv_14=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_14, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_13());
// InternalGame.g:2150:3: ( ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )* )?
int alt38=2;
int LA38_0 = input.LA(1);
if ( (LA38_0==62) ) {
alt38=1;
}
switch (alt38) {
case 1 :
// InternalGame.g:2151:4: ( (lv_objetsRecus_15_0= ruleNom ) ) ( (lv_objetsRecus_16_0= ruleNom ) )*
{
// InternalGame.g:2151:4: ( (lv_objetsRecus_15_0= ruleNom ) )
// InternalGame.g:2152:5: (lv_objetsRecus_15_0= ruleNom )
{
// InternalGame.g:2152:5: (lv_objetsRecus_15_0= ruleNom )
// InternalGame.g:2153:6: lv_objetsRecus_15_0= ruleNom
{
newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_0_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_15_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_15_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2170:4: ( (lv_objetsRecus_16_0= ruleNom ) )*
loop37:
do {
int alt37=2;
int LA37_0 = input.LA(1);
if ( (LA37_0==62) ) {
alt37=1;
}
switch (alt37) {
case 1 :
// InternalGame.g:2171:5: (lv_objetsRecus_16_0= ruleNom )
{
// InternalGame.g:2171:5: (lv_objetsRecus_16_0= ruleNom )
// InternalGame.g:2172:6: lv_objetsRecus_16_0= ruleNom
{
newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_14_1_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_16_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_16_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop37;
}
} while (true);
}
break;
}
otherlv_17=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_17, grammarAccess.getInteractionAccess().getRightSquareBracketKeyword_15());
otherlv_18=(Token)match(input,14,FOLLOW_37);
newLeafNode(otherlv_18, grammarAccess.getInteractionAccess().getCommaKeyword_16());
otherlv_19=(Token)match(input,40,FOLLOW_4);
newLeafNode(otherlv_19, grammarAccess.getInteractionAccess().getObjets_consoKeyword_17());
otherlv_20=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_20, grammarAccess.getInteractionAccess().getColonKeyword_18());
otherlv_21=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_21, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_19());
// InternalGame.g:2210:3: ( ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )?
int alt40=2;
int LA40_0 = input.LA(1);
if ( (LA40_0==62) ) {
alt40=1;
}
switch (alt40) {
case 1 :
// InternalGame.g:2211:4: ( (lv_objetsConso_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )*
{
// InternalGame.g:2211:4: ( (lv_objetsConso_22_0= ruleNom ) )
// InternalGame.g:2212:5: (lv_objetsConso_22_0= ruleNom )
{
// InternalGame.g:2212:5: (lv_objetsConso_22_0= ruleNom )
// InternalGame.g:2213:6: lv_objetsConso_22_0= ruleNom
{
newCompositeNode(grammarAccess.getInteractionAccess().getObjetsConsoNomParserRuleCall_20_0_0());
pushFollow(FOLLOW_18);
lv_objetsConso_22_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"objetsConso",
lv_objetsConso_22_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2230:4: ( (lv_objetsRecus_23_0= ruleNom ) )*
loop39:
do {
int alt39=2;
int LA39_0 = input.LA(1);
if ( (LA39_0==62) ) {
alt39=1;
}
switch (alt39) {
case 1 :
// InternalGame.g:2231:5: (lv_objetsRecus_23_0= ruleNom )
{
// InternalGame.g:2231:5: (lv_objetsRecus_23_0= ruleNom )
// InternalGame.g:2232:6: lv_objetsRecus_23_0= ruleNom
{
newCompositeNode(grammarAccess.getInteractionAccess().getObjetsRecusNomParserRuleCall_20_1_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_23_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_23_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop39;
}
} while (true);
}
break;
}
otherlv_24=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_24, grammarAccess.getInteractionAccess().getRightSquareBracketKeyword_21());
otherlv_25=(Token)match(input,14,FOLLOW_42);
newLeafNode(otherlv_25, grammarAccess.getInteractionAccess().getCommaKeyword_22());
otherlv_26=(Token)match(input,45,FOLLOW_4);
newLeafNode(otherlv_26, grammarAccess.getInteractionAccess().getActionsKeyword_23());
otherlv_27=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_27, grammarAccess.getInteractionAccess().getColonKeyword_24());
otherlv_28=(Token)match(input,17,FOLLOW_5);
newLeafNode(otherlv_28, grammarAccess.getInteractionAccess().getLeftSquareBracketKeyword_25());
// InternalGame.g:2270:3: ( (lv_actions_29_0= ruleAction ) )+
int cnt41=0;
loop41:
do {
int alt41=2;
int LA41_0 = input.LA(1);
if ( (LA41_0==11) ) {
alt41=1;
}
switch (alt41) {
case 1 :
// InternalGame.g:2271:4: (lv_actions_29_0= ruleAction )
{
// InternalGame.g:2271:4: (lv_actions_29_0= ruleAction )
// InternalGame.g:2272:5: lv_actions_29_0= ruleAction
{
newCompositeNode(grammarAccess.getInteractionAccess().getActionsActionParserRuleCall_26_0());
pushFollow(FOLLOW_10);
lv_actions_29_0=ruleAction();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getInteractionRule());
}
add(
current,
"actions",
lv_actions_29_0,
"xtext.Game.Action");
afterParserOrEnumRuleCall();
}
}
break;
default :
if ( cnt41 >= 1 ) break loop41;
EarlyExitException eee =
new EarlyExitException(41, input);
throw eee;
}
cnt41++;
} while (true);
otherlv_30=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_30, grammarAccess.getInteractionAccess().getRightSquareBracketKeyword_27());
otherlv_31=(Token)match(input,14,FOLLOW_14);
newLeafNode(otherlv_31, grammarAccess.getInteractionAccess().getCommaKeyword_28());
otherlv_32=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_32, grammarAccess.getInteractionAccess().getRightCurlyBracketKeyword_29());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleInteraction"
// $ANTLR start "entryRuleAction"
// InternalGame.g:2305:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
public final EObject entryRuleAction() throws RecognitionException {
EObject current = null;
EObject iv_ruleAction = null;
try {
// InternalGame.g:2305:47: (iv_ruleAction= ruleAction EOF )
// InternalGame.g:2306:2: iv_ruleAction= ruleAction EOF
{
newCompositeNode(grammarAccess.getActionRule());
pushFollow(FOLLOW_1);
iv_ruleAction=ruleAction();
state._fsp--;
current =iv_ruleAction;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleAction"
// $ANTLR start "ruleAction"
// InternalGame.g:2312:1: ruleAction returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"Description\"' otherlv_2= ':' otherlv_3= '[' ( (lv_descriptions_4_0= ruleDescription ) ) ( (lv_descriptions_5_0= ruleDescription ) )* otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"visible\"' otherlv_9= ':' ( (lv_visible_10_0= ruleCondition ) ) otherlv_11= ',' otherlv_12= '\"connaissances\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_recus\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"objets_conso\"' otherlv_27= ':' otherlv_28= '[' ( ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"fin_interaction\"' otherlv_34= ':' ( (lv_finInteraction_35_0= ruleCondition ) ) otherlv_36= '}' ) ;
public final EObject ruleAction() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_3=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_14=null;
Token otherlv_17=null;
Token otherlv_18=null;
Token otherlv_19=null;
Token otherlv_20=null;
Token otherlv_21=null;
Token otherlv_24=null;
Token otherlv_25=null;
Token otherlv_26=null;
Token otherlv_27=null;
Token otherlv_28=null;
Token otherlv_31=null;
Token otherlv_32=null;
Token otherlv_33=null;
Token otherlv_34=null;
Token otherlv_36=null;
EObject lv_descriptions_4_0 = null;
EObject lv_descriptions_5_0 = null;
EObject lv_visible_10_0 = null;
AntlrDatatypeRuleToken lv_connaissances_15_0 = null;
AntlrDatatypeRuleToken lv_connaissances_16_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_22_0 = null;
AntlrDatatypeRuleToken lv_objetsRecus_23_0 = null;
AntlrDatatypeRuleToken lv_objetsConso_29_0 = null;
AntlrDatatypeRuleToken lv_objetsConso_30_0 = null;
EObject lv_finInteraction_35_0 = null;
enterRule();
try {
// InternalGame.g:2318:2: ( (otherlv_0= '{' otherlv_1= '\"Description\"' otherlv_2= ':' otherlv_3= '[' ( (lv_descriptions_4_0= ruleDescription ) ) ( (lv_descriptions_5_0= ruleDescription ) )* otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"visible\"' otherlv_9= ':' ( (lv_visible_10_0= ruleCondition ) ) otherlv_11= ',' otherlv_12= '\"connaissances\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_recus\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"objets_conso\"' otherlv_27= ':' otherlv_28= '[' ( ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"fin_interaction\"' otherlv_34= ':' ( (lv_finInteraction_35_0= ruleCondition ) ) otherlv_36= '}' ) )
// InternalGame.g:2319:2: (otherlv_0= '{' otherlv_1= '\"Description\"' otherlv_2= ':' otherlv_3= '[' ( (lv_descriptions_4_0= ruleDescription ) ) ( (lv_descriptions_5_0= ruleDescription ) )* otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"visible\"' otherlv_9= ':' ( (lv_visible_10_0= ruleCondition ) ) otherlv_11= ',' otherlv_12= '\"connaissances\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_recus\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"objets_conso\"' otherlv_27= ':' otherlv_28= '[' ( ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"fin_interaction\"' otherlv_34= ':' ( (lv_finInteraction_35_0= ruleCondition ) ) otherlv_36= '}' )
{
// InternalGame.g:2319:2: (otherlv_0= '{' otherlv_1= '\"Description\"' otherlv_2= ':' otherlv_3= '[' ( (lv_descriptions_4_0= ruleDescription ) ) ( (lv_descriptions_5_0= ruleDescription ) )* otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"visible\"' otherlv_9= ':' ( (lv_visible_10_0= ruleCondition ) ) otherlv_11= ',' otherlv_12= '\"connaissances\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_recus\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"objets_conso\"' otherlv_27= ':' otherlv_28= '[' ( ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"fin_interaction\"' otherlv_34= ':' ( (lv_finInteraction_35_0= ruleCondition ) ) otherlv_36= '}' )
// InternalGame.g:2320:3: otherlv_0= '{' otherlv_1= '\"Description\"' otherlv_2= ':' otherlv_3= '[' ( (lv_descriptions_4_0= ruleDescription ) ) ( (lv_descriptions_5_0= ruleDescription ) )* otherlv_6= ']' otherlv_7= ',' otherlv_8= '\"visible\"' otherlv_9= ':' ( (lv_visible_10_0= ruleCondition ) ) otherlv_11= ',' otherlv_12= '\"connaissances\"' otherlv_13= ':' otherlv_14= '[' ( ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )* )? otherlv_17= ']' otherlv_18= ',' otherlv_19= '\"objets_recus\"' otherlv_20= ':' otherlv_21= '[' ( ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )? otherlv_24= ']' otherlv_25= ',' otherlv_26= '\"objets_conso\"' otherlv_27= ':' otherlv_28= '[' ( ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )* )? otherlv_31= ']' otherlv_32= ',' otherlv_33= '\"fin_interaction\"' otherlv_34= ':' ( (lv_finInteraction_35_0= ruleCondition ) ) otherlv_36= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_43);
newLeafNode(otherlv_0, grammarAccess.getActionAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,46,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getActionAccess().getDescriptionKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_2, grammarAccess.getActionAccess().getColonKeyword_2());
otherlv_3=(Token)match(input,17,FOLLOW_5);
newLeafNode(otherlv_3, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_3());
// InternalGame.g:2336:3: ( (lv_descriptions_4_0= ruleDescription ) )
// InternalGame.g:2337:4: (lv_descriptions_4_0= ruleDescription )
{
// InternalGame.g:2337:4: (lv_descriptions_4_0= ruleDescription )
// InternalGame.g:2338:5: lv_descriptions_4_0= ruleDescription
{
newCompositeNode(grammarAccess.getActionAccess().getDescriptionsDescriptionParserRuleCall_4_0());
pushFollow(FOLLOW_10);
lv_descriptions_4_0=ruleDescription();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"descriptions",
lv_descriptions_4_0,
"xtext.Game.Description");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2355:3: ( (lv_descriptions_5_0= ruleDescription ) )*
loop42:
do {
int alt42=2;
int LA42_0 = input.LA(1);
if ( (LA42_0==11) ) {
alt42=1;
}
switch (alt42) {
case 1 :
// InternalGame.g:2356:4: (lv_descriptions_5_0= ruleDescription )
{
// InternalGame.g:2356:4: (lv_descriptions_5_0= ruleDescription )
// InternalGame.g:2357:5: lv_descriptions_5_0= ruleDescription
{
newCompositeNode(grammarAccess.getActionAccess().getDescriptionsDescriptionParserRuleCall_5_0());
pushFollow(FOLLOW_10);
lv_descriptions_5_0=ruleDescription();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"descriptions",
lv_descriptions_5_0,
"xtext.Game.Description");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop42;
}
} while (true);
otherlv_6=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_6, grammarAccess.getActionAccess().getRightSquareBracketKeyword_6());
otherlv_7=(Token)match(input,14,FOLLOW_34);
newLeafNode(otherlv_7, grammarAccess.getActionAccess().getCommaKeyword_7());
otherlv_8=(Token)match(input,37,FOLLOW_4);
newLeafNode(otherlv_8, grammarAccess.getActionAccess().getVisibleKeyword_8());
otherlv_9=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_9, grammarAccess.getActionAccess().getColonKeyword_9());
// InternalGame.g:2390:3: ( (lv_visible_10_0= ruleCondition ) )
// InternalGame.g:2391:4: (lv_visible_10_0= ruleCondition )
{
// InternalGame.g:2391:4: (lv_visible_10_0= ruleCondition )
// InternalGame.g:2392:5: lv_visible_10_0= ruleCondition
{
newCompositeNode(grammarAccess.getActionAccess().getVisibleConditionParserRuleCall_10_0());
pushFollow(FOLLOW_6);
lv_visible_10_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
set(
current,
"visible",
lv_visible_10_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_11=(Token)match(input,14,FOLLOW_17);
newLeafNode(otherlv_11, grammarAccess.getActionAccess().getCommaKeyword_11());
otherlv_12=(Token)match(input,24,FOLLOW_4);
newLeafNode(otherlv_12, grammarAccess.getActionAccess().getConnaissancesKeyword_12());
otherlv_13=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_13, grammarAccess.getActionAccess().getColonKeyword_13());
otherlv_14=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_14, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_14());
// InternalGame.g:2425:3: ( ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )* )?
int alt44=2;
int LA44_0 = input.LA(1);
if ( (LA44_0==62) ) {
alt44=1;
}
switch (alt44) {
case 1 :
// InternalGame.g:2426:4: ( (lv_connaissances_15_0= ruleNom ) ) ( (lv_connaissances_16_0= ruleNom ) )*
{
// InternalGame.g:2426:4: ( (lv_connaissances_15_0= ruleNom ) )
// InternalGame.g:2427:5: (lv_connaissances_15_0= ruleNom )
{
// InternalGame.g:2427:5: (lv_connaissances_15_0= ruleNom )
// InternalGame.g:2428:6: lv_connaissances_15_0= ruleNom
{
newCompositeNode(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_15_0_0());
pushFollow(FOLLOW_18);
lv_connaissances_15_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"connaissances",
lv_connaissances_15_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2445:4: ( (lv_connaissances_16_0= ruleNom ) )*
loop43:
do {
int alt43=2;
int LA43_0 = input.LA(1);
if ( (LA43_0==62) ) {
alt43=1;
}
switch (alt43) {
case 1 :
// InternalGame.g:2446:5: (lv_connaissances_16_0= ruleNom )
{
// InternalGame.g:2446:5: (lv_connaissances_16_0= ruleNom )
// InternalGame.g:2447:6: lv_connaissances_16_0= ruleNom
{
newCompositeNode(grammarAccess.getActionAccess().getConnaissancesNomParserRuleCall_15_1_0());
pushFollow(FOLLOW_18);
lv_connaissances_16_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"connaissances",
lv_connaissances_16_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop43;
}
} while (true);
}
break;
}
otherlv_17=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_17, grammarAccess.getActionAccess().getRightSquareBracketKeyword_16());
otherlv_18=(Token)match(input,14,FOLLOW_36);
newLeafNode(otherlv_18, grammarAccess.getActionAccess().getCommaKeyword_17());
otherlv_19=(Token)match(input,39,FOLLOW_4);
newLeafNode(otherlv_19, grammarAccess.getActionAccess().getObjets_recusKeyword_18());
otherlv_20=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_20, grammarAccess.getActionAccess().getColonKeyword_19());
otherlv_21=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_21, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_20());
// InternalGame.g:2485:3: ( ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )* )?
int alt46=2;
int LA46_0 = input.LA(1);
if ( (LA46_0==62) ) {
alt46=1;
}
switch (alt46) {
case 1 :
// InternalGame.g:2486:4: ( (lv_objetsRecus_22_0= ruleNom ) ) ( (lv_objetsRecus_23_0= ruleNom ) )*
{
// InternalGame.g:2486:4: ( (lv_objetsRecus_22_0= ruleNom ) )
// InternalGame.g:2487:5: (lv_objetsRecus_22_0= ruleNom )
{
// InternalGame.g:2487:5: (lv_objetsRecus_22_0= ruleNom )
// InternalGame.g:2488:6: lv_objetsRecus_22_0= ruleNom
{
newCompositeNode(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_21_0_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_22_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_22_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2505:4: ( (lv_objetsRecus_23_0= ruleNom ) )*
loop45:
do {
int alt45=2;
int LA45_0 = input.LA(1);
if ( (LA45_0==62) ) {
alt45=1;
}
switch (alt45) {
case 1 :
// InternalGame.g:2506:5: (lv_objetsRecus_23_0= ruleNom )
{
// InternalGame.g:2506:5: (lv_objetsRecus_23_0= ruleNom )
// InternalGame.g:2507:6: lv_objetsRecus_23_0= ruleNom
{
newCompositeNode(grammarAccess.getActionAccess().getObjetsRecusNomParserRuleCall_21_1_0());
pushFollow(FOLLOW_18);
lv_objetsRecus_23_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"objetsRecus",
lv_objetsRecus_23_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop45;
}
} while (true);
}
break;
}
otherlv_24=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_24, grammarAccess.getActionAccess().getRightSquareBracketKeyword_22());
otherlv_25=(Token)match(input,14,FOLLOW_37);
newLeafNode(otherlv_25, grammarAccess.getActionAccess().getCommaKeyword_23());
otherlv_26=(Token)match(input,40,FOLLOW_4);
newLeafNode(otherlv_26, grammarAccess.getActionAccess().getObjets_consoKeyword_24());
otherlv_27=(Token)match(input,13,FOLLOW_9);
newLeafNode(otherlv_27, grammarAccess.getActionAccess().getColonKeyword_25());
otherlv_28=(Token)match(input,17,FOLLOW_18);
newLeafNode(otherlv_28, grammarAccess.getActionAccess().getLeftSquareBracketKeyword_26());
// InternalGame.g:2545:3: ( ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )* )?
int alt48=2;
int LA48_0 = input.LA(1);
if ( (LA48_0==62) ) {
alt48=1;
}
switch (alt48) {
case 1 :
// InternalGame.g:2546:4: ( (lv_objetsConso_29_0= ruleNom ) ) ( (lv_objetsConso_30_0= ruleNom ) )*
{
// InternalGame.g:2546:4: ( (lv_objetsConso_29_0= ruleNom ) )
// InternalGame.g:2547:5: (lv_objetsConso_29_0= ruleNom )
{
// InternalGame.g:2547:5: (lv_objetsConso_29_0= ruleNom )
// InternalGame.g:2548:6: lv_objetsConso_29_0= ruleNom
{
newCompositeNode(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_27_0_0());
pushFollow(FOLLOW_18);
lv_objetsConso_29_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"objetsConso",
lv_objetsConso_29_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2565:4: ( (lv_objetsConso_30_0= ruleNom ) )*
loop47:
do {
int alt47=2;
int LA47_0 = input.LA(1);
if ( (LA47_0==62) ) {
alt47=1;
}
switch (alt47) {
case 1 :
// InternalGame.g:2566:5: (lv_objetsConso_30_0= ruleNom )
{
// InternalGame.g:2566:5: (lv_objetsConso_30_0= ruleNom )
// InternalGame.g:2567:6: lv_objetsConso_30_0= ruleNom
{
newCompositeNode(grammarAccess.getActionAccess().getObjetsConsoNomParserRuleCall_27_1_0());
pushFollow(FOLLOW_18);
lv_objetsConso_30_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
add(
current,
"objetsConso",
lv_objetsConso_30_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop47;
}
} while (true);
}
break;
}
otherlv_31=(Token)match(input,18,FOLLOW_6);
newLeafNode(otherlv_31, grammarAccess.getActionAccess().getRightSquareBracketKeyword_28());
otherlv_32=(Token)match(input,14,FOLLOW_44);
newLeafNode(otherlv_32, grammarAccess.getActionAccess().getCommaKeyword_29());
otherlv_33=(Token)match(input,47,FOLLOW_4);
newLeafNode(otherlv_33, grammarAccess.getActionAccess().getFin_interactionKeyword_30());
otherlv_34=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_34, grammarAccess.getActionAccess().getColonKeyword_31());
// InternalGame.g:2601:3: ( (lv_finInteraction_35_0= ruleCondition ) )
// InternalGame.g:2602:4: (lv_finInteraction_35_0= ruleCondition )
{
// InternalGame.g:2602:4: (lv_finInteraction_35_0= ruleCondition )
// InternalGame.g:2603:5: lv_finInteraction_35_0= ruleCondition
{
newCompositeNode(grammarAccess.getActionAccess().getFinInteractionConditionParserRuleCall_32_0());
pushFollow(FOLLOW_14);
lv_finInteraction_35_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getActionRule());
}
set(
current,
"finInteraction",
lv_finInteraction_35_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_36=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_36, grammarAccess.getActionAccess().getRightCurlyBracketKeyword_33());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleAction"
// $ANTLR start "entryRuleDescription"
// InternalGame.g:2628:1: entryRuleDescription returns [EObject current=null] : iv_ruleDescription= ruleDescription EOF ;
public final EObject entryRuleDescription() throws RecognitionException {
EObject current = null;
EObject iv_ruleDescription = null;
try {
// InternalGame.g:2628:52: (iv_ruleDescription= ruleDescription EOF )
// InternalGame.g:2629:2: iv_ruleDescription= ruleDescription EOF
{
newCompositeNode(grammarAccess.getDescriptionRule());
pushFollow(FOLLOW_1);
iv_ruleDescription=ruleDescription();
state._fsp--;
current =iv_ruleDescription;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDescription"
// $ANTLR start "ruleDescription"
// InternalGame.g:2635:1: ruleDescription returns [EObject current=null] : (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' ) ;
public final EObject ruleDescription() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_2=null;
Token lv_texte_3_0=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
Token otherlv_8=null;
EObject lv_condition_7_0 = null;
enterRule();
try {
// InternalGame.g:2641:2: ( (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' ) )
// InternalGame.g:2642:2: (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' )
{
// InternalGame.g:2642:2: (otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}' )
// InternalGame.g:2643:3: otherlv_0= '{' otherlv_1= '\"texte\"' otherlv_2= ':' ( (lv_texte_3_0= RULE_STRING ) ) otherlv_4= ',' otherlv_5= '\"condition\"' otherlv_6= ':' ( (lv_condition_7_0= ruleCondition ) ) otherlv_8= '}'
{
otherlv_0=(Token)match(input,11,FOLLOW_45);
newLeafNode(otherlv_0, grammarAccess.getDescriptionAccess().getLeftCurlyBracketKeyword_0());
otherlv_1=(Token)match(input,48,FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getDescriptionAccess().getTexteKeyword_1());
otherlv_2=(Token)match(input,13,FOLLOW_46);
newLeafNode(otherlv_2, grammarAccess.getDescriptionAccess().getColonKeyword_2());
// InternalGame.g:2655:3: ( (lv_texte_3_0= RULE_STRING ) )
// InternalGame.g:2656:4: (lv_texte_3_0= RULE_STRING )
{
// InternalGame.g:2656:4: (lv_texte_3_0= RULE_STRING )
// InternalGame.g:2657:5: lv_texte_3_0= RULE_STRING
{
lv_texte_3_0=(Token)match(input,RULE_STRING,FOLLOW_6);
newLeafNode(lv_texte_3_0, grammarAccess.getDescriptionAccess().getTexteSTRINGTerminalRuleCall_3_0());
if (current==null) {
current = createModelElement(grammarAccess.getDescriptionRule());
}
setWithLastConsumed(
current,
"texte",
lv_texte_3_0,
"org.eclipse.xtext.common.Terminals.STRING");
}
}
otherlv_4=(Token)match(input,14,FOLLOW_38);
newLeafNode(otherlv_4, grammarAccess.getDescriptionAccess().getCommaKeyword_4());
otherlv_5=(Token)match(input,41,FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getDescriptionAccess().getConditionKeyword_5());
otherlv_6=(Token)match(input,13,FOLLOW_26);
newLeafNode(otherlv_6, grammarAccess.getDescriptionAccess().getColonKeyword_6());
// InternalGame.g:2685:3: ( (lv_condition_7_0= ruleCondition ) )
// InternalGame.g:2686:4: (lv_condition_7_0= ruleCondition )
{
// InternalGame.g:2686:4: (lv_condition_7_0= ruleCondition )
// InternalGame.g:2687:5: lv_condition_7_0= ruleCondition
{
newCompositeNode(grammarAccess.getDescriptionAccess().getConditionConditionParserRuleCall_7_0());
pushFollow(FOLLOW_14);
lv_condition_7_0=ruleCondition();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getDescriptionRule());
}
set(
current,
"condition",
lv_condition_7_0,
"xtext.Game.Condition");
afterParserOrEnumRuleCall();
}
}
otherlv_8=(Token)match(input,22,FOLLOW_2);
newLeafNode(otherlv_8, grammarAccess.getDescriptionAccess().getRightCurlyBracketKeyword_8());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDescription"
// $ANTLR start "entryRuleCondition"
// InternalGame.g:2712:1: entryRuleCondition returns [EObject current=null] : iv_ruleCondition= ruleCondition EOF ;
public final EObject entryRuleCondition() throws RecognitionException {
EObject current = null;
EObject iv_ruleCondition = null;
try {
// InternalGame.g:2712:50: (iv_ruleCondition= ruleCondition EOF )
// InternalGame.g:2713:2: iv_ruleCondition= ruleCondition EOF
{
newCompositeNode(grammarAccess.getConditionRule());
pushFollow(FOLLOW_1);
iv_ruleCondition=ruleCondition();
state._fsp--;
current =iv_ruleCondition;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleCondition"
// $ANTLR start "ruleCondition"
// InternalGame.g:2719:1: ruleCondition returns [EObject current=null] : (otherlv_0= '(' ( (lv_condition_1_0= ruleConditionEt ) ) (otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) ) )* otherlv_4= ')' ) ;
public final EObject ruleCondition() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_2=null;
Token otherlv_4=null;
EObject lv_condition_1_0 = null;
EObject lv_condition_3_0 = null;
enterRule();
try {
// InternalGame.g:2725:2: ( (otherlv_0= '(' ( (lv_condition_1_0= ruleConditionEt ) ) (otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) ) )* otherlv_4= ')' ) )
// InternalGame.g:2726:2: (otherlv_0= '(' ( (lv_condition_1_0= ruleConditionEt ) ) (otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) ) )* otherlv_4= ')' )
{
// InternalGame.g:2726:2: (otherlv_0= '(' ( (lv_condition_1_0= ruleConditionEt ) ) (otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) ) )* otherlv_4= ')' )
// InternalGame.g:2727:3: otherlv_0= '(' ( (lv_condition_1_0= ruleConditionEt ) ) (otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) ) )* otherlv_4= ')'
{
otherlv_0=(Token)match(input,49,FOLLOW_26);
newLeafNode(otherlv_0, grammarAccess.getConditionAccess().getLeftParenthesisKeyword_0());
// InternalGame.g:2731:3: ( (lv_condition_1_0= ruleConditionEt ) )
// InternalGame.g:2732:4: (lv_condition_1_0= ruleConditionEt )
{
// InternalGame.g:2732:4: (lv_condition_1_0= ruleConditionEt )
// InternalGame.g:2733:5: lv_condition_1_0= ruleConditionEt
{
newCompositeNode(grammarAccess.getConditionAccess().getConditionConditionEtParserRuleCall_1_0());
pushFollow(FOLLOW_47);
lv_condition_1_0=ruleConditionEt();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionRule());
}
add(
current,
"condition",
lv_condition_1_0,
"xtext.Game.ConditionEt");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2750:3: (otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) ) )*
loop49:
do {
int alt49=2;
int LA49_0 = input.LA(1);
if ( (LA49_0==50) ) {
alt49=1;
}
switch (alt49) {
case 1 :
// InternalGame.g:2751:4: otherlv_2= '||' ( (lv_condition_3_0= ruleConditionEt ) )
{
otherlv_2=(Token)match(input,50,FOLLOW_26);
newLeafNode(otherlv_2, grammarAccess.getConditionAccess().getVerticalLineVerticalLineKeyword_2_0());
// InternalGame.g:2755:4: ( (lv_condition_3_0= ruleConditionEt ) )
// InternalGame.g:2756:5: (lv_condition_3_0= ruleConditionEt )
{
// InternalGame.g:2756:5: (lv_condition_3_0= ruleConditionEt )
// InternalGame.g:2757:6: lv_condition_3_0= ruleConditionEt
{
newCompositeNode(grammarAccess.getConditionAccess().getConditionConditionEtParserRuleCall_2_1_0());
pushFollow(FOLLOW_47);
lv_condition_3_0=ruleConditionEt();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionRule());
}
add(
current,
"condition",
lv_condition_3_0,
"xtext.Game.ConditionEt");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop49;
}
} while (true);
otherlv_4=(Token)match(input,51,FOLLOW_2);
newLeafNode(otherlv_4, grammarAccess.getConditionAccess().getRightParenthesisKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleCondition"
// $ANTLR start "entryRuleConditionEt"
// InternalGame.g:2783:1: entryRuleConditionEt returns [EObject current=null] : iv_ruleConditionEt= ruleConditionEt EOF ;
public final EObject entryRuleConditionEt() throws RecognitionException {
EObject current = null;
EObject iv_ruleConditionEt = null;
try {
// InternalGame.g:2783:52: (iv_ruleConditionEt= ruleConditionEt EOF )
// InternalGame.g:2784:2: iv_ruleConditionEt= ruleConditionEt EOF
{
newCompositeNode(grammarAccess.getConditionEtRule());
pushFollow(FOLLOW_1);
iv_ruleConditionEt=ruleConditionEt();
state._fsp--;
current =iv_ruleConditionEt;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleConditionEt"
// $ANTLR start "ruleConditionEt"
// InternalGame.g:2790:1: ruleConditionEt returns [EObject current=null] : (otherlv_0= '(' ( (lv_conditionTest_1_0= ruleConditionTest ) ) (otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) ) )* otherlv_4= ')' ) ;
public final EObject ruleConditionEt() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_2=null;
Token otherlv_4=null;
EObject lv_conditionTest_1_0 = null;
EObject lv_conditionTest_3_0 = null;
enterRule();
try {
// InternalGame.g:2796:2: ( (otherlv_0= '(' ( (lv_conditionTest_1_0= ruleConditionTest ) ) (otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) ) )* otherlv_4= ')' ) )
// InternalGame.g:2797:2: (otherlv_0= '(' ( (lv_conditionTest_1_0= ruleConditionTest ) ) (otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) ) )* otherlv_4= ')' )
{
// InternalGame.g:2797:2: (otherlv_0= '(' ( (lv_conditionTest_1_0= ruleConditionTest ) ) (otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) ) )* otherlv_4= ')' )
// InternalGame.g:2798:3: otherlv_0= '(' ( (lv_conditionTest_1_0= ruleConditionTest ) ) (otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) ) )* otherlv_4= ')'
{
otherlv_0=(Token)match(input,49,FOLLOW_48);
newLeafNode(otherlv_0, grammarAccess.getConditionEtAccess().getLeftParenthesisKeyword_0());
// InternalGame.g:2802:3: ( (lv_conditionTest_1_0= ruleConditionTest ) )
// InternalGame.g:2803:4: (lv_conditionTest_1_0= ruleConditionTest )
{
// InternalGame.g:2803:4: (lv_conditionTest_1_0= ruleConditionTest )
// InternalGame.g:2804:5: lv_conditionTest_1_0= ruleConditionTest
{
newCompositeNode(grammarAccess.getConditionEtAccess().getConditionTestConditionTestParserRuleCall_1_0());
pushFollow(FOLLOW_49);
lv_conditionTest_1_0=ruleConditionTest();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionEtRule());
}
add(
current,
"conditionTest",
lv_conditionTest_1_0,
"xtext.Game.ConditionTest");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:2821:3: (otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) ) )*
loop50:
do {
int alt50=2;
int LA50_0 = input.LA(1);
if ( (LA50_0==52) ) {
alt50=1;
}
switch (alt50) {
case 1 :
// InternalGame.g:2822:4: otherlv_2= '&&' ( (lv_conditionTest_3_0= ruleConditionTest ) )
{
otherlv_2=(Token)match(input,52,FOLLOW_48);
newLeafNode(otherlv_2, grammarAccess.getConditionEtAccess().getAmpersandAmpersandKeyword_2_0());
// InternalGame.g:2826:4: ( (lv_conditionTest_3_0= ruleConditionTest ) )
// InternalGame.g:2827:5: (lv_conditionTest_3_0= ruleConditionTest )
{
// InternalGame.g:2827:5: (lv_conditionTest_3_0= ruleConditionTest )
// InternalGame.g:2828:6: lv_conditionTest_3_0= ruleConditionTest
{
newCompositeNode(grammarAccess.getConditionEtAccess().getConditionTestConditionTestParserRuleCall_2_1_0());
pushFollow(FOLLOW_49);
lv_conditionTest_3_0=ruleConditionTest();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionEtRule());
}
add(
current,
"conditionTest",
lv_conditionTest_3_0,
"xtext.Game.ConditionTest");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop50;
}
} while (true);
otherlv_4=(Token)match(input,51,FOLLOW_2);
newLeafNode(otherlv_4, grammarAccess.getConditionEtAccess().getRightParenthesisKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConditionEt"
// $ANTLR start "entryRuleConditionTest"
// InternalGame.g:2854:1: entryRuleConditionTest returns [EObject current=null] : iv_ruleConditionTest= ruleConditionTest EOF ;
public final EObject entryRuleConditionTest() throws RecognitionException {
EObject current = null;
EObject iv_ruleConditionTest = null;
try {
// InternalGame.g:2854:54: (iv_ruleConditionTest= ruleConditionTest EOF )
// InternalGame.g:2855:2: iv_ruleConditionTest= ruleConditionTest EOF
{
newCompositeNode(grammarAccess.getConditionTestRule());
pushFollow(FOLLOW_1);
iv_ruleConditionTest=ruleConditionTest();
state._fsp--;
current =iv_ruleConditionTest;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleConditionTest"
// $ANTLR start "ruleConditionTest"
// InternalGame.g:2861:1: ruleConditionTest returns [EObject current=null] : (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' ) ;
public final EObject ruleConditionTest() throws RecognitionException {
EObject current = null;
Token otherlv_3=null;
Token otherlv_4=null;
EObject this_ConditionConnaissance_0 = null;
EObject this_NOTConditionConnaissance_1 = null;
EObject this_ConditionObjet_2 = null;
enterRule();
try {
// InternalGame.g:2867:2: ( (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' ) )
// InternalGame.g:2868:2: (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' )
{
// InternalGame.g:2868:2: (this_ConditionConnaissance_0= ruleConditionConnaissance | this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance | this_ConditionObjet_2= ruleConditionObjet | otherlv_3= 'true' | otherlv_4= 'false' )
int alt51=5;
switch ( input.LA(1) ) {
case 62:
{
int LA51_1 = input.LA(2);
if ( (LA51_1==RULE_STRING) ) {
int LA51_5 = input.LA(3);
if ( (LA51_5==62) ) {
int LA51_6 = input.LA(4);
if ( ((LA51_6>=56 && LA51_6<=61)) ) {
alt51=3;
}
else if ( (LA51_6==EOF||(LA51_6>=51 && LA51_6<=52)) ) {
alt51=1;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 51, 6, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 51, 5, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 51, 1, input);
throw nvae;
}
}
break;
case 55:
{
alt51=2;
}
break;
case 53:
{
alt51=4;
}
break;
case 54:
{
alt51=5;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 51, 0, input);
throw nvae;
}
switch (alt51) {
case 1 :
// InternalGame.g:2869:3: this_ConditionConnaissance_0= ruleConditionConnaissance
{
newCompositeNode(grammarAccess.getConditionTestAccess().getConditionConnaissanceParserRuleCall_0());
pushFollow(FOLLOW_2);
this_ConditionConnaissance_0=ruleConditionConnaissance();
state._fsp--;
current = this_ConditionConnaissance_0;
afterParserOrEnumRuleCall();
}
break;
case 2 :
// InternalGame.g:2878:3: this_NOTConditionConnaissance_1= ruleNOTConditionConnaissance
{
newCompositeNode(grammarAccess.getConditionTestAccess().getNOTConditionConnaissanceParserRuleCall_1());
pushFollow(FOLLOW_2);
this_NOTConditionConnaissance_1=ruleNOTConditionConnaissance();
state._fsp--;
current = this_NOTConditionConnaissance_1;
afterParserOrEnumRuleCall();
}
break;
case 3 :
// InternalGame.g:2887:3: this_ConditionObjet_2= ruleConditionObjet
{
newCompositeNode(grammarAccess.getConditionTestAccess().getConditionObjetParserRuleCall_2());
pushFollow(FOLLOW_2);
this_ConditionObjet_2=ruleConditionObjet();
state._fsp--;
current = this_ConditionObjet_2;
afterParserOrEnumRuleCall();
}
break;
case 4 :
// InternalGame.g:2896:3: otherlv_3= 'true'
{
otherlv_3=(Token)match(input,53,FOLLOW_2);
newLeafNode(otherlv_3, grammarAccess.getConditionTestAccess().getTrueKeyword_3());
}
break;
case 5 :
// InternalGame.g:2901:3: otherlv_4= 'false'
{
otherlv_4=(Token)match(input,54,FOLLOW_2);
newLeafNode(otherlv_4, grammarAccess.getConditionTestAccess().getFalseKeyword_4());
}
break;
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConditionTest"
// $ANTLR start "entryRuleConditionConnaissance"
// InternalGame.g:2909:1: entryRuleConditionConnaissance returns [EObject current=null] : iv_ruleConditionConnaissance= ruleConditionConnaissance EOF ;
public final EObject entryRuleConditionConnaissance() throws RecognitionException {
EObject current = null;
EObject iv_ruleConditionConnaissance = null;
try {
// InternalGame.g:2909:62: (iv_ruleConditionConnaissance= ruleConditionConnaissance EOF )
// InternalGame.g:2910:2: iv_ruleConditionConnaissance= ruleConditionConnaissance EOF
{
newCompositeNode(grammarAccess.getConditionConnaissanceRule());
pushFollow(FOLLOW_1);
iv_ruleConditionConnaissance=ruleConditionConnaissance();
state._fsp--;
current =iv_ruleConditionConnaissance;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleConditionConnaissance"
// $ANTLR start "ruleConditionConnaissance"
// InternalGame.g:2916:1: ruleConditionConnaissance returns [EObject current=null] : ( (lv_connaissance_0_0= ruleNom ) ) ;
public final EObject ruleConditionConnaissance() throws RecognitionException {
EObject current = null;
AntlrDatatypeRuleToken lv_connaissance_0_0 = null;
enterRule();
try {
// InternalGame.g:2922:2: ( ( (lv_connaissance_0_0= ruleNom ) ) )
// InternalGame.g:2923:2: ( (lv_connaissance_0_0= ruleNom ) )
{
// InternalGame.g:2923:2: ( (lv_connaissance_0_0= ruleNom ) )
// InternalGame.g:2924:3: (lv_connaissance_0_0= ruleNom )
{
// InternalGame.g:2924:3: (lv_connaissance_0_0= ruleNom )
// InternalGame.g:2925:4: lv_connaissance_0_0= ruleNom
{
newCompositeNode(grammarAccess.getConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_0());
pushFollow(FOLLOW_2);
lv_connaissance_0_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionConnaissanceRule());
}
set(
current,
"connaissance",
lv_connaissance_0_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConditionConnaissance"
// $ANTLR start "entryRuleNOTConditionConnaissance"
// InternalGame.g:2945:1: entryRuleNOTConditionConnaissance returns [EObject current=null] : iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF ;
public final EObject entryRuleNOTConditionConnaissance() throws RecognitionException {
EObject current = null;
EObject iv_ruleNOTConditionConnaissance = null;
try {
// InternalGame.g:2945:65: (iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF )
// InternalGame.g:2946:2: iv_ruleNOTConditionConnaissance= ruleNOTConditionConnaissance EOF
{
newCompositeNode(grammarAccess.getNOTConditionConnaissanceRule());
pushFollow(FOLLOW_1);
iv_ruleNOTConditionConnaissance=ruleNOTConditionConnaissance();
state._fsp--;
current =iv_ruleNOTConditionConnaissance;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleNOTConditionConnaissance"
// $ANTLR start "ruleNOTConditionConnaissance"
// InternalGame.g:2952:1: ruleNOTConditionConnaissance returns [EObject current=null] : (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) ) ;
public final EObject ruleNOTConditionConnaissance() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
AntlrDatatypeRuleToken lv_connaissance_1_0 = null;
enterRule();
try {
// InternalGame.g:2958:2: ( (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) ) )
// InternalGame.g:2959:2: (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) )
{
// InternalGame.g:2959:2: (otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) ) )
// InternalGame.g:2960:3: otherlv_0= '!' ( (lv_connaissance_1_0= ruleNom ) )
{
otherlv_0=(Token)match(input,55,FOLLOW_20);
newLeafNode(otherlv_0, grammarAccess.getNOTConditionConnaissanceAccess().getExclamationMarkKeyword_0());
// InternalGame.g:2964:3: ( (lv_connaissance_1_0= ruleNom ) )
// InternalGame.g:2965:4: (lv_connaissance_1_0= ruleNom )
{
// InternalGame.g:2965:4: (lv_connaissance_1_0= ruleNom )
// InternalGame.g:2966:5: lv_connaissance_1_0= ruleNom
{
newCompositeNode(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceNomParserRuleCall_1_0());
pushFollow(FOLLOW_2);
lv_connaissance_1_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getNOTConditionConnaissanceRule());
}
set(
current,
"connaissance",
lv_connaissance_1_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleNOTConditionConnaissance"
// $ANTLR start "entryRuleConditionObjet"
// InternalGame.g:2987:1: entryRuleConditionObjet returns [EObject current=null] : iv_ruleConditionObjet= ruleConditionObjet EOF ;
public final EObject entryRuleConditionObjet() throws RecognitionException {
EObject current = null;
EObject iv_ruleConditionObjet = null;
try {
// InternalGame.g:2987:55: (iv_ruleConditionObjet= ruleConditionObjet EOF )
// InternalGame.g:2988:2: iv_ruleConditionObjet= ruleConditionObjet EOF
{
newCompositeNode(grammarAccess.getConditionObjetRule());
pushFollow(FOLLOW_1);
iv_ruleConditionObjet=ruleConditionObjet();
state._fsp--;
current =iv_ruleConditionObjet;
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleConditionObjet"
// $ANTLR start "ruleConditionObjet"
// InternalGame.g:2994:1: ruleConditionObjet returns [EObject current=null] : ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) ) ;
public final EObject ruleConditionObjet() throws RecognitionException {
EObject current = null;
Token lv_nombre_2_0=null;
AntlrDatatypeRuleToken lv_objet_0_0 = null;
AntlrDatatypeRuleToken lv_comparateur_1_0 = null;
enterRule();
try {
// InternalGame.g:3000:2: ( ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) ) )
// InternalGame.g:3001:2: ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) )
{
// InternalGame.g:3001:2: ( ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) ) )
// InternalGame.g:3002:3: ( (lv_objet_0_0= ruleNom ) ) ( (lv_comparateur_1_0= ruleComparateur ) ) ( (lv_nombre_2_0= RULE_INT ) )
{
// InternalGame.g:3002:3: ( (lv_objet_0_0= ruleNom ) )
// InternalGame.g:3003:4: (lv_objet_0_0= ruleNom )
{
// InternalGame.g:3003:4: (lv_objet_0_0= ruleNom )
// InternalGame.g:3004:5: lv_objet_0_0= ruleNom
{
newCompositeNode(grammarAccess.getConditionObjetAccess().getObjetNomParserRuleCall_0_0());
pushFollow(FOLLOW_50);
lv_objet_0_0=ruleNom();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionObjetRule());
}
set(
current,
"objet",
lv_objet_0_0,
"xtext.Game.Nom");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:3021:3: ( (lv_comparateur_1_0= ruleComparateur ) )
// InternalGame.g:3022:4: (lv_comparateur_1_0= ruleComparateur )
{
// InternalGame.g:3022:4: (lv_comparateur_1_0= ruleComparateur )
// InternalGame.g:3023:5: lv_comparateur_1_0= ruleComparateur
{
newCompositeNode(grammarAccess.getConditionObjetAccess().getComparateurComparateurParserRuleCall_1_0());
pushFollow(FOLLOW_16);
lv_comparateur_1_0=ruleComparateur();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getConditionObjetRule());
}
set(
current,
"comparateur",
lv_comparateur_1_0,
"xtext.Game.Comparateur");
afterParserOrEnumRuleCall();
}
}
// InternalGame.g:3040:3: ( (lv_nombre_2_0= RULE_INT ) )
// InternalGame.g:3041:4: (lv_nombre_2_0= RULE_INT )
{
// InternalGame.g:3041:4: (lv_nombre_2_0= RULE_INT )
// InternalGame.g:3042:5: lv_nombre_2_0= RULE_INT
{
lv_nombre_2_0=(Token)match(input,RULE_INT,FOLLOW_2);
newLeafNode(lv_nombre_2_0, grammarAccess.getConditionObjetAccess().getNombreINTTerminalRuleCall_2_0());
if (current==null) {
current = createModelElement(grammarAccess.getConditionObjetRule());
}
setWithLastConsumed(
current,
"nombre",
lv_nombre_2_0,
"org.eclipse.xtext.common.Terminals.INT");
}
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConditionObjet"
// $ANTLR start "entryRuleComparateur"
// InternalGame.g:3062:1: entryRuleComparateur returns [String current=null] : iv_ruleComparateur= ruleComparateur EOF ;
public final String entryRuleComparateur() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleComparateur = null;
try {
// InternalGame.g:3062:51: (iv_ruleComparateur= ruleComparateur EOF )
// InternalGame.g:3063:2: iv_ruleComparateur= ruleComparateur EOF
{
newCompositeNode(grammarAccess.getComparateurRule());
pushFollow(FOLLOW_1);
iv_ruleComparateur=ruleComparateur();
state._fsp--;
current =iv_ruleComparateur.getText();
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleComparateur"
// $ANTLR start "ruleComparateur"
// InternalGame.g:3069:1: ruleComparateur returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' ) ;
public final AntlrDatatypeRuleToken ruleComparateur() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalGame.g:3075:2: ( (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' ) )
// InternalGame.g:3076:2: (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' )
{
// InternalGame.g:3076:2: (kw= '<' | kw= '>' | kw= '==' | kw= '<=' | kw= '>=' | kw= '!=' )
int alt52=6;
switch ( input.LA(1) ) {
case 56:
{
alt52=1;
}
break;
case 57:
{
alt52=2;
}
break;
case 58:
{
alt52=3;
}
break;
case 59:
{
alt52=4;
}
break;
case 60:
{
alt52=5;
}
break;
case 61:
{
alt52=6;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 52, 0, input);
throw nvae;
}
switch (alt52) {
case 1 :
// InternalGame.g:3077:3: kw= '<'
{
kw=(Token)match(input,56,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getComparateurAccess().getLessThanSignKeyword_0());
}
break;
case 2 :
// InternalGame.g:3083:3: kw= '>'
{
kw=(Token)match(input,57,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getComparateurAccess().getGreaterThanSignKeyword_1());
}
break;
case 3 :
// InternalGame.g:3089:3: kw= '=='
{
kw=(Token)match(input,58,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getComparateurAccess().getEqualsSignEqualsSignKeyword_2());
}
break;
case 4 :
// InternalGame.g:3095:3: kw= '<='
{
kw=(Token)match(input,59,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getComparateurAccess().getLessThanSignEqualsSignKeyword_3());
}
break;
case 5 :
// InternalGame.g:3101:3: kw= '>='
{
kw=(Token)match(input,60,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getComparateurAccess().getGreaterThanSignEqualsSignKeyword_4());
}
break;
case 6 :
// InternalGame.g:3107:3: kw= '!='
{
kw=(Token)match(input,61,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getComparateurAccess().getExclamationMarkEqualsSignKeyword_5());
}
break;
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleComparateur"
// $ANTLR start "entryRuleNom"
// InternalGame.g:3116:1: entryRuleNom returns [String current=null] : iv_ruleNom= ruleNom EOF ;
public final String entryRuleNom() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleNom = null;
try {
// InternalGame.g:3116:43: (iv_ruleNom= ruleNom EOF )
// InternalGame.g:3117:2: iv_ruleNom= ruleNom EOF
{
newCompositeNode(grammarAccess.getNomRule());
pushFollow(FOLLOW_1);
iv_ruleNom=ruleNom();
state._fsp--;
current =iv_ruleNom.getText();
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleNom"
// $ANTLR start "ruleNom"
// InternalGame.g:3123:1: ruleNom returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '\"' this_STRING_1= RULE_STRING kw= '\"' ) ;
public final AntlrDatatypeRuleToken ruleNom() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_STRING_1=null;
enterRule();
try {
// InternalGame.g:3129:2: ( (kw= '\"' this_STRING_1= RULE_STRING kw= '\"' ) )
// InternalGame.g:3130:2: (kw= '\"' this_STRING_1= RULE_STRING kw= '\"' )
{
// InternalGame.g:3130:2: (kw= '\"' this_STRING_1= RULE_STRING kw= '\"' )
// InternalGame.g:3131:3: kw= '\"' this_STRING_1= RULE_STRING kw= '\"'
{
kw=(Token)match(input,62,FOLLOW_46);
current.merge(kw);
newLeafNode(kw, grammarAccess.getNomAccess().getQuotationMarkKeyword_0());
this_STRING_1=(Token)match(input,RULE_STRING,FOLLOW_20);
current.merge(this_STRING_1);
newLeafNode(this_STRING_1, grammarAccess.getNomAccess().getSTRINGTerminalRuleCall_1());
kw=(Token)match(input,62,FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getNomAccess().getQuotationMarkKeyword_2());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleNom"
// Delegated rules
public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L});
public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000001000L});
public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000002000L});
public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000000800L});
public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L});
public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000040800L});
public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000080000L});
public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200000L});
public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000400000L});
public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L});
public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000001000000L});
public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x4000000000040000L});
public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000000044000L});
public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x4000000000000000L});
public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000002000000L});
public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000004000000L});
public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000010000000L});
public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000020000000L});
public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000040000000L});
public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000080000000L});
public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000100000000L});
public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000200000000L});
public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000000L});
public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000800000000L});
public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000001000000000L});
public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000002000000000L});
public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000004000000000L});
public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000008000000000L});
public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000010000000000L});
public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000020000000000L});
public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000040000000000L});
public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000080000000000L});
public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000100000000000L});
public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000800000000000L});
public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x000C000000000000L});
public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x40E0000000000000L});
public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0018000000000000L});
public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x3F00000000000000L});
}