/*
 * generated by Xtext 2.12.0
 */
package com.irtsaintexupery.xtext.pseim.parser.antlr;

import com.google.inject.Inject;
import com.irtsaintexupery.xtext.pseim.parser.antlr.internal.InternalPatternParser;
import com.irtsaintexupery.xtext.pseim.services.PatternGrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;

public class PatternParser extends AbstractAntlrParser {

	@Inject
	private PatternGrammarAccess grammarAccess;

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

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

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

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

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