All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.contextmapper.dsl.parser.antlr.ContextMappingDSLParser Maven / Gradle / Ivy

There is a newer version: 6.12.0
Show newest version
/*
 * 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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy