| /** |
| * Copyright (c) 2017 CEA. |
| * 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: |
| * CEA - initial API and implementation and/or initial documentation |
| */ |
| /* |
| * generated by Xtext 2.9.1 |
| */ |
| package org.eclipse.sensinact.studio.language.parser.antlr; |
| |
| import com.google.inject.Inject; |
| import org.eclipse.sensinact.studio.language.parser.antlr.internal.InternalSensinactParser; |
| import org.eclipse.sensinact.studio.language.services.SensinactGrammarAccess; |
| import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| |
| public class SensinactParser extends AbstractAntlrParser { |
| |
| @Inject |
| private SensinactGrammarAccess grammarAccess; |
| |
| @Override |
| protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { |
| tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); |
| } |
| |
| |
| @Override |
| protected InternalSensinactParser createParser(XtextTokenStream stream) { |
| return new InternalSensinactParser(stream, getGrammarAccess()); |
| } |
| |
| @Override |
| protected String getDefaultRuleName() { |
| return "Sensinact"; |
| } |
| |
| public SensinactGrammarAccess getGrammarAccess() { |
| return this.grammarAccess; |
| } |
| |
| public void setGrammarAccess(SensinactGrammarAccess grammarAccess) { |
| this.grammarAccess = grammarAccess; |
| } |
| } |