diff options
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src-gen/org/eclipse/papyrus/constraintwithvsl/editor/xtext/parser/antlr/ConstraintWithVSLlParser.java')
-rw-r--r-- | extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src-gen/org/eclipse/papyrus/constraintwithvsl/editor/xtext/parser/antlr/ConstraintWithVSLlParser.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src-gen/org/eclipse/papyrus/constraintwithvsl/editor/xtext/parser/antlr/ConstraintWithVSLlParser.java b/extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src-gen/org/eclipse/papyrus/constraintwithvsl/editor/xtext/parser/antlr/ConstraintWithVSLlParser.java deleted file mode 100644 index 0887b62b04f..00000000000 --- a/extraplugins/marte/org.eclipse.papyrus.constraintwithvsl.editor.xtext/src-gen/org/eclipse/papyrus/constraintwithvsl/editor/xtext/parser/antlr/ConstraintWithVSLlParser.java +++ /dev/null @@ -1,66 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2010 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: - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.constraintwithvsl.editor.xtext.parser.antlr; - -import org.antlr.runtime.CharStream; -import org.antlr.runtime.TokenSource; -import org.eclipse.xtext.parser.IParseResult; -import org.eclipse.xtext.parser.ParseException; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; - -import com.google.inject.Inject; - -import org.eclipse.papyrus.constraintwithvsl.editor.xtext.services.ConstraintWithVSLlGrammarAccess; - -public class ConstraintWithVSLlParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser { - - @Inject - private ConstraintWithVSLlGrammarAccess grammarAccess; - - @Override - protected IParseResult parse(String ruleName, CharStream in) { - TokenSource tokenSource = createLexer(in); - XtextTokenStream tokenStream = createTokenStream(tokenSource); - tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); - org.eclipse.papyrus.constraintwithvsl.editor.xtext.parser.antlr.internal.InternalConstraintWithVSLlParser parser = createParser(tokenStream); - parser.setTokenTypeMap(getTokenDefProvider().getTokenDefMap()); - parser.setSyntaxErrorProvider(getSyntaxErrorProvider()); - parser.setUnorderedGroupHelper(getUnorderedGroupHelper().get()); - try { - if(ruleName != null) - return parser.parse(ruleName); - return parser.parse(); - } catch (Exception re) { - throw new ParseException(re.getMessage(),re); - } - } - - protected org.eclipse.papyrus.constraintwithvsl.editor.xtext.parser.antlr.internal.InternalConstraintWithVSLlParser createParser(XtextTokenStream stream) { - return new org.eclipse.papyrus.constraintwithvsl.editor.xtext.parser.antlr.internal.InternalConstraintWithVSLlParser(stream, getElementFactory(), getGrammarAccess()); - } - - @Override - protected String getDefaultRuleName() { - return "ConstraintRule"; - } - - public ConstraintWithVSLlGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(ConstraintWithVSLlGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - -} |