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

import com.google.inject.Inject;
import com.intellij.lang.PsiBuilder;
import com.justeat.mickeydb.idea.lang.MickeyLangElementTypeProvider;
import com.justeat.mickeydb.idea.parser.antlr.internal.PsiInternalMickeyLangParser;
import com.justeat.mickeydb.services.MickeyLangGrammarAccess;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.antlr.runtime.TokenStream;
import org.eclipse.xtext.idea.parser.AbstractPsiAntlrParser;
import org.eclipse.xtext.idea.parser.AbstractXtextPsiParser;

public class MickeyLangPsiParser extends AbstractXtextPsiParser {

	private static final Set<String> INITIAL_HIDDEN_TOKENS = new HashSet<String>(Arrays.asList("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"));

	@Inject 
	private MickeyLangGrammarAccess grammarAccess;

	@Inject 
	private MickeyLangElementTypeProvider elementTypeProvider;

	@Override
	protected AbstractPsiAntlrParser createParser(PsiBuilder builder, TokenStream tokenStream) {
		return new PsiInternalMickeyLangParser(builder, tokenStream, elementTypeProvider, grammarAccess);
	}

	@Override
	protected Set<String> getInitialHiddenTokens() {
		return INITIAL_HIDDEN_TOKENS;
	}
}
