/*
 * generated by Xtext 2.9.0
 */
package org.xtext.example.extendingOCL.parser.antlr;

import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.xtext.example.extendingOCL.parser.antlr.internal.InternalEOCLParser;
import org.xtext.example.extendingOCL.services.EOCLGrammarAccess;

public class EOCLParser extends AbstractAntlrParser {

	@Inject
	private EOCLGrammarAccess grammarAccess;

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

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

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

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

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