projet-genie-logiciel-systeme/workspace/fr.n7.game/src-gen/fr/n7/parser/antlr/GAMEParser.java

41 lines
999 B
Java
Raw Normal View History

2021-11-30 17:25:45 +00:00
/*
* generated by Xtext 2.23.0
*/
2021-12-03 07:37:31 +00:00
package fr.n7.parser.antlr;
2021-11-30 17:25:45 +00:00
import com.google.inject.Inject;
2021-12-03 07:37:31 +00:00
import fr.n7.parser.antlr.internal.InternalGAMEParser;
import fr.n7.services.GAMEGrammarAccess;
2021-11-30 17:25:45 +00:00
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
2021-12-03 07:37:31 +00:00
public class GAMEParser extends AbstractAntlrParser {
2021-11-30 17:25:45 +00:00
@Inject
2021-12-03 07:37:31 +00:00
private GAMEGrammarAccess grammarAccess;
2021-11-30 17:25:45 +00:00
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
2021-12-03 07:37:31 +00:00
protected InternalGAMEParser createParser(XtextTokenStream stream) {
return new InternalGAMEParser(stream, getGrammarAccess());
2021-11-30 17:25:45 +00:00
}
@Override
protected String getDefaultRuleName() {
return "Jeu";
}
2021-12-03 07:37:31 +00:00
public GAMEGrammarAccess getGrammarAccess() {
2021-11-30 17:25:45 +00:00
return this.grammarAccess;
}
2021-12-03 07:37:31 +00:00
public void setGrammarAccess(GAMEGrammarAccess grammarAccess) {
2021-11-30 17:25:45 +00:00
this.grammarAccess = grammarAccess;
}
}