projet-genie-logiciel-systeme/workspace/game/src-gen/xtext/parser/antlr/GameParser.java
2021-11-30 18:25:45 +01:00

41 lines
999 B
Java

/*
* generated by Xtext 2.23.0
*/
package xtext.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import xtext.parser.antlr.internal.InternalGameParser;
import xtext.services.GameGrammarAccess;
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;
}
}