| /** |
| * |
| * Copyright (c) 2011, 2017 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| |
| grammar InternalFunctionLibraryDsl; |
| |
| options { |
| superClass=AbstractInternalAntlrParser; |
| } |
| |
| @lexer::header { |
| package org.eclipse.osbp.xtext.functionlibrarydsl.parser.antlr.internal; |
| |
| // Hack: Use our own Lexer superclass by means of import. |
| // Currently there is no other way to specify the superclass for the lexer. |
| import org.eclipse.xtext.parser.antlr.Lexer; |
| } |
| |
| @parser::header { |
| package org.eclipse.osbp.xtext.functionlibrarydsl.parser.antlr.internal; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.parser.*; |
| import org.eclipse.xtext.parser.impl.*; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
| import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
| import org.eclipse.osbp.xtext.functionlibrarydsl.services.FunctionLibraryDslGrammarAccess; |
| |
| } |
| |
| @parser::members { |
| |
| private FunctionLibraryDslGrammarAccess grammarAccess; |
| |
| public InternalFunctionLibraryDslParser(TokenStream input, FunctionLibraryDslGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "FunctionLibraryModel"; |
| } |
| |
| @Override |
| protected FunctionLibraryDslGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| } |
| |
| @rulecatch { |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| } |
| |
| // Entry rule entryRuleFunctionLibraryModel |
| entryRuleFunctionLibraryModel returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryModelRule()); } |
| iv_ruleFunctionLibraryModel=ruleFunctionLibraryModel |
| { $current=$iv_ruleFunctionLibraryModel.current; } |
| EOF; |
| |
| // Rule FunctionLibraryModel |
| ruleFunctionLibraryModel returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryModelAccess().getImportSectionXImportSectionParserRuleCall_0_0()); |
| } |
| lv_importSection_0_0=ruleXImportSection |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryModelRule()); |
| } |
| set( |
| $current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryModelAccess().getPckgFunctionLibraryPackageParserRuleCall_1_0()); |
| } |
| lv_pckg_1_0=ruleFunctionLibraryPackage |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryModelRule()); |
| } |
| set( |
| $current, |
| "pckg", |
| lv_pckg_1_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryPackage"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryPackage |
| entryRuleFunctionLibraryPackage returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryPackageRule()); } |
| iv_ruleFunctionLibraryPackage=ruleFunctionLibraryPackage |
| { $current=$iv_ruleFunctionLibraryPackage.current; } |
| EOF; |
| |
| // Rule FunctionLibraryPackage |
| ruleFunctionLibraryPackage returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getFunctionLibraryPackageAccess().getFunctionLibraryPackageAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='package' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getFunctionLibraryPackageAccess().getPackageKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getNameQualifiedNameParserRuleCall_2_0()); |
| } |
| lv_name_2_0=ruleQualifiedName |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_3='{' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getFunctionLibraryPackageAccess().getLeftCurlyBracketKeyword_3()); |
| } |
| ( |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryGroupParserRuleCall_4_0_0_0()); |
| } |
| lv_groups_4_1=ruleFunctionLibraryGroup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| $current, |
| "groups", |
| lv_groups_4_1, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryGroup"); |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryBlipGroupParserRuleCall_4_0_0_1()); |
| } |
| lv_groups_4_2=ruleFunctionLibraryBlipGroup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| $current, |
| "groups", |
| lv_groups_4_2, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryBlipGroup"); |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryConverterGroupParserRuleCall_4_0_0_2()); |
| } |
| lv_groups_4_3=ruleFunctionLibraryConverterGroup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| $current, |
| "groups", |
| lv_groups_4_3, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryConverterGroup"); |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryStatemachineGroupParserRuleCall_4_0_0_3()); |
| } |
| lv_groups_4_4=ruleFunctionLibraryStatemachineGroup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| $current, |
| "groups", |
| lv_groups_4_4, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryStatemachineGroup"); |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryActionGroupParserRuleCall_4_0_0_4()); |
| } |
| lv_groups_4_5=ruleFunctionLibraryActionGroup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| $current, |
| "groups", |
| lv_groups_4_5, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryActionGroup"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getRatingsFunctionLibraryRatingParserRuleCall_4_1_0()); |
| } |
| lv_ratings_5_0=ruleFunctionLibraryRating |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| $current, |
| "ratings", |
| lv_ratings_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRating"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_6='}' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryPackageAccess().getRightCurlyBracketKeyword_5()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryGroup |
| entryRuleFunctionLibraryGroup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryGroupRule()); } |
| iv_ruleFunctionLibraryGroup=ruleFunctionLibraryGroup |
| { $current=$iv_ruleFunctionLibraryGroup.current; } |
| EOF; |
| |
| // Rule FunctionLibraryGroup |
| ruleFunctionLibraryGroup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='group' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryGroupAccess().getGroupKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryGroupAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_0_0()); |
| } |
| lv_functions_3_0=ruleFunctionLibraryFunction |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| add( |
| $current, |
| "functions", |
| lv_functions_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getTestsFunctionLibraryTestParserRuleCall_3_1_0()); |
| } |
| lv_tests_4_0=ruleFunctionLibraryTest |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| add( |
| $current, |
| "tests", |
| lv_tests_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryTest"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getRatesFunctionLibraryRateParserRuleCall_3_2_0()); |
| } |
| lv_rates_5_0=ruleFunctionLibraryRate |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| add( |
| $current, |
| "rates", |
| lv_rates_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRate"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_6='}' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryGroupAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryBlipGroup |
| entryRuleFunctionLibraryBlipGroup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupRule()); } |
| iv_ruleFunctionLibraryBlipGroup=ruleFunctionLibraryBlipGroup |
| { $current=$iv_ruleFunctionLibraryBlipGroup.current; } |
| EOF; |
| |
| // Rule FunctionLibraryBlipGroup |
| ruleFunctionLibraryBlipGroup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='blip-group' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryBlipGroupAccess().getBlipGroupKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryBlipGroupAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_0_0()); |
| } |
| lv_functions_3_0=ruleFunctionLibraryFunction |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| add( |
| $current, |
| "functions", |
| lv_functions_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getTestsFunctionLibraryTestParserRuleCall_3_1_0()); |
| } |
| lv_tests_4_0=ruleFunctionLibraryTest |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| add( |
| $current, |
| "tests", |
| lv_tests_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryTest"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getRatesFunctionLibraryRateParserRuleCall_3_2_0()); |
| } |
| lv_rates_5_0=ruleFunctionLibraryRate |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| add( |
| $current, |
| "rates", |
| lv_rates_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRate"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_6='}' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryBlipGroupAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryStatemachineGroup |
| entryRuleFunctionLibraryStatemachineGroup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupRule()); } |
| iv_ruleFunctionLibraryStatemachineGroup=ruleFunctionLibraryStatemachineGroup |
| { $current=$iv_ruleFunctionLibraryStatemachineGroup.current; } |
| EOF; |
| |
| // Rule FunctionLibraryStatemachineGroup |
| ruleFunctionLibraryStatemachineGroup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='statemachine' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryStatemachineGroupAccess().getStatemachineKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryStatemachineGroupAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getOperationsFunctionLibraryOperationParserRuleCall_3_0_0()); |
| } |
| lv_operations_3_0=ruleFunctionLibraryOperation |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| add( |
| $current, |
| "operations", |
| lv_operations_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryOperation"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getGuardsFunctionLibraryGuardParserRuleCall_3_1_0()); |
| } |
| lv_guards_4_0=ruleFunctionLibraryGuard |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| add( |
| $current, |
| "guards", |
| lv_guards_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryGuard"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_2_0()); |
| } |
| lv_functions_5_0=ruleFunctionLibraryFunction |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| add( |
| $current, |
| "functions", |
| lv_functions_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_6='}' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryStatemachineGroupAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryActionGroup |
| entryRuleFunctionLibraryActionGroup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryActionGroupRule()); } |
| iv_ruleFunctionLibraryActionGroup=ruleFunctionLibraryActionGroup |
| { $current=$iv_ruleFunctionLibraryActionGroup.current; } |
| EOF; |
| |
| // Rule FunctionLibraryActionGroup |
| ruleFunctionLibraryActionGroup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='action' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryActionGroupAccess().getActionKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryActionGroupAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupAccess().getExecutesFunctionLibraryExecuteParserRuleCall_3_0_0()); |
| } |
| lv_executes_3_0=ruleFunctionLibraryExecute |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| add( |
| $current, |
| "executes", |
| lv_executes_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryExecute"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupAccess().getCanExecutesFunctionLibraryCanExecuteParserRuleCall_3_1_0()); |
| } |
| lv_canExecutes_4_0=ruleFunctionLibraryCanExecute |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| add( |
| $current, |
| "canExecutes", |
| lv_canExecutes_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryCanExecute"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_5='}' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryActionGroupAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryConverterGroup |
| entryRuleFunctionLibraryConverterGroup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupRule()); } |
| iv_ruleFunctionLibraryConverterGroup=ruleFunctionLibraryConverterGroup |
| { $current=$iv_ruleFunctionLibraryConverterGroup.current; } |
| EOF; |
| |
| // Rule FunctionLibraryConverterGroup |
| ruleFunctionLibraryConverterGroup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='converter' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryConverterGroupAccess().getConverterKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryConverterGroupAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='model-datatype' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getFunctionLibraryConverterGroupAccess().getModelDatatypeKeyword_3()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToModelDatatypeLDataTypeCrossReference_4_0()); |
| } |
| ruleTYPE_CROSS_REFERENCE |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_5='presentation-datatype' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryConverterGroupAccess().getPresentationDatatypeKeyword_5()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToPresentationDatatypeLDataTypeCrossReference_6_0()); |
| } |
| ruleTYPE_CROSS_REFERENCE |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToModelFunctionConvertToModelParserRuleCall_7_0()); |
| } |
| lv_convertToModel_7_0=ruleFunctionConvertToModel |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| set( |
| $current, |
| "convertToModel", |
| lv_convertToModel_7_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionConvertToModel"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToPresentationFunctionConvertToPresentationParserRuleCall_8_0()); |
| } |
| lv_convertToPresentation_8_0=ruleFunctionConvertToPresentation |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| set( |
| $current, |
| "convertToPresentation", |
| lv_convertToPresentation_8_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionConvertToPresentation"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_9='}' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getFunctionLibraryConverterGroupAccess().getRightCurlyBracketKeyword_9()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionConvertToModel |
| entryRuleFunctionConvertToModel returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionConvertToModelRule()); } |
| iv_ruleFunctionConvertToModel=ruleFunctionConvertToModel |
| { $current=$iv_ruleFunctionConvertToModel.current; } |
| EOF; |
| |
| // Rule FunctionConvertToModel |
| ruleFunctionConvertToModel returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='to-model' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionConvertToModelAccess().getToModelKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionConvertToModelAccess().getBodyXBlockExpressionParserRuleCall_1_0()); |
| } |
| lv_body_1_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionConvertToModelRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionConvertToPresentation |
| entryRuleFunctionConvertToPresentation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionConvertToPresentationRule()); } |
| iv_ruleFunctionConvertToPresentation=ruleFunctionConvertToPresentation |
| { $current=$iv_ruleFunctionConvertToPresentation.current; } |
| EOF; |
| |
| // Rule FunctionConvertToPresentation |
| ruleFunctionConvertToPresentation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='to-presentation' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionConvertToPresentationAccess().getToPresentationKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionConvertToPresentationAccess().getBodyXBlockExpressionParserRuleCall_1_0()); |
| } |
| lv_body_1_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionConvertToPresentationRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryRating |
| entryRuleFunctionLibraryRating returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryRatingRule()); } |
| iv_ruleFunctionLibraryRating=ruleFunctionLibraryRating |
| { $current=$iv_ruleFunctionLibraryRating.current; } |
| EOF; |
| |
| // Rule FunctionLibraryRating |
| ruleFunctionLibraryRating returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getFunctionLibraryRatingAccess().getFunctionLibraryRatingAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='rating' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getFunctionLibraryRatingAccess().getRatingKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingAccess().getNameValidIDParserRuleCall_2_0()); |
| } |
| lv_name_2_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRatingRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_3='{' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getFunctionLibraryRatingAccess().getLeftCurlyBracketKeyword_3()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingAccess().getItemsFunctionLibraryRatingItemParserRuleCall_4_0()); |
| } |
| lv_items_4_0=ruleFunctionLibraryRatingItem |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRatingRule()); |
| } |
| add( |
| $current, |
| "items", |
| lv_items_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRatingItem"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_5='}' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryRatingAccess().getRightCurlyBracketKeyword_5()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryRatingItem |
| entryRuleFunctionLibraryRatingItem returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryRatingItemRule()); } |
| iv_ruleFunctionLibraryRatingItem=ruleFunctionLibraryRatingItem |
| { $current=$iv_ruleFunctionLibraryRatingItem.current; } |
| EOF; |
| |
| // Rule FunctionLibraryRatingItem |
| ruleFunctionLibraryRatingItem returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingItemAccess().getNameValidIDParserRuleCall_0()); |
| } |
| lv_name_0_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRatingItemRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryFunction |
| entryRuleFunctionLibraryFunction returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryFunctionRule()); } |
| iv_ruleFunctionLibraryFunction=ruleFunctionLibraryFunction |
| { $current=$iv_ruleFunctionLibraryFunction.current; } |
| EOF; |
| |
| // Rule FunctionLibraryFunction |
| ruleFunctionLibraryFunction returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='function' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryFunctionAccess().getFunctionKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryFunctionAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryFunctionAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryFunctionAccess().getRightParenthesisKeyword_4()); |
| } |
| otherlv_7='returns' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getFunctionLibraryFunctionAccess().getReturnsKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getOftypeJvmParameterizedTypeReferenceParserRuleCall_6_0()); |
| } |
| lv_oftype_8_0=ruleJvmParameterizedTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| set( |
| $current, |
| "oftype", |
| lv_oftype_8_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmParameterizedTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getBodyXBlockExpressionParserRuleCall_7_0()); |
| } |
| lv_body_9_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryTest |
| entryRuleFunctionLibraryTest returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryTestRule()); } |
| iv_ruleFunctionLibraryTest=ruleFunctionLibraryTest |
| { $current=$iv_ruleFunctionLibraryTest.current; } |
| EOF; |
| |
| // Rule FunctionLibraryTest |
| ruleFunctionLibraryTest returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='test' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryTestAccess().getTestKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryTestAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryTestAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryTestAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| } |
| lv_body_7_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryRate |
| entryRuleFunctionLibraryRate returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryRateRule()); } |
| iv_ruleFunctionLibraryRate=ruleFunctionLibraryRate |
| { $current=$iv_ruleFunctionLibraryRate.current; } |
| EOF; |
| |
| // Rule FunctionLibraryRate |
| ruleFunctionLibraryRate returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='rate' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryRateAccess().getRateKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryRateAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryRateAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryRateAccess().getRightParenthesisKeyword_4()); |
| } |
| otherlv_7='returns' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getFunctionLibraryRateAccess().getReturnsKeyword_5()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| } |
| otherlv_8=RULE_ID |
| { |
| newLeafNode(otherlv_8, grammarAccess.getFunctionLibraryRateAccess().getOftypeFunctionLibraryRatingCrossReference_6_0()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getBodyXBlockExpressionParserRuleCall_7_0()); |
| } |
| lv_body_9_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryGuard |
| entryRuleFunctionLibraryGuard returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryGuardRule()); } |
| iv_ruleFunctionLibraryGuard=ruleFunctionLibraryGuard |
| { $current=$iv_ruleFunctionLibraryGuard.current; } |
| EOF; |
| |
| // Rule FunctionLibraryGuard |
| ruleFunctionLibraryGuard returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='guard' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryGuardAccess().getGuardKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryGuardAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryGuardAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryGuardAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| } |
| lv_body_7_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryOperation |
| entryRuleFunctionLibraryOperation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryOperationRule()); } |
| iv_ruleFunctionLibraryOperation=ruleFunctionLibraryOperation |
| { $current=$iv_ruleFunctionLibraryOperation.current; } |
| EOF; |
| |
| // Rule FunctionLibraryOperation |
| ruleFunctionLibraryOperation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='operation' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryOperationAccess().getOperationKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryOperationAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryOperationAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryOperationAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| } |
| lv_body_7_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryExecute |
| entryRuleFunctionLibraryExecute returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryExecuteRule()); } |
| iv_ruleFunctionLibraryExecute=ruleFunctionLibraryExecute |
| { $current=$iv_ruleFunctionLibraryExecute.current; } |
| EOF; |
| |
| // Rule FunctionLibraryExecute |
| ruleFunctionLibraryExecute returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='execute' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryExecuteAccess().getExecuteKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryExecuteAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryExecuteAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryExecuteAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| } |
| lv_body_7_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryCanExecute |
| entryRuleFunctionLibraryCanExecute returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteRule()); } |
| iv_ruleFunctionLibraryCanExecute=ruleFunctionLibraryCanExecute |
| { $current=$iv_ruleFunctionLibraryCanExecute.current; } |
| EOF; |
| |
| // Rule FunctionLibraryCanExecute |
| ruleFunctionLibraryCanExecute returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='canExecute' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryCanExecuteAccess().getCanExecuteKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryCanExecuteAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| } |
| lv_params_3_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryCanExecuteAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| } |
| lv_params_5_0=ruleFunctionLibraryParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| add( |
| $current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryCanExecuteAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| } |
| lv_body_7_0=ruleXBlockExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFunctionLibraryParameter |
| entryRuleFunctionLibraryParameter returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFunctionLibraryParameterRule()); } |
| iv_ruleFunctionLibraryParameter=ruleFunctionLibraryParameter |
| { $current=$iv_ruleFunctionLibraryParameter.current; } |
| EOF; |
| |
| // Rule FunctionLibraryParameter |
| ruleFunctionLibraryParameter returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| } |
| lv_parameterType_0_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryParameterRule()); |
| } |
| set( |
| $current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFunctionLibraryParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFunctionLibraryParameterRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTYPE_CROSS_REFERENCE |
| entryRuleTYPE_CROSS_REFERENCE returns [String current=null]: |
| { newCompositeNode(grammarAccess.getTYPE_CROSS_REFERENCERule()); } |
| iv_ruleTYPE_CROSS_REFERENCE=ruleTYPE_CROSS_REFERENCE |
| { $current=$iv_ruleTYPE_CROSS_REFERENCE.current.getText(); } |
| EOF; |
| |
| // Rule TYPE_CROSS_REFERENCE |
| ruleTYPE_CROSS_REFERENCE returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| this_ID_0=RULE_ID |
| { |
| $current.merge(this_ID_0); |
| } |
| { |
| newLeafNode(this_ID_0, grammarAccess.getTYPE_CROSS_REFERENCEAccess().getIDTerminalRuleCall()); |
| } |
| ; |
| |
| // Entry rule entryRuleXImportDeclaration |
| entryRuleXImportDeclaration returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXImportDeclarationRule()); } |
| iv_ruleXImportDeclaration=ruleXImportDeclaration |
| { $current=$iv_ruleXImportDeclaration.current; } |
| EOF; |
| |
| // Rule XImportDeclaration |
| ruleXImportDeclaration returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='import' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| } |
| ( |
| ( |
| ( |
| ( |
| lv_static_2_0='static' |
| { |
| newLeafNode(lv_static_2_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_2_0_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed($current, "static", true, "static"); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_extension_3_0='extension' |
| { |
| newLeafNode(lv_extension_3_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_2_0_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed($current, "extension", true, "extension"); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_0_2_0()); |
| } |
| ruleQualifiedNameInStaticImport |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ( |
| lv_wildcard_5_0='*' |
| { |
| newLeafNode(lv_wildcard_5_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_2_0_3_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed($current, "wildcard", true, "*"); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| } |
| lv_memberName_6_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| $current, |
| "memberName", |
| lv_memberName_6_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_1_0()); |
| } |
| ruleQualifiedName |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| } |
| lv_importedNamespace_8_0=ruleQualifiedNameWithWildcard |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| $current, |
| "importedNamespace", |
| lv_importedNamespace_8_0, |
| "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| ( |
| lv_fqnImport_9_0='ns' |
| { |
| newLeafNode(lv_fqnImport_9_0, grammarAccess.getXImportDeclarationAccess().getFqnImportNsKeyword_2_3_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed($current, "fqnImport", true, "ns"); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| } |
| lv_importedFullyQualifiedName_10_0=ruleQualifiedName |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| $current, |
| "importedFullyQualifiedName", |
| lv_importedFullyQualifiedName_10_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| otherlv_11=';' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_3()); |
| } |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleXAnnotation |
| entryRuleXAnnotation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAnnotationRule()); } |
| iv_ruleXAnnotation=ruleXAnnotation |
| { $current=$iv_ruleXAnnotation.current; } |
| EOF; |
| |
| // Rule XAnnotation |
| ruleXAnnotation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='@' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXAnnotationRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getAnnotationTypeJvmAnnotationTypeCrossReference_2_0()); |
| } |
| ruleQualifiedName |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ('(')=> |
| otherlv_3='(' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| } |
| ) |
| ( |
| ( |
| ( |
| (( |
| ( |
| ( |
| ruleValidID |
| ) |
| ) |
| '=' |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| } |
| lv_elementValuePairs_4_0=ruleXAnnotationElementValuePair |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| $current, |
| "elementValuePairs", |
| lv_elementValuePairs_4_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_5=',' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| } |
| ( |
| (( |
| ( |
| ( |
| ruleValidID |
| ) |
| ) |
| '=' |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| } |
| lv_elementValuePairs_6_0=ruleXAnnotationElementValuePair |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| $current, |
| "elementValuePairs", |
| lv_elementValuePairs_6_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| } |
| lv_value_7_0=ruleXAnnotationElementValueOrCommaList |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| set( |
| $current, |
| "value", |
| lv_value_7_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValueOrCommaList"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| otherlv_8=')' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getXAnnotationAccess().getRightParenthesisKeyword_3_2()); |
| } |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleXAnnotationElementValuePair |
| entryRuleXAnnotationElementValuePair returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAnnotationElementValuePairRule()); } |
| iv_ruleXAnnotationElementValuePair=ruleXAnnotationElementValuePair |
| { $current=$iv_ruleXAnnotationElementValuePair.current; } |
| EOF; |
| |
| // Rule XAnnotationElementValuePair |
| ruleXAnnotationElementValuePair returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| (( |
| ( |
| ( |
| ruleValidID |
| ) |
| ) |
| '=' |
| ) |
| )=> |
| ( |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getElementJvmOperationCrossReference_0_0_0_0()); |
| } |
| ruleValidID |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_1='=' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getValueXAnnotationElementValueParserRuleCall_1_0()); |
| } |
| lv_value_2_0=ruleXAnnotationElementValue |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| set( |
| $current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValue"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXAnnotationElementValueOrCommaList |
| entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListRule()); } |
| iv_ruleXAnnotationElementValueOrCommaList=ruleXAnnotationElementValueOrCommaList |
| { $current=$iv_ruleXAnnotationElementValueOrCommaList.current; } |
| EOF; |
| |
| // Rule XAnnotationElementValueOrCommaList |
| ruleXAnnotationElementValueOrCommaList returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| (( |
| ( |
| ) |
| '#' |
| '[' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_1='#' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| } |
| otherlv_2='[' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| } |
| ) |
| ) |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| } |
| lv_elements_3_0=ruleXAnnotationOrExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| } |
| lv_elements_5_0=ruleXAnnotationOrExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=']' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| } |
| ) |
| | |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| } |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression |
| { |
| $current = $this_XAnnotationOrExpression_7.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| $current); |
| } |
| ) |
| ( |
| otherlv_9=',' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| } |
| lv_elements_10_0=ruleXAnnotationOrExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_10_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )+ |
| )? |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXAnnotationElementValue |
| entryRuleXAnnotationElementValue returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAnnotationElementValueRule()); } |
| iv_ruleXAnnotationElementValue=ruleXAnnotationElementValue |
| { $current=$iv_ruleXAnnotationElementValue.current; } |
| EOF; |
| |
| // Rule XAnnotationElementValue |
| ruleXAnnotationElementValue returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| (( |
| ( |
| ) |
| '#' |
| '[' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_1='#' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| } |
| otherlv_2='[' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| } |
| ) |
| ) |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| } |
| lv_elements_3_0=ruleXAnnotationOrExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| } |
| lv_elements_5_0=ruleXAnnotationOrExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=']' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| } |
| ) |
| | |
| { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getXAnnotationOrExpressionParserRuleCall_1()); |
| } |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression |
| { |
| $current = $this_XAnnotationOrExpression_7.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXAnnotationOrExpression |
| entryRuleXAnnotationOrExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAnnotationOrExpressionRule()); } |
| iv_ruleXAnnotationOrExpression=ruleXAnnotationOrExpression |
| { $current=$iv_ruleXAnnotationOrExpression.current; } |
| EOF; |
| |
| // Rule XAnnotationOrExpression |
| ruleXAnnotationOrExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXAnnotationParserRuleCall_0()); |
| } |
| this_XAnnotation_0=ruleXAnnotation |
| { |
| $current = $this_XAnnotation_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXExpressionParserRuleCall_1()); |
| } |
| this_XExpression_1=ruleXExpression |
| { |
| $current = $this_XExpression_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXExpression |
| entryRuleXExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXExpressionRule()); } |
| iv_ruleXExpression=ruleXExpression |
| { $current=$iv_ruleXExpression.current; } |
| EOF; |
| |
| // Rule XExpression |
| ruleXExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| { |
| newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); |
| } |
| this_XAssignment_0=ruleXAssignment |
| { |
| $current = $this_XAssignment_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ; |
| |
| // Entry rule entryRuleXAssignment |
| entryRuleXAssignment returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAssignmentRule()); } |
| iv_ruleXAssignment=ruleXAssignment |
| { $current=$iv_ruleXAssignment.current; } |
| EOF; |
| |
| // Rule XAssignment |
| ruleXAssignment returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| } |
| ruleFeatureCallID |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| { |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); |
| } |
| ruleOpSingleAssign |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); |
| } |
| lv_value_3_0=ruleXAssignment |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| $current, |
| "value", |
| lv_value_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| } |
| this_XOrExpression_4=ruleXOrExpression |
| { |
| $current = $this_XOrExpression_4.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpMultiAssign |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| } |
| ruleOpMultiAssign |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); |
| } |
| lv_rightOperand_7_0=ruleXAssignment |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleOpSingleAssign |
| entryRuleOpSingleAssign returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpSingleAssignRule()); } |
| iv_ruleOpSingleAssign=ruleOpSingleAssign |
| { $current=$iv_ruleOpSingleAssign.current.getText(); } |
| EOF; |
| |
| // Rule OpSingleAssign |
| ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| kw='=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); |
| } |
| ; |
| |
| // Entry rule entryRuleOpMultiAssign |
| entryRuleOpMultiAssign returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpMultiAssignRule()); } |
| iv_ruleOpMultiAssign=ruleOpMultiAssign |
| { $current=$iv_ruleOpMultiAssign.current.getText(); } |
| EOF; |
| |
| // Rule OpMultiAssign |
| ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='+=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| } |
| | |
| kw='-=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| } |
| | |
| kw='*=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| } |
| | |
| kw='/=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| } |
| | |
| kw='%=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| } |
| | |
| ( |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| } |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| } |
| kw='=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| } |
| ) |
| | |
| ( |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| } |
| ( |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| } |
| )? |
| kw='>=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXOrExpression |
| entryRuleXOrExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXOrExpressionRule()); } |
| iv_ruleXOrExpression=ruleXOrExpression |
| { $current=$iv_ruleXOrExpression.current; } |
| EOF; |
| |
| // Rule XOrExpression |
| ruleXOrExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| } |
| this_XAndExpression_0=ruleXAndExpression |
| { |
| $current = $this_XAndExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpOr |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXOrExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| } |
| ruleOpOr |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| } |
| lv_rightOperand_3_0=ruleXAndExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXOrExpressionRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAndExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpOr |
| entryRuleOpOr returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpOrRule()); } |
| iv_ruleOpOr=ruleOpOr |
| { $current=$iv_ruleOpOr.current.getText(); } |
| EOF; |
| |
| // Rule OpOr |
| ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| kw='||' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); |
| } |
| ; |
| |
| // Entry rule entryRuleXAndExpression |
| entryRuleXAndExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAndExpressionRule()); } |
| iv_ruleXAndExpression=ruleXAndExpression |
| { $current=$iv_ruleXAndExpression.current; } |
| EOF; |
| |
| // Rule XAndExpression |
| ruleXAndExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| } |
| this_XEqualityExpression_0=ruleXEqualityExpression |
| { |
| $current = $this_XEqualityExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpAnd |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXAndExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| } |
| ruleOpAnd |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| } |
| lv_rightOperand_3_0=ruleXEqualityExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAndExpressionRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XEqualityExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpAnd |
| entryRuleOpAnd returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpAndRule()); } |
| iv_ruleOpAnd=ruleOpAnd |
| { $current=$iv_ruleOpAnd.current.getText(); } |
| EOF; |
| |
| // Rule OpAnd |
| ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| kw='&&' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); |
| } |
| ; |
| |
| // Entry rule entryRuleXEqualityExpression |
| entryRuleXEqualityExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXEqualityExpressionRule()); } |
| iv_ruleXEqualityExpression=ruleXEqualityExpression |
| { $current=$iv_ruleXEqualityExpression.current; } |
| EOF; |
| |
| // Rule XEqualityExpression |
| ruleXEqualityExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| } |
| this_XRelationalExpression_0=ruleXRelationalExpression |
| { |
| $current = $this_XRelationalExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpEquality |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXEqualityExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| } |
| ruleOpEquality |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| } |
| lv_rightOperand_3_0=ruleXRelationalExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XRelationalExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpEquality |
| entryRuleOpEquality returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpEqualityRule()); } |
| iv_ruleOpEquality=ruleOpEquality |
| { $current=$iv_ruleOpEquality.current.getText(); } |
| EOF; |
| |
| // Rule OpEquality |
| ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='==' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| } |
| | |
| kw='!=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| } |
| | |
| kw='===' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| } |
| | |
| kw='!==' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXRelationalExpression |
| entryRuleXRelationalExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXRelationalExpressionRule()); } |
| iv_ruleXRelationalExpression=ruleXRelationalExpression |
| { $current=$iv_ruleXRelationalExpression.current; } |
| EOF; |
| |
| // Rule XRelationalExpression |
| ruleXRelationalExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); |
| } |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression |
| { |
| $current = $this_XOtherOperatorExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| ( |
| (( |
| ( |
| ) |
| 'instanceof' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_2='instanceof' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| } |
| lv_type_3_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| $current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpCompare |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXRelationalExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| } |
| ruleOpCompare |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| } |
| lv_rightOperand_6_0=ruleXOtherOperatorExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpCompare |
| entryRuleOpCompare returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpCompareRule()); } |
| iv_ruleOpCompare=ruleOpCompare |
| { $current=$iv_ruleOpCompare.current.getText(); } |
| EOF; |
| |
| // Rule OpCompare |
| ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='>=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| } |
| | |
| ( |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| } |
| kw='=' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| } |
| ) |
| | |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| } |
| | |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXOtherOperatorExpression |
| entryRuleXOtherOperatorExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); } |
| iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression |
| { $current=$iv_ruleXOtherOperatorExpression.current; } |
| EOF; |
| |
| // Rule XOtherOperatorExpression |
| ruleXOtherOperatorExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| } |
| this_XAdditiveExpression_0=ruleXAdditiveExpression |
| { |
| $current = $this_XAdditiveExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpOther |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| } |
| ruleOpOther |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| } |
| lv_rightOperand_3_0=ruleXAdditiveExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| set( |
| $current, |
| |