| /* |
| * generated by Xtext |
| */ |
| package org.eclipse.ocl.examples.xtext.oclstdlib.parser.antlr; |
| |
| import com.google.inject.Inject; |
| |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.ocl.examples.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.examples.xtext.oclstdlib.parser.antlr.internal.InternalOCLstdlibParser createParser(XtextTokenStream stream) { |
| return new org.eclipse.ocl.examples.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; |
| } |
| |
| } |