/*
 * generated by Xtext 2.9.2
 */
package com.justeat.mickeydb.parser.antlr;

import com.google.inject.Inject;
import com.justeat.mickeydb.parser.antlr.internal.InternalMickeyLangParser;
import com.justeat.mickeydb.services.MickeyLangGrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;

public class MickeyLangParser extends AbstractAntlrParser {

	@Inject
	private MickeyLangGrammarAccess grammarAccess;

	@Override
	protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
		tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
	}
	

	@Override
	protected InternalMickeyLangParser createParser(XtextTokenStream stream) {
		return new InternalMickeyLangParser(stream, getGrammarAccess());
	}

	@Override 
	protected String getDefaultRuleName() {
		return "MickeyFile";
	}

	public MickeyLangGrammarAccess getGrammarAccess() {
		return this.grammarAccess;
	}

	public void setGrammarAccess(MickeyLangGrammarAccess grammarAccess) {
		this.grammarAccess = grammarAccess;
	}
}
