projet-genie-logiciel-systeme/workspace/fr.n7.game/src-gen/fr/n7/parser/antlr/GAMEParser.java
2021-12-03 08:37:31 +01:00

41 lines
999 B
Java

/*
* generated by Xtext 2.23.0
*/
package fr.n7.parser.antlr;
import com.google.inject.Inject;
import fr.n7.parser.antlr.internal.InternalGAMEParser;
import fr.n7.services.GAMEGrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
public class GAMEParser extends AbstractAntlrParser {
@Inject
private GAMEGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected InternalGAMEParser createParser(XtextTokenStream stream) {
return new InternalGAMEParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "Jeu";
}
public GAMEGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(GAMEGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}