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