/*
 * generated by Xtext version 2.21.0
 */
package ca.queensu.cs.mase.parser.antlr;

import ca.queensu.cs.mase.parser.antlr.internal.InternalUrmlParser;
import ca.queensu.cs.mase.services.UrmlGrammarAccess;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;

public class UrmlParser extends AbstractAntlrParser {

	@Inject
	private UrmlGrammarAccess grammarAccess;

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

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

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

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

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