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