org.openxma.dsl.dom.parser.antlr.DomDslParser Maven / Gradle / Ivy
/*
* generated by Xtext
*/
package org.openxma.dsl.dom.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.openxma.dsl.dom.services.DomDslGrammarAccess;
public class DomDslParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Inject
private DomDslGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_REGION_START", "RULE_REGION_END");
}
@Override
protected org.openxma.dsl.dom.parser.antlr.internal.InternalDomDslParser createParser(XtextTokenStream stream) {
return new org.openxma.dsl.dom.parser.antlr.internal.InternalDomDslParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "Model";
}
public DomDslGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(DomDslGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}