/*
* generated by Xtext
*/
package de.ugoe.cs.swe.bnftools.parser.antlr;

import com.google.inject.Inject;

import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess;

public class EbnfParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
	
	@Inject
	private EbnfGrammarAccess grammarAccess;
	
	@Override
	protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
		tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
	}
	
	@Override
	protected de.ugoe.cs.swe.bnftools.parser.antlr.internal.InternalEbnfParser createParser(XtextTokenStream stream) {
		return new de.ugoe.cs.swe.bnftools.parser.antlr.internal.InternalEbnfParser(stream, getGrammarAccess());
	}
	
	@Override 
	protected String getDefaultRuleName() {
		return "EtsiBnf";
	}
	
	public EbnfGrammarAccess getGrammarAccess() {
		return this.grammarAccess;
	}
	
	public void setGrammarAccess(EbnfGrammarAccess grammarAccess) {
		this.grammarAccess = grammarAccess;
	}
	
}
