diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/AbstractSimpleExpressionsRuntimeModule.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/AbstractSimpleExpressionsRuntimeModule.java index 83bdd18e6..bfe96ef55 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/AbstractSimpleExpressionsRuntimeModule.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/AbstractSimpleExpressionsRuntimeModule.java @@ -3,18 +3,32 @@ */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting; -import java.util.Properties; - -import org.eclipse.xtext.Constants; - import com.google.inject.Binder; +import com.google.inject.Provider; import com.google.inject.name.Names; +import java.util.Properties; +import org.eclipse.xtext.Constants; +import org.eclipse.xtext.IGrammarAccess; +import org.eclipse.xtext.parser.IParser; +import org.eclipse.xtext.parser.ITokenToStringConverter; +import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; +import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; +import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; +import org.eclipse.xtext.parser.antlr.ITokenDefProvider; +import org.eclipse.xtext.parser.antlr.Lexer; +import org.eclipse.xtext.parser.antlr.LexerBindings; +import org.eclipse.xtext.parser.antlr.LexerProvider; +import org.eclipse.xtext.service.DefaultRuntimeModule; +import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.SimpleExpressionsAntlrTokenFileProvider; +import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.SimpleExpressionsParser; +import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsLexer; +import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.services.SimpleExpressionsGrammarAccess; /** - * Manual modifications go to {org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressionsRuntimeModule} + * Manual modifications go to {@link SimpleExpressionsRuntimeModule}. */ @SuppressWarnings("all") -public abstract class AbstractSimpleExpressionsRuntimeModule extends org.eclipse.xtext.service.DefaultRuntimeModule { +public abstract class AbstractSimpleExpressionsRuntimeModule extends DefaultRuntimeModule { protected Properties properties = null; @@ -30,52 +44,54 @@ public abstract class AbstractSimpleExpressionsRuntimeModule extends org.eclipse public void configureFileExtensions(Binder binder) { if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) - binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("simpleExpressions"); + binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("simpleexpressions"); } - // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment - public java.lang.ClassLoader bindClassLoaderToInstance() { + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class bindIParser() { + return SimpleExpressionsParser.class; + } + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class bindITokenToStringConverter() { + return AntlrTokenToStringConverter.class; + } + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class bindIAntlrTokenFileProvider() { + return SimpleExpressionsAntlrTokenFileProvider.class; + } + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class bindLexer() { + return InternalSimpleExpressionsLexer.class; + } + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class bindITokenDefProvider() { + return AntlrTokenDefProvider.class; + } + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Provider provideInternalSimpleExpressionsLexer() { + return LexerProvider.create(InternalSimpleExpressionsLexer.class); + } + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public void configureRuntimeLexer(Binder binder) { + binder.bind(Lexer.class) + .annotatedWith(Names.named(LexerBindings.RUNTIME)) + .to(InternalSimpleExpressionsLexer.class); + } + + // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 + public ClassLoader bindClassLoaderToInstance() { return getClass().getClassLoader(); } - - // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment - public Class bindIGrammarAccess() { - return org.eclipse.xtext.xtext.generator.parser.antlr.splitting.services.SimpleExpressionsGrammarAccess.class; + + // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 + public Class bindIGrammarAccess() { + return SimpleExpressionsGrammarAccess.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class bindIParser() { - return org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.SimpleExpressionsParser.class; - } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class bindITokenToStringConverter() { - return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class; - } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class bindIAntlrTokenFileProvider() { - return org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.SimpleExpressionsAntlrTokenFileProvider.class; - } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class bindLexer() { - return org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsLexer.class; - } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public com.google.inject.Provider provideInternalSimpleExpressionsLexer() { - return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsLexer.class); - } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public void configureRuntimeLexer(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsLexer.class); - } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class bindITokenDefProvider() { - return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class; - } - + } diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressions.genmodel b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressions.genmodel index aaece2de1..9d674c850 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressions.genmodel +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressions.genmodel @@ -1,12 +1,11 @@ + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext" modelDirectory="/org.eclipse.xtext.xtext.generator/src-gen" + modelPluginID="org.eclipse.xtext.xtext.generator" forceOverwrite="true" modelName="SimpleExpressions" + updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" + complianceLevel="8.0" copyrightFields="false" runtimeVersion="2.20"> + disposableProviderFactory="true" fileExtensions="simpleexpressions" ecorePackage="SimpleExpressions.ecore#/"> diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressionsStandaloneSetupGenerated.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressionsStandaloneSetupGenerated.java index a3adc9cc5..f37d4dbbc 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressionsStandaloneSetupGenerated.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/SimpleExpressionsStandaloneSetupGenerated.java @@ -3,22 +3,19 @@ */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.ISetup; - import com.google.inject.Guice; import com.google.inject.Injector; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.xtext.ISetup; +import org.eclipse.xtext.common.TerminalsStandaloneSetup; +import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.SimpleExpressionsPackage; -/** - * Generated from StandaloneSetup.xpt! - */ @SuppressWarnings("all") public class SimpleExpressionsStandaloneSetupGenerated implements ISetup { @Override public Injector createInjectorAndDoEMFRegistration() { - org.eclipse.xtext.common.TerminalsStandaloneSetup.doSetup(); + TerminalsStandaloneSetup.doSetup(); Injector injector = createInjector(); register(injector); @@ -26,19 +23,12 @@ public class SimpleExpressionsStandaloneSetupGenerated implements ISetup { } public Injector createInjector() { - return Guice.createInjector(new org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressionsRuntimeModule()); + return Guice.createInjector(new SimpleExpressionsRuntimeModule()); } public void register(Injector injector) { - if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/xtext/xtext/generator/parser/antlr/simpleExpressions")) { - EPackage.Registry.INSTANCE.put("http://www.eclipse.org/xtext/xtext/generator/parser/antlr/simpleExpressions", org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.SimpleExpressionsPackage.eINSTANCE); - } - - org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class); - org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class); - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("simpleExpressions", resourceFactory); - org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("simpleExpressions", serviceProvider); - - + if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/xtext/xtext/generator/parser/antlr/simpleExpressions")) { + EPackage.Registry.INSTANCE.put("http://www.eclipse.org/xtext/xtext/generator/parser/antlr/simpleExpressions", SimpleExpressionsPackage.eINSTANCE); + } } } diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsAntlrTokenFileProvider.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsAntlrTokenFileProvider.java index c004668f9..080822681 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsAntlrTokenFileProvider.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsAntlrTokenFileProvider.java @@ -7,10 +7,10 @@ import java.io.InputStream; import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; public class SimpleExpressionsAntlrTokenFileProvider implements IAntlrTokenFileProvider { - + @Override public InputStream getAntlrTokenFile() { ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressions.tokens"); + return classLoader.getResourceAsStream("org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressions.tokens"); } } diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsParser.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsParser.java index 1990e8447..d892dd197 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsParser.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/SimpleExpressionsParser.java @@ -4,36 +4,37 @@ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr; import com.google.inject.Inject; - +import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; import org.eclipse.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsParser; import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.services.SimpleExpressionsGrammarAccess; -public class SimpleExpressionsParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser { - +public class SimpleExpressionsParser extends AbstractAntlrParser { + @Inject private SimpleExpressionsGrammarAccess grammarAccess; - + @Override protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); } + @Override - protected org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsParser createParser(XtextTokenStream stream) { - return new org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal.InternalSimpleExpressionsParser(stream, getGrammarAccess()); + protected InternalSimpleExpressionsParser createParser(XtextTokenStream stream) { + return new InternalSimpleExpressionsParser(stream, getGrammarAccess()); } - + @Override protected String getDefaultRuleName() { return "IfCondition"; } - + public SimpleExpressionsGrammarAccess getGrammarAccess() { return this.grammarAccess; } - + public void setGrammarAccess(SimpleExpressionsGrammarAccess grammarAccess) { this.grammarAccess = grammarAccess; } - } diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressions.g b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressions.g index 34ebe6ada..e34886bc0 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressions.g +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressions.g @@ -5,7 +5,6 @@ grammar InternalSimpleExpressions; options { superClass=AbstractInternalAntlrParser; - } @lexer::header { @@ -17,7 +16,7 @@ import org.eclipse.xtext.parser.antlr.Lexer; } @parser::header { -package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal; +package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal; import org.eclipse.xtext.*; import org.eclipse.xtext.parser.*; @@ -35,767 +34,741 @@ import org.eclipse.xtext.xtext.generator.parser.antlr.splitting.services.SimpleE @parser::members { private SimpleExpressionsGrammarAccess grammarAccess; - + public InternalSimpleExpressionsParser(TokenStream input, SimpleExpressionsGrammarAccess grammarAccess) { this(input); this.grammarAccess = grammarAccess; registerRules(grammarAccess.getGrammar()); } - + @Override protected String getFirstRuleName() { - return "IfCondition"; + return "IfCondition"; } - + @Override protected SimpleExpressionsGrammarAccess getGrammarAccess() { return grammarAccess; } + } -@rulecatch { - catch (RecognitionException re) { - recover(input,re); +@rulecatch { + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } } - - - // Entry rule entryRuleIfCondition -entryRuleIfCondition returns [EObject current=null] - : +entryRuleIfCondition returns [EObject current=null]: { newCompositeNode(grammarAccess.getIfConditionRule()); } - iv_ruleIfCondition=ruleIfCondition - { $current=$iv_ruleIfCondition.current; } - EOF -; + iv_ruleIfCondition=ruleIfCondition + { $current=$iv_ruleIfCondition.current; } + EOF; // Rule IfCondition -ruleIfCondition returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( -( - lv_elseif_0_0= 'else' - { - newLeafNode(lv_elseif_0_0, grammarAccess.getIfConditionAccess().getElseifElseKeyword_0_0()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getIfConditionRule()); - } - setWithLastConsumed($current, "elseif", true, "else"); - } - -) -)? otherlv_1='if' - { - newLeafNode(otherlv_1, grammarAccess.getIfConditionAccess().getIfKeyword_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getIfConditionAccess().getLeftParenthesisKeyword_2()); - } -( -( - { - newCompositeNode(grammarAccess.getIfConditionAccess().getConditionExpressionParserRuleCall_3_0()); - } - lv_condition_3_0=ruleExpression { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIfConditionRule()); - } - set( - $current, - "condition", - lv_condition_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Expression"); - afterParserOrEnumRuleCall(); - } - -) -) otherlv_4=')' - { - newLeafNode(otherlv_4, grammarAccess.getIfConditionAccess().getRightParenthesisKeyword_4()); - } - otherlv_5='{' - { - newLeafNode(otherlv_5, grammarAccess.getIfConditionAccess().getLeftCurlyBracketKeyword_5()); - } -) +ruleIfCondition returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + lv_elseif_0_0='else' + { + newLeafNode(lv_elseif_0_0, grammarAccess.getIfConditionAccess().getElseifElseKeyword_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getIfConditionRule()); + } + setWithLastConsumed($current, "elseif", lv_elseif_0_0 != null, "else"); + } + ) + )? + otherlv_1='if' + { + newLeafNode(otherlv_1, grammarAccess.getIfConditionAccess().getIfKeyword_1()); + } + otherlv_2='(' + { + newLeafNode(otherlv_2, grammarAccess.getIfConditionAccess().getLeftParenthesisKeyword_2()); + } + ( + ( + { + newCompositeNode(grammarAccess.getIfConditionAccess().getConditionExpressionParserRuleCall_3_0()); + } + lv_condition_3_0=ruleExpression + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIfConditionRule()); + } + set( + $current, + "condition", + lv_condition_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Expression"); + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_4=')' + { + newLeafNode(otherlv_4, grammarAccess.getIfConditionAccess().getRightParenthesisKeyword_4()); + } + otherlv_5='{' + { + newLeafNode(otherlv_5, grammarAccess.getIfConditionAccess().getLeftCurlyBracketKeyword_5()); + } + ) ; - - - - // Entry rule entryRuleExpression -entryRuleExpression returns [EObject current=null] - : +entryRuleExpression returns [EObject current=null]: { newCompositeNode(grammarAccess.getExpressionRule()); } - iv_ruleExpression=ruleExpression - { $current=$iv_ruleExpression.current; } - EOF -; + iv_ruleExpression=ruleExpression + { $current=$iv_ruleExpression.current; } + EOF; // Rule Expression -ruleExpression returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getExpressionAccess().getAndExpressionParserRuleCall_0()); - } - this_AndExpression_0=ruleAndExpression - { - $current = $this_AndExpression_0.current; - afterParserOrEnumRuleCall(); - } -(( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getExpressionAccess().getOrExpressionLeftAction_1_0(), - $current); - } -) otherlv_2='||' - { - newLeafNode(otherlv_2, grammarAccess.getExpressionAccess().getVerticalLineVerticalLineKeyword_1_1()); - } -( -( - { - newCompositeNode(grammarAccess.getExpressionAccess().getRightAndExpressionParserRuleCall_1_2_0()); - } - lv_right_3_0=ruleAndExpression { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getExpressionRule()); - } - set( - $current, - "right", - lv_right_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.AndExpression"); - afterParserOrEnumRuleCall(); - } - -) -))*) +ruleExpression returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getExpressionAccess().getAndExpressionParserRuleCall_0()); + } + this_AndExpression_0=ruleAndExpression + { + $current = $this_AndExpression_0.current; + afterParserOrEnumRuleCall(); + } + ( + ( + { + $current = forceCreateModelElementAndSet( + grammarAccess.getExpressionAccess().getOrExpressionLeftAction_1_0(), + $current); + } + ) + otherlv_2='||' + { + newLeafNode(otherlv_2, grammarAccess.getExpressionAccess().getVerticalLineVerticalLineKeyword_1_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getExpressionAccess().getRightAndExpressionParserRuleCall_1_2_0()); + } + lv_right_3_0=ruleAndExpression + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getExpressionRule()); + } + set( + $current, + "right", + lv_right_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.AndExpression"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + ) ; - - - - // Entry rule entryRuleAndExpression -entryRuleAndExpression returns [EObject current=null] - : +entryRuleAndExpression returns [EObject current=null]: { newCompositeNode(grammarAccess.getAndExpressionRule()); } - iv_ruleAndExpression=ruleAndExpression - { $current=$iv_ruleAndExpression.current; } - EOF -; + iv_ruleAndExpression=ruleAndExpression + { $current=$iv_ruleAndExpression.current; } + EOF; // Rule AndExpression -ruleAndExpression returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getAndExpressionAccess().getComparisonParserRuleCall_0()); - } - this_Comparison_0=ruleComparison - { - $current = $this_Comparison_0.current; - afterParserOrEnumRuleCall(); - } -(( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getAndExpressionAccess().getAndExpressionLeftAction_1_0(), - $current); - } -) otherlv_2='&&' - { - newLeafNode(otherlv_2, grammarAccess.getAndExpressionAccess().getAmpersandAmpersandKeyword_1_1()); - } -( -( - { - newCompositeNode(grammarAccess.getAndExpressionAccess().getRightComparisonParserRuleCall_1_2_0()); - } - lv_right_3_0=ruleComparison { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAndExpressionRule()); - } - set( - $current, - "right", - lv_right_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Comparison"); - afterParserOrEnumRuleCall(); - } - -) -))*) +ruleAndExpression returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getAndExpressionAccess().getComparisonParserRuleCall_0()); + } + this_Comparison_0=ruleComparison + { + $current = $this_Comparison_0.current; + afterParserOrEnumRuleCall(); + } + ( + ( + { + $current = forceCreateModelElementAndSet( + grammarAccess.getAndExpressionAccess().getAndExpressionLeftAction_1_0(), + $current); + } + ) + otherlv_2='&&' + { + newLeafNode(otherlv_2, grammarAccess.getAndExpressionAccess().getAmpersandAmpersandKeyword_1_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getAndExpressionAccess().getRightComparisonParserRuleCall_1_2_0()); + } + lv_right_3_0=ruleComparison + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getAndExpressionRule()); + } + set( + $current, + "right", + lv_right_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Comparison"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + ) ; - - - - // Entry rule entryRuleComparison -entryRuleComparison returns [EObject current=null] - : +entryRuleComparison returns [EObject current=null]: { newCompositeNode(grammarAccess.getComparisonRule()); } - iv_ruleComparison=ruleComparison - { $current=$iv_ruleComparison.current; } - EOF -; + iv_ruleComparison=ruleComparison + { $current=$iv_ruleComparison.current; } + EOF; // Rule Comparison -ruleComparison returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getComparisonAccess().getPrefixExpressionParserRuleCall_0()); - } - this_PrefixExpression_0=rulePrefixExpression - { - $current = $this_PrefixExpression_0.current; - afterParserOrEnumRuleCall(); - } -(( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getComparisonAccess().getComparisonLeftAction_1_0(), - $current); - } -)( -( -( - lv_operator_2_1= '==' - { - newLeafNode(lv_operator_2_1, grammarAccess.getComparisonAccess().getOperatorEqualsSignEqualsSignKeyword_1_1_0_0()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getComparisonRule()); - } - setWithLastConsumed($current, "operator", lv_operator_2_1, null); - } - - | lv_operator_2_2= '<=' - { - newLeafNode(lv_operator_2_2, grammarAccess.getComparisonAccess().getOperatorLessThanSignEqualsSignKeyword_1_1_0_1()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getComparisonRule()); - } - setWithLastConsumed($current, "operator", lv_operator_2_2, null); - } - - | lv_operator_2_3= '>=' - { - newLeafNode(lv_operator_2_3, grammarAccess.getComparisonAccess().getOperatorGreaterThanSignEqualsSignKeyword_1_1_0_2()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getComparisonRule()); - } - setWithLastConsumed($current, "operator", lv_operator_2_3, null); - } - -) - -) -)( -( - { - newCompositeNode(grammarAccess.getComparisonAccess().getRightPrefixExpressionParserRuleCall_1_2_0()); - } - lv_right_3_0=rulePrefixExpression { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getComparisonRule()); - } - set( - $current, - "right", - lv_right_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.PrefixExpression"); - afterParserOrEnumRuleCall(); - } - -) -))?) +ruleComparison returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getComparisonAccess().getPrefixExpressionParserRuleCall_0()); + } + this_PrefixExpression_0=rulePrefixExpression + { + $current = $this_PrefixExpression_0.current; + afterParserOrEnumRuleCall(); + } + ( + ( + { + $current = forceCreateModelElementAndSet( + grammarAccess.getComparisonAccess().getComparisonLeftAction_1_0(), + $current); + } + ) + ( + ( + ( + lv_operator_2_1='==' + { + newLeafNode(lv_operator_2_1, grammarAccess.getComparisonAccess().getOperatorEqualsSignEqualsSignKeyword_1_1_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getComparisonRule()); + } + setWithLastConsumed($current, "operator", lv_operator_2_1, null); + } + | + lv_operator_2_2='<=' + { + newLeafNode(lv_operator_2_2, grammarAccess.getComparisonAccess().getOperatorLessThanSignEqualsSignKeyword_1_1_0_1()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getComparisonRule()); + } + setWithLastConsumed($current, "operator", lv_operator_2_2, null); + } + | + lv_operator_2_3='>=' + { + newLeafNode(lv_operator_2_3, grammarAccess.getComparisonAccess().getOperatorGreaterThanSignEqualsSignKeyword_1_1_0_2()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getComparisonRule()); + } + setWithLastConsumed($current, "operator", lv_operator_2_3, null); + } + ) + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getComparisonAccess().getRightPrefixExpressionParserRuleCall_1_2_0()); + } + lv_right_3_0=rulePrefixExpression + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getComparisonRule()); + } + set( + $current, + "right", + lv_right_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.PrefixExpression"); + afterParserOrEnumRuleCall(); + } + ) + ) + )? + ) ; - - - - // Entry rule entryRulePrefixExpression -entryRulePrefixExpression returns [EObject current=null] - : +entryRulePrefixExpression returns [EObject current=null]: { newCompositeNode(grammarAccess.getPrefixExpressionRule()); } - iv_rulePrefixExpression=rulePrefixExpression - { $current=$iv_rulePrefixExpression.current; } - EOF -; + iv_rulePrefixExpression=rulePrefixExpression + { $current=$iv_rulePrefixExpression.current; } + EOF; // Rule PrefixExpression -rulePrefixExpression returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -((( - { - $current = forceCreateModelElement( - grammarAccess.getPrefixExpressionAccess().getNotExpressionAction_0_0(), - $current); - } -) otherlv_1='!' - { - newLeafNode(otherlv_1, grammarAccess.getPrefixExpressionAccess().getExclamationMarkKeyword_0_1()); - } -( -( - { - newCompositeNode(grammarAccess.getPrefixExpressionAccess().getExpressionAtomParserRuleCall_0_2_0()); - } - lv_expression_2_0=ruleAtom { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPrefixExpressionRule()); - } - set( - $current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Atom"); - afterParserOrEnumRuleCall(); - } - -) -)) - | - { - newCompositeNode(grammarAccess.getPrefixExpressionAccess().getAtomParserRuleCall_1()); - } - this_Atom_3=ruleAtom - { - $current = $this_Atom_3.current; - afterParserOrEnumRuleCall(); - } -) +rulePrefixExpression returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getPrefixExpressionAccess().getNotExpressionAction_0_0(), + $current); + } + ) + otherlv_1='!' + { + newLeafNode(otherlv_1, grammarAccess.getPrefixExpressionAccess().getExclamationMarkKeyword_0_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getPrefixExpressionAccess().getExpressionAtomParserRuleCall_0_2_0()); + } + lv_expression_2_0=ruleAtom + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getPrefixExpressionRule()); + } + set( + $current, + "expression", + lv_expression_2_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Atom"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) + | + { + newCompositeNode(grammarAccess.getPrefixExpressionAccess().getAtomParserRuleCall_1()); + } + this_Atom_3=ruleAtom + { + $current = $this_Atom_3.current; + afterParserOrEnumRuleCall(); + } + ) ; - - - - // Entry rule entryRuleAtom -entryRuleAtom returns [EObject current=null] - : +entryRuleAtom returns [EObject current=null]: { newCompositeNode(grammarAccess.getAtomRule()); } - iv_ruleAtom=ruleAtom - { $current=$iv_ruleAtom.current; } - EOF -; + iv_ruleAtom=ruleAtom + { $current=$iv_ruleAtom.current; } + EOF; // Rule Atom -ruleAtom returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getAtomAccess().getParenthesizedExpressionParserRuleCall_0()); - } - this_ParenthesizedExpression_0=ruleParenthesizedExpression - { - $current = $this_ParenthesizedExpression_0.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getAtomAccess().getNumberLiteralParserRuleCall_1()); - } - this_NumberLiteral_1=ruleNumberLiteral - { - $current = $this_NumberLiteral_1.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getAtomAccess().getMethodCallParserRuleCall_2()); - } - this_MethodCall_2=ruleMethodCall - { - $current = $this_MethodCall_2.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getAtomAccess().getBooleanLiteralParserRuleCall_3()); - } - this_BooleanLiteral_3=ruleBooleanLiteral - { - $current = $this_BooleanLiteral_3.current; - afterParserOrEnumRuleCall(); - } -) +ruleAtom returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getAtomAccess().getParenthesizedExpressionParserRuleCall_0()); + } + this_ParenthesizedExpression_0=ruleParenthesizedExpression + { + $current = $this_ParenthesizedExpression_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getAtomAccess().getNumberLiteralParserRuleCall_1()); + } + this_NumberLiteral_1=ruleNumberLiteral + { + $current = $this_NumberLiteral_1.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getAtomAccess().getMethodCallParserRuleCall_2()); + } + this_MethodCall_2=ruleMethodCall + { + $current = $this_MethodCall_2.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getAtomAccess().getBooleanLiteralParserRuleCall_3()); + } + this_BooleanLiteral_3=ruleBooleanLiteral + { + $current = $this_BooleanLiteral_3.current; + afterParserOrEnumRuleCall(); + } + ) ; - - - - // Entry rule entryRuleNumberLiteral -entryRuleNumberLiteral returns [EObject current=null] - : +entryRuleNumberLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getNumberLiteralRule()); } - iv_ruleNumberLiteral=ruleNumberLiteral - { $current=$iv_ruleNumberLiteral.current; } - EOF -; + iv_ruleNumberLiteral=ruleNumberLiteral + { $current=$iv_ruleNumberLiteral.current; } + EOF; // Rule NumberLiteral -ruleNumberLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( -( - lv_value_0_0=RULE_INT - { - newLeafNode(lv_value_0_0, grammarAccess.getNumberLiteralAccess().getValueINTTerminalRuleCall_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNumberLiteralRule()); - } - setWithLastConsumed( - $current, - "value", - lv_value_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - -) -) +ruleNumberLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + lv_value_0_0=RULE_INT + { + newLeafNode(lv_value_0_0, grammarAccess.getNumberLiteralAccess().getValueINTTerminalRuleCall_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getNumberLiteralRule()); + } + setWithLastConsumed( + $current, + "value", + lv_value_0_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) ; - - - - // Entry rule entryRuleBooleanLiteral -entryRuleBooleanLiteral returns [EObject current=null] - : +entryRuleBooleanLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getBooleanLiteralRule()); } - iv_ruleBooleanLiteral=ruleBooleanLiteral - { $current=$iv_ruleBooleanLiteral.current; } - EOF -; + iv_ruleBooleanLiteral=ruleBooleanLiteral + { $current=$iv_ruleBooleanLiteral.current; } + EOF; // Rule BooleanLiteral -ruleBooleanLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( - { - $current = forceCreateModelElement( - grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), - $current); - } -)(( -( - lv_value_1_0= 'true' - { - newLeafNode(lv_value_1_0, grammarAccess.getBooleanLiteralAccess().getValueTrueKeyword_1_0_0()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getBooleanLiteralRule()); - } - setWithLastConsumed($current, "value", true, "true"); - } - -) -) - | otherlv_2='false' - { - newLeafNode(otherlv_2, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_1()); - } -)) +ruleBooleanLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), + $current); + } + ) + ( + ( + ( + lv_value_1_0='true' + { + newLeafNode(lv_value_1_0, grammarAccess.getBooleanLiteralAccess().getValueTrueKeyword_1_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getBooleanLiteralRule()); + } + setWithLastConsumed($current, "value", lv_value_1_0 != null, "true"); + } + ) + ) + | + otherlv_2='false' + { + newLeafNode(otherlv_2, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_1()); + } + ) + ) ; - - - - // Entry rule entryRuleParenthesizedExpression -entryRuleParenthesizedExpression returns [EObject current=null] - : +entryRuleParenthesizedExpression returns [EObject current=null]: { newCompositeNode(grammarAccess.getParenthesizedExpressionRule()); } - iv_ruleParenthesizedExpression=ruleParenthesizedExpression - { $current=$iv_ruleParenthesizedExpression.current; } - EOF -; + iv_ruleParenthesizedExpression=ruleParenthesizedExpression + { $current=$iv_ruleParenthesizedExpression.current; } + EOF; // Rule ParenthesizedExpression -ruleParenthesizedExpression returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( otherlv_0='(' - { - newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - } - - { - newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1()); - } - this_Expression_1=ruleExpression - { - $current = $this_Expression_1.current; - afterParserOrEnumRuleCall(); - } - otherlv_2=')' - { - newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); - } -) +ruleParenthesizedExpression returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='(' + { + newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); + } + { + newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1()); + } + this_Expression_1=ruleExpression + { + $current = $this_Expression_1.current; + afterParserOrEnumRuleCall(); + } + otherlv_2=')' + { + newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); + } + ) ; - - - - // Entry rule entryRuleMethodCall -entryRuleMethodCall returns [EObject current=null] - : +entryRuleMethodCall returns [EObject current=null]: { newCompositeNode(grammarAccess.getMethodCallRule()); } - iv_ruleMethodCall=ruleMethodCall - { $current=$iv_ruleMethodCall.current; } - EOF -; + iv_ruleMethodCall=ruleMethodCall + { $current=$iv_ruleMethodCall.current; } + EOF; // Rule MethodCall -ruleMethodCall returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( -( - { - newCompositeNode(grammarAccess.getMethodCallAccess().getValueMethodCallLiteralParserRuleCall_0()); - } - lv_value_0_0=ruleMethodCallLiteral { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMethodCallRule()); - } - set( - $current, - "value", - lv_value_0_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.MethodCallLiteral"); - afterParserOrEnumRuleCall(); - } - -) -) +ruleMethodCall returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + newCompositeNode(grammarAccess.getMethodCallAccess().getValueMethodCallLiteralParserRuleCall_0()); + } + lv_value_0_0=ruleMethodCallLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMethodCallRule()); + } + set( + $current, + "value", + lv_value_0_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.MethodCallLiteral"); + afterParserOrEnumRuleCall(); + } + ) + ) ; - - - - // Entry rule entryRuleMethodCallLiteral -entryRuleMethodCallLiteral returns [String current=null] - : - { newCompositeNode(grammarAccess.getMethodCallLiteralRule()); } - iv_ruleMethodCallLiteral=ruleMethodCallLiteral - { $current=$iv_ruleMethodCallLiteral.current.getText(); } - EOF -; +entryRuleMethodCallLiteral returns [String current=null]: + { newCompositeNode(grammarAccess.getMethodCallLiteralRule()); } + iv_ruleMethodCallLiteral=ruleMethodCallLiteral + { $current=$iv_ruleMethodCallLiteral.current.getText(); } + EOF; // Rule MethodCallLiteral -ruleMethodCallLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getFQNParserRuleCall_0()); - } - this_FQN_0=ruleFQN { - $current.merge(this_FQN_0); - } - - { - afterParserOrEnumRuleCall(); - } -( - kw='(' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getLeftParenthesisKeyword_1_0()); - } -( - { - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_0()); - } - this_Argument_2=ruleArgument { - $current.merge(this_Argument_2); - } - - { - afterParserOrEnumRuleCall(); - } -( - kw=',' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getCommaKeyword_1_1_1_0()); - } - - { - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_1_1()); - } - this_Argument_4=ruleArgument { - $current.merge(this_Argument_4); - } - - { - afterParserOrEnumRuleCall(); - } -)*)? - kw=')' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getRightParenthesisKeyword_1_2()); - } -( - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getFullStopKeyword_1_3_0()); - } - - { - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getMethodCallLiteralParserRuleCall_1_3_1()); - } - this_MethodCallLiteral_7=ruleMethodCallLiteral { - $current.merge(this_MethodCallLiteral_7); - } - - { - afterParserOrEnumRuleCall(); - } -)?)?) - ; - - - - +ruleMethodCallLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getFQNParserRuleCall_0()); + } + this_FQN_0=ruleFQN + { + $current.merge(this_FQN_0); + } + { + afterParserOrEnumRuleCall(); + } + ( + kw='(' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getLeftParenthesisKeyword_1_0()); + } + ( + { + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_0()); + } + this_Argument_2=ruleArgument + { + $current.merge(this_Argument_2); + } + { + afterParserOrEnumRuleCall(); + } + ( + kw=',' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getCommaKeyword_1_1_1_0()); + } + { + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_1_1()); + } + this_Argument_4=ruleArgument + { + $current.merge(this_Argument_4); + } + { + afterParserOrEnumRuleCall(); + } + )* + )? + kw=')' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getRightParenthesisKeyword_1_2()); + } + ( + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getFullStopKeyword_1_3_0()); + } + { + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getMethodCallLiteralParserRuleCall_1_3_1()); + } + this_MethodCallLiteral_7=ruleMethodCallLiteral + { + $current.merge(this_MethodCallLiteral_7); + } + { + afterParserOrEnumRuleCall(); + } + )? + )? + ) +; // Entry rule entryRuleArgument -entryRuleArgument returns [String current=null] - : - { newCompositeNode(grammarAccess.getArgumentRule()); } - iv_ruleArgument=ruleArgument - { $current=$iv_ruleArgument.current.getText(); } - EOF -; +entryRuleArgument returns [String current=null]: + { newCompositeNode(grammarAccess.getArgumentRule()); } + iv_ruleArgument=ruleArgument + { $current=$iv_ruleArgument.current.getText(); } + EOF; // Rule Argument -ruleArgument returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getArgumentAccess().getMethodCallLiteralParserRuleCall_0()); - } - this_MethodCallLiteral_0=ruleMethodCallLiteral { - $current.merge(this_MethodCallLiteral_0); - } - - { - afterParserOrEnumRuleCall(); - } - - | this_INT_1=RULE_INT { - $current.merge(this_INT_1); - } - - { - newLeafNode(this_INT_1, grammarAccess.getArgumentAccess().getINTTerminalRuleCall_1()); - } -) - ; - - - - - -// Entry rule entryRuleFQN -entryRuleFQN returns [String current=null] - : - { newCompositeNode(grammarAccess.getFQNRule()); } - iv_ruleFQN=ruleFQN - { $current=$iv_ruleFQN.current.getText(); } - EOF +ruleArgument returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getArgumentAccess().getMethodCallLiteralParserRuleCall_0()); + } + this_MethodCallLiteral_0=ruleMethodCallLiteral + { + $current.merge(this_MethodCallLiteral_0); + } + { + afterParserOrEnumRuleCall(); + } + | + this_INT_1=RULE_INT + { + $current.merge(this_INT_1); + } + { + newLeafNode(this_INT_1, grammarAccess.getArgumentAccess().getINTTerminalRuleCall_1()); + } + ) ; +// Entry rule entryRuleFQN +entryRuleFQN returns [String current=null]: + { newCompositeNode(grammarAccess.getFQNRule()); } + iv_ruleFQN=ruleFQN + { $current=$iv_ruleFQN.current.getText(); } + EOF; + // Rule FQN -ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -( this_ID_0=RULE_ID { - $current.merge(this_ID_0); - } - - { - newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); - } -( - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); - } - this_ID_2=RULE_ID { - $current.merge(this_ID_2); - } - - { - newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); - } -)*) - ; - - - - +ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + this_ID_0=RULE_ID + { + $current.merge(this_ID_0); + } + { + newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); + } + ( + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); + } + this_ID_2=RULE_ID + { + $current.merge(this_ID_2); + } + { + newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); + } + )* + ) +; RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; @@ -810,5 +783,3 @@ RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; RULE_WS : (' '|'\t'|'\r'|'\n')+; RULE_ANY_OTHER : .; - - diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsLexer.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsLexer.java index 1e69d3ced..09e0ac6c6 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsLexer.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsLexer.java @@ -12,29 +12,29 @@ import java.util.ArrayList; @SuppressWarnings("all") public class InternalSimpleExpressionsLexer extends Lexer { - public static final int RULE_ID=5; - public static final int T__25=25; - public static final int T__24=24; - public static final int T__23=23; - public static final int T__22=22; - public static final int RULE_ANY_OTHER=10; - public static final int T__21=21; - public static final int T__20=20; - public static final int EOF=-1; - public static final int RULE_SL_COMMENT=8; - public static final int RULE_ML_COMMENT=7; - public static final int T__19=19; public static final int RULE_STRING=6; - public static final int T__16=16; + public static final int RULE_SL_COMMENT=8; + public static final int T__19=19; public static final int T__15=15; - public static final int T__18=18; + public static final int T__16=16; public static final int T__17=17; - public static final int T__12=12; + public static final int T__18=18; public static final int T__11=11; - public static final int T__14=14; + public static final int T__12=12; public static final int T__13=13; - public static final int RULE_INT=4; + public static final int T__14=14; + public static final int EOF=-1; + public static final int RULE_ID=5; public static final int RULE_WS=9; + public static final int RULE_ANY_OTHER=10; + public static final int RULE_INT=4; + public static final int T__22=22; + public static final int RULE_ML_COMMENT=7; + public static final int T__23=23; + public static final int T__24=24; + public static final int T__25=25; + public static final int T__20=20; + public static final int T__21=21; // delegates // delegators @@ -363,10 +363,10 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_ID; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:800:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalSimpleExpressions.g:800:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + // InternalSimpleExpressions.g:773:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) + // InternalSimpleExpressions.g:773:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* { - // InternalSimpleExpressions.g:800:11: ( '^' )? + // InternalSimpleExpressions.g:773:11: ( '^' )? int alt1=2; int LA1_0 = input.LA(1); @@ -375,7 +375,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { } switch (alt1) { case 1 : - // InternalSimpleExpressions.g:800:11: '^' + // InternalSimpleExpressions.g:773:11: '^' { match('^'); @@ -393,7 +393,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { recover(mse); throw mse;} - // InternalSimpleExpressions.g:800:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + // InternalSimpleExpressions.g:773:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* loop2: do { int alt2=2; @@ -442,10 +442,10 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_INT; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:802:10: ( ( '0' .. '9' )+ ) - // InternalSimpleExpressions.g:802:12: ( '0' .. '9' )+ + // InternalSimpleExpressions.g:775:10: ( ( '0' .. '9' )+ ) + // InternalSimpleExpressions.g:775:12: ( '0' .. '9' )+ { - // InternalSimpleExpressions.g:802:12: ( '0' .. '9' )+ + // InternalSimpleExpressions.g:775:12: ( '0' .. '9' )+ int cnt3=0; loop3: do { @@ -459,7 +459,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { switch (alt3) { case 1 : - // InternalSimpleExpressions.g:802:13: '0' .. '9' + // InternalSimpleExpressions.g:775:13: '0' .. '9' { matchRange('0','9'); @@ -491,10 +491,10 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_STRING; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:804:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) - // InternalSimpleExpressions.g:804:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + // InternalSimpleExpressions.g:777:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) + // InternalSimpleExpressions.g:777:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) { - // InternalSimpleExpressions.g:804:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + // InternalSimpleExpressions.g:777:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) int alt6=2; int LA6_0 = input.LA(1); @@ -512,10 +512,10 @@ public class InternalSimpleExpressionsLexer extends Lexer { } switch (alt6) { case 1 : - // InternalSimpleExpressions.g:804:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + // InternalSimpleExpressions.g:777:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' { match('\"'); - // InternalSimpleExpressions.g:804:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* + // InternalSimpleExpressions.g:777:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* loop4: do { int alt4=3; @@ -531,7 +531,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { switch (alt4) { case 1 : - // InternalSimpleExpressions.g:804:21: '\\\\' . + // InternalSimpleExpressions.g:777:21: '\\\\' . { match('\\'); matchAny(); @@ -539,7 +539,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { } break; case 2 : - // InternalSimpleExpressions.g:804:28: ~ ( ( '\\\\' | '\"' ) ) + // InternalSimpleExpressions.g:777:28: ~ ( ( '\\\\' | '\"' ) ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { input.consume(); @@ -564,10 +564,10 @@ public class InternalSimpleExpressionsLexer extends Lexer { } break; case 2 : - // InternalSimpleExpressions.g:804:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' + // InternalSimpleExpressions.g:777:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' { match('\''); - // InternalSimpleExpressions.g:804:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* + // InternalSimpleExpressions.g:777:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* loop5: do { int alt5=3; @@ -583,7 +583,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { switch (alt5) { case 1 : - // InternalSimpleExpressions.g:804:54: '\\\\' . + // InternalSimpleExpressions.g:777:54: '\\\\' . { match('\\'); matchAny(); @@ -591,7 +591,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { } break; case 2 : - // InternalSimpleExpressions.g:804:61: ~ ( ( '\\\\' | '\\'' ) ) + // InternalSimpleExpressions.g:777:61: ~ ( ( '\\\\' | '\\'' ) ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { input.consume(); @@ -634,12 +634,12 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_ML_COMMENT; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:806:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalSimpleExpressions.g:806:19: '/*' ( options {greedy=false; } : . )* '*/' + // InternalSimpleExpressions.g:779:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) + // InternalSimpleExpressions.g:779:19: '/*' ( options {greedy=false; } : . )* '*/' { match("/*"); - // InternalSimpleExpressions.g:806:24: ( options {greedy=false; } : . )* + // InternalSimpleExpressions.g:779:24: ( options {greedy=false; } : . )* loop7: do { int alt7=2; @@ -664,7 +664,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { switch (alt7) { case 1 : - // InternalSimpleExpressions.g:806:52: . + // InternalSimpleExpressions.g:779:52: . { matchAny(); @@ -694,12 +694,12 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_SL_COMMENT; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:808:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalSimpleExpressions.g:808:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? + // InternalSimpleExpressions.g:781:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) + // InternalSimpleExpressions.g:781:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? { match("//"); - // InternalSimpleExpressions.g:808:24: (~ ( ( '\\n' | '\\r' ) ) )* + // InternalSimpleExpressions.g:781:24: (~ ( ( '\\n' | '\\r' ) ) )* loop8: do { int alt8=2; @@ -712,7 +712,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { switch (alt8) { case 1 : - // InternalSimpleExpressions.g:808:24: ~ ( ( '\\n' | '\\r' ) ) + // InternalSimpleExpressions.g:781:24: ~ ( ( '\\n' | '\\r' ) ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { input.consume(); @@ -732,7 +732,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { } } while (true); - // InternalSimpleExpressions.g:808:40: ( ( '\\r' )? '\\n' )? + // InternalSimpleExpressions.g:781:40: ( ( '\\r' )? '\\n' )? int alt10=2; int LA10_0 = input.LA(1); @@ -741,9 +741,9 @@ public class InternalSimpleExpressionsLexer extends Lexer { } switch (alt10) { case 1 : - // InternalSimpleExpressions.g:808:41: ( '\\r' )? '\\n' + // InternalSimpleExpressions.g:781:41: ( '\\r' )? '\\n' { - // InternalSimpleExpressions.g:808:41: ( '\\r' )? + // InternalSimpleExpressions.g:781:41: ( '\\r' )? int alt9=2; int LA9_0 = input.LA(1); @@ -752,7 +752,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { } switch (alt9) { case 1 : - // InternalSimpleExpressions.g:808:41: '\\r' + // InternalSimpleExpressions.g:781:41: '\\r' { match('\r'); @@ -784,10 +784,10 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_WS; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:810:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalSimpleExpressions.g:810:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // InternalSimpleExpressions.g:783:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // InternalSimpleExpressions.g:783:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ { - // InternalSimpleExpressions.g:810:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // InternalSimpleExpressions.g:783:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ int cnt11=0; loop11: do { @@ -841,8 +841,8 @@ public class InternalSimpleExpressionsLexer extends Lexer { try { int _type = RULE_ANY_OTHER; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalSimpleExpressions.g:812:16: ( . ) - // InternalSimpleExpressions.g:812:18: . + // InternalSimpleExpressions.g:785:16: ( . ) + // InternalSimpleExpressions.g:785:18: . { matchAny(); @@ -1033,7 +1033,7 @@ public class InternalSimpleExpressionsLexer extends Lexer { static final String DFA12_acceptS = "\3\uffff\1\3\1\4\1\5\5\uffff\1\13\2\uffff\1\16\1\17\1\uffff\1\20\1\21\3\uffff\1\25\1\26\1\uffff\1\20\1\uffff\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\2\uffff\1\16\1\17\1\21\1\22\1\23\1\24\1\25\1\uffff\1\2\5\uffff\1\1\1\14\1\uffff\1\15"; static final String DFA12_specialS = - "\1\0\22\uffff\1\1\1\2\43\uffff}>"; + "\1\2\22\uffff\1\0\1\1\43\uffff}>"; static final String[] DFA12_transitionS = { "\11\27\2\26\2\27\1\26\22\27\1\26\1\13\1\23\3\27\1\7\1\24\1\3\1\4\2\27\1\16\1\27\1\17\1\25\12\22\2\27\1\11\1\10\1\12\2\27\32\21\3\27\1\20\1\21\1\27\4\21\1\1\1\15\2\21\1\2\12\21\1\14\6\21\1\5\1\6\uff83\27", "\1\30", @@ -1130,6 +1130,26 @@ public class InternalSimpleExpressionsLexer extends Lexer { int _s = s; switch ( s ) { case 0 : + int LA12_19 = input.LA(1); + + s = -1; + if ( ((LA12_19>='\u0000' && LA12_19<='\uFFFF')) ) {s = 41;} + + else s = 23; + + if ( s>=0 ) return s; + break; + case 1 : + int LA12_20 = input.LA(1); + + s = -1; + if ( ((LA12_20>='\u0000' && LA12_20<='\uFFFF')) ) {s = 41;} + + else s = 23; + + if ( s>=0 ) return s; + break; + case 2 : int LA12_0 = input.LA(1); s = -1; @@ -1179,26 +1199,6 @@ public class InternalSimpleExpressionsLexer extends Lexer { else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||(LA12_0>='#' && LA12_0<='%')||(LA12_0>='*' && LA12_0<='+')||LA12_0=='-'||(LA12_0>=':' && LA12_0<=';')||(LA12_0>='?' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||(LA12_0>='}' && LA12_0<='\uFFFF')) ) {s = 23;} - if ( s>=0 ) return s; - break; - case 1 : - int LA12_19 = input.LA(1); - - s = -1; - if ( ((LA12_19>='\u0000' && LA12_19<='\uFFFF')) ) {s = 41;} - - else s = 23; - - if ( s>=0 ) return s; - break; - case 2 : - int LA12_20 = input.LA(1); - - s = -1; - if ( ((LA12_20>='\u0000' && LA12_20<='\uFFFF')) ) {s = 41;} - - else s = 23; - if ( s>=0 ) return s; break; } diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsParser.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsParser.java index c45ed83d8..214141053 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsParser.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/parser/antlr/internal/InternalSimpleExpressionsParser.java @@ -1,4 +1,4 @@ -package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal; +package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.parser.antlr.internal; import org.eclipse.xtext.*; import org.eclipse.xtext.parser.*; @@ -23,29 +23,29 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser public static final String[] tokenNames = new String[] { "", "", "", "", "RULE_INT", "RULE_ID", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'else'", "'if'", "'('", "')'", "'{'", "'||'", "'&&'", "'=='", "'<='", "'>='", "'!'", "'true'", "'false'", "','", "'.'" }; - public static final int RULE_ID=5; - public static final int T__25=25; - public static final int T__24=24; - public static final int T__23=23; - public static final int T__22=22; - public static final int RULE_ANY_OTHER=10; - public static final int T__21=21; - public static final int T__20=20; - public static final int RULE_SL_COMMENT=8; - public static final int EOF=-1; - public static final int RULE_ML_COMMENT=7; - public static final int T__19=19; public static final int RULE_STRING=6; - public static final int T__16=16; + public static final int RULE_SL_COMMENT=8; + public static final int T__19=19; public static final int T__15=15; - public static final int T__18=18; + public static final int T__16=16; public static final int T__17=17; - public static final int T__12=12; + public static final int T__18=18; public static final int T__11=11; - public static final int T__14=14; + public static final int T__12=12; public static final int T__13=13; - public static final int RULE_INT=4; + public static final int T__14=14; + public static final int EOF=-1; + public static final int RULE_ID=5; public static final int RULE_WS=9; + public static final int RULE_ANY_OTHER=10; + public static final int RULE_INT=4; + public static final int T__22=22; + public static final int RULE_ML_COMMENT=7; + public static final int T__23=23; + public static final int T__24=24; + public static final int T__25=25; + public static final int T__20=20; + public static final int T__21=21; // delegates // delegators @@ -66,18 +66,18 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser private SimpleExpressionsGrammarAccess grammarAccess; - + public InternalSimpleExpressionsParser(TokenStream input, SimpleExpressionsGrammarAccess grammarAccess) { this(input); this.grammarAccess = grammarAccess; registerRules(grammarAccess.getGrammar()); } - + @Override protected String getFirstRuleName() { - return "IfCondition"; + return "IfCondition"; } - + @Override protected SimpleExpressionsGrammarAccess getGrammarAccess() { return grammarAccess; @@ -85,8 +85,9 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser + // $ANTLR start "entryRuleIfCondition" - // InternalSimpleExpressions.g:67:1: entryRuleIfCondition returns [EObject current=null] : iv_ruleIfCondition= ruleIfCondition EOF ; + // InternalSimpleExpressions.g:64:1: entryRuleIfCondition returns [EObject current=null] : iv_ruleIfCondition= ruleIfCondition EOF ; public final EObject entryRuleIfCondition() throws RecognitionException { EObject current = null; @@ -94,8 +95,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:68:2: (iv_ruleIfCondition= ruleIfCondition EOF ) - // InternalSimpleExpressions.g:69:2: iv_ruleIfCondition= ruleIfCondition EOF + // InternalSimpleExpressions.g:64:52: (iv_ruleIfCondition= ruleIfCondition EOF ) + // InternalSimpleExpressions.g:65:2: iv_ruleIfCondition= ruleIfCondition EOF { newCompositeNode(grammarAccess.getIfConditionRule()); pushFollow(FOLLOW_1); @@ -109,11 +110,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -122,7 +123,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleIfCondition" - // InternalSimpleExpressions.g:76:1: ruleIfCondition returns [EObject current=null] : ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) ; + // InternalSimpleExpressions.g:71:1: ruleIfCondition returns [EObject current=null] : ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) ; public final EObject ruleIfCondition() throws RecognitionException { EObject current = null; @@ -134,16 +135,17 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject lv_condition_3_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:79:28: ( ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) ) - // InternalSimpleExpressions.g:80:1: ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) + // InternalSimpleExpressions.g:77:2: ( ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) ) + // InternalSimpleExpressions.g:78:2: ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) { - // InternalSimpleExpressions.g:80:1: ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) - // InternalSimpleExpressions.g:80:2: ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' + // InternalSimpleExpressions.g:78:2: ( ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' ) + // InternalSimpleExpressions.g:79:3: ( (lv_elseif_0_0= 'else' ) )? otherlv_1= 'if' otherlv_2= '(' ( (lv_condition_3_0= ruleExpression ) ) otherlv_4= ')' otherlv_5= '{' { - // InternalSimpleExpressions.g:80:2: ( (lv_elseif_0_0= 'else' ) )? + // InternalSimpleExpressions.g:79:3: ( (lv_elseif_0_0= 'else' ) )? int alt1=2; int LA1_0 = input.LA(1); @@ -152,21 +154,21 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt1) { case 1 : - // InternalSimpleExpressions.g:81:1: (lv_elseif_0_0= 'else' ) + // InternalSimpleExpressions.g:80:4: (lv_elseif_0_0= 'else' ) { - // InternalSimpleExpressions.g:81:1: (lv_elseif_0_0= 'else' ) - // InternalSimpleExpressions.g:82:3: lv_elseif_0_0= 'else' + // InternalSimpleExpressions.g:80:4: (lv_elseif_0_0= 'else' ) + // InternalSimpleExpressions.g:81:5: lv_elseif_0_0= 'else' { lv_elseif_0_0=(Token)match(input,11,FOLLOW_3); - newLeafNode(lv_elseif_0_0, grammarAccess.getIfConditionAccess().getElseifElseKeyword_0_0()); - + newLeafNode(lv_elseif_0_0, grammarAccess.getIfConditionAccess().getElseifElseKeyword_0_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getIfConditionRule()); - } - setWithLastConsumed(current, "elseif", true, "else"); - + if (current==null) { + current = createModelElement(grammarAccess.getIfConditionRule()); + } + setWithLastConsumed(current, "elseif", lv_elseif_0_0 != null, "else"); + } @@ -178,37 +180,37 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser otherlv_1=(Token)match(input,12,FOLLOW_4); - newLeafNode(otherlv_1, grammarAccess.getIfConditionAccess().getIfKeyword_1()); - + newLeafNode(otherlv_1, grammarAccess.getIfConditionAccess().getIfKeyword_1()); + otherlv_2=(Token)match(input,13,FOLLOW_5); - newLeafNode(otherlv_2, grammarAccess.getIfConditionAccess().getLeftParenthesisKeyword_2()); - - // InternalSimpleExpressions.g:103:1: ( (lv_condition_3_0= ruleExpression ) ) - // InternalSimpleExpressions.g:104:1: (lv_condition_3_0= ruleExpression ) + newLeafNode(otherlv_2, grammarAccess.getIfConditionAccess().getLeftParenthesisKeyword_2()); + + // InternalSimpleExpressions.g:101:3: ( (lv_condition_3_0= ruleExpression ) ) + // InternalSimpleExpressions.g:102:4: (lv_condition_3_0= ruleExpression ) { - // InternalSimpleExpressions.g:104:1: (lv_condition_3_0= ruleExpression ) - // InternalSimpleExpressions.g:105:3: lv_condition_3_0= ruleExpression + // InternalSimpleExpressions.g:102:4: (lv_condition_3_0= ruleExpression ) + // InternalSimpleExpressions.g:103:5: lv_condition_3_0= ruleExpression { - - newCompositeNode(grammarAccess.getIfConditionAccess().getConditionExpressionParserRuleCall_3_0()); - + + newCompositeNode(grammarAccess.getIfConditionAccess().getConditionExpressionParserRuleCall_3_0()); + pushFollow(FOLLOW_6); lv_condition_3_0=ruleExpression(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getIfConditionRule()); - } - set( - current, - "condition", - lv_condition_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Expression"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getIfConditionRule()); + } + set( + current, + "condition", + lv_condition_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Expression"); + afterParserOrEnumRuleCall(); + } @@ -217,25 +219,27 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser otherlv_4=(Token)match(input,14,FOLLOW_7); - newLeafNode(otherlv_4, grammarAccess.getIfConditionAccess().getRightParenthesisKeyword_4()); - + newLeafNode(otherlv_4, grammarAccess.getIfConditionAccess().getRightParenthesisKeyword_4()); + otherlv_5=(Token)match(input,15,FOLLOW_2); - newLeafNode(otherlv_5, grammarAccess.getIfConditionAccess().getLeftCurlyBracketKeyword_5()); - + newLeafNode(otherlv_5, grammarAccess.getIfConditionAccess().getLeftCurlyBracketKeyword_5()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -244,7 +248,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleExpression" - // InternalSimpleExpressions.g:137:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ; + // InternalSimpleExpressions.g:132:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ; public final EObject entryRuleExpression() throws RecognitionException { EObject current = null; @@ -252,8 +256,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:138:2: (iv_ruleExpression= ruleExpression EOF ) - // InternalSimpleExpressions.g:139:2: iv_ruleExpression= ruleExpression EOF + // InternalSimpleExpressions.g:132:51: (iv_ruleExpression= ruleExpression EOF ) + // InternalSimpleExpressions.g:133:2: iv_ruleExpression= ruleExpression EOF { newCompositeNode(grammarAccess.getExpressionRule()); pushFollow(FOLLOW_1); @@ -267,11 +271,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -280,7 +284,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleExpression" - // InternalSimpleExpressions.g:146:1: ruleExpression returns [EObject current=null] : (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) ; + // InternalSimpleExpressions.g:139:1: ruleExpression returns [EObject current=null] : (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) ; public final EObject ruleExpression() throws RecognitionException { EObject current = null; @@ -290,28 +294,29 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject lv_right_3_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:149:28: ( (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) ) - // InternalSimpleExpressions.g:150:1: (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) + // InternalSimpleExpressions.g:145:2: ( (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) ) + // InternalSimpleExpressions.g:146:2: (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) { - // InternalSimpleExpressions.g:150:1: (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) - // InternalSimpleExpressions.g:151:5: this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* + // InternalSimpleExpressions.g:146:2: (this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* ) + // InternalSimpleExpressions.g:147:3: this_AndExpression_0= ruleAndExpression ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* { - - newCompositeNode(grammarAccess.getExpressionAccess().getAndExpressionParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getExpressionAccess().getAndExpressionParserRuleCall_0()); + pushFollow(FOLLOW_8); this_AndExpression_0=ruleAndExpression(); state._fsp--; - - current = this_AndExpression_0; - afterParserOrEnumRuleCall(); - - // InternalSimpleExpressions.g:159:1: ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* + + current = this_AndExpression_0; + afterParserOrEnumRuleCall(); + + // InternalSimpleExpressions.g:155:3: ( () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) )* loop2: do { int alt2=2; @@ -324,48 +329,48 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser switch (alt2) { case 1 : - // InternalSimpleExpressions.g:159:2: () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) + // InternalSimpleExpressions.g:156:4: () otherlv_2= '||' ( (lv_right_3_0= ruleAndExpression ) ) { - // InternalSimpleExpressions.g:159:2: () - // InternalSimpleExpressions.g:160:5: + // InternalSimpleExpressions.g:156:4: () + // InternalSimpleExpressions.g:157:5: { - current = forceCreateModelElementAndSet( - grammarAccess.getExpressionAccess().getOrExpressionLeftAction_1_0(), - current); - + current = forceCreateModelElementAndSet( + grammarAccess.getExpressionAccess().getOrExpressionLeftAction_1_0(), + current); + } otherlv_2=(Token)match(input,16,FOLLOW_5); - newLeafNode(otherlv_2, grammarAccess.getExpressionAccess().getVerticalLineVerticalLineKeyword_1_1()); - - // InternalSimpleExpressions.g:169:1: ( (lv_right_3_0= ruleAndExpression ) ) - // InternalSimpleExpressions.g:170:1: (lv_right_3_0= ruleAndExpression ) + newLeafNode(otherlv_2, grammarAccess.getExpressionAccess().getVerticalLineVerticalLineKeyword_1_1()); + + // InternalSimpleExpressions.g:167:4: ( (lv_right_3_0= ruleAndExpression ) ) + // InternalSimpleExpressions.g:168:5: (lv_right_3_0= ruleAndExpression ) { - // InternalSimpleExpressions.g:170:1: (lv_right_3_0= ruleAndExpression ) - // InternalSimpleExpressions.g:171:3: lv_right_3_0= ruleAndExpression + // InternalSimpleExpressions.g:168:5: (lv_right_3_0= ruleAndExpression ) + // InternalSimpleExpressions.g:169:6: lv_right_3_0= ruleAndExpression { - - newCompositeNode(grammarAccess.getExpressionAccess().getRightAndExpressionParserRuleCall_1_2_0()); - + + newCompositeNode(grammarAccess.getExpressionAccess().getRightAndExpressionParserRuleCall_1_2_0()); + pushFollow(FOLLOW_8); lv_right_3_0=ruleAndExpression(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getExpressionRule()); - } - set( - current, - "right", - lv_right_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.AndExpression"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getExpressionRule()); + } + set( + current, + "right", + lv_right_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.AndExpression"); + afterParserOrEnumRuleCall(); + } @@ -387,13 +392,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -402,7 +409,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleAndExpression" - // InternalSimpleExpressions.g:195:1: entryRuleAndExpression returns [EObject current=null] : iv_ruleAndExpression= ruleAndExpression EOF ; + // InternalSimpleExpressions.g:191:1: entryRuleAndExpression returns [EObject current=null] : iv_ruleAndExpression= ruleAndExpression EOF ; public final EObject entryRuleAndExpression() throws RecognitionException { EObject current = null; @@ -410,8 +417,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:196:2: (iv_ruleAndExpression= ruleAndExpression EOF ) - // InternalSimpleExpressions.g:197:2: iv_ruleAndExpression= ruleAndExpression EOF + // InternalSimpleExpressions.g:191:54: (iv_ruleAndExpression= ruleAndExpression EOF ) + // InternalSimpleExpressions.g:192:2: iv_ruleAndExpression= ruleAndExpression EOF { newCompositeNode(grammarAccess.getAndExpressionRule()); pushFollow(FOLLOW_1); @@ -425,11 +432,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -438,7 +445,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleAndExpression" - // InternalSimpleExpressions.g:204:1: ruleAndExpression returns [EObject current=null] : (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) ; + // InternalSimpleExpressions.g:198:1: ruleAndExpression returns [EObject current=null] : (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) ; public final EObject ruleAndExpression() throws RecognitionException { EObject current = null; @@ -448,28 +455,29 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject lv_right_3_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:207:28: ( (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) ) - // InternalSimpleExpressions.g:208:1: (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) + // InternalSimpleExpressions.g:204:2: ( (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) ) + // InternalSimpleExpressions.g:205:2: (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) { - // InternalSimpleExpressions.g:208:1: (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) - // InternalSimpleExpressions.g:209:5: this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* + // InternalSimpleExpressions.g:205:2: (this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* ) + // InternalSimpleExpressions.g:206:3: this_Comparison_0= ruleComparison ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* { - - newCompositeNode(grammarAccess.getAndExpressionAccess().getComparisonParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getAndExpressionAccess().getComparisonParserRuleCall_0()); + pushFollow(FOLLOW_9); this_Comparison_0=ruleComparison(); state._fsp--; - - current = this_Comparison_0; - afterParserOrEnumRuleCall(); - - // InternalSimpleExpressions.g:217:1: ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* + + current = this_Comparison_0; + afterParserOrEnumRuleCall(); + + // InternalSimpleExpressions.g:214:3: ( () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) )* loop3: do { int alt3=2; @@ -482,48 +490,48 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser switch (alt3) { case 1 : - // InternalSimpleExpressions.g:217:2: () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) + // InternalSimpleExpressions.g:215:4: () otherlv_2= '&&' ( (lv_right_3_0= ruleComparison ) ) { - // InternalSimpleExpressions.g:217:2: () - // InternalSimpleExpressions.g:218:5: + // InternalSimpleExpressions.g:215:4: () + // InternalSimpleExpressions.g:216:5: { - current = forceCreateModelElementAndSet( - grammarAccess.getAndExpressionAccess().getAndExpressionLeftAction_1_0(), - current); - + current = forceCreateModelElementAndSet( + grammarAccess.getAndExpressionAccess().getAndExpressionLeftAction_1_0(), + current); + } otherlv_2=(Token)match(input,17,FOLLOW_5); - newLeafNode(otherlv_2, grammarAccess.getAndExpressionAccess().getAmpersandAmpersandKeyword_1_1()); - - // InternalSimpleExpressions.g:227:1: ( (lv_right_3_0= ruleComparison ) ) - // InternalSimpleExpressions.g:228:1: (lv_right_3_0= ruleComparison ) + newLeafNode(otherlv_2, grammarAccess.getAndExpressionAccess().getAmpersandAmpersandKeyword_1_1()); + + // InternalSimpleExpressions.g:226:4: ( (lv_right_3_0= ruleComparison ) ) + // InternalSimpleExpressions.g:227:5: (lv_right_3_0= ruleComparison ) { - // InternalSimpleExpressions.g:228:1: (lv_right_3_0= ruleComparison ) - // InternalSimpleExpressions.g:229:3: lv_right_3_0= ruleComparison + // InternalSimpleExpressions.g:227:5: (lv_right_3_0= ruleComparison ) + // InternalSimpleExpressions.g:228:6: lv_right_3_0= ruleComparison { - - newCompositeNode(grammarAccess.getAndExpressionAccess().getRightComparisonParserRuleCall_1_2_0()); - + + newCompositeNode(grammarAccess.getAndExpressionAccess().getRightComparisonParserRuleCall_1_2_0()); + pushFollow(FOLLOW_9); lv_right_3_0=ruleComparison(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getAndExpressionRule()); - } - set( - current, - "right", - lv_right_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Comparison"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getAndExpressionRule()); + } + set( + current, + "right", + lv_right_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Comparison"); + afterParserOrEnumRuleCall(); + } @@ -545,13 +553,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -560,7 +570,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleComparison" - // InternalSimpleExpressions.g:253:1: entryRuleComparison returns [EObject current=null] : iv_ruleComparison= ruleComparison EOF ; + // InternalSimpleExpressions.g:250:1: entryRuleComparison returns [EObject current=null] : iv_ruleComparison= ruleComparison EOF ; public final EObject entryRuleComparison() throws RecognitionException { EObject current = null; @@ -568,8 +578,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:254:2: (iv_ruleComparison= ruleComparison EOF ) - // InternalSimpleExpressions.g:255:2: iv_ruleComparison= ruleComparison EOF + // InternalSimpleExpressions.g:250:51: (iv_ruleComparison= ruleComparison EOF ) + // InternalSimpleExpressions.g:251:2: iv_ruleComparison= ruleComparison EOF { newCompositeNode(grammarAccess.getComparisonRule()); pushFollow(FOLLOW_1); @@ -583,11 +593,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -596,7 +606,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleComparison" - // InternalSimpleExpressions.g:262:1: ruleComparison returns [EObject current=null] : (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) ; + // InternalSimpleExpressions.g:257:1: ruleComparison returns [EObject current=null] : (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) ; public final EObject ruleComparison() throws RecognitionException { EObject current = null; @@ -608,28 +618,29 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject lv_right_3_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:265:28: ( (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) ) - // InternalSimpleExpressions.g:266:1: (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) + // InternalSimpleExpressions.g:263:2: ( (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) ) + // InternalSimpleExpressions.g:264:2: (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) { - // InternalSimpleExpressions.g:266:1: (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) - // InternalSimpleExpressions.g:267:5: this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? + // InternalSimpleExpressions.g:264:2: (this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? ) + // InternalSimpleExpressions.g:265:3: this_PrefixExpression_0= rulePrefixExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? { - - newCompositeNode(grammarAccess.getComparisonAccess().getPrefixExpressionParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getComparisonAccess().getPrefixExpressionParserRuleCall_0()); + pushFollow(FOLLOW_10); this_PrefixExpression_0=rulePrefixExpression(); state._fsp--; - - current = this_PrefixExpression_0; - afterParserOrEnumRuleCall(); - - // InternalSimpleExpressions.g:275:1: ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? + + current = this_PrefixExpression_0; + afterParserOrEnumRuleCall(); + + // InternalSimpleExpressions.g:273:3: ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) )? int alt5=2; int LA5_0 = input.LA(1); @@ -638,26 +649,26 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt5) { case 1 : - // InternalSimpleExpressions.g:275:2: () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) + // InternalSimpleExpressions.g:274:4: () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) ( (lv_right_3_0= rulePrefixExpression ) ) { - // InternalSimpleExpressions.g:275:2: () - // InternalSimpleExpressions.g:276:5: + // InternalSimpleExpressions.g:274:4: () + // InternalSimpleExpressions.g:275:5: { - current = forceCreateModelElementAndSet( - grammarAccess.getComparisonAccess().getComparisonLeftAction_1_0(), - current); - + current = forceCreateModelElementAndSet( + grammarAccess.getComparisonAccess().getComparisonLeftAction_1_0(), + current); + } - // InternalSimpleExpressions.g:281:2: ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) - // InternalSimpleExpressions.g:282:1: ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) + // InternalSimpleExpressions.g:281:4: ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) ) + // InternalSimpleExpressions.g:282:5: ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) { - // InternalSimpleExpressions.g:282:1: ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) - // InternalSimpleExpressions.g:283:1: (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) + // InternalSimpleExpressions.g:282:5: ( (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) ) + // InternalSimpleExpressions.g:283:6: (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) { - // InternalSimpleExpressions.g:283:1: (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) + // InternalSimpleExpressions.g:283:6: (lv_operator_2_1= '==' | lv_operator_2_2= '<=' | lv_operator_2_3= '>=' ) int alt4=3; switch ( input.LA(1) ) { case 18: @@ -684,50 +695,50 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser switch (alt4) { case 1 : - // InternalSimpleExpressions.g:284:3: lv_operator_2_1= '==' + // InternalSimpleExpressions.g:284:7: lv_operator_2_1= '==' { lv_operator_2_1=(Token)match(input,18,FOLLOW_5); - newLeafNode(lv_operator_2_1, grammarAccess.getComparisonAccess().getOperatorEqualsSignEqualsSignKeyword_1_1_0_0()); - + newLeafNode(lv_operator_2_1, grammarAccess.getComparisonAccess().getOperatorEqualsSignEqualsSignKeyword_1_1_0_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getComparisonRule()); - } - setWithLastConsumed(current, "operator", lv_operator_2_1, null); - + if (current==null) { + current = createModelElement(grammarAccess.getComparisonRule()); + } + setWithLastConsumed(current, "operator", lv_operator_2_1, null); + } break; case 2 : - // InternalSimpleExpressions.g:296:8: lv_operator_2_2= '<=' + // InternalSimpleExpressions.g:295:7: lv_operator_2_2= '<=' { lv_operator_2_2=(Token)match(input,19,FOLLOW_5); - newLeafNode(lv_operator_2_2, grammarAccess.getComparisonAccess().getOperatorLessThanSignEqualsSignKeyword_1_1_0_1()); - + newLeafNode(lv_operator_2_2, grammarAccess.getComparisonAccess().getOperatorLessThanSignEqualsSignKeyword_1_1_0_1()); + - if (current==null) { - current = createModelElement(grammarAccess.getComparisonRule()); - } - setWithLastConsumed(current, "operator", lv_operator_2_2, null); - + if (current==null) { + current = createModelElement(grammarAccess.getComparisonRule()); + } + setWithLastConsumed(current, "operator", lv_operator_2_2, null); + } break; case 3 : - // InternalSimpleExpressions.g:308:8: lv_operator_2_3= '>=' + // InternalSimpleExpressions.g:306:7: lv_operator_2_3= '>=' { lv_operator_2_3=(Token)match(input,20,FOLLOW_5); - newLeafNode(lv_operator_2_3, grammarAccess.getComparisonAccess().getOperatorGreaterThanSignEqualsSignKeyword_1_1_0_2()); - + newLeafNode(lv_operator_2_3, grammarAccess.getComparisonAccess().getOperatorGreaterThanSignEqualsSignKeyword_1_1_0_2()); + - if (current==null) { - current = createModelElement(grammarAccess.getComparisonRule()); - } - setWithLastConsumed(current, "operator", lv_operator_2_3, null); - + if (current==null) { + current = createModelElement(grammarAccess.getComparisonRule()); + } + setWithLastConsumed(current, "operator", lv_operator_2_3, null); + } break; @@ -740,31 +751,31 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - // InternalSimpleExpressions.g:323:2: ( (lv_right_3_0= rulePrefixExpression ) ) - // InternalSimpleExpressions.g:324:1: (lv_right_3_0= rulePrefixExpression ) + // InternalSimpleExpressions.g:319:4: ( (lv_right_3_0= rulePrefixExpression ) ) + // InternalSimpleExpressions.g:320:5: (lv_right_3_0= rulePrefixExpression ) { - // InternalSimpleExpressions.g:324:1: (lv_right_3_0= rulePrefixExpression ) - // InternalSimpleExpressions.g:325:3: lv_right_3_0= rulePrefixExpression + // InternalSimpleExpressions.g:320:5: (lv_right_3_0= rulePrefixExpression ) + // InternalSimpleExpressions.g:321:6: lv_right_3_0= rulePrefixExpression { - - newCompositeNode(grammarAccess.getComparisonAccess().getRightPrefixExpressionParserRuleCall_1_2_0()); - + + newCompositeNode(grammarAccess.getComparisonAccess().getRightPrefixExpressionParserRuleCall_1_2_0()); + pushFollow(FOLLOW_2); lv_right_3_0=rulePrefixExpression(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getComparisonRule()); - } - set( - current, - "right", - lv_right_3_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.PrefixExpression"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getComparisonRule()); + } + set( + current, + "right", + lv_right_3_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.PrefixExpression"); + afterParserOrEnumRuleCall(); + } @@ -783,13 +794,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -798,7 +811,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRulePrefixExpression" - // InternalSimpleExpressions.g:349:1: entryRulePrefixExpression returns [EObject current=null] : iv_rulePrefixExpression= rulePrefixExpression EOF ; + // InternalSimpleExpressions.g:343:1: entryRulePrefixExpression returns [EObject current=null] : iv_rulePrefixExpression= rulePrefixExpression EOF ; public final EObject entryRulePrefixExpression() throws RecognitionException { EObject current = null; @@ -806,8 +819,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:350:2: (iv_rulePrefixExpression= rulePrefixExpression EOF ) - // InternalSimpleExpressions.g:351:2: iv_rulePrefixExpression= rulePrefixExpression EOF + // InternalSimpleExpressions.g:343:57: (iv_rulePrefixExpression= rulePrefixExpression EOF ) + // InternalSimpleExpressions.g:344:2: iv_rulePrefixExpression= rulePrefixExpression EOF { newCompositeNode(grammarAccess.getPrefixExpressionRule()); pushFollow(FOLLOW_1); @@ -821,11 +834,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -834,7 +847,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "rulePrefixExpression" - // InternalSimpleExpressions.g:358:1: rulePrefixExpression returns [EObject current=null] : ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) ; + // InternalSimpleExpressions.g:350:1: rulePrefixExpression returns [EObject current=null] : ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) ; public final EObject rulePrefixExpression() throws RecognitionException { EObject current = null; @@ -844,13 +857,14 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject this_Atom_3 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:361:28: ( ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) ) - // InternalSimpleExpressions.g:362:1: ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) + // InternalSimpleExpressions.g:356:2: ( ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) ) + // InternalSimpleExpressions.g:357:2: ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) { - // InternalSimpleExpressions.g:362:1: ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) + // InternalSimpleExpressions.g:357:2: ( ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) | this_Atom_3= ruleAtom ) int alt6=2; int LA6_0 = input.LA(1); @@ -868,51 +882,51 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt6) { case 1 : - // InternalSimpleExpressions.g:362:2: ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) + // InternalSimpleExpressions.g:358:3: ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) { - // InternalSimpleExpressions.g:362:2: ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) - // InternalSimpleExpressions.g:362:3: () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) + // InternalSimpleExpressions.g:358:3: ( () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) ) + // InternalSimpleExpressions.g:359:4: () otherlv_1= '!' ( (lv_expression_2_0= ruleAtom ) ) { - // InternalSimpleExpressions.g:362:3: () - // InternalSimpleExpressions.g:363:5: + // InternalSimpleExpressions.g:359:4: () + // InternalSimpleExpressions.g:360:5: { - current = forceCreateModelElement( - grammarAccess.getPrefixExpressionAccess().getNotExpressionAction_0_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getPrefixExpressionAccess().getNotExpressionAction_0_0(), + current); + } otherlv_1=(Token)match(input,21,FOLLOW_5); - newLeafNode(otherlv_1, grammarAccess.getPrefixExpressionAccess().getExclamationMarkKeyword_0_1()); - - // InternalSimpleExpressions.g:372:1: ( (lv_expression_2_0= ruleAtom ) ) - // InternalSimpleExpressions.g:373:1: (lv_expression_2_0= ruleAtom ) + newLeafNode(otherlv_1, grammarAccess.getPrefixExpressionAccess().getExclamationMarkKeyword_0_1()); + + // InternalSimpleExpressions.g:370:4: ( (lv_expression_2_0= ruleAtom ) ) + // InternalSimpleExpressions.g:371:5: (lv_expression_2_0= ruleAtom ) { - // InternalSimpleExpressions.g:373:1: (lv_expression_2_0= ruleAtom ) - // InternalSimpleExpressions.g:374:3: lv_expression_2_0= ruleAtom + // InternalSimpleExpressions.g:371:5: (lv_expression_2_0= ruleAtom ) + // InternalSimpleExpressions.g:372:6: lv_expression_2_0= ruleAtom { - - newCompositeNode(grammarAccess.getPrefixExpressionAccess().getExpressionAtomParserRuleCall_0_2_0()); - + + newCompositeNode(grammarAccess.getPrefixExpressionAccess().getExpressionAtomParserRuleCall_0_2_0()); + pushFollow(FOLLOW_2); lv_expression_2_0=ruleAtom(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getPrefixExpressionRule()); - } - set( - current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Atom"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getPrefixExpressionRule()); + } + set( + current, + "expression", + lv_expression_2_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Atom"); + afterParserOrEnumRuleCall(); + } @@ -926,20 +940,20 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } break; case 2 : - // InternalSimpleExpressions.g:392:5: this_Atom_3= ruleAtom + // InternalSimpleExpressions.g:391:3: this_Atom_3= ruleAtom { - - newCompositeNode(grammarAccess.getPrefixExpressionAccess().getAtomParserRuleCall_1()); - + + newCompositeNode(grammarAccess.getPrefixExpressionAccess().getAtomParserRuleCall_1()); + pushFollow(FOLLOW_2); this_Atom_3=ruleAtom(); state._fsp--; - - current = this_Atom_3; - afterParserOrEnumRuleCall(); - + + current = this_Atom_3; + afterParserOrEnumRuleCall(); + } break; @@ -949,13 +963,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -964,7 +980,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleAtom" - // InternalSimpleExpressions.g:408:1: entryRuleAtom returns [EObject current=null] : iv_ruleAtom= ruleAtom EOF ; + // InternalSimpleExpressions.g:403:1: entryRuleAtom returns [EObject current=null] : iv_ruleAtom= ruleAtom EOF ; public final EObject entryRuleAtom() throws RecognitionException { EObject current = null; @@ -972,8 +988,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:409:2: (iv_ruleAtom= ruleAtom EOF ) - // InternalSimpleExpressions.g:410:2: iv_ruleAtom= ruleAtom EOF + // InternalSimpleExpressions.g:403:45: (iv_ruleAtom= ruleAtom EOF ) + // InternalSimpleExpressions.g:404:2: iv_ruleAtom= ruleAtom EOF { newCompositeNode(grammarAccess.getAtomRule()); pushFollow(FOLLOW_1); @@ -987,11 +1003,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1000,7 +1016,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleAtom" - // InternalSimpleExpressions.g:417:1: ruleAtom returns [EObject current=null] : (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) ; + // InternalSimpleExpressions.g:410:1: ruleAtom returns [EObject current=null] : (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) ; public final EObject ruleAtom() throws RecognitionException { EObject current = null; @@ -1013,13 +1029,14 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject this_BooleanLiteral_3 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:420:28: ( (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) ) - // InternalSimpleExpressions.g:421:1: (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) + // InternalSimpleExpressions.g:416:2: ( (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) ) + // InternalSimpleExpressions.g:417:2: (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) { - // InternalSimpleExpressions.g:421:1: (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) + // InternalSimpleExpressions.g:417:2: (this_ParenthesizedExpression_0= ruleParenthesizedExpression | this_NumberLiteral_1= ruleNumberLiteral | this_MethodCall_2= ruleMethodCall | this_BooleanLiteral_3= ruleBooleanLiteral ) int alt7=4; switch ( input.LA(1) ) { case 13: @@ -1052,74 +1069,74 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser switch (alt7) { case 1 : - // InternalSimpleExpressions.g:422:5: this_ParenthesizedExpression_0= ruleParenthesizedExpression + // InternalSimpleExpressions.g:418:3: this_ParenthesizedExpression_0= ruleParenthesizedExpression { - - newCompositeNode(grammarAccess.getAtomAccess().getParenthesizedExpressionParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getAtomAccess().getParenthesizedExpressionParserRuleCall_0()); + pushFollow(FOLLOW_2); this_ParenthesizedExpression_0=ruleParenthesizedExpression(); state._fsp--; - - current = this_ParenthesizedExpression_0; - afterParserOrEnumRuleCall(); - + + current = this_ParenthesizedExpression_0; + afterParserOrEnumRuleCall(); + } break; case 2 : - // InternalSimpleExpressions.g:432:5: this_NumberLiteral_1= ruleNumberLiteral + // InternalSimpleExpressions.g:427:3: this_NumberLiteral_1= ruleNumberLiteral { - - newCompositeNode(grammarAccess.getAtomAccess().getNumberLiteralParserRuleCall_1()); - + + newCompositeNode(grammarAccess.getAtomAccess().getNumberLiteralParserRuleCall_1()); + pushFollow(FOLLOW_2); this_NumberLiteral_1=ruleNumberLiteral(); state._fsp--; - - current = this_NumberLiteral_1; - afterParserOrEnumRuleCall(); - + + current = this_NumberLiteral_1; + afterParserOrEnumRuleCall(); + } break; case 3 : - // InternalSimpleExpressions.g:442:5: this_MethodCall_2= ruleMethodCall + // InternalSimpleExpressions.g:436:3: this_MethodCall_2= ruleMethodCall { - - newCompositeNode(grammarAccess.getAtomAccess().getMethodCallParserRuleCall_2()); - + + newCompositeNode(grammarAccess.getAtomAccess().getMethodCallParserRuleCall_2()); + pushFollow(FOLLOW_2); this_MethodCall_2=ruleMethodCall(); state._fsp--; - - current = this_MethodCall_2; - afterParserOrEnumRuleCall(); - + + current = this_MethodCall_2; + afterParserOrEnumRuleCall(); + } break; case 4 : - // InternalSimpleExpressions.g:452:5: this_BooleanLiteral_3= ruleBooleanLiteral + // InternalSimpleExpressions.g:445:3: this_BooleanLiteral_3= ruleBooleanLiteral { - - newCompositeNode(grammarAccess.getAtomAccess().getBooleanLiteralParserRuleCall_3()); - + + newCompositeNode(grammarAccess.getAtomAccess().getBooleanLiteralParserRuleCall_3()); + pushFollow(FOLLOW_2); this_BooleanLiteral_3=ruleBooleanLiteral(); state._fsp--; - - current = this_BooleanLiteral_3; - afterParserOrEnumRuleCall(); - + + current = this_BooleanLiteral_3; + afterParserOrEnumRuleCall(); + } break; @@ -1129,13 +1146,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1144,7 +1163,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleNumberLiteral" - // InternalSimpleExpressions.g:468:1: entryRuleNumberLiteral returns [EObject current=null] : iv_ruleNumberLiteral= ruleNumberLiteral EOF ; + // InternalSimpleExpressions.g:457:1: entryRuleNumberLiteral returns [EObject current=null] : iv_ruleNumberLiteral= ruleNumberLiteral EOF ; public final EObject entryRuleNumberLiteral() throws RecognitionException { EObject current = null; @@ -1152,8 +1171,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:469:2: (iv_ruleNumberLiteral= ruleNumberLiteral EOF ) - // InternalSimpleExpressions.g:470:2: iv_ruleNumberLiteral= ruleNumberLiteral EOF + // InternalSimpleExpressions.g:457:54: (iv_ruleNumberLiteral= ruleNumberLiteral EOF ) + // InternalSimpleExpressions.g:458:2: iv_ruleNumberLiteral= ruleNumberLiteral EOF { newCompositeNode(grammarAccess.getNumberLiteralRule()); pushFollow(FOLLOW_1); @@ -1167,11 +1186,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1180,38 +1199,39 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleNumberLiteral" - // InternalSimpleExpressions.g:477:1: ruleNumberLiteral returns [EObject current=null] : ( (lv_value_0_0= RULE_INT ) ) ; + // InternalSimpleExpressions.g:464:1: ruleNumberLiteral returns [EObject current=null] : ( (lv_value_0_0= RULE_INT ) ) ; public final EObject ruleNumberLiteral() throws RecognitionException { EObject current = null; Token lv_value_0_0=null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:480:28: ( ( (lv_value_0_0= RULE_INT ) ) ) - // InternalSimpleExpressions.g:481:1: ( (lv_value_0_0= RULE_INT ) ) + // InternalSimpleExpressions.g:470:2: ( ( (lv_value_0_0= RULE_INT ) ) ) + // InternalSimpleExpressions.g:471:2: ( (lv_value_0_0= RULE_INT ) ) { - // InternalSimpleExpressions.g:481:1: ( (lv_value_0_0= RULE_INT ) ) - // InternalSimpleExpressions.g:482:1: (lv_value_0_0= RULE_INT ) + // InternalSimpleExpressions.g:471:2: ( (lv_value_0_0= RULE_INT ) ) + // InternalSimpleExpressions.g:472:3: (lv_value_0_0= RULE_INT ) { - // InternalSimpleExpressions.g:482:1: (lv_value_0_0= RULE_INT ) - // InternalSimpleExpressions.g:483:3: lv_value_0_0= RULE_INT + // InternalSimpleExpressions.g:472:3: (lv_value_0_0= RULE_INT ) + // InternalSimpleExpressions.g:473:4: lv_value_0_0= RULE_INT { lv_value_0_0=(Token)match(input,RULE_INT,FOLLOW_2); - newLeafNode(lv_value_0_0, grammarAccess.getNumberLiteralAccess().getValueINTTerminalRuleCall_0()); - + newLeafNode(lv_value_0_0, grammarAccess.getNumberLiteralAccess().getValueINTTerminalRuleCall_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getNumberLiteralRule()); - } - setWithLastConsumed( - current, - "value", - lv_value_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - + if (current==null) { + current = createModelElement(grammarAccess.getNumberLiteralRule()); + } + setWithLastConsumed( + current, + "value", + lv_value_0_0, + "org.eclipse.xtext.common.Terminals.INT"); + } @@ -1221,13 +1241,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1236,7 +1258,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleBooleanLiteral" - // InternalSimpleExpressions.g:507:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ; + // InternalSimpleExpressions.g:492:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ; public final EObject entryRuleBooleanLiteral() throws RecognitionException { EObject current = null; @@ -1244,8 +1266,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:508:2: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ) - // InternalSimpleExpressions.g:509:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF + // InternalSimpleExpressions.g:492:55: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ) + // InternalSimpleExpressions.g:493:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF { newCompositeNode(grammarAccess.getBooleanLiteralRule()); pushFollow(FOLLOW_1); @@ -1259,11 +1281,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1272,34 +1294,35 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleBooleanLiteral" - // InternalSimpleExpressions.g:516:1: ruleBooleanLiteral returns [EObject current=null] : ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) ; + // InternalSimpleExpressions.g:499:1: ruleBooleanLiteral returns [EObject current=null] : ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) ; public final EObject ruleBooleanLiteral() throws RecognitionException { EObject current = null; Token lv_value_1_0=null; Token otherlv_2=null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:519:28: ( ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) ) - // InternalSimpleExpressions.g:520:1: ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) + // InternalSimpleExpressions.g:505:2: ( ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) ) + // InternalSimpleExpressions.g:506:2: ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) { - // InternalSimpleExpressions.g:520:1: ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) - // InternalSimpleExpressions.g:520:2: () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) + // InternalSimpleExpressions.g:506:2: ( () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) ) + // InternalSimpleExpressions.g:507:3: () ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) { - // InternalSimpleExpressions.g:520:2: () - // InternalSimpleExpressions.g:521:5: + // InternalSimpleExpressions.g:507:3: () + // InternalSimpleExpressions.g:508:4: { - current = forceCreateModelElement( - grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), + current); + } - // InternalSimpleExpressions.g:526:2: ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) + // InternalSimpleExpressions.g:514:3: ( ( (lv_value_1_0= 'true' ) ) | otherlv_2= 'false' ) int alt8=2; int LA8_0 = input.LA(1); @@ -1317,24 +1340,24 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt8) { case 1 : - // InternalSimpleExpressions.g:526:3: ( (lv_value_1_0= 'true' ) ) + // InternalSimpleExpressions.g:515:4: ( (lv_value_1_0= 'true' ) ) { - // InternalSimpleExpressions.g:526:3: ( (lv_value_1_0= 'true' ) ) - // InternalSimpleExpressions.g:527:1: (lv_value_1_0= 'true' ) + // InternalSimpleExpressions.g:515:4: ( (lv_value_1_0= 'true' ) ) + // InternalSimpleExpressions.g:516:5: (lv_value_1_0= 'true' ) { - // InternalSimpleExpressions.g:527:1: (lv_value_1_0= 'true' ) - // InternalSimpleExpressions.g:528:3: lv_value_1_0= 'true' + // InternalSimpleExpressions.g:516:5: (lv_value_1_0= 'true' ) + // InternalSimpleExpressions.g:517:6: lv_value_1_0= 'true' { lv_value_1_0=(Token)match(input,22,FOLLOW_2); - newLeafNode(lv_value_1_0, grammarAccess.getBooleanLiteralAccess().getValueTrueKeyword_1_0_0()); - + newLeafNode(lv_value_1_0, grammarAccess.getBooleanLiteralAccess().getValueTrueKeyword_1_0_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getBooleanLiteralRule()); - } - setWithLastConsumed(current, "value", true, "true"); - + if (current==null) { + current = createModelElement(grammarAccess.getBooleanLiteralRule()); + } + setWithLastConsumed(current, "value", lv_value_1_0 != null, "true"); + } @@ -1345,12 +1368,12 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } break; case 2 : - // InternalSimpleExpressions.g:542:7: otherlv_2= 'false' + // InternalSimpleExpressions.g:530:4: otherlv_2= 'false' { otherlv_2=(Token)match(input,23,FOLLOW_2); - newLeafNode(otherlv_2, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_1()); - + newLeafNode(otherlv_2, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_1()); + } break; @@ -1363,13 +1386,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1378,7 +1403,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleParenthesizedExpression" - // InternalSimpleExpressions.g:554:1: entryRuleParenthesizedExpression returns [EObject current=null] : iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ; + // InternalSimpleExpressions.g:539:1: entryRuleParenthesizedExpression returns [EObject current=null] : iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ; public final EObject entryRuleParenthesizedExpression() throws RecognitionException { EObject current = null; @@ -1386,8 +1411,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:555:2: (iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ) - // InternalSimpleExpressions.g:556:2: iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF + // InternalSimpleExpressions.g:539:64: (iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ) + // InternalSimpleExpressions.g:540:2: iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF { newCompositeNode(grammarAccess.getParenthesizedExpressionRule()); pushFollow(FOLLOW_1); @@ -1401,11 +1426,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1414,7 +1439,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleParenthesizedExpression" - // InternalSimpleExpressions.g:563:1: ruleParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) ; + // InternalSimpleExpressions.g:546:1: ruleParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) ; public final EObject ruleParenthesizedExpression() throws RecognitionException { EObject current = null; @@ -1423,48 +1448,51 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser EObject this_Expression_1 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:566:28: ( (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) ) - // InternalSimpleExpressions.g:567:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) + // InternalSimpleExpressions.g:552:2: ( (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) ) + // InternalSimpleExpressions.g:553:2: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) { - // InternalSimpleExpressions.g:567:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) - // InternalSimpleExpressions.g:567:3: otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' + // InternalSimpleExpressions.g:553:2: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) + // InternalSimpleExpressions.g:554:3: otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' { otherlv_0=(Token)match(input,13,FOLLOW_5); - newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - - - newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1()); - + newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); + + + newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1()); + pushFollow(FOLLOW_6); this_Expression_1=ruleExpression(); state._fsp--; - - current = this_Expression_1; - afterParserOrEnumRuleCall(); - + + current = this_Expression_1; + afterParserOrEnumRuleCall(); + otherlv_2=(Token)match(input,14,FOLLOW_2); - newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); - + newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1473,7 +1501,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleMethodCall" - // InternalSimpleExpressions.g:592:1: entryRuleMethodCall returns [EObject current=null] : iv_ruleMethodCall= ruleMethodCall EOF ; + // InternalSimpleExpressions.g:574:1: entryRuleMethodCall returns [EObject current=null] : iv_ruleMethodCall= ruleMethodCall EOF ; public final EObject entryRuleMethodCall() throws RecognitionException { EObject current = null; @@ -1481,8 +1509,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:593:2: (iv_ruleMethodCall= ruleMethodCall EOF ) - // InternalSimpleExpressions.g:594:2: iv_ruleMethodCall= ruleMethodCall EOF + // InternalSimpleExpressions.g:574:51: (iv_ruleMethodCall= ruleMethodCall EOF ) + // InternalSimpleExpressions.g:575:2: iv_ruleMethodCall= ruleMethodCall EOF { newCompositeNode(grammarAccess.getMethodCallRule()); pushFollow(FOLLOW_1); @@ -1496,11 +1524,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1509,44 +1537,45 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleMethodCall" - // InternalSimpleExpressions.g:601:1: ruleMethodCall returns [EObject current=null] : ( (lv_value_0_0= ruleMethodCallLiteral ) ) ; + // InternalSimpleExpressions.g:581:1: ruleMethodCall returns [EObject current=null] : ( (lv_value_0_0= ruleMethodCallLiteral ) ) ; public final EObject ruleMethodCall() throws RecognitionException { EObject current = null; AntlrDatatypeRuleToken lv_value_0_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:604:28: ( ( (lv_value_0_0= ruleMethodCallLiteral ) ) ) - // InternalSimpleExpressions.g:605:1: ( (lv_value_0_0= ruleMethodCallLiteral ) ) + // InternalSimpleExpressions.g:587:2: ( ( (lv_value_0_0= ruleMethodCallLiteral ) ) ) + // InternalSimpleExpressions.g:588:2: ( (lv_value_0_0= ruleMethodCallLiteral ) ) { - // InternalSimpleExpressions.g:605:1: ( (lv_value_0_0= ruleMethodCallLiteral ) ) - // InternalSimpleExpressions.g:606:1: (lv_value_0_0= ruleMethodCallLiteral ) + // InternalSimpleExpressions.g:588:2: ( (lv_value_0_0= ruleMethodCallLiteral ) ) + // InternalSimpleExpressions.g:589:3: (lv_value_0_0= ruleMethodCallLiteral ) { - // InternalSimpleExpressions.g:606:1: (lv_value_0_0= ruleMethodCallLiteral ) - // InternalSimpleExpressions.g:607:3: lv_value_0_0= ruleMethodCallLiteral + // InternalSimpleExpressions.g:589:3: (lv_value_0_0= ruleMethodCallLiteral ) + // InternalSimpleExpressions.g:590:4: lv_value_0_0= ruleMethodCallLiteral { - - newCompositeNode(grammarAccess.getMethodCallAccess().getValueMethodCallLiteralParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getMethodCallAccess().getValueMethodCallLiteralParserRuleCall_0()); + pushFollow(FOLLOW_2); lv_value_0_0=ruleMethodCallLiteral(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getMethodCallRule()); - } - set( - current, - "value", - lv_value_0_0, - "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.MethodCallLiteral"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getMethodCallRule()); + } + set( + current, + "value", + lv_value_0_0, + "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.MethodCallLiteral"); + afterParserOrEnumRuleCall(); + } @@ -1556,13 +1585,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1571,7 +1602,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleMethodCallLiteral" - // InternalSimpleExpressions.g:631:1: entryRuleMethodCallLiteral returns [String current=null] : iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF ; + // InternalSimpleExpressions.g:610:1: entryRuleMethodCallLiteral returns [String current=null] : iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF ; public final String entryRuleMethodCallLiteral() throws RecognitionException { String current = null; @@ -1579,8 +1610,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:632:2: (iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF ) - // InternalSimpleExpressions.g:633:2: iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF + // InternalSimpleExpressions.g:610:57: (iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF ) + // InternalSimpleExpressions.g:611:2: iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF { newCompositeNode(grammarAccess.getMethodCallLiteralRule()); pushFollow(FOLLOW_1); @@ -1594,11 +1625,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1607,7 +1638,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleMethodCallLiteral" - // InternalSimpleExpressions.g:640:1: ruleMethodCallLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) ; + // InternalSimpleExpressions.g:617:1: ruleMethodCallLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) ; public final AntlrDatatypeRuleToken ruleMethodCallLiteral() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -1621,30 +1652,31 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser AntlrDatatypeRuleToken this_MethodCallLiteral_7 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:643:28: ( (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) ) - // InternalSimpleExpressions.g:644:1: (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) + // InternalSimpleExpressions.g:623:2: ( (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) ) + // InternalSimpleExpressions.g:624:2: (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) { - // InternalSimpleExpressions.g:644:1: (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) - // InternalSimpleExpressions.g:645:5: this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? + // InternalSimpleExpressions.g:624:2: (this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? ) + // InternalSimpleExpressions.g:625:3: this_FQN_0= ruleFQN (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? { - - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getFQNParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getFQNParserRuleCall_0()); + pushFollow(FOLLOW_11); this_FQN_0=ruleFQN(); state._fsp--; - current.merge(this_FQN_0); - - - afterParserOrEnumRuleCall(); - - // InternalSimpleExpressions.g:655:1: (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? + current.merge(this_FQN_0); + + + afterParserOrEnumRuleCall(); + + // InternalSimpleExpressions.g:635:3: (kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? )? int alt12=2; int LA12_0 = input.LA(1); @@ -1653,14 +1685,14 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt12) { case 1 : - // InternalSimpleExpressions.g:656:2: kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? + // InternalSimpleExpressions.g:636:4: kw= '(' (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? kw= ')' (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? { kw=(Token)match(input,13,FOLLOW_12); - current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getLeftParenthesisKeyword_1_0()); - - // InternalSimpleExpressions.g:661:1: (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? + current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getLeftParenthesisKeyword_1_0()); + + // InternalSimpleExpressions.g:641:4: (this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* )? int alt10=2; int LA10_0 = input.LA(1); @@ -1669,23 +1701,23 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt10) { case 1 : - // InternalSimpleExpressions.g:662:5: this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* + // InternalSimpleExpressions.g:642:5: this_Argument_2= ruleArgument (kw= ',' this_Argument_4= ruleArgument )* { - - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_0()); - + + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_0()); + pushFollow(FOLLOW_13); this_Argument_2=ruleArgument(); state._fsp--; - current.merge(this_Argument_2); - - - afterParserOrEnumRuleCall(); - - // InternalSimpleExpressions.g:672:1: (kw= ',' this_Argument_4= ruleArgument )* + current.merge(this_Argument_2); + + + afterParserOrEnumRuleCall(); + + // InternalSimpleExpressions.g:652:5: (kw= ',' this_Argument_4= ruleArgument )* loop9: do { int alt9=2; @@ -1698,27 +1730,27 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser switch (alt9) { case 1 : - // InternalSimpleExpressions.g:673:2: kw= ',' this_Argument_4= ruleArgument + // InternalSimpleExpressions.g:653:6: kw= ',' this_Argument_4= ruleArgument { kw=(Token)match(input,24,FOLLOW_14); - current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getCommaKeyword_1_1_1_0()); - - - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_1_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getCommaKeyword_1_1_1_0()); + + + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getArgumentParserRuleCall_1_1_1_1()); + pushFollow(FOLLOW_13); this_Argument_4=ruleArgument(); state._fsp--; - current.merge(this_Argument_4); - - - afterParserOrEnumRuleCall(); - + current.merge(this_Argument_4); + + + afterParserOrEnumRuleCall(); + } break; @@ -1736,10 +1768,10 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser kw=(Token)match(input,14,FOLLOW_15); - current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getRightParenthesisKeyword_1_2()); - - // InternalSimpleExpressions.g:695:1: (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? + current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getRightParenthesisKeyword_1_2()); + + // InternalSimpleExpressions.g:675:4: (kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral )? int alt11=2; int LA11_0 = input.LA(1); @@ -1748,27 +1780,27 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt11) { case 1 : - // InternalSimpleExpressions.g:696:2: kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral + // InternalSimpleExpressions.g:676:5: kw= '.' this_MethodCallLiteral_7= ruleMethodCallLiteral { kw=(Token)match(input,25,FOLLOW_16); - current.merge(kw); - newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getFullStopKeyword_1_3_0()); - - - newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getMethodCallLiteralParserRuleCall_1_3_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getMethodCallLiteralAccess().getFullStopKeyword_1_3_0()); + + + newCompositeNode(grammarAccess.getMethodCallLiteralAccess().getMethodCallLiteralParserRuleCall_1_3_1()); + pushFollow(FOLLOW_2); this_MethodCallLiteral_7=ruleMethodCallLiteral(); state._fsp--; - current.merge(this_MethodCallLiteral_7); - - - afterParserOrEnumRuleCall(); - + current.merge(this_MethodCallLiteral_7); + + + afterParserOrEnumRuleCall(); + } break; @@ -1787,13 +1819,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1802,7 +1836,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleArgument" - // InternalSimpleExpressions.g:720:1: entryRuleArgument returns [String current=null] : iv_ruleArgument= ruleArgument EOF ; + // InternalSimpleExpressions.g:697:1: entryRuleArgument returns [String current=null] : iv_ruleArgument= ruleArgument EOF ; public final String entryRuleArgument() throws RecognitionException { String current = null; @@ -1810,8 +1844,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:721:2: (iv_ruleArgument= ruleArgument EOF ) - // InternalSimpleExpressions.g:722:2: iv_ruleArgument= ruleArgument EOF + // InternalSimpleExpressions.g:697:48: (iv_ruleArgument= ruleArgument EOF ) + // InternalSimpleExpressions.g:698:2: iv_ruleArgument= ruleArgument EOF { newCompositeNode(grammarAccess.getArgumentRule()); pushFollow(FOLLOW_1); @@ -1825,11 +1859,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1838,7 +1872,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleArgument" - // InternalSimpleExpressions.g:729:1: ruleArgument returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) ; + // InternalSimpleExpressions.g:704:1: ruleArgument returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) ; public final AntlrDatatypeRuleToken ruleArgument() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -1846,13 +1880,14 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser AntlrDatatypeRuleToken this_MethodCallLiteral_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:732:28: ( (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) ) - // InternalSimpleExpressions.g:733:1: (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) + // InternalSimpleExpressions.g:710:2: ( (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) ) + // InternalSimpleExpressions.g:711:2: (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) { - // InternalSimpleExpressions.g:733:1: (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) + // InternalSimpleExpressions.g:711:2: (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) int alt13=2; int LA13_0 = input.LA(1); @@ -1870,35 +1905,35 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } switch (alt13) { case 1 : - // InternalSimpleExpressions.g:734:5: this_MethodCallLiteral_0= ruleMethodCallLiteral + // InternalSimpleExpressions.g:712:3: this_MethodCallLiteral_0= ruleMethodCallLiteral { - - newCompositeNode(grammarAccess.getArgumentAccess().getMethodCallLiteralParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getArgumentAccess().getMethodCallLiteralParserRuleCall_0()); + pushFollow(FOLLOW_2); this_MethodCallLiteral_0=ruleMethodCallLiteral(); state._fsp--; - current.merge(this_MethodCallLiteral_0); - - - afterParserOrEnumRuleCall(); - + current.merge(this_MethodCallLiteral_0); + + + afterParserOrEnumRuleCall(); + } break; case 2 : - // InternalSimpleExpressions.g:745:10: this_INT_1= RULE_INT + // InternalSimpleExpressions.g:723:3: this_INT_1= RULE_INT { this_INT_1=(Token)match(input,RULE_INT,FOLLOW_2); - current.merge(this_INT_1); - - - newLeafNode(this_INT_1, grammarAccess.getArgumentAccess().getINTTerminalRuleCall_1()); - + current.merge(this_INT_1); + + + newLeafNode(this_INT_1, grammarAccess.getArgumentAccess().getINTTerminalRuleCall_1()); + } break; @@ -1908,13 +1943,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1923,7 +1960,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "entryRuleFQN" - // InternalSimpleExpressions.g:760:1: entryRuleFQN returns [String current=null] : iv_ruleFQN= ruleFQN EOF ; + // InternalSimpleExpressions.g:734:1: entryRuleFQN returns [String current=null] : iv_ruleFQN= ruleFQN EOF ; public final String entryRuleFQN() throws RecognitionException { String current = null; @@ -1931,8 +1968,8 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser try { - // InternalSimpleExpressions.g:761:2: (iv_ruleFQN= ruleFQN EOF ) - // InternalSimpleExpressions.g:762:2: iv_ruleFQN= ruleFQN EOF + // InternalSimpleExpressions.g:734:43: (iv_ruleFQN= ruleFQN EOF ) + // InternalSimpleExpressions.g:735:2: iv_ruleFQN= ruleFQN EOF { newCompositeNode(grammarAccess.getFQNRule()); pushFollow(FOLLOW_1); @@ -1946,11 +1983,11 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1959,7 +1996,7 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser // $ANTLR start "ruleFQN" - // InternalSimpleExpressions.g:769:1: ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; + // InternalSimpleExpressions.g:741:1: ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -1967,23 +2004,24 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser Token kw=null; Token this_ID_2=null; - enterRule(); - + + enterRule(); + try { - // InternalSimpleExpressions.g:772:28: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) - // InternalSimpleExpressions.g:773:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) + // InternalSimpleExpressions.g:747:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) + // InternalSimpleExpressions.g:748:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) { - // InternalSimpleExpressions.g:773:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) - // InternalSimpleExpressions.g:773:6: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* + // InternalSimpleExpressions.g:748:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) + // InternalSimpleExpressions.g:749:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* { this_ID_0=(Token)match(input,RULE_ID,FOLLOW_15); - current.merge(this_ID_0); - - - newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); - - // InternalSimpleExpressions.g:780:1: (kw= '.' this_ID_2= RULE_ID )* + current.merge(this_ID_0); + + + newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); + + // InternalSimpleExpressions.g:756:3: (kw= '.' this_ID_2= RULE_ID )* loop14: do { int alt14=2; @@ -1996,20 +2034,20 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser switch (alt14) { case 1 : - // InternalSimpleExpressions.g:781:2: kw= '.' this_ID_2= RULE_ID + // InternalSimpleExpressions.g:757:4: kw= '.' this_ID_2= RULE_ID { kw=(Token)match(input,25,FOLLOW_16); - current.merge(kw); - newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); + this_ID_2=(Token)match(input,RULE_ID,FOLLOW_15); - current.merge(this_ID_2); - - - newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); - + current.merge(this_ID_2); + + + newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); + } break; @@ -2025,13 +2063,15 @@ public class InternalSimpleExpressionsParser extends AbstractInternalAntlrParser } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/services/SimpleExpressionsGrammarAccess.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/services/SimpleExpressionsGrammarAccess.java index a9489a3fe..1c7454b21 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/services/SimpleExpressionsGrammarAccess.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/services/SimpleExpressionsGrammarAccess.java @@ -3,20 +3,25 @@ */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.services; -import com.google.inject.Singleton; import com.google.inject.Inject; - +import com.google.inject.Singleton; import java.util.List; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.service.GrammarProvider; -import org.eclipse.xtext.service.AbstractElementFinder.*; - +import org.eclipse.xtext.Action; +import org.eclipse.xtext.Alternatives; +import org.eclipse.xtext.Assignment; +import org.eclipse.xtext.Grammar; +import org.eclipse.xtext.GrammarUtil; +import org.eclipse.xtext.Group; +import org.eclipse.xtext.Keyword; +import org.eclipse.xtext.ParserRule; +import org.eclipse.xtext.RuleCall; +import org.eclipse.xtext.TerminalRule; import org.eclipse.xtext.common.services.TerminalsGrammarAccess; +import org.eclipse.xtext.service.AbstractElementFinder; +import org.eclipse.xtext.service.GrammarProvider; @Singleton -public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder { - +public class SimpleExpressionsGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder { public class IfConditionElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.IfCondition"); @@ -31,37 +36,36 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final Keyword cLeftCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); //IfCondition: - // elseif?='else'? 'if' '(' condition=Expression ')' '{'; + // (elseif ?= 'else')? 'if' '(' condition = Expression ')' '{'; @Override public ParserRule getRule() { return rule; } - - //elseif?='else'? 'if' '(' condition=Expression ')' '{' + + //(elseif ?= 'else')? 'if' '(' condition = Expression ')' '{' public Group getGroup() { return cGroup; } - - //elseif?='else'? + + //(elseif ?= 'else')? public Assignment getElseifAssignment_0() { return cElseifAssignment_0; } - + //'else' public Keyword getElseifElseKeyword_0_0() { return cElseifElseKeyword_0_0; } - + //'if' public Keyword getIfKeyword_1() { return cIfKeyword_1; } - + //'(' public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } - - //condition=Expression + + //condition = Expression public Assignment getConditionAssignment_3() { return cConditionAssignment_3; } - + //Expression public RuleCall getConditionExpressionParserRuleCall_3_0() { return cConditionExpressionParserRuleCall_3_0; } - + //')' public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; } - + //'{' public Keyword getLeftCurlyBracketKeyword_5() { return cLeftCurlyBracketKeyword_5; } } - public class ExpressionElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Expression"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -72,32 +76,32 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final Assignment cRightAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2); private final RuleCall cRightAndExpressionParserRuleCall_1_2_0 = (RuleCall)cRightAssignment_1_2.eContents().get(0); - //Expression: - // AndExpression ({OrExpression.left=current} '||' right=AndExpression)*; + //Expression returns Expression: + // AndExpression ( {OrExpression.left = current} '||' right = AndExpression )* + //; @Override public ParserRule getRule() { return rule; } - - //AndExpression ({OrExpression.left=current} '||' right=AndExpression)* + + //AndExpression ( {OrExpression.left = current} '||' right = AndExpression )* public Group getGroup() { return cGroup; } - + //AndExpression public RuleCall getAndExpressionParserRuleCall_0() { return cAndExpressionParserRuleCall_0; } - - //({OrExpression.left=current} '||' right=AndExpression)* + + //( {OrExpression.left = current} '||' right = AndExpression )* public Group getGroup_1() { return cGroup_1; } - - //{OrExpression.left=current} + + //{OrExpression.left = current} public Action getOrExpressionLeftAction_1_0() { return cOrExpressionLeftAction_1_0; } - + //'||' public Keyword getVerticalLineVerticalLineKeyword_1_1() { return cVerticalLineVerticalLineKeyword_1_1; } - - //right=AndExpression + + //right = AndExpression public Assignment getRightAssignment_1_2() { return cRightAssignment_1_2; } - + //AndExpression public RuleCall getRightAndExpressionParserRuleCall_1_2_0() { return cRightAndExpressionParserRuleCall_1_2_0; } } - public class AndExpressionElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.AndExpression"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -108,32 +112,32 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final Assignment cRightAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2); private final RuleCall cRightComparisonParserRuleCall_1_2_0 = (RuleCall)cRightAssignment_1_2.eContents().get(0); - //AndExpression Expression: - // Comparison ({AndExpression.left=current} '&&' right=Comparison)* + //AndExpression returns Expression: + // Comparison ( {AndExpression.left = current} '&&' right = Comparison )* + //; @Override public ParserRule getRule() { return rule; } - - //Comparison ({AndExpression.left=current} '&&' right=Comparison)* + + //Comparison ( {AndExpression.left = current} '&&' right = Comparison )* public Group getGroup() { return cGroup; } - + //Comparison public RuleCall getComparisonParserRuleCall_0() { return cComparisonParserRuleCall_0; } - - //({AndExpression.left=current} '&&' right=Comparison)* + + //( {AndExpression.left = current} '&&' right = Comparison )* public Group getGroup_1() { return cGroup_1; } - - //{AndExpression.left=current} + + //{AndExpression.left = current} public Action getAndExpressionLeftAction_1_0() { return cAndExpressionLeftAction_1_0; } - + //'&&' public Keyword getAmpersandAmpersandKeyword_1_1() { return cAmpersandAmpersandKeyword_1_1; } - - //right=Comparison + + //right = Comparison public Assignment getRightAssignment_1_2() { return cRightAssignment_1_2; } - + //Comparison public RuleCall getRightComparisonParserRuleCall_1_2_0() { return cRightComparisonParserRuleCall_1_2_0; } } - public class ComparisonElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Comparison"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -148,44 +152,44 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final Assignment cRightAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2); private final RuleCall cRightPrefixExpressionParserRuleCall_1_2_0 = (RuleCall)cRightAssignment_1_2.eContents().get(0); - //Comparison Expression: - // PrefixExpression ({Comparison.left=current} operator=('==' | '<=' | '>=') right=PrefixExpression)? + //Comparison returns Expression: + // PrefixExpression ( {Comparison.left = current} operator = ('=='|'<='|'>=') right = PrefixExpression)? + //; @Override public ParserRule getRule() { return rule; } - - //PrefixExpression ({Comparison.left=current} operator=('==' | '<=' | '>=') right=PrefixExpression)? + + //PrefixExpression ( {Comparison.left = current} operator = ('=='|'<='|'>=') right = PrefixExpression)? public Group getGroup() { return cGroup; } - + //PrefixExpression public RuleCall getPrefixExpressionParserRuleCall_0() { return cPrefixExpressionParserRuleCall_0; } - - //({Comparison.left=current} operator=('==' | '<=' | '>=') right=PrefixExpression)? + + //( {Comparison.left = current} operator = ('=='|'<='|'>=') right = PrefixExpression)? public Group getGroup_1() { return cGroup_1; } - - //{Comparison.left=current} + + //{Comparison.left = current} public Action getComparisonLeftAction_1_0() { return cComparisonLeftAction_1_0; } - - //operator=('==' | '<=' | '>=') + + //operator = ('=='|'<='|'>=') public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; } - - //('==' | '<=' | '>=') + + //('=='|'<='|'>=') public Alternatives getOperatorAlternatives_1_1_0() { return cOperatorAlternatives_1_1_0; } - + //'==' public Keyword getOperatorEqualsSignEqualsSignKeyword_1_1_0_0() { return cOperatorEqualsSignEqualsSignKeyword_1_1_0_0; } - + //'<=' public Keyword getOperatorLessThanSignEqualsSignKeyword_1_1_0_1() { return cOperatorLessThanSignEqualsSignKeyword_1_1_0_1; } - + //'>=' public Keyword getOperatorGreaterThanSignEqualsSignKeyword_1_1_0_2() { return cOperatorGreaterThanSignEqualsSignKeyword_1_1_0_2; } - - //right=PrefixExpression + + //right = PrefixExpression public Assignment getRightAssignment_1_2() { return cRightAssignment_1_2; } - + //PrefixExpression public RuleCall getRightPrefixExpressionParserRuleCall_1_2_0() { return cRightPrefixExpressionParserRuleCall_1_2_0; } } - public class PrefixExpressionElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.PrefixExpression"); private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); @@ -196,33 +200,34 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final RuleCall cExpressionAtomParserRuleCall_0_2_0 = (RuleCall)cExpressionAssignment_0_2.eContents().get(0); private final RuleCall cAtomParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - //PrefixExpression Expression: - // {NotExpression} '!' expression=Atom - // | Atom + //PrefixExpression returns Expression: + // {NotExpression} '!' expression = Atom + // | Atom + //; @Override public ParserRule getRule() { return rule; } - - //{NotExpression} '!' expression=Atom | Atom + + // {NotExpression} '!' expression = Atom + //| Atom public Alternatives getAlternatives() { return cAlternatives; } - - //{NotExpression} '!' expression=Atom + + //{NotExpression} '!' expression = Atom public Group getGroup_0() { return cGroup_0; } - + //{NotExpression} public Action getNotExpressionAction_0_0() { return cNotExpressionAction_0_0; } - + //'!' public Keyword getExclamationMarkKeyword_0_1() { return cExclamationMarkKeyword_0_1; } - - //expression=Atom + + //expression = Atom public Assignment getExpressionAssignment_0_2() { return cExpressionAssignment_0_2; } - + //Atom public RuleCall getExpressionAtomParserRuleCall_0_2_0() { return cExpressionAtomParserRuleCall_0_2_0; } - + //Atom public RuleCall getAtomParserRuleCall_1() { return cAtomParserRuleCall_1; } } - public class AtomElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Atom"); private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); @@ -231,45 +236,48 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final RuleCall cMethodCallParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); private final RuleCall cBooleanLiteralParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3); - //Atom Expression: - // ParenthesizedExpression - // | NumberLiteral - // | MethodCall - // | BooleanLiteral + //Atom returns Expression: + // ParenthesizedExpression + // | NumberLiteral + // | MethodCall + // | BooleanLiteral + //; @Override public ParserRule getRule() { return rule; } - - //ParenthesizedExpression | NumberLiteral | MethodCall | BooleanLiteral + + // ParenthesizedExpression + //| NumberLiteral + //| MethodCall + //| BooleanLiteral public Alternatives getAlternatives() { return cAlternatives; } - + //ParenthesizedExpression public RuleCall getParenthesizedExpressionParserRuleCall_0() { return cParenthesizedExpressionParserRuleCall_0; } - + //NumberLiteral public RuleCall getNumberLiteralParserRuleCall_1() { return cNumberLiteralParserRuleCall_1; } - + //MethodCall public RuleCall getMethodCallParserRuleCall_2() { return cMethodCallParserRuleCall_2; } - + //BooleanLiteral public RuleCall getBooleanLiteralParserRuleCall_3() { return cBooleanLiteralParserRuleCall_3; } } - public class NumberLiteralElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.NumberLiteral"); private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1); private final RuleCall cValueINTTerminalRuleCall_0 = (RuleCall)cValueAssignment.eContents().get(0); //NumberLiteral: - // value=INT; + // value = INT + //; @Override public ParserRule getRule() { return rule; } - - //value=INT + + //value = INT public Assignment getValueAssignment() { return cValueAssignment; } - + //INT public RuleCall getValueINTTerminalRuleCall_0() { return cValueINTTerminalRuleCall_0; } } - public class BooleanLiteralElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.BooleanLiteral"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -280,28 +288,28 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final Keyword cFalseKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); //BooleanLiteral: - // {BooleanLiteral} (value?='true' | 'false'); + // {BooleanLiteral} (value?='true' | 'false') + //; @Override public ParserRule getRule() { return rule; } - + //{BooleanLiteral} (value?='true' | 'false') public Group getGroup() { return cGroup; } - + //{BooleanLiteral} public Action getBooleanLiteralAction_0() { return cBooleanLiteralAction_0; } - + //(value?='true' | 'false') public Alternatives getAlternatives_1() { return cAlternatives_1; } - + //value?='true' public Assignment getValueAssignment_1_0() { return cValueAssignment_1_0; } - + //'true' public Keyword getValueTrueKeyword_1_0_0() { return cValueTrueKeyword_1_0_0; } - + //'false' public Keyword getFalseKeyword_1_1() { return cFalseKeyword_1_1; } } - public class ParenthesizedExpressionElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.ParenthesizedExpression"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -309,39 +317,39 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1); private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); - //ParenthesizedExpression Expression: - // '(' Expression ')' + //ParenthesizedExpression returns Expression: + // '(' Expression ')' + //; @Override public ParserRule getRule() { return rule; } - + //'(' Expression ')' public Group getGroup() { return cGroup; } - + //'(' public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; } - + //Expression public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; } - + //')' public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; } } - public class MethodCallElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.MethodCall"); private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1); private final RuleCall cValueMethodCallLiteralParserRuleCall_0 = (RuleCall)cValueAssignment.eContents().get(0); //MethodCall: - // value=MethodCallLiteral; + // value = MethodCallLiteral + //; @Override public ParserRule getRule() { return rule; } - - //value=MethodCallLiteral + + //value = MethodCallLiteral public Assignment getValueAssignment() { return cValueAssignment; } - + //MethodCallLiteral public RuleCall getValueMethodCallLiteralParserRuleCall_0() { return cValueMethodCallLiteralParserRuleCall_0; } } - public class MethodCallLiteralElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.MethodCallLiteral"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -359,49 +367,49 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final RuleCall cMethodCallLiteralParserRuleCall_1_3_1 = (RuleCall)cGroup_1_3.eContents().get(1); //MethodCallLiteral: - // FQN ('(' (Argument (',' Argument)*)? ')' ('.' MethodCallLiteral)?)?; + // FQN ('(' (Argument (',' Argument )*)? ')' ('.' MethodCallLiteral)? )? + //; @Override public ParserRule getRule() { return rule; } - - //FQN ('(' (Argument (',' Argument)*)? ')' ('.' MethodCallLiteral)?)? + + //FQN ('(' (Argument (',' Argument )*)? ')' ('.' MethodCallLiteral)? )? public Group getGroup() { return cGroup; } - + //FQN public RuleCall getFQNParserRuleCall_0() { return cFQNParserRuleCall_0; } - - //('(' (Argument (',' Argument)*)? ')' ('.' MethodCallLiteral)?)? + + //('(' (Argument (',' Argument )*)? ')' ('.' MethodCallLiteral)? )? public Group getGroup_1() { return cGroup_1; } - + //'(' public Keyword getLeftParenthesisKeyword_1_0() { return cLeftParenthesisKeyword_1_0; } - - //(Argument (',' Argument)*)? + + //(Argument (',' Argument )*)? public Group getGroup_1_1() { return cGroup_1_1; } - + //Argument public RuleCall getArgumentParserRuleCall_1_1_0() { return cArgumentParserRuleCall_1_1_0; } - - //(',' Argument)* + + //(',' Argument )* public Group getGroup_1_1_1() { return cGroup_1_1_1; } - + //',' public Keyword getCommaKeyword_1_1_1_0() { return cCommaKeyword_1_1_1_0; } - + //Argument public RuleCall getArgumentParserRuleCall_1_1_1_1() { return cArgumentParserRuleCall_1_1_1_1; } - + //')' public Keyword getRightParenthesisKeyword_1_2() { return cRightParenthesisKeyword_1_2; } - + //('.' MethodCallLiteral)? public Group getGroup_1_3() { return cGroup_1_3; } - + //'.' public Keyword getFullStopKeyword_1_3_0() { return cFullStopKeyword_1_3_0; } - + //MethodCallLiteral public RuleCall getMethodCallLiteralParserRuleCall_1_3_1() { return cMethodCallLiteralParserRuleCall_1_3_1; } } - public class ArgumentElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.Argument"); private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); @@ -409,19 +417,19 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); //Argument: - // MethodCallLiteral | INT; + // MethodCallLiteral | INT + //; @Override public ParserRule getRule() { return rule; } - + //MethodCallLiteral | INT public Alternatives getAlternatives() { return cAlternatives; } - + //MethodCallLiteral public RuleCall getMethodCallLiteralParserRuleCall_0() { return cMethodCallLiteralParserRuleCall_0; } - + //INT public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; } } - public class FQNElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.xtext.generator.parser.antlr.splitting.SimpleExpressions.FQN"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -431,21 +439,22 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); //FQN: - // ID ('.' ID)*; + // ID ('.' ID)* + //; @Override public ParserRule getRule() { return rule; } - + //ID ('.' ID)* public Group getGroup() { return cGroup; } - + //ID public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } - + //('.' ID)* public Group getGroup_1() { return cGroup_1; } - + //'.' public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } - + //ID public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; } } @@ -466,12 +475,12 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder private final FQNElements pFQN; private final Grammar grammar; - + private final TerminalsGrammarAccess gaTerminals; @Inject public SimpleExpressionsGrammarAccess(GrammarProvider grammarProvider, - TerminalsGrammarAccess gaTerminals) { + TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaTerminals = gaTerminals; this.pIfCondition = new IfConditionElements(); @@ -510,14 +519,14 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder return grammar; } - + public TerminalsGrammarAccess getTerminalsGrammarAccess() { return gaTerminals; } //IfCondition: - // elseif?='else'? 'if' '(' condition=Expression ')' '{'; + // (elseif ?= 'else')? 'if' '(' condition = Expression ')' '{'; public IfConditionElements getIfConditionAccess() { return pIfCondition; } @@ -525,9 +534,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getIfConditionRule() { return getIfConditionAccess().getRule(); } - - //Expression: - // AndExpression ({OrExpression.left=current} '||' right=AndExpression)*; + + //Expression returns Expression: + // AndExpression ( {OrExpression.left = current} '||' right = AndExpression )* + //; public ExpressionElements getExpressionAccess() { return pExpression; } @@ -535,9 +545,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getExpressionRule() { return getExpressionAccess().getRule(); } - - //AndExpression Expression: - // Comparison ({AndExpression.left=current} '&&' right=Comparison)* + + //AndExpression returns Expression: + // Comparison ( {AndExpression.left = current} '&&' right = Comparison )* + //; public AndExpressionElements getAndExpressionAccess() { return pAndExpression; } @@ -545,9 +556,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getAndExpressionRule() { return getAndExpressionAccess().getRule(); } - - //Comparison Expression: - // PrefixExpression ({Comparison.left=current} operator=('==' | '<=' | '>=') right=PrefixExpression)? + + //Comparison returns Expression: + // PrefixExpression ( {Comparison.left = current} operator = ('=='|'<='|'>=') right = PrefixExpression)? + //; public ComparisonElements getComparisonAccess() { return pComparison; } @@ -555,10 +567,11 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getComparisonRule() { return getComparisonAccess().getRule(); } - - //PrefixExpression Expression: - // {NotExpression} '!' expression=Atom - // | Atom + + //PrefixExpression returns Expression: + // {NotExpression} '!' expression = Atom + // | Atom + //; public PrefixExpressionElements getPrefixExpressionAccess() { return pPrefixExpression; } @@ -566,12 +579,13 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getPrefixExpressionRule() { return getPrefixExpressionAccess().getRule(); } - - //Atom Expression: - // ParenthesizedExpression - // | NumberLiteral - // | MethodCall - // | BooleanLiteral + + //Atom returns Expression: + // ParenthesizedExpression + // | NumberLiteral + // | MethodCall + // | BooleanLiteral + //; public AtomElements getAtomAccess() { return pAtom; } @@ -579,9 +593,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getAtomRule() { return getAtomAccess().getRule(); } - + //NumberLiteral: - // value=INT; + // value = INT + //; public NumberLiteralElements getNumberLiteralAccess() { return pNumberLiteral; } @@ -589,9 +604,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getNumberLiteralRule() { return getNumberLiteralAccess().getRule(); } - + //BooleanLiteral: - // {BooleanLiteral} (value?='true' | 'false'); + // {BooleanLiteral} (value?='true' | 'false') + //; public BooleanLiteralElements getBooleanLiteralAccess() { return pBooleanLiteral; } @@ -599,9 +615,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getBooleanLiteralRule() { return getBooleanLiteralAccess().getRule(); } - - //ParenthesizedExpression Expression: - // '(' Expression ')' + + //ParenthesizedExpression returns Expression: + // '(' Expression ')' + //; public ParenthesizedExpressionElements getParenthesizedExpressionAccess() { return pParenthesizedExpression; } @@ -609,9 +626,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getParenthesizedExpressionRule() { return getParenthesizedExpressionAccess().getRule(); } - + //MethodCall: - // value=MethodCallLiteral; + // value = MethodCallLiteral + //; public MethodCallElements getMethodCallAccess() { return pMethodCall; } @@ -619,9 +637,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getMethodCallRule() { return getMethodCallAccess().getRule(); } - + //MethodCallLiteral: - // FQN ('(' (Argument (',' Argument)*)? ')' ('.' MethodCallLiteral)?)?; + // FQN ('(' (Argument (',' Argument )*)? ')' ('.' MethodCallLiteral)? )? + //; public MethodCallLiteralElements getMethodCallLiteralAccess() { return pMethodCallLiteral; } @@ -629,9 +648,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getMethodCallLiteralRule() { return getMethodCallLiteralAccess().getRule(); } - + //Argument: - // MethodCallLiteral | INT; + // MethodCallLiteral | INT + //; public ArgumentElements getArgumentAccess() { return pArgument; } @@ -639,9 +659,10 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getArgumentRule() { return getArgumentAccess().getRule(); } - + //FQN: - // ID ('.' ID)*; + // ID ('.' ID)* + //; public FQNElements getFQNAccess() { return pFQN; } @@ -649,47 +670,42 @@ public class SimpleExpressionsGrammarAccess extends AbstractGrammarElementFinder public ParserRule getFQNRule() { return getFQNAccess().getRule(); } - - //terminal ID: - // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; + + //terminal ID: '^'?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; public TerminalRule getIDRule() { return gaTerminals.getIDRule(); - } - - //terminal INT returns ecore::EInt: - // '0'..'9'+; + } + + //terminal INT returns ecore::EInt: ('0'..'9')+; public TerminalRule getINTRule() { return gaTerminals.getINTRule(); - } - + } + //terminal STRING: - // '"' ('\\' . | !('\\' | '"'))* '"' | - // "'" ('\\' . | !('\\' | "'"))* "'"; + // '"' ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|'"') )* '"' | + // "'" ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|"'") )* "'" + // ; public TerminalRule getSTRINGRule() { return gaTerminals.getSTRINGRule(); - } - - //terminal ML_COMMENT: - // '/ *'->'* /'; + } + + //terminal ML_COMMENT : '/*' -> '*/'; public TerminalRule getML_COMMENTRule() { return gaTerminals.getML_COMMENTRule(); - } - - //terminal SL_COMMENT: - // '//' !('\n' | '\r')* ('\r'? '\n')?; + } + + //terminal SL_COMMENT : '//' !('\n'|'\r')* ('\r'? '\n')?; public TerminalRule getSL_COMMENTRule() { return gaTerminals.getSL_COMMENTRule(); - } - - //terminal WS: - // ' ' | '\t' | '\r' | '\n'+; + } + + //terminal WS : (' '|'\t'|'\r'|'\n')+; public TerminalRule getWSRule() { return gaTerminals.getWSRule(); - } - - //terminal ANY_OTHER: - // .; + } + + //terminal ANY_OTHER: .; public TerminalRule getANY_OTHERRule() { return gaTerminals.getANY_OTHERRule(); - } + } } diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/AndExpression.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/AndExpression.java index 1fa40cea3..ee84c622c 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/AndExpression.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/AndExpression.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -25,10 +26,6 @@ public interface AndExpression extends Expression /** * Returns the value of the 'Left' containment reference. * - *

- * If the meaning of the 'Left' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Left' containment reference. * @see #setLeft(Expression) @@ -51,10 +48,6 @@ public interface AndExpression extends Expression /** * Returns the value of the 'Right' containment reference. * - *

- * If the meaning of the 'Right' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Right' containment reference. * @see #setRight(Expression) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/BooleanLiteral.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/BooleanLiteral.java index be298b970..d8577deb1 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/BooleanLiteral.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/BooleanLiteral.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -24,10 +25,6 @@ public interface BooleanLiteral extends Expression /** * Returns the value of the 'Value' attribute. * - *

- * If the meaning of the 'Value' attribute isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Value' attribute. * @see #setValue(boolean) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Comparison.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Comparison.java index 37e9505a0..211771e70 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Comparison.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Comparison.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -26,10 +27,6 @@ public interface Comparison extends Expression /** * Returns the value of the 'Left' containment reference. * - *

- * If the meaning of the 'Left' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Left' containment reference. * @see #setLeft(Expression) @@ -52,10 +49,6 @@ public interface Comparison extends Expression /** * Returns the value of the 'Operator' attribute. * - *

- * If the meaning of the 'Operator' attribute isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Operator' attribute. * @see #setOperator(String) @@ -78,10 +71,6 @@ public interface Comparison extends Expression /** * Returns the value of the 'Right' containment reference. * - *

- * If the meaning of the 'Right' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Right' containment reference. * @see #setRight(Expression) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Expression.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Expression.java index d9a9b60a7..9caa88b73 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Expression.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/Expression.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/IfCondition.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/IfCondition.java index e3319c966..b479bc6cc 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/IfCondition.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/IfCondition.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -26,10 +27,6 @@ public interface IfCondition extends EObject /** * Returns the value of the 'Elseif' attribute. * - *

- * If the meaning of the 'Elseif' attribute isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Elseif' attribute. * @see #setElseif(boolean) @@ -52,10 +49,6 @@ public interface IfCondition extends EObject /** * Returns the value of the 'Condition' containment reference. * - *

- * If the meaning of the 'Condition' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Condition' containment reference. * @see #setCondition(Expression) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/MethodCall.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/MethodCall.java index f8ba09649..8fc1aefbd 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/MethodCall.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/MethodCall.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -24,10 +25,6 @@ public interface MethodCall extends Expression /** * Returns the value of the 'Value' attribute. * - *

- * If the meaning of the 'Value' attribute isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Value' attribute. * @see #setValue(String) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NotExpression.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NotExpression.java index 4a52ea464..9baa6aec3 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NotExpression.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NotExpression.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -24,10 +25,6 @@ public interface NotExpression extends Expression /** * Returns the value of the 'Expression' containment reference. * - *

- * If the meaning of the 'Expression' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Expression' containment reference. * @see #setExpression(Expression) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NumberLiteral.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NumberLiteral.java index c005056fb..d02e0180f 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NumberLiteral.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/NumberLiteral.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -24,10 +25,6 @@ public interface NumberLiteral extends Expression /** * Returns the value of the 'Value' attribute. * - *

- * If the meaning of the 'Value' attribute isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Value' attribute. * @see #setValue(int) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/OrExpression.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/OrExpression.java index 0e9b5e37c..8d3fb241a 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/OrExpression.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/OrExpression.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; @@ -25,10 +26,6 @@ public interface OrExpression extends Expression /** * Returns the value of the 'Left' containment reference. * - *

- * If the meaning of the 'Left' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Left' containment reference. * @see #setLeft(Expression) @@ -51,10 +48,6 @@ public interface OrExpression extends Expression /** * Returns the value of the 'Right' containment reference. * - *

- * If the meaning of the 'Right' containment reference isn't clear, - * there really should be more of a description here... - *

* * @return the value of the 'Right' containment reference. * @see #setRight(Expression) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsFactory.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsFactory.java index d1d666e01..cb1f344d8 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsFactory.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsFactory.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsPackage.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsPackage.java index e23767230..804a732c7 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsPackage.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/SimpleExpressionsPackage.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions; diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/AndExpressionImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/AndExpressionImpl.java index f53e7e2e7..569dc7cce 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/AndExpressionImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/AndExpressionImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -76,6 +77,7 @@ public class AndExpressionImpl extends ExpressionImpl implements AndExpression * * @generated */ + @Override public Expression getLeft() { return left; @@ -103,6 +105,7 @@ public class AndExpressionImpl extends ExpressionImpl implements AndExpression * * @generated */ + @Override public void setLeft(Expression newLeft) { if (newLeft != left) @@ -124,6 +127,7 @@ public class AndExpressionImpl extends ExpressionImpl implements AndExpression * * @generated */ + @Override public Expression getRight() { return right; @@ -151,6 +155,7 @@ public class AndExpressionImpl extends ExpressionImpl implements AndExpression * * @generated */ + @Override public void setRight(Expression newRight) { if (newRight != right) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/BooleanLiteralImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/BooleanLiteralImpl.java index e07dd29b4..7883c2328 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/BooleanLiteralImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/BooleanLiteralImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -72,6 +73,7 @@ public class BooleanLiteralImpl extends ExpressionImpl implements BooleanLiteral * * @generated */ + @Override public boolean isValue() { return value; @@ -82,6 +84,7 @@ public class BooleanLiteralImpl extends ExpressionImpl implements BooleanLiteral * * @generated */ + @Override public void setValue(boolean newValue) { boolean oldValue = value; @@ -166,7 +169,7 @@ public class BooleanLiteralImpl extends ExpressionImpl implements BooleanLiteral { if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (value: "); result.append(value); result.append(')'); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ComparisonImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ComparisonImpl.java index 73ffef399..2014d116b 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ComparisonImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ComparisonImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -97,6 +98,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison * * @generated */ + @Override public Expression getLeft() { return left; @@ -124,6 +126,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison * * @generated */ + @Override public void setLeft(Expression newLeft) { if (newLeft != left) @@ -145,6 +148,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison * * @generated */ + @Override public String getOperator() { return operator; @@ -155,6 +159,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison * * @generated */ + @Override public void setOperator(String newOperator) { String oldOperator = operator; @@ -168,6 +173,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison * * @generated */ + @Override public Expression getRight() { return right; @@ -195,6 +201,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison * * @generated */ + @Override public void setRight(Expression newRight) { if (newRight != right) @@ -325,7 +332,7 @@ public class ComparisonImpl extends ExpressionImpl implements Comparison { if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (operator: "); result.append(operator); result.append(')'); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ExpressionImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ExpressionImpl.java index a3d66eb24..3dee46463 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ExpressionImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/ExpressionImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/IfConditionImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/IfConditionImpl.java index 045b5754a..8a2c94c00 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/IfConditionImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/IfConditionImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -87,6 +88,7 @@ public class IfConditionImpl extends MinimalEObjectImpl.Container implements IfC * * @generated */ + @Override public boolean isElseif() { return elseif; @@ -97,6 +99,7 @@ public class IfConditionImpl extends MinimalEObjectImpl.Container implements IfC * * @generated */ + @Override public void setElseif(boolean newElseif) { boolean oldElseif = elseif; @@ -110,6 +113,7 @@ public class IfConditionImpl extends MinimalEObjectImpl.Container implements IfC * * @generated */ + @Override public Expression getCondition() { return condition; @@ -137,6 +141,7 @@ public class IfConditionImpl extends MinimalEObjectImpl.Container implements IfC * * @generated */ + @Override public void setCondition(Expression newCondition) { if (newCondition != condition) @@ -255,7 +260,7 @@ public class IfConditionImpl extends MinimalEObjectImpl.Container implements IfC { if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (elseif: "); result.append(elseif); result.append(')'); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/MethodCallImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/MethodCallImpl.java index eca569e20..8aff11aed 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/MethodCallImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/MethodCallImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -72,6 +73,7 @@ public class MethodCallImpl extends ExpressionImpl implements MethodCall * * @generated */ + @Override public String getValue() { return value; @@ -82,6 +84,7 @@ public class MethodCallImpl extends ExpressionImpl implements MethodCall * * @generated */ + @Override public void setValue(String newValue) { String oldValue = value; @@ -166,7 +169,7 @@ public class MethodCallImpl extends ExpressionImpl implements MethodCall { if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (value: "); result.append(value); result.append(')'); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NotExpressionImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NotExpressionImpl.java index d2334ef91..b026be63a 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NotExpressionImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NotExpressionImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -65,6 +66,7 @@ public class NotExpressionImpl extends ExpressionImpl implements NotExpression * * @generated */ + @Override public Expression getExpression() { return expression; @@ -92,6 +94,7 @@ public class NotExpressionImpl extends ExpressionImpl implements NotExpression * * @generated */ + @Override public void setExpression(Expression newExpression) { if (newExpression != expression) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NumberLiteralImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NumberLiteralImpl.java index 676efc297..3d680c950 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NumberLiteralImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/NumberLiteralImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -72,6 +73,7 @@ public class NumberLiteralImpl extends ExpressionImpl implements NumberLiteral * * @generated */ + @Override public int getValue() { return value; @@ -82,6 +84,7 @@ public class NumberLiteralImpl extends ExpressionImpl implements NumberLiteral * * @generated */ + @Override public void setValue(int newValue) { int oldValue = value; @@ -166,7 +169,7 @@ public class NumberLiteralImpl extends ExpressionImpl implements NumberLiteral { if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (value: "); result.append(value); result.append(')'); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/OrExpressionImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/OrExpressionImpl.java index 8ec04e6d1..ff4ae8930 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/OrExpressionImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/OrExpressionImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -76,6 +77,7 @@ public class OrExpressionImpl extends ExpressionImpl implements OrExpression * * @generated */ + @Override public Expression getLeft() { return left; @@ -103,6 +105,7 @@ public class OrExpressionImpl extends ExpressionImpl implements OrExpression * * @generated */ + @Override public void setLeft(Expression newLeft) { if (newLeft != left) @@ -124,6 +127,7 @@ public class OrExpressionImpl extends ExpressionImpl implements OrExpression * * @generated */ + @Override public Expression getRight() { return right; @@ -151,6 +155,7 @@ public class OrExpressionImpl extends ExpressionImpl implements OrExpression * * @generated */ + @Override public void setRight(Expression newRight) { if (newRight != right) diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsFactoryImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsFactoryImpl.java index 21b09d504..2f4ae8019 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsFactoryImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsFactoryImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -83,6 +84,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public IfCondition createIfCondition() { IfConditionImpl ifCondition = new IfConditionImpl(); @@ -94,6 +96,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public Expression createExpression() { ExpressionImpl expression = new ExpressionImpl(); @@ -105,6 +108,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public NumberLiteral createNumberLiteral() { NumberLiteralImpl numberLiteral = new NumberLiteralImpl(); @@ -116,6 +120,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public BooleanLiteral createBooleanLiteral() { BooleanLiteralImpl booleanLiteral = new BooleanLiteralImpl(); @@ -127,6 +132,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public MethodCall createMethodCall() { MethodCallImpl methodCall = new MethodCallImpl(); @@ -138,6 +144,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public OrExpression createOrExpression() { OrExpressionImpl orExpression = new OrExpressionImpl(); @@ -149,6 +156,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public AndExpression createAndExpression() { AndExpressionImpl andExpression = new AndExpressionImpl(); @@ -160,6 +168,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public Comparison createComparison() { ComparisonImpl comparison = new ComparisonImpl(); @@ -171,6 +180,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public NotExpression createNotExpression() { NotExpressionImpl notExpression = new NotExpressionImpl(); @@ -182,6 +192,7 @@ public class SimpleExpressionsFactoryImpl extends EFactoryImpl implements Simple * * @generated */ + @Override public SimpleExpressionsPackage getSimpleExpressionsPackage() { return (SimpleExpressionsPackage)getEPackage(); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsPackageImpl.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsPackageImpl.java index f63418d2d..e328d0e86 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsPackageImpl.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/impl/SimpleExpressionsPackageImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.impl; @@ -121,7 +122,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * + * *

This method is used to initialize {@link SimpleExpressionsPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * @@ -136,7 +137,8 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple if (isInited) return (SimpleExpressionsPackage)EPackage.Registry.INSTANCE.getEPackage(SimpleExpressionsPackage.eNS_URI); // Obtain or create and register package - SimpleExpressionsPackageImpl theSimpleExpressionsPackage = (SimpleExpressionsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SimpleExpressionsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SimpleExpressionsPackageImpl()); + Object registeredSimpleExpressionsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + SimpleExpressionsPackageImpl theSimpleExpressionsPackage = registeredSimpleExpressionsPackage instanceof SimpleExpressionsPackageImpl ? (SimpleExpressionsPackageImpl)registeredSimpleExpressionsPackage : new SimpleExpressionsPackageImpl(); isInited = true; @@ -149,7 +151,6 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple // Mark meta-data to indicate it can't be changed theSimpleExpressionsPackage.freeze(); - // Update the registry and return the package EPackage.Registry.INSTANCE.put(SimpleExpressionsPackage.eNS_URI, theSimpleExpressionsPackage); return theSimpleExpressionsPackage; @@ -160,6 +161,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getIfCondition() { return ifConditionEClass; @@ -170,6 +172,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EAttribute getIfCondition_Elseif() { return (EAttribute)ifConditionEClass.getEStructuralFeatures().get(0); @@ -180,6 +183,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getIfCondition_Condition() { return (EReference)ifConditionEClass.getEStructuralFeatures().get(1); @@ -190,6 +194,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getExpression() { return expressionEClass; @@ -200,6 +205,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getNumberLiteral() { return numberLiteralEClass; @@ -210,6 +216,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EAttribute getNumberLiteral_Value() { return (EAttribute)numberLiteralEClass.getEStructuralFeatures().get(0); @@ -220,6 +227,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getBooleanLiteral() { return booleanLiteralEClass; @@ -230,6 +238,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EAttribute getBooleanLiteral_Value() { return (EAttribute)booleanLiteralEClass.getEStructuralFeatures().get(0); @@ -240,6 +249,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getMethodCall() { return methodCallEClass; @@ -250,6 +260,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EAttribute getMethodCall_Value() { return (EAttribute)methodCallEClass.getEStructuralFeatures().get(0); @@ -260,6 +271,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getOrExpression() { return orExpressionEClass; @@ -270,6 +282,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getOrExpression_Left() { return (EReference)orExpressionEClass.getEStructuralFeatures().get(0); @@ -280,6 +293,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getOrExpression_Right() { return (EReference)orExpressionEClass.getEStructuralFeatures().get(1); @@ -290,6 +304,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getAndExpression() { return andExpressionEClass; @@ -300,6 +315,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getAndExpression_Left() { return (EReference)andExpressionEClass.getEStructuralFeatures().get(0); @@ -310,6 +326,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getAndExpression_Right() { return (EReference)andExpressionEClass.getEStructuralFeatures().get(1); @@ -320,6 +337,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getComparison() { return comparisonEClass; @@ -330,6 +348,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getComparison_Left() { return (EReference)comparisonEClass.getEStructuralFeatures().get(0); @@ -340,6 +359,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EAttribute getComparison_Operator() { return (EAttribute)comparisonEClass.getEStructuralFeatures().get(1); @@ -350,6 +370,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getComparison_Right() { return (EReference)comparisonEClass.getEStructuralFeatures().get(2); @@ -360,6 +381,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EClass getNotExpression() { return notExpressionEClass; @@ -370,6 +392,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public EReference getNotExpression_Expression() { return (EReference)notExpressionEClass.getEStructuralFeatures().get(0); @@ -380,6 +403,7 @@ public class SimpleExpressionsPackageImpl extends EPackageImpl implements Simple * * @generated */ + @Override public SimpleExpressionsFactory getSimpleExpressionsFactory() { return (SimpleExpressionsFactory)getEFactoryInstance(); diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsAdapterFactory.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsAdapterFactory.java index e24db7f7c..b9d230d1d 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsAdapterFactory.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsAdapterFactory.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.util; diff --git a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsSwitch.java b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsSwitch.java index 5af5dc2bd..7f012d550 100644 --- a/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsSwitch.java +++ b/org.eclipse.xtext.xtext.generator/src-gen/org/eclipse/xtext/xtext/generator/parser/antlr/splitting/simpleExpressions/util/SimpleExpressionsSwitch.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.util;