org.contextmapper.dsl.parser.antlr.ContextMappingDSLParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of context-mapper-dsl Show documentation
Show all versions of context-mapper-dsl Show documentation
Use the ContextMapper DSL in your standalone application.
/*
* generated by Xtext 2.21.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;
}
}