blob: b12b4ab237d4fb87609c55f5071b6ec4bc0028fd [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), 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:
* Florian Pirchner - Initial implementation
*
* generated by Xtext 2.11.0
*/
package org.eclipse.osbp.xtext.oxtype.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.osbp.xtext.oxtype.parser.antlr.internal.InternalOXtypeParser;
import org.eclipse.osbp.xtext.oxtype.services.OXtypeGrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
public class OXtypeParser extends AbstractAntlrParser {
@Inject
private OXtypeGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected InternalOXtypeParser createParser(XtextTokenStream stream) {
return new InternalOXtypeParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "XImportDeclaration";
}
public OXtypeGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(OXtypeGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}