blob: d6e25a4eff0a99c6ad58ea015b901034e588896c [file] [log] [blame]
/*****************************************************************************
* 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 v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr
* - Initial API and implementation
*
******************************************************************************
* Generated by Xtext 2.21.0
*****************************************************************************/
package org.eclipse.efm.sew.xtext.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.efm.sew.xtext.parser.antlr.internal.InternalSEWParser;
import org.eclipse.efm.sew.xtext.services.SEWGrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
public class SEWParser extends AbstractAntlrParser {
@Inject
private SEWGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected InternalSEWParser createParser(XtextTokenStream stream) {
return new InternalSEWParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "Workflow";
}
public SEWGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(SEWGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}