| /***************************************************************************** |
| * Copyright (c) 2018 CEA LIST. |
| * |
| * 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: |
| * Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr |
| * - Initial API and implementation |
| * |
| ****************************************************************************** |
| * Generated by Xtext 2.21.0 |
| *****************************************************************************/ |
| package org.eclipse.efm.formalml.xtext.parser.antlr; |
| |
| import com.google.inject.Inject; |
| import org.eclipse.efm.formalml.xtext.parser.antlr.internal.InternalFormalMLParser; |
| import org.eclipse.efm.formalml.xtext.services.FormalMLGrammarAccess; |
| import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| |
| public class FormalMLParser extends AbstractAntlrParser { |
| |
| @Inject |
| private FormalMLGrammarAccess grammarAccess; |
| |
| @Override |
| protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { |
| tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); |
| } |
| |
| |
| @Override |
| protected InternalFormalMLParser createParser(XtextTokenStream stream) { |
| return new InternalFormalMLParser(stream, getGrammarAccess()); |
| } |
| |
| @Override |
| protected String getDefaultRuleName() { |
| return "Xlia"; |
| } |
| |
| public FormalMLGrammarAccess getGrammarAccess() { |
| return this.grammarAccess; |
| } |
| |
| public void setGrammarAccess(FormalMLGrammarAccess grammarAccess) { |
| this.grammarAccess = grammarAccess; |
| } |
| } |