blob: 9b47e5370a7d43efc3efa23448cdb0b9d87adb04 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2021 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.xtext.oclstdlib.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclipse.ocl.xtext.oclstdlib.services.OCLstdlibGrammarAccess;
public class OCLstdlibParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Inject
private OCLstdlibGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected org.eclipse.ocl.xtext.oclstdlib.parser.antlr.internal.InternalOCLstdlibParser createParser(XtextTokenStream stream) {
return new org.eclipse.ocl.xtext.oclstdlib.parser.antlr.internal.InternalOCLstdlibParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "Library";
}
public OCLstdlibGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(OCLstdlibGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}