blob: 8d7b51e211ae3e3a8e027081f27dad2554edc2c0 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2017 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated by Xtext 2.11.0
*
*/
package org.eclipse.osbp.xtext.functionlibrarydsl.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.osbp.xtext.functionlibrarydsl.parser.antlr.internal.InternalFunctionLibraryDslParser;
import org.eclipse.osbp.xtext.functionlibrarydsl.services.FunctionLibraryDslGrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
public class FunctionLibraryDslParser extends AbstractAntlrParser {
@Inject
private FunctionLibraryDslGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected InternalFunctionLibraryDslParser createParser(XtextTokenStream stream) {
return new InternalFunctionLibraryDslParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "FunctionLibraryModel";
}
public FunctionLibraryDslGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(FunctionLibraryDslGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}