41 lines
999 B
Java
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;
|
|
}
|
|
}
|