| /* |
| * generated by Xtext 2.11.0 |
| */ |
| package org.eclipse.osbp.xtext.gridsource.parser.antlr; |
| |
| import com.google.inject.Inject; |
| import org.eclipse.osbp.xtext.gridsource.parser.antlr.internal.InternalGridSourceParser; |
| import org.eclipse.osbp.xtext.gridsource.services.GridSourceGrammarAccess; |
| import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| |
| public class GridSourceParser extends AbstractAntlrParser { |
| |
| @Inject |
| private GridSourceGrammarAccess grammarAccess; |
| |
| @Override |
| protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { |
| tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); |
| } |
| |
| |
| @Override |
| protected InternalGridSourceParser createParser(XtextTokenStream stream) { |
| return new InternalGridSourceParser(stream, getGrammarAccess()); |
| } |
| |
| @Override |
| protected String getDefaultRuleName() { |
| return "Source"; |
| } |
| |
| public GridSourceGrammarAccess getGrammarAccess() { |
| return this.grammarAccess; |
| } |
| |
| public void setGrammarAccess(GridSourceGrammarAccess grammarAccess) { |
| this.grammarAccess = grammarAccess; |
| } |
| } |