| /* |
| * generated by Xtext 2.11.0 |
| */ |
| grammar InternalReportDSL; |
| |
| options { |
| superClass=AbstractInternalAntlrParser; |
| } |
| |
| @lexer::header { |
| package org.eclipse.osbp.xtext.reportdsl.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.reportdsl.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.emf.common.util.Enumerator; |
| 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.reportdsl.services.ReportDSLGrammarAccess; |
| |
| } |
| |
| @parser::members { |
| |
| private ReportDSLGrammarAccess grammarAccess; |
| |
| public InternalReportDSLParser(TokenStream input, ReportDSLGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "ReportModel"; |
| } |
| |
| @Override |
| protected ReportDSLGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| } |
| |
| @rulecatch { |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| } |
| |
| // Entry rule entryRuleReportModel |
| entryRuleReportModel returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getReportModelRule()); } |
| iv_ruleReportModel=ruleReportModel |
| { $current=$iv_ruleReportModel.current; } |
| EOF; |
| |
| // Rule ReportModel |
| ruleReportModel returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportModelAccess().getImportSectionXImportSectionParserRuleCall_0_0()); |
| } |
| lv_importSection_0_0=ruleXImportSection |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportModelRule()); |
| } |
| set( |
| $current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportModelAccess().getPckgReportPackageParserRuleCall_1_0()); |
| } |
| lv_pckg_1_0=ruleReportPackage |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportModelRule()); |
| } |
| add( |
| $current, |
| "pckg", |
| lv_pckg_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.ReportPackage"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleReportPackage |
| entryRuleReportPackage returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getReportPackageRule()); } |
| iv_ruleReportPackage=ruleReportPackage |
| { $current=$iv_ruleReportPackage.current; } |
| EOF; |
| |
| // Rule ReportPackage |
| ruleReportPackage returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getReportPackageAccess().getReportPackageAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='package' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getReportPackageAccess().getPackageKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getNameQualifiedNameParserRuleCall_2_0()); |
| } |
| lv_name_2_0=ruleQualifiedName |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_3='{' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getReportPackageAccess().getLeftCurlyBracketKeyword_3()); |
| } |
| ( |
| otherlv_4='layout-data' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getReportPackageAccess().getLayoutDataKeyword_4_0()); |
| } |
| otherlv_5='{' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getReportPackageAccess().getLeftCurlyBracketKeyword_4_1()); |
| } |
| ( |
| otherlv_6='externalCssURI' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getReportPackageAccess().getExternalCssURIKeyword_4_2_0()); |
| } |
| ( |
| ( |
| lv_externalCssURI_7_0=RULE_STRING |
| { |
| newLeafNode(lv_externalCssURI_7_0, grammarAccess.getReportPackageAccess().getExternalCssURISTRINGTerminalRuleCall_4_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportPackageRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "externalCssURI", |
| lv_externalCssURI_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ( |
| otherlv_8='fromBundle' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getReportPackageAccess().getFromBundleKeyword_4_2_2_0()); |
| } |
| ( |
| ( |
| lv_externalCssURIBundle_9_0=RULE_STRING |
| { |
| newLeafNode(lv_externalCssURIBundle_9_0, grammarAccess.getReportPackageAccess().getExternalCssURIBundleSTRINGTerminalRuleCall_4_2_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportPackageRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "externalCssURIBundle", |
| lv_externalCssURIBundle_9_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| )? |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getFormattersSomeFormatsParserRuleCall_4_3_0()); |
| } |
| lv_formatters_10_0=ruleSomeFormats |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "formatters", |
| lv_formatters_10_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.SomeFormats"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getColorsColorsParserRuleCall_4_4_0()); |
| } |
| lv_colors_11_0=ruleColors |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "colors", |
| lv_colors_11_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Colors"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getFontsFontsParserRuleCall_4_5_0()); |
| } |
| lv_fonts_12_0=ruleFonts |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "fonts", |
| lv_fonts_12_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Fonts"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getMediasMediasParserRuleCall_4_6_0()); |
| } |
| lv_medias_13_0=ruleMedias |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "medias", |
| lv_medias_13_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Medias"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getStylesStylesParserRuleCall_4_7_0()); |
| } |
| lv_styles_14_0=ruleStyles |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "styles", |
| lv_styles_14_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Styles"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getPagetemplatesPageTemplatesParserRuleCall_4_8_0()); |
| } |
| lv_pagetemplates_15_0=rulePageTemplates |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| set( |
| $current, |
| "pagetemplates", |
| lv_pagetemplates_15_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageTemplates"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_16='}' |
| { |
| newLeafNode(otherlv_16, grammarAccess.getReportPackageAccess().getRightCurlyBracketKeyword_4_9()); |
| } |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportPackageAccess().getReportsReportParserRuleCall_5_0()); |
| } |
| lv_reports_17_0=ruleReport |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportPackageRule()); |
| } |
| add( |
| $current, |
| "reports", |
| lv_reports_17_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Report"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_18='}' |
| { |
| newLeafNode(otherlv_18, grammarAccess.getReportPackageAccess().getRightCurlyBracketKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRulePageTemplates |
| entryRulePageTemplates returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getPageTemplatesRule()); } |
| iv_rulePageTemplates=rulePageTemplates |
| { $current=$iv_rulePageTemplates.current; } |
| EOF; |
| |
| // Rule PageTemplates |
| rulePageTemplates returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getPageTemplatesAccess().getPageTemplatesAction_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplatesAccess().getPagetemplatesPageTemplateParserRuleCall_1_0()); |
| } |
| lv_pagetemplates_1_0=rulePageTemplate |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplatesRule()); |
| } |
| add( |
| $current, |
| "pagetemplates", |
| lv_pagetemplates_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageTemplate"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleSomeFormats |
| entryRuleSomeFormats returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getSomeFormatsRule()); } |
| iv_ruleSomeFormats=ruleSomeFormats |
| { $current=$iv_ruleSomeFormats.current; } |
| EOF; |
| |
| // Rule SomeFormats |
| ruleSomeFormats returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getSomeFormatsAccess().getSomeFormatsAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='formatters' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getSomeFormatsAccess().getFormattersKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getSomeFormatsAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getSomeFormatsAccess().getFormattersSomeFormatParserRuleCall_3_0()); |
| } |
| lv_formatters_3_0=ruleSomeFormat |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getSomeFormatsRule()); |
| } |
| add( |
| $current, |
| "formatters", |
| lv_formatters_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.SomeFormat"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getSomeFormatsAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleColors |
| entryRuleColors returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getColorsRule()); } |
| iv_ruleColors=ruleColors |
| { $current=$iv_ruleColors.current; } |
| EOF; |
| |
| // Rule Colors |
| ruleColors returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getColorsAccess().getColorsAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='colors' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getColorsAccess().getColorsKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getColorsAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getColorsAccess().getColorsColorParserRuleCall_3_0()); |
| } |
| lv_colors_3_0=ruleColor |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getColorsRule()); |
| } |
| add( |
| $current, |
| "colors", |
| lv_colors_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Color"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getColorsAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFonts |
| entryRuleFonts returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFontsRule()); } |
| iv_ruleFonts=ruleFonts |
| { $current=$iv_ruleFonts.current; } |
| EOF; |
| |
| // Rule Fonts |
| ruleFonts returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getFontsAccess().getFontsAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='fonts' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getFontsAccess().getFontsKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFontsAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFontsAccess().getFontsFontParserRuleCall_3_0()); |
| } |
| lv_fonts_3_0=ruleFont |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFontsRule()); |
| } |
| add( |
| $current, |
| "fonts", |
| lv_fonts_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Font"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFontsAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleMedias |
| entryRuleMedias returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getMediasRule()); } |
| iv_ruleMedias=ruleMedias |
| { $current=$iv_ruleMedias.current; } |
| EOF; |
| |
| // Rule Medias |
| ruleMedias returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getMediasAccess().getMediasAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='medias' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getMediasAccess().getMediasKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getMediasAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediasAccess().getMediasMediaParserRuleCall_3_0()); |
| } |
| lv_medias_3_0=ruleMedia |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediasRule()); |
| } |
| add( |
| $current, |
| "medias", |
| lv_medias_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Media"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getMediasAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleMedia |
| entryRuleMedia returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getMediaRule()); } |
| iv_ruleMedia=ruleMedia |
| { $current=$iv_ruleMedia.current; } |
| EOF; |
| |
| // Rule Media |
| ruleMedia returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='media' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getMediaAccess().getMediaKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getMediaAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleStyles |
| entryRuleStyles returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getStylesRule()); } |
| iv_ruleStyles=ruleStyles |
| { $current=$iv_ruleStyles.current; } |
| EOF; |
| |
| // Rule Styles |
| ruleStyles returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getStylesAccess().getStylesAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='styles' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getStylesAccess().getStylesKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getStylesAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStylesAccess().getStylesStyleParserRuleCall_3_0()); |
| } |
| lv_styles_3_0=ruleStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStylesRule()); |
| } |
| add( |
| $current, |
| "styles", |
| lv_styles_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Style"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getStylesAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRulePageTemplate |
| entryRulePageTemplate returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getPageTemplateRule()); } |
| iv_rulePageTemplate=rulePageTemplate |
| { $current=$iv_rulePageTemplate.current; } |
| EOF; |
| |
| // Rule PageTemplate |
| rulePageTemplate returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='pagetemplate' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getPageTemplateAccess().getPagetemplateKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getPageTemplateAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getPageTemplateRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getPageTemplateAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='type' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getPageTemplateAccess().getTypeKeyword_3()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getSizePageSizeEnumEnumRuleCall_4_0()); |
| } |
| lv_size_4_0=rulePageSizeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "size", |
| lv_size_4_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageSizeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_5='orientation' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getPageTemplateAccess().getOrientationKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getOrientationOrientationEnumEnumRuleCall_6_0()); |
| } |
| lv_orientation_6_0=ruleOrientationEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "orientation", |
| lv_orientation_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.OrientationEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_7='topmargin' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getPageTemplateAccess().getTopmarginKeyword_7()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getTopMarginValueUnsignedNumberParserRuleCall_8_0()); |
| } |
| lv_topMarginValue_8_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "topMarginValue", |
| lv_topMarginValue_8_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_9='leftmargin' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getPageTemplateAccess().getLeftmarginKeyword_9()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getLeftMarginValueUnsignedNumberParserRuleCall_10_0()); |
| } |
| lv_leftMarginValue_10_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "leftMarginValue", |
| lv_leftMarginValue_10_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_11='bottommargin' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getPageTemplateAccess().getBottommarginKeyword_11()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getBottomMarginValueUnsignedNumberParserRuleCall_12_0()); |
| } |
| lv_bottomMarginValue_12_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "bottomMarginValue", |
| lv_bottomMarginValue_12_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_13='rightmargin' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getPageTemplateAccess().getRightmarginKeyword_13()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getRightMarginValueUnsignedNumberParserRuleCall_14_0()); |
| } |
| lv_rightMarginValue_14_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "rightMarginValue", |
| lv_rightMarginValue_14_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getHeaderPageHeaderParserRuleCall_15_0()); |
| } |
| lv_header_15_0=rulePageHeader |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "header", |
| lv_header_15_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageHeader"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageTemplateAccess().getFooterPageFooterParserRuleCall_16_0()); |
| } |
| lv_footer_16_0=rulePageFooter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageTemplateRule()); |
| } |
| set( |
| $current, |
| "footer", |
| lv_footer_16_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageFooter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_17='}' |
| { |
| newLeafNode(otherlv_17, grammarAccess.getPageTemplateAccess().getRightCurlyBracketKeyword_17()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleUnsignedNumber |
| entryRuleUnsignedNumber returns [String current=null]: |
| { newCompositeNode(grammarAccess.getUnsignedNumberRule()); } |
| iv_ruleUnsignedNumber=ruleUnsignedNumber |
| { $current=$iv_ruleUnsignedNumber.current.getText(); } |
| EOF; |
| |
| // Rule UnsignedNumber |
| ruleUnsignedNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| { |
| newCompositeNode(grammarAccess.getUnsignedNumberAccess().getNumberParserRuleCall()); |
| } |
| this_Number_0=ruleNumber |
| { |
| $current.merge(this_Number_0); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ; |
| |
| // Entry rule entryRuleColor |
| entryRuleColor returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getColorRule()); } |
| iv_ruleColor=ruleColor |
| { $current=$iv_ruleColor.current; } |
| EOF; |
| |
| // Rule Color |
| ruleColor returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='color' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getColorAccess().getColorKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getColorAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| ( |
| ( |
| ( |
| lv_color_2_0=RULE_STRING |
| { |
| newLeafNode(lv_color_2_0, grammarAccess.getColorAccess().getColorSTRINGTerminalRuleCall_2_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "color", |
| lv_color_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| | |
| ( |
| otherlv_3='darkens' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getColorAccess().getDarkensKeyword_2_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getColorAccess().getBasecolorColorCrossReference_2_1_1_0()); |
| } |
| ) |
| ) |
| otherlv_5='by-percent' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getColorAccess().getByPercentKeyword_2_1_2()); |
| } |
| ( |
| ( |
| lv_darkensby_6_0=RULE_INT |
| { |
| newLeafNode(lv_darkensby_6_0, grammarAccess.getColorAccess().getDarkensbyINTTerminalRuleCall_2_1_3_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "darkensby", |
| lv_darkensby_6_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| otherlv_7='lightens' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getColorAccess().getLightensKeyword_2_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| } |
| otherlv_8=RULE_ID |
| { |
| newLeafNode(otherlv_8, grammarAccess.getColorAccess().getBasecolorColorCrossReference_2_2_1_0()); |
| } |
| ) |
| ) |
| otherlv_9='by-percent' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getColorAccess().getByPercentKeyword_2_2_2()); |
| } |
| ( |
| ( |
| lv_lightensby_10_0=RULE_INT |
| { |
| newLeafNode(lv_lightensby_10_0, grammarAccess.getColorAccess().getLightensbyINTTerminalRuleCall_2_2_3_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "lightensby", |
| lv_lightensby_10_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| otherlv_11='transforms' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getColorAccess().getTransformsKeyword_2_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| } |
| otherlv_12=RULE_ID |
| { |
| newLeafNode(otherlv_12, grammarAccess.getColorAccess().getBasecolorColorCrossReference_2_3_1_0()); |
| } |
| ) |
| ) |
| otherlv_13='by-percent' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getColorAccess().getByPercentKeyword_2_3_2()); |
| } |
| ( |
| ( |
| lv_transformsby_14_0=RULE_INT |
| { |
| newLeafNode(lv_transformsby_14_0, grammarAccess.getColorAccess().getTransformsbyINTTerminalRuleCall_2_3_3_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "transformsby", |
| lv_transformsby_14_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| } |
| ) |
| ) |
| otherlv_15='towards' |
| { |
| newLeafNode(otherlv_15, grammarAccess.getColorAccess().getTowardsKeyword_2_3_4()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getColorRule()); |
| } |
| } |
| otherlv_16=RULE_ID |
| { |
| newLeafNode(otherlv_16, grammarAccess.getColorAccess().getTargetcolorColorCrossReference_2_3_5_0()); |
| } |
| ) |
| ) |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFont |
| entryRuleFont returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFontRule()); } |
| iv_ruleFont=ruleFont |
| { $current=$iv_ruleFont.current; } |
| EOF; |
| |
| // Rule Font |
| ruleFont returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='font' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getFontAccess().getFontKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getFontAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getFontRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| ( |
| otherlv_2='extends' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getFontAccess().getExtendsKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getFontRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getFontAccess().getExtendsFontCrossReference_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| otherlv_4='{' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getFontAccess().getLeftCurlyBracketKeyword_3()); |
| } |
| ( |
| ( |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getFontAccess().getUnorderedGroup_4()); |
| } |
| ( |
| ( |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getFontAccess().getUnorderedGroup_4(), 0)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getFontAccess().getUnorderedGroup_4(), 0); |
| } |
| ({true}?=>(otherlv_6='family' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getFontAccess().getFamilyKeyword_4_0_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFontAccess().getFamilyFontFamilyParserRuleCall_4_0_1_0()); |
| } |
| lv_family_7_0=ruleFontFamily |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFontRule()); |
| } |
| set( |
| $current, |
| "family", |
| lv_family_7_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.FontFamily"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getFontAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getFontAccess().getUnorderedGroup_4(), 1)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getFontAccess().getUnorderedGroup_4(), 1); |
| } |
| ({true}?=>(( |
| { |
| newCompositeNode(grammarAccess.getFontAccess().getStyleFontStyleEnumEnumRuleCall_4_1_0()); |
| } |
| lv_style_8_0=ruleFontStyleEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFontRule()); |
| } |
| set( |
| $current, |
| "style", |
| lv_style_8_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.FontStyleEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getFontAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getFontAccess().getUnorderedGroup_4(), 2)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getFontAccess().getUnorderedGroup_4(), 2); |
| } |
| ({true}?=>(( |
| lv_bold_9_0='bold' |
| { |
| newLeafNode(lv_bold_9_0, grammarAccess.getFontAccess().getBoldBoldKeyword_4_2_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getFontRule()); |
| } |
| setWithLastConsumed($current, "bold", true, "bold"); |
| } |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getFontAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getFontAccess().getUnorderedGroup_4(), 3)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getFontAccess().getUnorderedGroup_4(), 3); |
| } |
| ({true}?=>(otherlv_10='size' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getFontAccess().getSizeKeyword_4_3_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFontAccess().getSizevalueUnsignedNumberParserRuleCall_4_3_1_0()); |
| } |
| lv_sizevalue_11_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFontRule()); |
| } |
| set( |
| $current, |
| "sizevalue", |
| lv_sizevalue_11_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFontAccess().getSizeunitUnitEnumEnumRuleCall_4_3_2_0()); |
| } |
| lv_sizeunit_12_0=ruleUnitEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFontRule()); |
| } |
| set( |
| $current, |
| "sizeunit", |
| lv_sizeunit_12_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnitEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getFontAccess().getUnorderedGroup_4()); |
| } |
| ) |
| ) |
| )* |
| ) |
| ) |
| { |
| getUnorderedGroupHelper().leave(grammarAccess.getFontAccess().getUnorderedGroup_4()); |
| } |
| ) |
| otherlv_13='}' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getFontAccess().getRightCurlyBracketKeyword_5()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleFontFamily |
| entryRuleFontFamily returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFontFamilyRule()); } |
| iv_ruleFontFamily=ruleFontFamily |
| { $current=$iv_ruleFontFamily.current; } |
| EOF; |
| |
| // Rule FontFamily |
| ruleFontFamily returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getFontFamilyAccess().getBuildInFontFamilyParserRuleCall_0()); |
| } |
| this_BuildInFontFamily_0=ruleBuildInFontFamily |
| { |
| $current = $this_BuildInFontFamily_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getFontFamilyAccess().getCustomFontFamilyParserRuleCall_1()); |
| } |
| this_CustomFontFamily_1=ruleCustomFontFamily |
| { |
| $current = $this_CustomFontFamily_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleBuildInFontFamily |
| entryRuleBuildInFontFamily returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getBuildInFontFamilyRule()); } |
| iv_ruleBuildInFontFamily=ruleBuildInFontFamily |
| { $current=$iv_ruleBuildInFontFamily.current; } |
| EOF; |
| |
| // Rule BuildInFontFamily |
| ruleBuildInFontFamily returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getBuildInFontFamilyAccess().getCustomBuildInFontFamilyEnumEnumRuleCall_0()); |
| } |
| lv_custom_0_0=ruleBuildInFontFamilyEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getBuildInFontFamilyRule()); |
| } |
| set( |
| $current, |
| "custom", |
| lv_custom_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BuildInFontFamilyEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleCustomFontFamily |
| entryRuleCustomFontFamily returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getCustomFontFamilyRule()); } |
| iv_ruleCustomFontFamily=ruleCustomFontFamily |
| { $current=$iv_ruleCustomFontFamily.current; } |
| EOF; |
| |
| // Rule CustomFontFamily |
| ruleCustomFontFamily returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| lv_custom_0_0=RULE_STRING |
| { |
| newLeafNode(lv_custom_0_0, grammarAccess.getCustomFontFamilyAccess().getCustomSTRINGTerminalRuleCall_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getCustomFontFamilyRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "custom", |
| lv_custom_0_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleBorderStyle |
| entryRuleBorderStyle returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getBorderStyleRule()); } |
| iv_ruleBorderStyle=ruleBorderStyle |
| { $current=$iv_ruleBorderStyle.current; } |
| EOF; |
| |
| // Rule BorderStyle |
| ruleBorderStyle returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getBorderStyleAccess().getTypeBorderTypeEnumEnumRuleCall_0_0()); |
| } |
| lv_type_0_0=ruleBorderTypeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getBorderStyleRule()); |
| } |
| set( |
| $current, |
| "type", |
| lv_type_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getBorderStyleAccess().getWidthValueUnsignedNumberParserRuleCall_1_0()); |
| } |
| lv_widthValue_1_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getBorderStyleRule()); |
| } |
| set( |
| $current, |
| "widthValue", |
| lv_widthValue_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getBorderStyleRule()); |
| } |
| } |
| otherlv_2=RULE_ID |
| { |
| newLeafNode(otherlv_2, grammarAccess.getBorderStyleAccess().getColorColorCrossReference_2_0()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleStyle |
| entryRuleStyle returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getStyleRule()); } |
| iv_ruleStyle=ruleStyle |
| { $current=$iv_ruleStyle.current; } |
| EOF; |
| |
| // Rule Style |
| ruleStyle returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='style' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getStyleAccess().getStyleKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getStyleAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getStyleAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| otherlv_3='extends' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getStyleAccess().getExtendsKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getStyleAccess().getExtendsStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ( |
| ( |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 0)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 0); |
| } |
| ({true}?=>(otherlv_6='formatter' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getStyleAccess().getFormatterKeyword_4_0_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| } |
| otherlv_7=RULE_ID |
| { |
| newLeafNode(otherlv_7, grammarAccess.getStyleAccess().getFormatSomeFormatCrossReference_4_0_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 1)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 1); |
| } |
| ({true}?=>(otherlv_8='font' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getStyleAccess().getFontKeyword_4_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| } |
| otherlv_9=RULE_ID |
| { |
| newLeafNode(otherlv_9, grammarAccess.getStyleAccess().getFontFontCrossReference_4_1_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 2)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 2); |
| } |
| ({true}?=>(otherlv_10='backgroundcolor' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getStyleAccess().getBackgroundcolorKeyword_4_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| } |
| otherlv_11=RULE_ID |
| { |
| newLeafNode(otherlv_11, grammarAccess.getStyleAccess().getBackgroundcolorColorCrossReference_4_2_1_0()); |
| } |
| ) |
| ) |
| ( |
| otherlv_12='alternate' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getStyleAccess().getAlternateKeyword_4_2_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| } |
| otherlv_13=RULE_ID |
| { |
| newLeafNode(otherlv_13, grammarAccess.getStyleAccess().getBackgroundcolor_alternateColorCrossReference_4_2_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 3)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 3); |
| } |
| ({true}?=>(otherlv_14='textcolor' |
| { |
| newLeafNode(otherlv_14, grammarAccess.getStyleAccess().getTextcolorKeyword_4_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStyleRule()); |
| } |
| } |
| otherlv_15=RULE_ID |
| { |
| newLeafNode(otherlv_15, grammarAccess.getStyleAccess().getTextcolorColorCrossReference_4_3_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 4)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 4); |
| } |
| ({true}?=>(otherlv_16='textalign' |
| { |
| newLeafNode(otherlv_16, grammarAccess.getStyleAccess().getTextalignKeyword_4_4_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getTextalignTextAlignEnumEnumRuleCall_4_4_1_0()); |
| } |
| lv_textalign_17_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_17_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 5)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 5); |
| } |
| ({true}?=>(otherlv_18='border-top' |
| { |
| newLeafNode(otherlv_18, grammarAccess.getStyleAccess().getBorderTopKeyword_4_5_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getBorderTopBorderStyleParserRuleCall_4_5_1_0()); |
| } |
| lv_borderTop_19_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "borderTop", |
| lv_borderTop_19_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 6)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 6); |
| } |
| ({true}?=>(otherlv_20='border-bottom' |
| { |
| newLeafNode(otherlv_20, grammarAccess.getStyleAccess().getBorderBottomKeyword_4_6_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getBorderBottomBorderStyleParserRuleCall_4_6_1_0()); |
| } |
| lv_borderBottom_21_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "borderBottom", |
| lv_borderBottom_21_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 7)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 7); |
| } |
| ({true}?=>(otherlv_22='border-left' |
| { |
| newLeafNode(otherlv_22, grammarAccess.getStyleAccess().getBorderLeftKeyword_4_7_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getBorderLeftBorderStyleParserRuleCall_4_7_1_0()); |
| } |
| lv_borderLeft_23_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "borderLeft", |
| lv_borderLeft_23_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 8)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 8); |
| } |
| ({true}?=>(otherlv_24='border-right' |
| { |
| newLeafNode(otherlv_24, grammarAccess.getStyleAccess().getBorderRightKeyword_4_8_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getBorderRightBorderStyleParserRuleCall_4_8_1_0()); |
| } |
| lv_borderRight_25_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "borderRight", |
| lv_borderRight_25_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 9)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 9); |
| } |
| ({true}?=>(otherlv_26='padding-top' |
| { |
| newLeafNode(otherlv_26, grammarAccess.getStyleAccess().getPaddingTopKeyword_4_9_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getPaddingTopValueUnsignedNumberParserRuleCall_4_9_1_0()); |
| } |
| lv_paddingTopValue_27_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "paddingTopValue", |
| lv_paddingTopValue_27_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 10)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 10); |
| } |
| ({true}?=>(otherlv_28='padding-bottom' |
| { |
| newLeafNode(otherlv_28, grammarAccess.getStyleAccess().getPaddingBottomKeyword_4_10_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getPaddingBottomValueUnsignedNumberParserRuleCall_4_10_1_0()); |
| } |
| lv_paddingBottomValue_29_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "paddingBottomValue", |
| lv_paddingBottomValue_29_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 11)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 11); |
| } |
| ({true}?=>(otherlv_30='padding-left' |
| { |
| newLeafNode(otherlv_30, grammarAccess.getStyleAccess().getPaddingLeftKeyword_4_11_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getPaddingLeftValueUnsignedNumberParserRuleCall_4_11_1_0()); |
| } |
| lv_paddingLeftValue_31_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "paddingLeftValue", |
| lv_paddingLeftValue_31_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 12)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 12); |
| } |
| ({true}?=>(otherlv_32='padding-right' |
| { |
| newLeafNode(otherlv_32, grammarAccess.getStyleAccess().getPaddingRightKeyword_4_12_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getPaddingRightValueUnsignedNumberParserRuleCall_4_12_1_0()); |
| } |
| lv_paddingRightValue_33_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "paddingRightValue", |
| lv_paddingRightValue_33_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 13)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 13); |
| } |
| ({true}?=>(otherlv_34='margin-top' |
| { |
| newLeafNode(otherlv_34, grammarAccess.getStyleAccess().getMarginTopKeyword_4_13_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getMarginTopValueUnsignedNumberParserRuleCall_4_13_1_0()); |
| } |
| lv_marginTopValue_35_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "marginTopValue", |
| lv_marginTopValue_35_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 14)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 14); |
| } |
| ({true}?=>(otherlv_36='margin-bottom' |
| { |
| newLeafNode(otherlv_36, grammarAccess.getStyleAccess().getMarginBottomKeyword_4_14_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getMarginBottomValueUnsignedNumberParserRuleCall_4_14_1_0()); |
| } |
| lv_marginBottomValue_37_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "marginBottomValue", |
| lv_marginBottomValue_37_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 15)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 15); |
| } |
| ({true}?=>(otherlv_38='margin-left' |
| { |
| newLeafNode(otherlv_38, grammarAccess.getStyleAccess().getMarginLeftKeyword_4_15_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getMarginLeftValueUnsignedNumberParserRuleCall_4_15_1_0()); |
| } |
| lv_marginLeftValue_39_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "marginLeftValue", |
| lv_marginLeftValue_39_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 16)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 16); |
| } |
| ({true}?=>(otherlv_40='margin-right' |
| { |
| newLeafNode(otherlv_40, grammarAccess.getStyleAccess().getMarginRightKeyword_4_16_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getMarginRightValueUnsignedNumberParserRuleCall_4_16_1_0()); |
| } |
| lv_marginRightValue_41_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| set( |
| $current, |
| "marginRightValue", |
| lv_marginRightValue_41_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| ) |
| )* |
| ) |
| ) |
| { |
| getUnorderedGroupHelper().leave(grammarAccess.getStyleAccess().getUnorderedGroup_4()); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStyleAccess().getMediastylesMediaStyleParserRuleCall_5_0()); |
| } |
| lv_mediastyles_42_0=ruleMediaStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStyleRule()); |
| } |
| add( |
| $current, |
| "mediastyles", |
| lv_mediastyles_42_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.MediaStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_43='}' |
| { |
| newLeafNode(otherlv_43, grammarAccess.getStyleAccess().getRightCurlyBracketKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleMediaStyle |
| entryRuleMediaStyle returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getMediaStyleRule()); } |
| iv_ruleMediaStyle=ruleMediaStyle |
| { $current=$iv_ruleMediaStyle.current; } |
| EOF; |
| |
| // Rule MediaStyle |
| ruleMediaStyle returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='media' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getMediaStyleAccess().getMediaKeyword_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaStyleRule()); |
| } |
| } |
| otherlv_1=RULE_ID |
| { |
| newLeafNode(otherlv_1, grammarAccess.getMediaStyleAccess().getMediaMediaCrossReference_1_0()); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getMediaStyleAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ( |
| ( |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 0)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 0); |
| } |
| ({true}?=>(otherlv_4='formatter' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getMediaStyleAccess().getFormatterKeyword_3_0_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaStyleRule()); |
| } |
| } |
| otherlv_5=RULE_ID |
| { |
| newLeafNode(otherlv_5, grammarAccess.getMediaStyleAccess().getFormatSomeFormatCrossReference_3_0_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 1)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 1); |
| } |
| ({true}?=>(otherlv_6='font' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getMediaStyleAccess().getFontKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaStyleRule()); |
| } |
| } |
| otherlv_7=RULE_ID |
| { |
| newLeafNode(otherlv_7, grammarAccess.getMediaStyleAccess().getFontFontCrossReference_3_1_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 2)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 2); |
| } |
| ({true}?=>(otherlv_8='backgroundcolor' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getMediaStyleAccess().getBackgroundcolorKeyword_3_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaStyleRule()); |
| } |
| } |
| otherlv_9=RULE_ID |
| { |
| newLeafNode(otherlv_9, grammarAccess.getMediaStyleAccess().getBackgroundcolorColorCrossReference_3_2_1_0()); |
| } |
| ) |
| ) |
| ( |
| otherlv_10='alternate' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getMediaStyleAccess().getAlternateKeyword_3_2_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaStyleRule()); |
| } |
| } |
| otherlv_11=RULE_ID |
| { |
| newLeafNode(otherlv_11, grammarAccess.getMediaStyleAccess().getBackgroundcolor_alternateColorCrossReference_3_2_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 3)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 3); |
| } |
| ({true}?=>(otherlv_12='textcolor' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getMediaStyleAccess().getTextcolorKeyword_3_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getMediaStyleRule()); |
| } |
| } |
| otherlv_13=RULE_ID |
| { |
| newLeafNode(otherlv_13, grammarAccess.getMediaStyleAccess().getTextcolorColorCrossReference_3_3_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 4)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 4); |
| } |
| ({true}?=>(otherlv_14='textalign' |
| { |
| newLeafNode(otherlv_14, grammarAccess.getMediaStyleAccess().getTextalignKeyword_3_4_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getTextalignTextAlignEnumEnumRuleCall_3_4_1_0()); |
| } |
| lv_textalign_15_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_15_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 5)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 5); |
| } |
| ({true}?=>(otherlv_16='border-top' |
| { |
| newLeafNode(otherlv_16, grammarAccess.getMediaStyleAccess().getBorderTopKeyword_3_5_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderTopBorderStyleParserRuleCall_3_5_1_0()); |
| } |
| lv_borderTop_17_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "borderTop", |
| lv_borderTop_17_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 6)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 6); |
| } |
| ({true}?=>(otherlv_18='border-bottom' |
| { |
| newLeafNode(otherlv_18, grammarAccess.getMediaStyleAccess().getBorderBottomKeyword_3_6_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderBottomBorderStyleParserRuleCall_3_6_1_0()); |
| } |
| lv_borderBottom_19_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "borderBottom", |
| lv_borderBottom_19_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 7)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 7); |
| } |
| ({true}?=>(otherlv_20='border-left' |
| { |
| newLeafNode(otherlv_20, grammarAccess.getMediaStyleAccess().getBorderLeftKeyword_3_7_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderLeftBorderStyleParserRuleCall_3_7_1_0()); |
| } |
| lv_borderLeft_21_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "borderLeft", |
| lv_borderLeft_21_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 8)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 8); |
| } |
| ({true}?=>(otherlv_22='border-right' |
| { |
| newLeafNode(otherlv_22, grammarAccess.getMediaStyleAccess().getBorderRightKeyword_3_8_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderRightBorderStyleParserRuleCall_3_8_1_0()); |
| } |
| lv_borderRight_23_0=ruleBorderStyle |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "borderRight", |
| lv_borderRight_23_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 9)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 9); |
| } |
| ({true}?=>(otherlv_24='padding-top' |
| { |
| newLeafNode(otherlv_24, grammarAccess.getMediaStyleAccess().getPaddingTopKeyword_3_9_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingTopValueUnsignedNumberParserRuleCall_3_9_1_0()); |
| } |
| lv_paddingTopValue_25_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "paddingTopValue", |
| lv_paddingTopValue_25_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 10)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 10); |
| } |
| ({true}?=>(otherlv_26='padding-bottom' |
| { |
| newLeafNode(otherlv_26, grammarAccess.getMediaStyleAccess().getPaddingBottomKeyword_3_10_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingBottomValueUnsignedNumberParserRuleCall_3_10_1_0()); |
| } |
| lv_paddingBottomValue_27_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "paddingBottomValue", |
| lv_paddingBottomValue_27_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 11)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 11); |
| } |
| ({true}?=>(otherlv_28='padding-left' |
| { |
| newLeafNode(otherlv_28, grammarAccess.getMediaStyleAccess().getPaddingLeftKeyword_3_11_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingLeftValueUnsignedNumberParserRuleCall_3_11_1_0()); |
| } |
| lv_paddingLeftValue_29_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "paddingLeftValue", |
| lv_paddingLeftValue_29_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 12)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 12); |
| } |
| ({true}?=>(otherlv_30='padding-right' |
| { |
| newLeafNode(otherlv_30, grammarAccess.getMediaStyleAccess().getPaddingRightKeyword_3_12_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingRightValueUnsignedNumberParserRuleCall_3_12_1_0()); |
| } |
| lv_paddingRightValue_31_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "paddingRightValue", |
| lv_paddingRightValue_31_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 13)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 13); |
| } |
| ({true}?=>(otherlv_32='margin-top' |
| { |
| newLeafNode(otherlv_32, grammarAccess.getMediaStyleAccess().getMarginTopKeyword_3_13_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginTopValueUnsignedNumberParserRuleCall_3_13_1_0()); |
| } |
| lv_marginTopValue_33_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "marginTopValue", |
| lv_marginTopValue_33_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 14)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 14); |
| } |
| ({true}?=>(otherlv_34='margin-bottom' |
| { |
| newLeafNode(otherlv_34, grammarAccess.getMediaStyleAccess().getMarginBottomKeyword_3_14_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginBottomValueUnsignedNumberParserRuleCall_3_14_1_0()); |
| } |
| lv_marginBottomValue_35_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "marginBottomValue", |
| lv_marginBottomValue_35_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 15)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 15); |
| } |
| ({true}?=>(otherlv_36='margin-left' |
| { |
| newLeafNode(otherlv_36, grammarAccess.getMediaStyleAccess().getMarginLeftKeyword_3_15_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginLeftValueUnsignedNumberParserRuleCall_3_15_1_0()); |
| } |
| lv_marginLeftValue_37_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "marginLeftValue", |
| lv_marginLeftValue_37_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 16)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 16); |
| } |
| ({true}?=>(otherlv_38='margin-right' |
| { |
| newLeafNode(otherlv_38, grammarAccess.getMediaStyleAccess().getMarginRightKeyword_3_16_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginRightValueUnsignedNumberParserRuleCall_3_16_1_0()); |
| } |
| lv_marginRightValue_39_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getMediaStyleRule()); |
| } |
| set( |
| $current, |
| "marginRightValue", |
| lv_marginRightValue_39_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| ) |
| )* |
| ) |
| ) |
| { |
| getUnorderedGroupHelper().leave(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3()); |
| } |
| ) |
| otherlv_40='}' |
| { |
| newLeafNode(otherlv_40, grammarAccess.getMediaStyleAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleSomeFormat |
| entryRuleSomeFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getSomeFormatRule()); } |
| iv_ruleSomeFormat=ruleSomeFormat |
| { $current=$iv_ruleSomeFormat.current; } |
| EOF; |
| |
| // Rule SomeFormat |
| ruleSomeFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getSomeFormatAccess().getUomoFormatParserRuleCall_0()); |
| } |
| this_UomoFormat_0=ruleUomoFormat |
| { |
| $current = $this_UomoFormat_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getSomeFormatAccess().getNumberFormatParserRuleCall_1()); |
| } |
| this_NumberFormat_1=ruleNumberFormat |
| { |
| $current = $this_NumberFormat_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getSomeFormatAccess().getCurrencyFormatParserRuleCall_2()); |
| } |
| this_CurrencyFormat_2=ruleCurrencyFormat |
| { |
| $current = $this_CurrencyFormat_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getSomeFormatAccess().getDateFormatParserRuleCall_3()); |
| } |
| this_DateFormat_3=ruleDateFormat |
| { |
| $current = $this_DateFormat_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getSomeFormatAccess().getDateTimeFormatParserRuleCall_4()); |
| } |
| this_DateTimeFormat_4=ruleDateTimeFormat |
| { |
| $current = $this_DateTimeFormat_4.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getSomeFormatAccess().getTimeFormatParserRuleCall_5()); |
| } |
| this_TimeFormat_5=ruleTimeFormat |
| { |
| $current = $this_TimeFormat_5.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleUomoFormat |
| entryRuleUomoFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getUomoFormatRule()); } |
| iv_ruleUomoFormat=ruleUomoFormat |
| { $current=$iv_ruleUomoFormat.current; } |
| EOF; |
| |
| // Rule UomoFormat |
| ruleUomoFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='uomo' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getUomoFormatAccess().getUomoKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getUomoFormatAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getUomoFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getUomoFormatAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='ui' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getUomoFormatAccess().getUiKeyword_3()); |
| } |
| ( |
| ( |
| lv_ui_pattern_4_0=RULE_STRING |
| { |
| newLeafNode(lv_ui_pattern_4_0, grammarAccess.getUomoFormatAccess().getUi_patternSTRINGTerminalRuleCall_4_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getUomoFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "ui_pattern", |
| lv_ui_pattern_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_5='report' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getUomoFormatAccess().getReportKeyword_5()); |
| } |
| ( |
| ( |
| lv_report_pattern_6_0=RULE_STRING |
| { |
| newLeafNode(lv_report_pattern_6_0, grammarAccess.getUomoFormatAccess().getReport_patternSTRINGTerminalRuleCall_6_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getUomoFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "report_pattern", |
| lv_report_pattern_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_7='textalign' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getUomoFormatAccess().getTextalignKeyword_7()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getUomoFormatAccess().getTextalignTextAlignEnumEnumRuleCall_8_0()); |
| } |
| lv_textalign_8_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getUomoFormatRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_8_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_9='}' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getUomoFormatAccess().getRightCurlyBracketKeyword_9()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleNumberFormat |
| entryRuleNumberFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getNumberFormatRule()); } |
| iv_ruleNumberFormat=ruleNumberFormat |
| { $current=$iv_ruleNumberFormat.current; } |
| EOF; |
| |
| // Rule NumberFormat |
| ruleNumberFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='number' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getNumberFormatAccess().getNumberKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getNumberFormatAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getNumberFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getNumberFormatAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='ui' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getNumberFormatAccess().getUiKeyword_3()); |
| } |
| ( |
| ( |
| lv_ui_pattern_4_0=RULE_STRING |
| { |
| newLeafNode(lv_ui_pattern_4_0, grammarAccess.getNumberFormatAccess().getUi_patternSTRINGTerminalRuleCall_4_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getNumberFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "ui_pattern", |
| lv_ui_pattern_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_5='report' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getNumberFormatAccess().getReportKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getNumberFormatAccess().getReport_categoryNumberFormatCategoryEnumEnumRuleCall_6_0()); |
| } |
| lv_report_category_6_0=ruleNumberFormatCategoryEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getNumberFormatRule()); |
| } |
| set( |
| $current, |
| "report_category", |
| lv_report_category_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.NumberFormatCategoryEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_report_pattern_7_0=RULE_STRING |
| { |
| newLeafNode(lv_report_pattern_7_0, grammarAccess.getNumberFormatAccess().getReport_patternSTRINGTerminalRuleCall_7_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getNumberFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "report_pattern", |
| lv_report_pattern_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_8='textalign' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getNumberFormatAccess().getTextalignKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getNumberFormatAccess().getTextalignTextAlignEnumEnumRuleCall_9_0()); |
| } |
| lv_textalign_9_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getNumberFormatRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_10='}' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getNumberFormatAccess().getRightCurlyBracketKeyword_10()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleCurrencyFormat |
| entryRuleCurrencyFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getCurrencyFormatRule()); } |
| iv_ruleCurrencyFormat=ruleCurrencyFormat |
| { $current=$iv_ruleCurrencyFormat.current; } |
| EOF; |
| |
| // Rule CurrencyFormat |
| ruleCurrencyFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='currency' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getCurrencyFormatAccess().getCurrencyKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getCurrencyFormatAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getCurrencyFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getCurrencyFormatAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='ui' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getCurrencyFormatAccess().getUiKeyword_3()); |
| } |
| ( |
| ( |
| lv_ui_pattern_4_0=RULE_STRING |
| { |
| newLeafNode(lv_ui_pattern_4_0, grammarAccess.getCurrencyFormatAccess().getUi_patternSTRINGTerminalRuleCall_4_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getCurrencyFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "ui_pattern", |
| lv_ui_pattern_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_5='report' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getCurrencyFormatAccess().getReportKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getCurrencyFormatAccess().getReport_categoryCurrencyFormatCategoryEnumEnumRuleCall_6_0()); |
| } |
| lv_report_category_6_0=ruleCurrencyFormatCategoryEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getCurrencyFormatRule()); |
| } |
| set( |
| $current, |
| "report_category", |
| lv_report_category_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.CurrencyFormatCategoryEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_report_pattern_7_0=RULE_STRING |
| { |
| newLeafNode(lv_report_pattern_7_0, grammarAccess.getCurrencyFormatAccess().getReport_patternSTRINGTerminalRuleCall_7_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getCurrencyFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "report_pattern", |
| lv_report_pattern_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_8='textalign' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getCurrencyFormatAccess().getTextalignKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getCurrencyFormatAccess().getTextalignTextAlignEnumEnumRuleCall_9_0()); |
| } |
| lv_textalign_9_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getCurrencyFormatRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_10='}' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getCurrencyFormatAccess().getRightCurlyBracketKeyword_10()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDateFormat |
| entryRuleDateFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDateFormatRule()); } |
| iv_ruleDateFormat=ruleDateFormat |
| { $current=$iv_ruleDateFormat.current; } |
| EOF; |
| |
| // Rule DateFormat |
| ruleDateFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='date' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getDateFormatAccess().getDateKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getDateFormatAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDateFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDateFormatAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='ui' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getDateFormatAccess().getUiKeyword_3()); |
| } |
| ( |
| ( |
| lv_ui_pattern_4_0=RULE_STRING |
| { |
| newLeafNode(lv_ui_pattern_4_0, grammarAccess.getDateFormatAccess().getUi_patternSTRINGTerminalRuleCall_4_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDateFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "ui_pattern", |
| lv_ui_pattern_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_5='report' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDateFormatAccess().getReportKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDateFormatAccess().getReport_categoryDateFormatCategoryEnumEnumRuleCall_6_0()); |
| } |
| lv_report_category_6_0=ruleDateFormatCategoryEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDateFormatRule()); |
| } |
| set( |
| $current, |
| "report_category", |
| lv_report_category_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DateFormatCategoryEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_report_pattern_7_0=RULE_STRING |
| { |
| newLeafNode(lv_report_pattern_7_0, grammarAccess.getDateFormatAccess().getReport_patternSTRINGTerminalRuleCall_7_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDateFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "report_pattern", |
| lv_report_pattern_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_8='textalign' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getDateFormatAccess().getTextalignKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDateFormatAccess().getTextalignTextAlignEnumEnumRuleCall_9_0()); |
| } |
| lv_textalign_9_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDateFormatRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_10='}' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getDateFormatAccess().getRightCurlyBracketKeyword_10()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDateTimeFormat |
| entryRuleDateTimeFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDateTimeFormatRule()); } |
| iv_ruleDateTimeFormat=ruleDateTimeFormat |
| { $current=$iv_ruleDateTimeFormat.current; } |
| EOF; |
| |
| // Rule DateTimeFormat |
| ruleDateTimeFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='date+time' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getDateTimeFormatAccess().getDateTimeKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getDateTimeFormatAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDateTimeFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDateTimeFormatAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='ui' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getDateTimeFormatAccess().getUiKeyword_3()); |
| } |
| ( |
| ( |
| lv_ui_pattern_4_0=RULE_STRING |
| { |
| newLeafNode(lv_ui_pattern_4_0, grammarAccess.getDateTimeFormatAccess().getUi_patternSTRINGTerminalRuleCall_4_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDateTimeFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "ui_pattern", |
| lv_ui_pattern_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_5='report' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDateTimeFormatAccess().getReportKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDateTimeFormatAccess().getReport_categoryDateTimeFormatCategoryEnumEnumRuleCall_6_0()); |
| } |
| lv_report_category_6_0=ruleDateTimeFormatCategoryEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDateTimeFormatRule()); |
| } |
| set( |
| $current, |
| "report_category", |
| lv_report_category_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DateTimeFormatCategoryEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_report_pattern_7_0=RULE_STRING |
| { |
| newLeafNode(lv_report_pattern_7_0, grammarAccess.getDateTimeFormatAccess().getReport_patternSTRINGTerminalRuleCall_7_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDateTimeFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "report_pattern", |
| lv_report_pattern_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_8='textalign' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getDateTimeFormatAccess().getTextalignKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDateTimeFormatAccess().getTextalignTextAlignEnumEnumRuleCall_9_0()); |
| } |
| lv_textalign_9_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDateTimeFormatRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_10='}' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getDateTimeFormatAccess().getRightCurlyBracketKeyword_10()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTimeFormat |
| entryRuleTimeFormat returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTimeFormatRule()); } |
| iv_ruleTimeFormat=ruleTimeFormat |
| { $current=$iv_ruleTimeFormat.current; } |
| EOF; |
| |
| // Rule TimeFormat |
| ruleTimeFormat returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='time' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTimeFormatAccess().getTimeKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getTimeFormatAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTimeFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getTimeFormatAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| otherlv_3='ui' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getTimeFormatAccess().getUiKeyword_3()); |
| } |
| ( |
| ( |
| lv_ui_pattern_4_0=RULE_STRING |
| { |
| newLeafNode(lv_ui_pattern_4_0, grammarAccess.getTimeFormatAccess().getUi_patternSTRINGTerminalRuleCall_4_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTimeFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "ui_pattern", |
| lv_ui_pattern_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_5='report' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getTimeFormatAccess().getReportKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTimeFormatAccess().getReport_categoryTimeFormatCategoryEnumEnumRuleCall_6_0()); |
| } |
| lv_report_category_6_0=ruleTimeFormatCategoryEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTimeFormatRule()); |
| } |
| set( |
| $current, |
| "report_category", |
| lv_report_category_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TimeFormatCategoryEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_report_pattern_7_0=RULE_STRING |
| { |
| newLeafNode(lv_report_pattern_7_0, grammarAccess.getTimeFormatAccess().getReport_patternSTRINGTerminalRuleCall_7_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTimeFormatRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "report_pattern", |
| lv_report_pattern_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| otherlv_8='textalign' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getTimeFormatAccess().getTextalignKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTimeFormatAccess().getTextalignTextAlignEnumEnumRuleCall_9_0()); |
| } |
| lv_textalign_9_0=ruleTextAlignEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTimeFormatRule()); |
| } |
| set( |
| $current, |
| "textalign", |
| lv_textalign_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextAlignEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_10='}' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getTimeFormatAccess().getRightCurlyBracketKeyword_10()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleReport |
| entryRuleReport returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getReportRule()); } |
| iv_ruleReport=ruleReport |
| { $current=$iv_ruleReport.current; } |
| EOF; |
| |
| // Rule Report |
| ruleReport returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='report' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getReportAccess().getReportKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getReportAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| ( |
| ( |
| ( |
| lv_description_2_0='describedBy' |
| { |
| newLeafNode(lv_description_2_0, grammarAccess.getReportAccess().getDescriptionDescribedByKeyword_2_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| setWithLastConsumed($current, "description", true, "describedBy"); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_2_1_0()); |
| } |
| lv_descriptionValue_3_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportRule()); |
| } |
| set( |
| $current, |
| "descriptionValue", |
| lv_descriptionValue_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='toolbar' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getReportAccess().getToolbarKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| } |
| otherlv_5=RULE_ID |
| { |
| newLeafNode(otherlv_5, grammarAccess.getReportAccess().getToolbarActionToolbarCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| otherlv_6='{' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getReportAccess().getLeftCurlyBracketKeyword_4()); |
| } |
| otherlv_7='datamart' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getReportAccess().getDatamartKeyword_5()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| } |
| otherlv_8=RULE_ID |
| { |
| newLeafNode(otherlv_8, grammarAccess.getReportAccess().getDatamartRefDatamartDefinitionCrossReference_6_0()); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_selectById_9_0='selectById' |
| { |
| newLeafNode(lv_selectById_9_0, grammarAccess.getReportAccess().getSelectByIdSelectByIdKeyword_7_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| setWithLastConsumed($current, "selectById", true, "selectById"); |
| } |
| ) |
| )? |
| otherlv_10='rendering' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getReportAccess().getRenderingKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportAccess().getRenderingRenderingEnumEnumRuleCall_9_0()); |
| } |
| lv_rendering_11_0=ruleRenderingEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportRule()); |
| } |
| set( |
| $current, |
| "rendering", |
| lv_rendering_11_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.RenderingEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_12='externalCssURI' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getReportAccess().getExternalCssURIKeyword_10_0()); |
| } |
| ( |
| ( |
| lv_externalCssURI_13_0=RULE_STRING |
| { |
| newLeafNode(lv_externalCssURI_13_0, grammarAccess.getReportAccess().getExternalCssURISTRINGTerminalRuleCall_10_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "externalCssURI", |
| lv_externalCssURI_13_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ( |
| otherlv_14='fromBundle' |
| { |
| newLeafNode(otherlv_14, grammarAccess.getReportAccess().getFromBundleKeyword_10_2_0()); |
| } |
| ( |
| ( |
| lv_externalCssURIBundle_15_0=RULE_STRING |
| { |
| newLeafNode(lv_externalCssURIBundle_15_0, grammarAccess.getReportAccess().getExternalCssURIBundleSTRINGTerminalRuleCall_10_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "externalCssURIBundle", |
| lv_externalCssURIBundle_15_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| )? |
| )? |
| ( |
| otherlv_16='defaultUnit' |
| { |
| newLeafNode(otherlv_16, grammarAccess.getReportAccess().getDefaultUnitKeyword_11_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportAccess().getDefaultUnitUnitEnumEnumRuleCall_11_1_0()); |
| } |
| lv_defaultUnit_17_0=ruleUnitEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportRule()); |
| } |
| set( |
| $current, |
| "defaultUnit", |
| lv_defaultUnit_17_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnitEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| otherlv_18='pagetemplate' |
| { |
| newLeafNode(otherlv_18, grammarAccess.getReportAccess().getPagetemplateKeyword_12()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| } |
| otherlv_19=RULE_ID |
| { |
| newLeafNode(otherlv_19, grammarAccess.getReportAccess().getPageTemplatePageTemplateCrossReference_13_0()); |
| } |
| ) |
| ) |
| otherlv_20='media' |
| { |
| newLeafNode(otherlv_20, grammarAccess.getReportAccess().getMediaKeyword_14()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportRule()); |
| } |
| } |
| otherlv_21=RULE_ID |
| { |
| newLeafNode(otherlv_21, grammarAccess.getReportAccess().getMediaMediaCrossReference_15_0()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportAccess().getDesignReportDesignParserRuleCall_16_0()); |
| } |
| lv_design_22_0=ruleReportDesign |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportRule()); |
| } |
| set( |
| $current, |
| "design", |
| lv_design_22_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.ReportDesign"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_23='}' |
| { |
| newLeafNode(otherlv_23, grammarAccess.getReportAccess().getRightCurlyBracketKeyword_17()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleReportDesign |
| entryRuleReportDesign returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getReportDesignRule()); } |
| iv_ruleReportDesign=ruleReportDesign |
| { $current=$iv_ruleReportDesign.current; } |
| EOF; |
| |
| // Rule ReportDesign |
| ruleReportDesign returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportDesignAccess().getReportDesignFileParserRuleCall_0()); |
| } |
| this_ReportDesignFile_0=ruleReportDesignFile |
| { |
| $current = $this_ReportDesignFile_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getReportDesignAccess().getReportDesignTemplateParserRuleCall_1()); |
| } |
| this_ReportDesignTemplate_1=ruleReportDesignTemplate |
| { |
| $current = $this_ReportDesignTemplate_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleReportDesignFile |
| entryRuleReportDesignFile returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getReportDesignFileRule()); } |
| iv_ruleReportDesignFile=ruleReportDesignFile |
| { $current=$iv_ruleReportDesignFile.current; } |
| EOF; |
| |
| // Rule ReportDesignFile |
| ruleReportDesignFile returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='file' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getReportDesignFileAccess().getFileKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_STRING |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getReportDesignFileAccess().getNameSTRINGTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportDesignFileRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleReportDesignTemplate |
| entryRuleReportDesignTemplate returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getReportDesignTemplateRule()); } |
| iv_ruleReportDesignTemplate=ruleReportDesignTemplate |
| { $current=$iv_ruleReportDesignTemplate.current; } |
| EOF; |
| |
| // Rule ReportDesignTemplate |
| ruleReportDesignTemplate returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='template' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getReportDesignTemplateAccess().getTemplateKeyword_0()); |
| } |
| otherlv_1='{' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getReportDesignTemplateAccess().getLeftCurlyBracketKeyword_1()); |
| } |
| ( |
| otherlv_2='describedBy' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getReportDesignTemplateAccess().getDescribedByKeyword_2_0()); |
| } |
| ( |
| ( |
| lv_description_3_0=RULE_STRING |
| { |
| newLeafNode(lv_description_3_0, grammarAccess.getReportDesignTemplateAccess().getDescriptionSTRINGTerminalRuleCall_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getReportDesignTemplateRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "description", |
| lv_description_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportDesignTemplateAccess().getHeaderPageHeaderParserRuleCall_3_0()); |
| } |
| lv_header_4_0=rulePageHeader |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportDesignTemplateRule()); |
| } |
| set( |
| $current, |
| "header", |
| lv_header_4_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageHeader"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportDesignTemplateAccess().getDetailPageDetailParserRuleCall_4_0()); |
| } |
| lv_detail_5_0=rulePageDetail |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportDesignTemplateRule()); |
| } |
| set( |
| $current, |
| "detail", |
| lv_detail_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageDetail"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getReportDesignTemplateAccess().getFooterPageFooterParserRuleCall_5_0()); |
| } |
| lv_footer_6_0=rulePageFooter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getReportDesignTemplateRule()); |
| } |
| set( |
| $current, |
| "footer", |
| lv_footer_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageFooter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_7='}' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getReportDesignTemplateAccess().getRightCurlyBracketKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRulePageHeader |
| entryRulePageHeader returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getPageHeaderRule()); } |
| iv_rulePageHeader=rulePageHeader |
| { $current=$iv_rulePageHeader.current; } |
| EOF; |
| |
| // Rule PageHeader |
| rulePageHeader returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getPageHeaderAccess().getPageHeaderAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='header' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getPageHeaderAccess().getHeaderKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getPageHeaderAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| lv_showOnFirst_3_0='showOnFirst' |
| { |
| newLeafNode(lv_showOnFirst_3_0, grammarAccess.getPageHeaderAccess().getShowOnFirstShowOnFirstKeyword_3_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getPageHeaderRule()); |
| } |
| setWithLastConsumed($current, "showOnFirst", true, "showOnFirst"); |
| } |
| ) |
| )? |
| otherlv_4='height' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getPageHeaderAccess().getHeightKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageHeaderAccess().getHeightValueUnsignedNumberParserRuleCall_5_0()); |
| } |
| lv_heightValue_5_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageHeaderRule()); |
| } |
| set( |
| $current, |
| "heightValue", |
| lv_heightValue_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageHeaderAccess().getElementsElementParserRuleCall_6_0()); |
| } |
| lv_elements_6_0=ruleElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageHeaderRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Element"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_7='}' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getPageHeaderAccess().getRightCurlyBracketKeyword_7()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRulePageDetail |
| entryRulePageDetail returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getPageDetailRule()); } |
| iv_rulePageDetail=rulePageDetail |
| { $current=$iv_rulePageDetail.current; } |
| EOF; |
| |
| // Rule PageDetail |
| rulePageDetail returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getPageDetailAccess().getPageDetailAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='detail' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getPageDetailAccess().getDetailKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getPageDetailAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageDetailAccess().getElementsElementParserRuleCall_3_0()); |
| } |
| lv_elements_3_0=ruleElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageDetailRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Element"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getPageDetailAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRulePageFooter |
| entryRulePageFooter returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getPageFooterRule()); } |
| iv_rulePageFooter=rulePageFooter |
| { $current=$iv_rulePageFooter.current; } |
| EOF; |
| |
| // Rule PageFooter |
| rulePageFooter returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getPageFooterAccess().getPageFooterAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='footer' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getPageFooterAccess().getFooterKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getPageFooterAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| lv_showOnLast_3_0='showOnLast' |
| { |
| newLeafNode(lv_showOnLast_3_0, grammarAccess.getPageFooterAccess().getShowOnLastShowOnLastKeyword_3_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getPageFooterRule()); |
| } |
| setWithLastConsumed($current, "showOnLast", true, "showOnLast"); |
| } |
| ) |
| )? |
| otherlv_4='height' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getPageFooterAccess().getHeightKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageFooterAccess().getHeightValueUnsignedNumberParserRuleCall_5_0()); |
| } |
| lv_heightValue_5_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageFooterRule()); |
| } |
| set( |
| $current, |
| "heightValue", |
| lv_heightValue_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageFooterAccess().getElementsElementParserRuleCall_6_0()); |
| } |
| lv_elements_6_0=ruleElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageFooterRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Element"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_7='}' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getPageFooterAccess().getRightCurlyBracketKeyword_7()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleElement |
| entryRuleElement returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getElementRule()); } |
| iv_ruleElement=ruleElement |
| { $current=$iv_ruleElement.current; } |
| EOF; |
| |
| // Rule Element |
| ruleElement returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getTitleParserRuleCall_0()); |
| } |
| this_Title_0=ruleTitle |
| { |
| $current = $this_Title_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getSubTitleParserRuleCall_1()); |
| } |
| this_SubTitle_1=ruleSubTitle |
| { |
| $current = $this_SubTitle_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getSubSubTitleParserRuleCall_2()); |
| } |
| this_SubSubTitle_2=ruleSubSubTitle |
| { |
| $current = $this_SubSubTitle_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getLabelParserRuleCall_3()); |
| } |
| this_Label_3=ruleLabel |
| { |
| $current = $this_Label_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getTextParserRuleCall_4()); |
| } |
| this_Text_4=ruleText |
| { |
| $current = $this_Text_4.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getNonTranslatableTextParserRuleCall_5()); |
| } |
| this_NonTranslatableText_5=ruleNonTranslatableText |
| { |
| $current = $this_NonTranslatableText_5.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getAutoTextParserRuleCall_6()); |
| } |
| this_AutoText_6=ruleAutoText |
| { |
| $current = $this_AutoText_6.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getStringBinderParserRuleCall_7()); |
| } |
| this_StringBinder_7=ruleStringBinder |
| { |
| $current = $this_StringBinder_7.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getImageParserRuleCall_8()); |
| } |
| this_Image_8=ruleImage |
| { |
| $current = $this_Image_8.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getDatamartTableParserRuleCall_9()); |
| } |
| this_DatamartTable_9=ruleDatamartTable |
| { |
| $current = $this_DatamartTable_9.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getDatamartTableAttributeParserRuleCall_10()); |
| } |
| this_DatamartTableAttribute_10=ruleDatamartTableAttribute |
| { |
| $current = $this_DatamartTableAttribute_10.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getElementAccess().getGridParserRuleCall_11()); |
| } |
| this_Grid_11=ruleGrid |
| { |
| $current = $this_Grid_11.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleGrid |
| entryRuleGrid returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getGridRule()); } |
| iv_ruleGrid=ruleGrid |
| { $current=$iv_ruleGrid.current; } |
| EOF; |
| |
| // Rule Grid |
| ruleGrid returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getGridAccess().getGridAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='grid' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getGridAccess().getGridKeyword_1()); |
| } |
| ( |
| otherlv_2='as' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getGridAccess().getAsKeyword_2_0()); |
| } |
| ( |
| ( |
| lv_name_3_0=RULE_ID |
| { |
| newLeafNode(lv_name_3_0, grammarAccess.getGridAccess().getNameIDTerminalRuleCall_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getGridRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_3_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='width' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getGridAccess().getWidthKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridAccess().getWidthValueUnsignedNumberParserRuleCall_3_1_0()); |
| } |
| lv_widthValue_5_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridRule()); |
| } |
| set( |
| $current, |
| "widthValue", |
| lv_widthValue_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridAccess().getVisibilityItemVisibilityParserRuleCall_4_0()); |
| } |
| lv_visibilityItem_6_0=ruleVisibility |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridRule()); |
| } |
| set( |
| $current, |
| "visibilityItem", |
| lv_visibilityItem_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Visibility"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_7='{' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getGridAccess().getLeftCurlyBracketKeyword_5()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridAccess().getRowsGridRowParserRuleCall_6_0()); |
| } |
| lv_rows_8_0=ruleGridRow |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridRule()); |
| } |
| add( |
| $current, |
| "rows", |
| lv_rows_8_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.GridRow"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_9='}' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getGridAccess().getRightCurlyBracketKeyword_7()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleGridRow |
| entryRuleGridRow returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getGridRowRule()); } |
| iv_ruleGridRow=ruleGridRow |
| { $current=$iv_ruleGridRow.current; } |
| EOF; |
| |
| // Rule GridRow |
| ruleGridRow returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getGridRowAccess().getGridRowAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='row' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getGridRowAccess().getRowKeyword_1()); |
| } |
| ( |
| otherlv_2='as' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getGridRowAccess().getAsKeyword_2_0()); |
| } |
| ( |
| ( |
| lv_name_3_0=RULE_ID |
| { |
| newLeafNode(lv_name_3_0, grammarAccess.getGridRowAccess().getNameIDTerminalRuleCall_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getGridRowRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_3_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='style' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getGridRowAccess().getStyleKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getGridRowRule()); |
| } |
| } |
| otherlv_5=RULE_ID |
| { |
| newLeafNode(otherlv_5, grammarAccess.getGridRowAccess().getStyleStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_6='height' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getGridRowAccess().getHeightKeyword_4_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridRowAccess().getHeightValueUnsignedNumberParserRuleCall_4_1_0()); |
| } |
| lv_heightValue_7_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridRowRule()); |
| } |
| set( |
| $current, |
| "heightValue", |
| lv_heightValue_7_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridRowAccess().getVisibilityItemVisibilityParserRuleCall_5_0()); |
| } |
| lv_visibilityItem_8_0=ruleVisibility |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridRowRule()); |
| } |
| set( |
| $current, |
| "visibilityItem", |
| lv_visibilityItem_8_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Visibility"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_9='{' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getGridRowAccess().getLeftCurlyBracketKeyword_6()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridRowAccess().getCellsGridCellParserRuleCall_7_0()); |
| } |
| lv_cells_10_0=ruleGridCell |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridRowRule()); |
| } |
| add( |
| $current, |
| "cells", |
| lv_cells_10_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.GridCell"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_11='}' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getGridRowAccess().getRightCurlyBracketKeyword_8()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleGridCell |
| entryRuleGridCell returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getGridCellRule()); } |
| iv_ruleGridCell=ruleGridCell |
| { $current=$iv_ruleGridCell.current; } |
| EOF; |
| |
| // Rule GridCell |
| ruleGridCell returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getGridCellAccess().getGridCellAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='cell' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getGridCellAccess().getCellKeyword_1()); |
| } |
| ( |
| otherlv_2='as' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getGridCellAccess().getAsKeyword_2_0()); |
| } |
| ( |
| ( |
| lv_name_3_0=RULE_ID |
| { |
| newLeafNode(lv_name_3_0, grammarAccess.getGridCellAccess().getNameIDTerminalRuleCall_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getGridCellRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_3_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='style' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getGridCellAccess().getStyleKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getGridCellRule()); |
| } |
| } |
| otherlv_5=RULE_ID |
| { |
| newLeafNode(otherlv_5, grammarAccess.getGridCellAccess().getStyleStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_6='width' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getGridCellAccess().getWidthKeyword_4_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridCellAccess().getWidthValueUnsignedNumberParserRuleCall_4_1_0()); |
| } |
| lv_widthValue_7_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridCellRule()); |
| } |
| set( |
| $current, |
| "widthValue", |
| lv_widthValue_7_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_8='columnspan' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getGridCellAccess().getColumnspanKeyword_5_0()); |
| } |
| ( |
| ( |
| lv_columnspan_9_0=RULE_INT |
| { |
| newLeafNode(lv_columnspan_9_0, grammarAccess.getGridCellAccess().getColumnspanINTTerminalRuleCall_5_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getGridCellRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "columnspan", |
| lv_columnspan_9_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridCellAccess().getVisibilityItemVisibilityParserRuleCall_6_0()); |
| } |
| lv_visibilityItem_10_0=ruleVisibility |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridCellRule()); |
| } |
| set( |
| $current, |
| "visibilityItem", |
| lv_visibilityItem_10_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Visibility"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_11='{' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getGridCellAccess().getLeftCurlyBracketKeyword_7()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getGridCellAccess().getElementsElementParserRuleCall_8_0()); |
| } |
| lv_elements_12_0=ruleElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getGridCellRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_12_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Element"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_13='}' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getGridCellAccess().getRightCurlyBracketKeyword_9()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDatamartTable |
| entryRuleDatamartTable returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDatamartTableRule()); } |
| iv_ruleDatamartTable=ruleDatamartTable |
| { $current=$iv_ruleDatamartTable.current; } |
| EOF; |
| |
| // Rule DatamartTable |
| ruleDatamartTable returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='table' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getDatamartTableAccess().getTableKeyword_0()); |
| } |
| ( |
| otherlv_1='style' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getDatamartTableAccess().getStyleKeyword_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableRule()); |
| } |
| } |
| otherlv_2=RULE_ID |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTableAccess().getStyleStyleCrossReference_1_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAccess().getVisibilityItemVisibilityParserRuleCall_2_0()); |
| } |
| lv_visibilityItem_3_0=ruleVisibility |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableRule()); |
| } |
| set( |
| $current, |
| "visibilityItem", |
| lv_visibilityItem_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Visibility"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAccess().getPageBreakPageBreakParserRuleCall_3_0()); |
| } |
| lv_pageBreak_4_0=rulePageBreak |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableRule()); |
| } |
| set( |
| $current, |
| "pageBreak", |
| lv_pageBreak_4_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageBreak"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_5='{' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDatamartTableAccess().getLeftCurlyBracketKeyword_4()); |
| } |
| ( |
| ( |
| ( |
| lv_detailheader_6_0='detailheader' |
| { |
| newLeafNode(lv_detailheader_6_0, grammarAccess.getDatamartTableAccess().getDetailheaderDetailheaderKeyword_5_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableRule()); |
| } |
| setWithLastConsumed($current, "detailheader", true, "detailheader"); |
| } |
| ) |
| ) |
| ( |
| otherlv_7='style' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getDatamartTableAccess().getStyleKeyword_5_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableRule()); |
| } |
| } |
| otherlv_8=RULE_ID |
| { |
| newLeafNode(otherlv_8, grammarAccess.getDatamartTableAccess().getHeaderstyleStyleCrossReference_5_1_1_0()); |
| } |
| ) |
| ) |
| )? |
| )? |
| ( |
| ( |
| ( |
| lv_detailfooter_9_0='detailfooter' |
| { |
| newLeafNode(lv_detailfooter_9_0, grammarAccess.getDatamartTableAccess().getDetailfooterDetailfooterKeyword_6_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableRule()); |
| } |
| setWithLastConsumed($current, "detailfooter", true, "detailfooter"); |
| } |
| ) |
| ) |
| ( |
| otherlv_10='style' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getDatamartTableAccess().getStyleKeyword_6_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableRule()); |
| } |
| } |
| otherlv_11=RULE_ID |
| { |
| newLeafNode(otherlv_11, grammarAccess.getDatamartTableAccess().getFooterstyleStyleCrossReference_6_1_1_0()); |
| } |
| ) |
| ) |
| )? |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAccess().getGroupsDatamartTableGroupParserRuleCall_7_0()); |
| } |
| lv_groups_12_0=ruleDatamartTableGroup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableRule()); |
| } |
| add( |
| $current, |
| "groups", |
| lv_groups_12_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DatamartTableGroup"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAccess().getDetailDatamartTableDetailParserRuleCall_8_0()); |
| } |
| lv_detail_13_0=ruleDatamartTableDetail |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableRule()); |
| } |
| set( |
| $current, |
| "detail", |
| lv_detail_13_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DatamartTableDetail"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_14='}' |
| { |
| newLeafNode(otherlv_14, grammarAccess.getDatamartTableAccess().getRightCurlyBracketKeyword_9()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDatamartTableGroup |
| entryRuleDatamartTableGroup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDatamartTableGroupRule()); } |
| iv_ruleDatamartTableGroup=ruleDatamartTableGroup |
| { $current=$iv_ruleDatamartTableGroup.current; } |
| EOF; |
| |
| // Rule DatamartTableGroup |
| ruleDatamartTableGroup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='group' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getDatamartTableGroupAccess().getGroupKeyword_0()); |
| } |
| ( |
| ( |
| lv_name_1_0=RULE_ID |
| { |
| newLeafNode(lv_name_1_0, grammarAccess.getDatamartTableGroupAccess().getNameIDTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| } |
| ) |
| ) |
| otherlv_2='by' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTableGroupAccess().getByKeyword_2()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getDatamartTableGroupAccess().getGroupingRefDatamartAttributeCrossReference_3_0()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupAccess().getVisibilityItemVisibilityParserRuleCall_4_0()); |
| } |
| lv_visibilityItem_4_0=ruleVisibility |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupRule()); |
| } |
| set( |
| $current, |
| "visibilityItem", |
| lv_visibilityItem_4_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.Visibility"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupAccess().getPageBreakPageBreakParserRuleCall_5_0()); |
| } |
| lv_pageBreak_5_0=rulePageBreak |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupRule()); |
| } |
| set( |
| $current, |
| "pageBreak", |
| lv_pageBreak_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageBreak"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_6='{' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getDatamartTableGroupAccess().getLeftCurlyBracketKeyword_6()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupAccess().getHeaderDatamartTableGroupHeaderParserRuleCall_7_0()); |
| } |
| lv_header_7_0=ruleDatamartTableGroupHeader |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupRule()); |
| } |
| set( |
| $current, |
| "header", |
| lv_header_7_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DatamartTableGroupHeader"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| ( |
| lv_detailheader_8_0='detailheader' |
| { |
| newLeafNode(lv_detailheader_8_0, grammarAccess.getDatamartTableGroupAccess().getDetailheaderDetailheaderKeyword_8_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupRule()); |
| } |
| setWithLastConsumed($current, "detailheader", true, "detailheader"); |
| } |
| ) |
| ) |
| ( |
| otherlv_9='style' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getDatamartTableGroupAccess().getStyleKeyword_8_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupRule()); |
| } |
| } |
| otherlv_10=RULE_ID |
| { |
| newLeafNode(otherlv_10, grammarAccess.getDatamartTableGroupAccess().getHeaderstyleStyleCrossReference_8_1_1_0()); |
| } |
| ) |
| ) |
| )? |
| )? |
| ( |
| ( |
| ( |
| lv_detailfooter_11_0='detailfooter' |
| { |
| newLeafNode(lv_detailfooter_11_0, grammarAccess.getDatamartTableGroupAccess().getDetailfooterDetailfooterKeyword_9_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupRule()); |
| } |
| setWithLastConsumed($current, "detailfooter", true, "detailfooter"); |
| } |
| ) |
| ) |
| ( |
| otherlv_12='style' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getDatamartTableGroupAccess().getStyleKeyword_9_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupRule()); |
| } |
| } |
| otherlv_13=RULE_ID |
| { |
| newLeafNode(otherlv_13, grammarAccess.getDatamartTableGroupAccess().getFooterstyleStyleCrossReference_9_1_1_0()); |
| } |
| ) |
| ) |
| )? |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupAccess().getFooterDatamartTableGroupFooterParserRuleCall_10_0()); |
| } |
| lv_footer_14_0=ruleDatamartTableGroupFooter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupRule()); |
| } |
| set( |
| $current, |
| "footer", |
| lv_footer_14_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DatamartTableGroupFooter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_15='}' |
| { |
| newLeafNode(otherlv_15, grammarAccess.getDatamartTableGroupAccess().getRightCurlyBracketKeyword_11()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDatamartTableGroupHeader |
| entryRuleDatamartTableGroupHeader returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDatamartTableGroupHeaderRule()); } |
| iv_ruleDatamartTableGroupHeader=ruleDatamartTableGroupHeader |
| { $current=$iv_ruleDatamartTableGroupHeader.current; } |
| EOF; |
| |
| // Rule DatamartTableGroupHeader |
| ruleDatamartTableGroupHeader returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getDatamartTableGroupHeaderAccess().getDatamartTableGroupHeaderAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='header' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getDatamartTableGroupHeaderAccess().getHeaderKeyword_1()); |
| } |
| ( |
| otherlv_2='style' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTableGroupHeaderAccess().getStyleKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupHeaderRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getDatamartTableGroupHeaderAccess().getStyleStyleCrossReference_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupHeaderAccess().getPageBreakPageBreakParserRuleCall_3_0()); |
| } |
| lv_pageBreak_4_0=rulePageBreak |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupHeaderRule()); |
| } |
| set( |
| $current, |
| "pageBreak", |
| lv_pageBreak_4_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageBreak"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_5='{' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDatamartTableGroupHeaderAccess().getLeftCurlyBracketKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupHeaderAccess().getRowsGridRowParserRuleCall_5_0()); |
| } |
| lv_rows_6_0=ruleGridRow |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupHeaderRule()); |
| } |
| add( |
| $current, |
| "rows", |
| lv_rows_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.GridRow"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_7='}' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getDatamartTableGroupHeaderAccess().getRightCurlyBracketKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDatamartTableGroupFooter |
| entryRuleDatamartTableGroupFooter returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDatamartTableGroupFooterRule()); } |
| iv_ruleDatamartTableGroupFooter=ruleDatamartTableGroupFooter |
| { $current=$iv_ruleDatamartTableGroupFooter.current; } |
| EOF; |
| |
| // Rule DatamartTableGroupFooter |
| ruleDatamartTableGroupFooter returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getDatamartTableGroupFooterAccess().getDatamartTableGroupFooterAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='footer' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getDatamartTableGroupFooterAccess().getFooterKeyword_1()); |
| } |
| ( |
| otherlv_2='style' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTableGroupFooterAccess().getStyleKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableGroupFooterRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getDatamartTableGroupFooterAccess().getStyleStyleCrossReference_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupFooterAccess().getPageBreakPageBreakParserRuleCall_3_0()); |
| } |
| lv_pageBreak_4_0=rulePageBreak |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupFooterRule()); |
| } |
| set( |
| $current, |
| "pageBreak", |
| lv_pageBreak_4_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PageBreak"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_5='{' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDatamartTableGroupFooterAccess().getLeftCurlyBracketKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableGroupFooterAccess().getRowsGridRowParserRuleCall_5_0()); |
| } |
| lv_rows_6_0=ruleGridRow |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableGroupFooterRule()); |
| } |
| add( |
| $current, |
| "rows", |
| lv_rows_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.GridRow"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_7='}' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getDatamartTableGroupFooterAccess().getRightCurlyBracketKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleDatamartTableDetail |
| entryRuleDatamartTableDetail returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDatamartTableDetailRule()); } |
| iv_ruleDatamartTableDetail=ruleDatamartTableDetail |
| { $current=$iv_ruleDatamartTableDetail.current; } |
| EOF; |
| |
| // Rule DatamartTableDetail |
| ruleDatamartTableDetail returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getDatamartTableDetailAccess().getDatamartTableDetailAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='details' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getDatamartTableDetailAccess().getDetailsKeyword_1()); |
| } |
| ( |
| otherlv_2='style' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTableDetailAccess().getStyleKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableDetailRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getDatamartTableDetailAccess().getStyleStyleCrossReference_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='all' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getDatamartTableDetailAccess().getAllKeyword_3_0()); |
| } |
| | |
| ( |
| otherlv_5='{' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDatamartTableDetailAccess().getLeftCurlyBracketKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableDetailAccess().getColumnFormattersDatamartTableAttributeParserRuleCall_3_1_1_0()); |
| } |
| lv_columnFormatters_6_0=ruleDatamartTableAttribute |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableDetailRule()); |
| } |
| add( |
| $current, |
| "columnFormatters", |
| lv_columnFormatters_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.DatamartTableAttribute"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_7='}' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getDatamartTableDetailAccess().getRightCurlyBracketKeyword_3_1_2()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleDatamartTableAttribute |
| entryRuleDatamartTableAttribute returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getDatamartTableAttributeRule()); } |
| iv_ruleDatamartTableAttribute=ruleDatamartTableAttribute |
| { $current=$iv_ruleDatamartTableAttribute.current; } |
| EOF; |
| |
| // Rule DatamartTableAttribute |
| ruleDatamartTableAttribute returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAttributeAccess().getColumnTableValueElementParserRuleCall_0_0()); |
| } |
| lv_column_0_0=ruleTableValueElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| set( |
| $current, |
| "column", |
| lv_column_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableValueElement"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1()); |
| } |
| ( |
| ( |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 0)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 0); |
| } |
| ({true}?=>(otherlv_2='width' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTableAttributeAccess().getWidthKeyword_1_0_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAttributeAccess().getWidthValueUnsignedNumberParserRuleCall_1_0_1_0()); |
| } |
| lv_widthValue_3_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| set( |
| $current, |
| "widthValue", |
| lv_widthValue_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 1)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 1); |
| } |
| ({true}?=>(otherlv_4='style' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getDatamartTableAttributeAccess().getStyleKeyword_1_1_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| } |
| otherlv_5=RULE_ID |
| { |
| newLeafNode(otherlv_5, grammarAccess.getDatamartTableAttributeAccess().getStyleStyleCrossReference_1_1_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 2)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 2); |
| } |
| ({true}?=>(otherlv_6='intervals' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getDatamartTableAttributeAccess().getIntervalsKeyword_1_2_0()); |
| } |
| ( |
| ( |
| lv_hideLabelInterval_7_0='hidelabel' |
| { |
| newLeafNode(lv_hideLabelInterval_7_0, grammarAccess.getDatamartTableAttributeAccess().getHideLabelIntervalHidelabelKeyword_1_2_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| setWithLastConsumed($current, "hideLabelInterval", true, "hidelabel"); |
| } |
| ) |
| )? |
| otherlv_8='{' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getDatamartTableAttributeAccess().getLeftCurlyBracketKeyword_1_2_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAttributeAccess().getIntervalsTableIntervalParserRuleCall_1_2_3_0()); |
| } |
| lv_intervals_9_0=ruleTableInterval |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| add( |
| $current, |
| "intervals", |
| lv_intervals_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableInterval"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_10='}' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getDatamartTableAttributeAccess().getRightCurlyBracketKeyword_1_2_4()); |
| } |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 3)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1(), 3); |
| } |
| ({true}?=>(otherlv_11='lookups' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getDatamartTableAttributeAccess().getLookupsKeyword_1_3_0()); |
| } |
| ( |
| ( |
| lv_hideLabelLookup_12_0='hidelabel' |
| { |
| newLeafNode(lv_hideLabelLookup_12_0, grammarAccess.getDatamartTableAttributeAccess().getHideLabelLookupHidelabelKeyword_1_3_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| setWithLastConsumed($current, "hideLabelLookup", true, "hidelabel"); |
| } |
| ) |
| )? |
| otherlv_13='{' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getDatamartTableAttributeAccess().getLeftCurlyBracketKeyword_1_3_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getDatamartTableAttributeAccess().getLookupsTableLookupParserRuleCall_1_3_3_0()); |
| } |
| lv_lookups_14_0=ruleTableLookup |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getDatamartTableAttributeRule()); |
| } |
| add( |
| $current, |
| "lookups", |
| lv_lookups_14_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableLookup"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_15='}' |
| { |
| newLeafNode(otherlv_15, grammarAccess.getDatamartTableAttributeAccess().getRightCurlyBracketKeyword_1_3_4()); |
| } |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1()); |
| } |
| ) |
| ) |
| )* |
| ) |
| ) |
| { |
| getUnorderedGroupHelper().leave(grammarAccess.getDatamartTableAttributeAccess().getUnorderedGroup_1()); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableValueElement |
| entryRuleTableValueElement returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableValueElementRule()); } |
| iv_ruleTableValueElement=ruleTableValueElement |
| { $current=$iv_ruleTableValueElement.current; } |
| EOF; |
| |
| // Rule TableValueElement |
| ruleTableValueElement returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableAttributeParserRuleCall_0()); |
| } |
| this_TableAttribute_0=ruleTableAttribute |
| { |
| $current = $this_TableAttribute_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableAggregationParserRuleCall_1()); |
| } |
| this_TableAggregation_1=ruleTableAggregation |
| { |
| $current = $this_TableAggregation_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTableAttribute |
| entryRuleTableAttribute returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableAttributeRule()); } |
| iv_ruleTableAttribute=ruleTableAttribute |
| { $current=$iv_ruleTableAttribute.current; } |
| EOF; |
| |
| // Rule TableAttribute |
| ruleTableAttribute returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='attribute' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTableAttributeAccess().getAttributeKeyword_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableAttributeRule()); |
| } |
| } |
| otherlv_1=RULE_ID |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableAttributeAccess().getValueRefDatamartAttributeCrossReference_1_0()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableAggregation |
| entryRuleTableAggregation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableAggregationRule()); } |
| iv_ruleTableAggregation=ruleTableAggregation |
| { $current=$iv_ruleTableAggregation.current; } |
| EOF; |
| |
| // Rule TableAggregation |
| ruleTableAggregation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='aggregate' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTableAggregationAccess().getAggregateKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableAggregationAccess().getAggregationTableBaseAggregationParserRuleCall_1_0()); |
| } |
| lv_aggregation_1_0=ruleTableBaseAggregation |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableAggregationRule()); |
| } |
| set( |
| $current, |
| "aggregation", |
| lv_aggregation_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableBaseAggregation"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2()); |
| } |
| ( |
| ( |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2(), 0)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2(), 0); |
| } |
| ({true}?=>(otherlv_3='on-group' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getTableAggregationAccess().getOnGroupKeyword_2_0_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableAggregationRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getTableAggregationAccess().getOnGroupDatamartTableGroupCrossReference_2_0_1_0()); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2()); |
| } |
| ) |
| )| |
| ( |
| {getUnorderedGroupHelper().canSelect(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2(), 1)}?=>( |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2(), 1); |
| } |
| ({true}?=>(otherlv_5='title' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getTableAggregationAccess().getTitleKeyword_2_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableAggregationAccess().getTextTRANSLATABLESTRINGParserRuleCall_2_1_1_0()); |
| } |
| lv_text_6_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableAggregationRule()); |
| } |
| set( |
| $current, |
| "text", |
| lv_text_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )) |
| { |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2()); |
| } |
| ) |
| ) |
| )* |
| ) |
| ) |
| { |
| getUnorderedGroupHelper().leave(grammarAccess.getTableAggregationAccess().getUnorderedGroup_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableBaseAggregation |
| entryRuleTableBaseAggregation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableBaseAggregationRule()); } |
| iv_ruleTableBaseAggregation=ruleTableBaseAggregation |
| { $current=$iv_ruleTableBaseAggregation.current; } |
| EOF; |
| |
| // Rule TableBaseAggregation |
| ruleTableBaseAggregation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableBaseAggregationAccess().getTablePureAggregationParserRuleCall_0()); |
| } |
| this_TablePureAggregation_0=ruleTablePureAggregation |
| { |
| $current = $this_TablePureAggregation_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableBaseAggregationAccess().getTableUnaryAggregationParserRuleCall_1()); |
| } |
| this_TableUnaryAggregation_1=ruleTableUnaryAggregation |
| { |
| $current = $this_TableUnaryAggregation_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableBaseAggregationAccess().getTableMultipleAggregationParserRuleCall_2()); |
| } |
| this_TableMultipleAggregation_2=ruleTableMultipleAggregation |
| { |
| $current = $this_TableMultipleAggregation_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableBaseAggregationAccess().getTableBinaryAggregationParserRuleCall_3()); |
| } |
| this_TableBinaryAggregation_3=ruleTableBinaryAggregation |
| { |
| $current = $this_TableBinaryAggregation_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTablePureAggregation |
| entryRuleTablePureAggregation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTablePureAggregationRule()); } |
| iv_ruleTablePureAggregation=ruleTablePureAggregation |
| { $current=$iv_ruleTablePureAggregation.current; } |
| EOF; |
| |
| // Rule TablePureAggregation |
| ruleTablePureAggregation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTablePureAggregationAccess().getAggregationPureAggregationTypeEnumEnumRuleCall_0()); |
| } |
| lv_aggregation_0_0=rulePureAggregationTypeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTablePureAggregationRule()); |
| } |
| set( |
| $current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.PureAggregationTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableUnaryAggregation |
| entryRuleTableUnaryAggregation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableUnaryAggregationRule()); } |
| iv_ruleTableUnaryAggregation=ruleTableUnaryAggregation |
| { $current=$iv_ruleTableUnaryAggregation.current; } |
| EOF; |
| |
| // Rule TableUnaryAggregation |
| ruleTableUnaryAggregation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableUnaryAggregationAccess().getAggregationUnaryAggregationTypeEnumEnumRuleCall_0_0()); |
| } |
| lv_aggregation_0_0=ruleUnaryAggregationTypeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableUnaryAggregationRule()); |
| } |
| set( |
| $current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnaryAggregationTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableUnaryAggregationRule()); |
| } |
| } |
| otherlv_1=RULE_ID |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableUnaryAggregationAccess().getValueRefsDatamartAttributeCrossReference_1_0()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableMultipleAggregation |
| entryRuleTableMultipleAggregation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableMultipleAggregationRule()); } |
| iv_ruleTableMultipleAggregation=ruleTableMultipleAggregation |
| { $current=$iv_ruleTableMultipleAggregation.current; } |
| EOF; |
| |
| // Rule TableMultipleAggregation |
| ruleTableMultipleAggregation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableMultipleAggregationAccess().getAggregationMultipleAggregationTypeEnumEnumRuleCall_0_0()); |
| } |
| lv_aggregation_0_0=ruleMultipleAggregationTypeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableMultipleAggregationRule()); |
| } |
| set( |
| $current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.MultipleAggregationTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_1='(' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableMultipleAggregationAccess().getLeftParenthesisKeyword_1()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableMultipleAggregationRule()); |
| } |
| } |
| otherlv_2=RULE_ID |
| { |
| newLeafNode(otherlv_2, grammarAccess.getTableMultipleAggregationAccess().getValueRefsDatamartAttributeCrossReference_2_0()); |
| } |
| ) |
| )* |
| otherlv_3=')' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getTableMultipleAggregationAccess().getRightParenthesisKeyword_3()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleStringBinderValue |
| entryRuleStringBinderValue returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getStringBinderValueRule()); } |
| iv_ruleStringBinderValue=ruleStringBinderValue |
| { $current=$iv_ruleStringBinderValue.current; } |
| EOF; |
| |
| // Rule StringBinderValue |
| ruleStringBinderValue returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getStringBinderValueAccess().getTableAttributeParserRuleCall_0()); |
| } |
| this_TableAttribute_0=ruleTableAttribute |
| { |
| $current = $this_TableAttribute_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getStringBinderValueAccess().getTranslatableTextParserRuleCall_1()); |
| } |
| this_TranslatableText_1=ruleTranslatableText |
| { |
| $current = $this_TranslatableText_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getStringBinderValueAccess().getNonTranslatableTextParserRuleCall_2()); |
| } |
| this_NonTranslatableText_2=ruleNonTranslatableText |
| { |
| $current = $this_NonTranslatableText_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTranslatableText |
| entryRuleTranslatableText returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTranslatableTextRule()); } |
| iv_ruleTranslatableText=ruleTranslatableText |
| { $current=$iv_ruleTranslatableText.current; } |
| EOF; |
| |
| // Rule TranslatableText |
| ruleTranslatableText returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='translatable' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTranslatableTextAccess().getTranslatableKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTranslatableTextAccess().getValueTRANSLATABLESTRINGParserRuleCall_1_0()); |
| } |
| lv_value_1_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTranslatableTextRule()); |
| } |
| set( |
| $current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleNonTranslatableText |
| entryRuleNonTranslatableText returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getNonTranslatableTextRule()); } |
| iv_ruleNonTranslatableText=ruleNonTranslatableText |
| { $current=$iv_ruleNonTranslatableText.current; } |
| EOF; |
| |
| // Rule NonTranslatableText |
| ruleNonTranslatableText returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='nontranslatable' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getNonTranslatableTextAccess().getNontranslatableKeyword_0()); |
| } |
| ( |
| ( |
| lv_value_1_0=RULE_STRING |
| { |
| newLeafNode(lv_value_1_0, grammarAccess.getNonTranslatableTextAccess().getValueSTRINGTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getNonTranslatableTextRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleStringBinder |
| entryRuleStringBinder returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getStringBinderRule()); } |
| iv_ruleStringBinder=ruleStringBinder |
| { $current=$iv_ruleStringBinder.current; } |
| EOF; |
| |
| // Rule StringBinder |
| ruleStringBinder returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getStringBinderAccess().getStringBinderAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='stringBinder' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getStringBinderAccess().getStringBinderKeyword_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getStringBinderAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getStringBinderAccess().getElementsStringBinderValueParserRuleCall_3_0()); |
| } |
| lv_elements_3_0=ruleStringBinderValue |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getStringBinderRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.StringBinderValue"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_4=')' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getStringBinderAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| otherlv_5='style' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getStringBinderAccess().getStyleKeyword_5_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getStringBinderRule()); |
| } |
| } |
| otherlv_6=RULE_ID |
| { |
| newLeafNode(otherlv_6, grammarAccess.getStringBinderAccess().getStyleStyleCrossReference_5_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRulePageBreak |
| entryRulePageBreak returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getPageBreakRule()); } |
| iv_rulePageBreak=rulePageBreak |
| { $current=$iv_rulePageBreak.current; } |
| EOF; |
| |
| // Rule PageBreak |
| rulePageBreak returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getPageBreakAccess().getPageBreakAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='pageBreak' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getPageBreakAccess().getPageBreakKeyword_1()); |
| } |
| ( |
| otherlv_2='before' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getPageBreakAccess().getBeforeKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageBreakAccess().getBeforePageBreakBeforeAfterPageBreakEnumEnumRuleCall_2_1_0()); |
| } |
| lv_beforePageBreak_3_0=ruleBeforeAfterPageBreakEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageBreakRule()); |
| } |
| set( |
| $current, |
| "beforePageBreak", |
| lv_beforePageBreak_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BeforeAfterPageBreakEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='after' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getPageBreakAccess().getAfterKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageBreakAccess().getAfterPageBreakBeforeAfterPageBreakEnumEnumRuleCall_3_1_0()); |
| } |
| lv_afterPageBreak_5_0=ruleBeforeAfterPageBreakEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageBreakRule()); |
| } |
| set( |
| $current, |
| "afterPageBreak", |
| lv_afterPageBreak_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BeforeAfterPageBreakEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_6='inside' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getPageBreakAccess().getInsideKeyword_4_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getPageBreakAccess().getInsidePageBreakInsidePageBreakEnumEnumRuleCall_4_1_0()); |
| } |
| lv_insidePageBreak_7_0=ruleInsidePageBreakEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getPageBreakRule()); |
| } |
| set( |
| $current, |
| "insidePageBreak", |
| lv_insidePageBreak_7_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.InsidePageBreakEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleTableBinaryAggregation |
| entryRuleTableBinaryAggregation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableBinaryAggregationRule()); } |
| iv_ruleTableBinaryAggregation=ruleTableBinaryAggregation |
| { $current=$iv_ruleTableBinaryAggregation.current; } |
| EOF; |
| |
| // Rule TableBinaryAggregation |
| ruleTableBinaryAggregation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableBinaryAggregationAccess().getAggregationBinaryAggregationTypeEnumEnumRuleCall_0_0()); |
| } |
| lv_aggregation_0_0=ruleBinaryAggregationTypeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableBinaryAggregationRule()); |
| } |
| set( |
| $current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.BinaryAggregationTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_1='(' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableBinaryAggregationAccess().getLeftParenthesisKeyword_1()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableBinaryAggregationRule()); |
| } |
| } |
| otherlv_2=RULE_ID |
| { |
| newLeafNode(otherlv_2, grammarAccess.getTableBinaryAggregationAccess().getValueRefsDatamartAttributeCrossReference_2_0()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableBinaryAggregationRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getTableBinaryAggregationAccess().getValueRefsDatamartAttributeCrossReference_3_0()); |
| } |
| ) |
| ) |
| otherlv_4=')' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getTableBinaryAggregationAccess().getRightParenthesisKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTableInterval |
| entryRuleTableInterval returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableIntervalRule()); } |
| iv_ruleTableInterval=ruleTableInterval |
| { $current=$iv_ruleTableInterval.current; } |
| EOF; |
| |
| // Rule TableInterval |
| ruleTableInterval returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableIntervalAccess().getTableNumberIntervalParserRuleCall_0()); |
| } |
| this_TableNumberInterval_0=ruleTableNumberInterval |
| { |
| $current = $this_TableNumberInterval_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableIntervalAccess().getTableDateDayIntervalParserRuleCall_1()); |
| } |
| this_TableDateDayInterval_1=ruleTableDateDayInterval |
| { |
| $current = $this_TableDateDayInterval_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTableNumberInterval |
| entryRuleTableNumberInterval returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableNumberIntervalRule()); } |
| iv_ruleTableNumberInterval=ruleTableNumberInterval |
| { $current=$iv_ruleTableNumberInterval.current; } |
| EOF; |
| |
| // Rule TableNumberInterval |
| ruleTableNumberInterval returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTableNumberIntervalAccess().getTableNumberIntervalAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='upTo' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableNumberIntervalAccess().getUpToKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableNumberIntervalAccess().getNumberIntervalValueSignedNumberParserRuleCall_2_0()); |
| } |
| lv_numberIntervalValue_2_0=ruleSignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableNumberIntervalRule()); |
| } |
| set( |
| $current, |
| "numberIntervalValue", |
| lv_numberIntervalValue_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableNumberIntervalAccess().getNumberRangeTableRangeElementParserRuleCall_3_0()); |
| } |
| lv_numberRange_3_0=ruleTableRangeElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableNumberIntervalRule()); |
| } |
| set( |
| $current, |
| "numberRange", |
| lv_numberRange_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableDateDayInterval |
| entryRuleTableDateDayInterval returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableDateDayIntervalRule()); } |
| iv_ruleTableDateDayInterval=ruleTableDateDayInterval |
| { $current=$iv_ruleTableDateDayInterval.current; } |
| EOF; |
| |
| // Rule TableDateDayInterval |
| ruleTableDateDayInterval returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTableDateDayIntervalAccess().getTableDateDayIntervalAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='daysInPast' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableDateDayIntervalAccess().getDaysInPastKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableDateDayIntervalAccess().getDateIntervalValueSignedNumberParserRuleCall_2_0()); |
| } |
| lv_dateIntervalValue_2_0=ruleSignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableDateDayIntervalRule()); |
| } |
| set( |
| $current, |
| "dateIntervalValue", |
| lv_dateIntervalValue_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableDateDayIntervalAccess().getDateRangeTableRangeElementParserRuleCall_3_0()); |
| } |
| lv_dateRange_3_0=ruleTableRangeElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableDateDayIntervalRule()); |
| } |
| set( |
| $current, |
| "dateRange", |
| lv_dateRange_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableLookup |
| entryRuleTableLookup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableLookupRule()); } |
| iv_ruleTableLookup=ruleTableLookup |
| { $current=$iv_ruleTableLookup.current; } |
| EOF; |
| |
| // Rule TableLookup |
| ruleTableLookup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableNumberLookupParserRuleCall_0()); |
| } |
| this_TableNumberLookup_0=ruleTableNumberLookup |
| { |
| $current = $this_TableNumberLookup_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableStringLookupParserRuleCall_1()); |
| } |
| this_TableStringLookup_1=ruleTableStringLookup |
| { |
| $current = $this_TableStringLookup_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableDateDayLookupParserRuleCall_2()); |
| } |
| this_TableDateDayLookup_2=ruleTableDateDayLookup |
| { |
| $current = $this_TableDateDayLookup_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTableNumberLookup |
| entryRuleTableNumberLookup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableNumberLookupRule()); } |
| iv_ruleTableNumberLookup=ruleTableNumberLookup |
| { $current=$iv_ruleTableNumberLookup.current; } |
| EOF; |
| |
| // Rule TableNumberLookup |
| ruleTableNumberLookup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTableNumberLookupAccess().getTableNumberLookupAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='number' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableNumberLookupAccess().getNumberKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableNumberLookupAccess().getLookupValueSignedNumberParserRuleCall_2_0()); |
| } |
| lv_lookupValue_2_0=ruleSignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableNumberLookupRule()); |
| } |
| set( |
| $current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableNumberLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| } |
| lv_discrete_3_0=ruleTableRangeElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableNumberLookupRule()); |
| } |
| set( |
| $current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableStringLookup |
| entryRuleTableStringLookup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableStringLookupRule()); } |
| iv_ruleTableStringLookup=ruleTableStringLookup |
| { $current=$iv_ruleTableStringLookup.current; } |
| EOF; |
| |
| // Rule TableStringLookup |
| ruleTableStringLookup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTableStringLookupAccess().getTableStringLookupAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='string' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableStringLookupAccess().getStringKeyword_1()); |
| } |
| ( |
| ( |
| lv_lookupValue_2_0=RULE_STRING |
| { |
| newLeafNode(lv_lookupValue_2_0, grammarAccess.getTableStringLookupAccess().getLookupValueSTRINGTerminalRuleCall_2_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableStringLookupRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableStringLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| } |
| lv_discrete_3_0=ruleTableRangeElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableStringLookupRule()); |
| } |
| set( |
| $current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableDateDayLookup |
| entryRuleTableDateDayLookup returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableDateDayLookupRule()); } |
| iv_ruleTableDateDayLookup=ruleTableDateDayLookup |
| { $current=$iv_ruleTableDateDayLookup.current; } |
| EOF; |
| |
| // Rule TableDateDayLookup |
| ruleTableDateDayLookup returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTableDateDayLookupAccess().getTableDateDayLookupAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='daysInPast' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableDateDayLookupAccess().getDaysInPastKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableDateDayLookupAccess().getLookupValueSignedNumberParserRuleCall_2_0()); |
| } |
| lv_lookupValue_2_0=ruleSignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableDateDayLookupRule()); |
| } |
| set( |
| $current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableDateDayLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| } |
| lv_discrete_3_0=ruleTableRangeElement |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableDateDayLookupRule()); |
| } |
| set( |
| $current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableRangeElement |
| entryRuleTableRangeElement returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableRangeElementRule()); } |
| iv_ruleTableRangeElement=ruleTableRangeElement |
| { $current=$iv_ruleTableRangeElement.current; } |
| EOF; |
| |
| // Rule TableRangeElement |
| ruleTableRangeElement returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableTextColorParserRuleCall_0()); |
| } |
| this_TableTextColor_0=ruleTableTextColor |
| { |
| $current = $this_TableTextColor_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableCellColorParserRuleCall_1()); |
| } |
| this_TableCellColor_1=ruleTableCellColor |
| { |
| $current = $this_TableCellColor_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableIconParserRuleCall_2()); |
| } |
| this_TableIcon_2=ruleTableIcon |
| { |
| $current = $this_TableIcon_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableTrendParserRuleCall_3()); |
| } |
| this_TableTrend_3=ruleTableTrend |
| { |
| $current = $this_TableTrend_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleVisibility |
| entryRuleVisibility returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getVisibilityRule()); } |
| iv_ruleVisibility=ruleVisibility |
| { $current=$iv_ruleVisibility.current; } |
| EOF; |
| |
| // Rule Visibility |
| ruleVisibility returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| lv_visibility_0_0='visibility' |
| { |
| newLeafNode(lv_visibility_0_0, grammarAccess.getVisibilityAccess().getVisibilityVisibilityKeyword_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getVisibilityRule()); |
| } |
| setWithLastConsumed($current, "visibility", true, "visibility"); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getVisibilityRule()); |
| } |
| } |
| otherlv_1=RULE_ID |
| { |
| newLeafNode(otherlv_1, grammarAccess.getVisibilityAccess().getVisibilityAttributeDatamartAttributeCrossReference_1_0()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleSignedNumber |
| entryRuleSignedNumber returns [String current=null]: |
| { newCompositeNode(grammarAccess.getSignedNumberRule()); } |
| iv_ruleSignedNumber=ruleSignedNumber |
| { $current=$iv_ruleSignedNumber.current.getText(); } |
| EOF; |
| |
| // Rule SignedNumber |
| ruleSignedNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| kw='-' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getSignedNumberAccess().getHyphenMinusKeyword_0()); |
| } |
| )? |
| { |
| newCompositeNode(grammarAccess.getSignedNumberAccess().getNumberParserRuleCall_1()); |
| } |
| this_Number_1=ruleNumber |
| { |
| $current.merge(this_Number_1); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleTableTextColor |
| entryRuleTableTextColor returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableTextColorRule()); } |
| iv_ruleTableTextColor=ruleTableTextColor |
| { $current=$iv_ruleTableTextColor.current; } |
| EOF; |
| |
| // Rule TableTextColor |
| ruleTableTextColor returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='textcolor' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTableTextColorAccess().getTextcolorKeyword_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableTextColorRule()); |
| } |
| } |
| otherlv_1=RULE_ID |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableTextColorAccess().getColorColorCrossReference_1_0()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableCellColor |
| entryRuleTableCellColor returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableCellColorRule()); } |
| iv_ruleTableCellColor=ruleTableCellColor |
| { $current=$iv_ruleTableCellColor.current; } |
| EOF; |
| |
| // Rule TableCellColor |
| ruleTableCellColor returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='cellcolor' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTableCellColorAccess().getCellcolorKeyword_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableCellColorRule()); |
| } |
| } |
| otherlv_1=RULE_ID |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTableCellColorAccess().getColorColorCrossReference_1_0()); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableIcon |
| entryRuleTableIcon returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableIconRule()); } |
| iv_ruleTableIcon=ruleTableIcon |
| { $current=$iv_ruleTableIcon.current; } |
| EOF; |
| |
| // Rule TableIcon |
| ruleTableIcon returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='icon' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTableIconAccess().getIconKeyword_0()); |
| } |
| ( |
| ( |
| lv_icon_1_0=RULE_STRING |
| { |
| newLeafNode(lv_icon_1_0, grammarAccess.getTableIconAccess().getIconSTRINGTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTableIconRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "icon", |
| lv_icon_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTableTrend |
| entryRuleTableTrend returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTableTrendRule()); } |
| iv_ruleTableTrend=ruleTableTrend |
| { $current=$iv_ruleTableTrend.current; } |
| EOF; |
| |
| // Rule TableTrend |
| ruleTableTrend returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='trend' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getTableTrendAccess().getTrendKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTableTrendAccess().getIconTrendIconEnumEnumRuleCall_1_0()); |
| } |
| lv_icon_1_0=ruleTrendIconEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTableTrendRule()); |
| } |
| set( |
| $current, |
| "icon", |
| lv_icon_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TrendIconEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTitle |
| entryRuleTitle returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTitleRule()); } |
| iv_ruleTitle=ruleTitle |
| { $current=$iv_ruleTitle.current; } |
| EOF; |
| |
| // Rule Title |
| ruleTitle returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTitleAccess().getTitleAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='title' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTitleAccess().getTitleKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTitleAccess().getTextTRANSLATABLESTRINGParserRuleCall_2_0()); |
| } |
| lv_text_2_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTitleRule()); |
| } |
| set( |
| $current, |
| "text", |
| lv_text_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3='style' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getTitleAccess().getStyleKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTitleRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getTitleAccess().getStyleStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleSubTitle |
| entryRuleSubTitle returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getSubTitleRule()); } |
| iv_ruleSubTitle=ruleSubTitle |
| { $current=$iv_ruleSubTitle.current; } |
| EOF; |
| |
| // Rule SubTitle |
| ruleSubTitle returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getSubTitleAccess().getSubTitleAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='subtitle' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getSubTitleAccess().getSubtitleKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getSubTitleAccess().getTextTRANSLATABLESTRINGParserRuleCall_2_0()); |
| } |
| lv_text_2_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getSubTitleRule()); |
| } |
| set( |
| $current, |
| "text", |
| lv_text_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3='style' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getSubTitleAccess().getStyleKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getSubTitleRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getSubTitleAccess().getStyleStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleSubSubTitle |
| entryRuleSubSubTitle returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getSubSubTitleRule()); } |
| iv_ruleSubSubTitle=ruleSubSubTitle |
| { $current=$iv_ruleSubSubTitle.current; } |
| EOF; |
| |
| // Rule SubSubTitle |
| ruleSubSubTitle returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getSubSubTitleAccess().getSubSubTitleAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='subsubtitle' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getSubSubTitleAccess().getSubsubtitleKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getSubSubTitleAccess().getTextTRANSLATABLESTRINGParserRuleCall_2_0()); |
| } |
| lv_text_2_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getSubSubTitleRule()); |
| } |
| set( |
| $current, |
| "text", |
| lv_text_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3='style' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getSubSubTitleAccess().getStyleKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getSubSubTitleRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getSubSubTitleAccess().getStyleStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleLabel |
| entryRuleLabel returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getLabelRule()); } |
| iv_ruleLabel=ruleLabel |
| { $current=$iv_ruleLabel.current; } |
| EOF; |
| |
| // Rule Label |
| ruleLabel returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getLabelAccess().getLabelAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='label' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getLabelAccess().getLabelKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getLabelAccess().getTextTRANSLATABLESTRINGParserRuleCall_2_0()); |
| } |
| lv_text_2_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getLabelRule()); |
| } |
| set( |
| $current, |
| "text", |
| lv_text_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3='style' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getLabelAccess().getStyleKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getLabelRule()); |
| } |
| } |
| otherlv_4=RULE_ID |
| { |
| newLeafNode(otherlv_4, grammarAccess.getLabelAccess().getStyleStyleCrossReference_3_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleText |
| entryRuleText returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getTextRule()); } |
| iv_ruleText=ruleText |
| { $current=$iv_ruleText.current; } |
| EOF; |
| |
| // Rule Text |
| ruleText returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getTextAccess().getTextAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='text' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getTextAccess().getTextKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTextAccess().getTextContentTypeTextContentTypeEnumEnumRuleCall_2_0()); |
| } |
| lv_textContentType_2_0=ruleTextContentTypeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTextRule()); |
| } |
| set( |
| $current, |
| "textContentType", |
| lv_textContentType_2_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TextContentTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getTextAccess().getTextTRANSLATABLESTRINGParserRuleCall_3_0()); |
| } |
| lv_text_3_0=ruleTRANSLATABLESTRING |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getTextRule()); |
| } |
| set( |
| $current, |
| "text", |
| lv_text_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4='style' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getTextAccess().getStyleKeyword_4_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getTextRule()); |
| } |
| } |
| otherlv_5=RULE_ID |
| { |
| newLeafNode(otherlv_5, grammarAccess.getTextAccess().getStyleStyleCrossReference_4_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleAutoText |
| entryRuleAutoText returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getAutoTextRule()); } |
| iv_ruleAutoText=ruleAutoText |
| { $current=$iv_ruleAutoText.current; } |
| EOF; |
| |
| // Rule AutoText |
| ruleAutoText returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='autotext' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getAutoTextAccess().getAutotextKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getAutoTextAccess().getTypeAutoTextEnumEnumRuleCall_1_0()); |
| } |
| lv_type_1_0=ruleAutoTextEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getAutoTextRule()); |
| } |
| set( |
| $current, |
| "type", |
| lv_type_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.AutoTextEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_2='style' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getAutoTextAccess().getStyleKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getAutoTextRule()); |
| } |
| } |
| otherlv_3=RULE_ID |
| { |
| newLeafNode(otherlv_3, grammarAccess.getAutoTextAccess().getStyleStyleCrossReference_2_1_0()); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleImage |
| entryRuleImage returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getImageRule()); } |
| iv_ruleImage=ruleImage |
| { $current=$iv_ruleImage.current; } |
| EOF; |
| |
| // Rule Image |
| ruleImage returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='image' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getImageAccess().getImageKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getSizeImageSizeEnumEnumRuleCall_1_0()); |
| } |
| lv_size_1_0=ruleImageSizeEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "size", |
| lv_size_1_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.ImageSizeEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| otherlv_2='scale' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getImageAccess().getScaleKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getScaleUnsignedNumberParserRuleCall_2_1_0()); |
| } |
| lv_scale_3_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "scale", |
| lv_scale_3_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_4='height' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getImageAccess().getHeightKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getHeightValueUnsignedNumberParserRuleCall_3_1_0()); |
| } |
| lv_heightValue_5_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "heightValue", |
| lv_heightValue_5_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getHeightUnitUnitEnumEnumRuleCall_3_2_0()); |
| } |
| lv_heightUnit_6_0=ruleUnitEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "heightUnit", |
| lv_heightUnit_6_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnitEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| otherlv_7='width' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getImageAccess().getWidthKeyword_4_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getWidthValueUnsignedNumberParserRuleCall_4_1_0()); |
| } |
| lv_widthValue_8_0=ruleUnsignedNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "widthValue", |
| lv_widthValue_8_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getWidthUnitUnitEnumEnumRuleCall_4_2_0()); |
| } |
| lv_widthUnit_9_0=ruleUnitEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "widthUnit", |
| lv_widthUnit_9_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnitEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getImageAccess().getSourceTypeImageSourceEnumEnumRuleCall_5_0()); |
| } |
| lv_sourceType_10_0=ruleImageSourceEnum |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getImageRule()); |
| } |
| set( |
| $current, |
| "sourceType", |
| lv_sourceType_10_0, |
| "org.eclipse.osbp.xtext.reportdsl.ReportDSL.ImageSourceEnum"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| lv_filename_11_0=RULE_STRING |
| { |
| newLeafNode(lv_filename_11_0, grammarAccess.getImageAccess().getFilenameSTRINGTerminalRuleCall_6_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getImageRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "filename", |
| lv_filename_11_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleTRANSLATABLESTRING |
| entryRuleTRANSLATABLESTRING returns [String current=null]: |
| { newCompositeNode(grammarAccess.getTRANSLATABLESTRINGRule()); } |
| iv_ruleTRANSLATABLESTRING=ruleTRANSLATABLESTRING |
| { $current=$iv_ruleTRANSLATABLESTRING.current.getText(); } |
| EOF; |
| |
| // Rule TRANSLATABLESTRING |
| ruleTRANSLATABLESTRING returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| this_STRING_0=RULE_STRING |
| { |
| $current.merge(this_STRING_0); |
| } |
| { |
| newLeafNode(this_STRING_0, grammarAccess.getTRANSLATABLESTRINGAccess().getSTRINGTerminalRuleCall()); |
| } |
| ; |
| |
| // 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, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpOther |
| entryRuleOpOther returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpOtherRule()); } |
| iv_ruleOpOther=ruleOpOther |
| { $current=$iv_ruleOpOther.current.getText(); } |
| EOF; |
| |
| // Rule OpOther |
| ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='->' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| } |
| | |
| kw='..<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| } |
| | |
| ( |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| } |
| kw='..' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| } |
| ) |
| | |
| kw='..' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| } |
| | |
| kw='=>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| } |
| | |
| ( |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| } |
| ( |
| ( |
| (( |
| '>' |
| '>' |
| ) |
| )=> |
| ( |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); |
| } |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); |
| } |
| ) |
| ) |
| | |
| kw='>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); |
| } |
| ) |
| ) |
| | |
| ( |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| } |
| ( |
| ( |
| (( |
| '<' |
| '<' |
| ) |
| )=> |
| ( |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); |
| } |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); |
| } |
| ) |
| ) |
| | |
| kw='<' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); |
| } |
| | |
| kw='=>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); |
| } |
| ) |
| ) |
| | |
| kw='<>' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| } |
| | |
| kw='?:' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXAdditiveExpression |
| entryRuleXAdditiveExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); } |
| iv_ruleXAdditiveExpression=ruleXAdditiveExpression |
| { $current=$iv_ruleXAdditiveExpression.current; } |
| EOF; |
| |
| // Rule XAdditiveExpression |
| ruleXAdditiveExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| } |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression |
| { |
| $current = $this_XMultiplicativeExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpAdd |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| } |
| ruleOpAdd |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| } |
| lv_rightOperand_3_0=ruleXMultiplicativeExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpAdd |
| entryRuleOpAdd returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpAddRule()); } |
| iv_ruleOpAdd=ruleOpAdd |
| { $current=$iv_ruleOpAdd.current.getText(); } |
| EOF; |
| |
| // Rule OpAdd |
| ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='+' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| } |
| | |
| kw='-' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXMultiplicativeExpression |
| entryRuleXMultiplicativeExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); } |
| iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression |
| { $current=$iv_ruleXMultiplicativeExpression.current; } |
| EOF; |
| |
| // Rule XMultiplicativeExpression |
| ruleXMultiplicativeExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| } |
| this_XUnaryOperation_0=ruleXUnaryOperation |
| { |
| $current = $this_XUnaryOperation_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpMulti |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| } |
| ruleOpMulti |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| } |
| lv_rightOperand_3_0=ruleXUnaryOperation |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| set( |
| $current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleOpMulti |
| entryRuleOpMulti returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpMultiRule()); } |
| iv_ruleOpMulti=ruleOpMulti |
| { $current=$iv_ruleOpMulti.current.getText(); } |
| EOF; |
| |
| // Rule OpMulti |
| ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='*' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| } |
| | |
| kw='**' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| } |
| | |
| kw='/' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| } |
| | |
| kw='%' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXUnaryOperation |
| entryRuleXUnaryOperation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXUnaryOperationRule()); } |
| iv_ruleXUnaryOperation=ruleXUnaryOperation |
| { $current=$iv_ruleXUnaryOperation.current; } |
| EOF; |
| |
| // Rule XUnaryOperation |
| ruleXUnaryOperation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXUnaryOperationRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| } |
| ruleOpUnary |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); |
| } |
| lv_operand_2_0=ruleXUnaryOperation |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXUnaryOperationRule()); |
| } |
| set( |
| $current, |
| "operand", |
| lv_operand_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| | |
| { |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); |
| } |
| this_XCastedExpression_3=ruleXCastedExpression |
| { |
| $current = $this_XCastedExpression_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleOpUnary |
| entryRuleOpUnary returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpUnaryRule()); } |
| iv_ruleOpUnary=ruleOpUnary |
| { $current=$iv_ruleOpUnary.current.getText(); } |
| EOF; |
| |
| // Rule OpUnary |
| ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='!' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| } |
| | |
| kw='-' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| } |
| | |
| kw='+' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXCastedExpression |
| entryRuleXCastedExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXCastedExpressionRule()); } |
| iv_ruleXCastedExpression=ruleXCastedExpression |
| { $current=$iv_ruleXCastedExpression.current; } |
| EOF; |
| |
| // Rule XCastedExpression |
| ruleXCastedExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); |
| } |
| this_XPostfixOperation_0=ruleXPostfixOperation |
| { |
| $current = $this_XPostfixOperation_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| 'as' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_2='as' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| } |
| lv_type_3_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXCastedExpressionRule()); |
| } |
| set( |
| $current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleXPostfixOperation |
| entryRuleXPostfixOperation returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXPostfixOperationRule()); } |
| iv_ruleXPostfixOperation=ruleXPostfixOperation |
| { $current=$iv_ruleXPostfixOperation.current; } |
| EOF; |
| |
| // Rule XPostfixOperation |
| ruleXPostfixOperation returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| } |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall |
| { |
| $current = $this_XMemberFeatureCall_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ruleOpPostfix |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXPostfixOperationRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); |
| } |
| ruleOpPostfix |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleOpPostfix |
| entryRuleOpPostfix returns [String current=null]: |
| { newCompositeNode(grammarAccess.getOpPostfixRule()); } |
| iv_ruleOpPostfix=ruleOpPostfix |
| { $current=$iv_ruleOpPostfix.current.getText(); } |
| EOF; |
| |
| // Rule OpPostfix |
| ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='++' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| } |
| | |
| kw='--' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXMemberFeatureCall |
| entryRuleXMemberFeatureCall returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); } |
| iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall |
| { $current=$iv_ruleXMemberFeatureCall.current; } |
| EOF; |
| |
| // Rule XMemberFeatureCall |
| ruleXMemberFeatureCall returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); |
| } |
| this_XPrimaryExpression_0=ruleXPrimaryExpression |
| { |
| $current = $this_XPrimaryExpression_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| '.' |
| | |
| ( |
| ( |
| '::' |
| ) |
| ) |
| ) |
| ( |
| ( |
| ruleFeatureCallID |
| ) |
| ) |
| ruleOpSingleAssign |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| otherlv_2='.' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| } |
| | |
| ( |
| ( |
| lv_explicitStatic_3_0='::' |
| { |
| newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed($current, "explicitStatic", true, "::"); |
| } |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); |
| } |
| ruleFeatureCallID |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); |
| } |
| ruleOpSingleAssign |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| } |
| lv_value_6_0=ruleXAssignment |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| set( |
| $current, |
| "value", |
| lv_value_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| '.' |
| | |
| ( |
| ( |
| '?.' |
| ) |
| ) |
| | |
| ( |
| ( |
| '::' |
| ) |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| otherlv_8='.' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| } |
| | |
| ( |
| ( |
| lv_nullSafe_9_0='?.' |
| { |
| newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed($current, "nullSafe", true, "?."); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| lv_explicitStatic_10_0='::' |
| { |
| newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed($current, "explicitStatic", true, "::"); |
| } |
| ) |
| ) |
| ) |
| ) |
| ) |
| ( |
| otherlv_11='<' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| } |
| lv_typeArguments_12_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| $current, |
| "typeArguments", |
| lv_typeArguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_13=',' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| } |
| lv_typeArguments_14_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| $current, |
| "typeArguments", |
| lv_typeArguments_14_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_15='>' |
| { |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| } |
| )? |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); |
| } |
| ruleIdOrSuper |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| (( |
| '(' |
| ) |
| )=> |
| ( |
| lv_explicitOperationCall_17_0='(' |
| { |
| newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed($current, "explicitOperationCall", true, "("); |
| } |
| ) |
| ) |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ( |
| ',' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| '|' |
| ) |
| ) |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| } |
| lv_memberCallArguments_18_0=ruleXShortClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| $current, |
| "memberCallArguments", |
| lv_memberCallArguments_18_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| } |
| lv_memberCallArguments_19_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| $current, |
| "memberCallArguments", |
| lv_memberCallArguments_19_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_20=',' |
| { |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| } |
| lv_memberCallArguments_21_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| $current, |
| "memberCallArguments", |
| lv_memberCallArguments_21_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| )? |
| otherlv_22=')' |
| { |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| } |
| )? |
| ( |
| (( |
| ( |
| ) |
| '[' |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| } |
| lv_memberCallArguments_23_0=ruleXClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| $current, |
| "memberCallArguments", |
| lv_memberCallArguments_23_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ) |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleXPrimaryExpression |
| entryRuleXPrimaryExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); } |
| iv_ruleXPrimaryExpression=ruleXPrimaryExpression |
| { $current=$iv_ruleXPrimaryExpression.current; } |
| EOF; |
| |
| // Rule XPrimaryExpression |
| ruleXPrimaryExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); |
| } |
| this_XConstructorCall_0=ruleXConstructorCall |
| { |
| $current = $this_XConstructorCall_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); |
| } |
| this_XBlockExpression_1=ruleXBlockExpression |
| { |
| $current = $this_XBlockExpression_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); |
| } |
| this_XSwitchExpression_2=ruleXSwitchExpression |
| { |
| $current = $this_XSwitchExpression_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| ( |
| (( |
| ( |
| ) |
| 'synchronized' |
| '(' |
| ) |
| )=> |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); |
| } |
| this_XSynchronizedExpression_3=ruleXSynchronizedExpression |
| { |
| $current = $this_XSynchronizedExpression_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); |
| } |
| this_XFeatureCall_4=ruleXFeatureCall |
| { |
| $current = $this_XFeatureCall_4.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); |
| } |
| this_XLiteral_5=ruleXLiteral |
| { |
| $current = $this_XLiteral_5.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); |
| } |
| this_XIfExpression_6=ruleXIfExpression |
| { |
| $current = $this_XIfExpression_6.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| ( |
| (( |
| ( |
| ) |
| 'for' |
| '(' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ':' |
| ) |
| )=> |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); |
| } |
| this_XForLoopExpression_7=ruleXForLoopExpression |
| { |
| $current = $this_XForLoopExpression_7.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); |
| } |
| this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression |
| { |
| $current = $this_XBasicForLoopExpression_8.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); |
| } |
| this_XWhileExpression_9=ruleXWhileExpression |
| { |
| $current = $this_XWhileExpression_9.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); |
| } |
| this_XDoWhileExpression_10=ruleXDoWhileExpression |
| { |
| $current = $this_XDoWhileExpression_10.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); |
| } |
| this_XThrowExpression_11=ruleXThrowExpression |
| { |
| $current = $this_XThrowExpression_11.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); |
| } |
| this_XReturnExpression_12=ruleXReturnExpression |
| { |
| $current = $this_XReturnExpression_12.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); |
| } |
| this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression |
| { |
| $current = $this_XTryCatchFinallyExpression_13.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); |
| } |
| this_XParenthesizedExpression_14=ruleXParenthesizedExpression |
| { |
| $current = $this_XParenthesizedExpression_14.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXLiteral |
| entryRuleXLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXLiteralRule()); } |
| iv_ruleXLiteral=ruleXLiteral |
| { $current=$iv_ruleXLiteral.current; } |
| EOF; |
| |
| // Rule XLiteral |
| ruleXLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); |
| } |
| this_XCollectionLiteral_0=ruleXCollectionLiteral |
| { |
| $current = $this_XCollectionLiteral_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| ( |
| (( |
| ( |
| ) |
| '[' |
| ) |
| )=> |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); |
| } |
| this_XClosure_1=ruleXClosure |
| { |
| $current = $this_XClosure_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| | |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); |
| } |
| this_XBooleanLiteral_2=ruleXBooleanLiteral |
| { |
| $current = $this_XBooleanLiteral_2.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); |
| } |
| this_XNumberLiteral_3=ruleXNumberLiteral |
| { |
| $current = $this_XNumberLiteral_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); |
| } |
| this_XNullLiteral_4=ruleXNullLiteral |
| { |
| $current = $this_XNullLiteral_4.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); |
| } |
| this_XStringLiteral_5=ruleXStringLiteral |
| { |
| $current = $this_XStringLiteral_5.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); |
| } |
| this_XTypeLiteral_6=ruleXTypeLiteral |
| { |
| $current = $this_XTypeLiteral_6.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXCollectionLiteral |
| entryRuleXCollectionLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXCollectionLiteralRule()); } |
| iv_ruleXCollectionLiteral=ruleXCollectionLiteral |
| { $current=$iv_ruleXCollectionLiteral.current; } |
| EOF; |
| |
| // Rule XCollectionLiteral |
| ruleXCollectionLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); |
| } |
| this_XSetLiteral_0=ruleXSetLiteral |
| { |
| $current = $this_XSetLiteral_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); |
| } |
| this_XListLiteral_1=ruleXListLiteral |
| { |
| $current = $this_XListLiteral_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXSetLiteral |
| entryRuleXSetLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXSetLiteralRule()); } |
| iv_ruleXSetLiteral=ruleXSetLiteral |
| { $current=$iv_ruleXSetLiteral.current; } |
| EOF; |
| |
| // Rule XSetLiteral |
| ruleXSetLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='#' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| } |
| otherlv_2='{' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| } |
| lv_elements_3_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| } |
| lv_elements_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6='}' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXListLiteral |
| entryRuleXListLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXListLiteralRule()); } |
| iv_ruleXListLiteral=ruleXListLiteral |
| { $current=$iv_ruleXListLiteral.current; } |
| EOF; |
| |
| // Rule XListLiteral |
| ruleXListLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='#' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| } |
| otherlv_2='[' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| } |
| lv_elements_3_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| } |
| lv_elements_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| $current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=']' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXClosure |
| entryRuleXClosure returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXClosureRule()); } |
| iv_ruleXClosure=ruleXClosure |
| { $current=$iv_ruleXClosure.current; } |
| EOF; |
| |
| // Rule XClosure |
| ruleXClosure returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| (( |
| ( |
| ) |
| '[' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_1='[' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| } |
| ) |
| ) |
| ( |
| (( |
| ( |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ( |
| ',' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| '|' |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| } |
| lv_declaredFormalParameters_2_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| $current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_2_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3=',' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| } |
| lv_declaredFormalParameters_4_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| $current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_4_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| lv_explicitSyntax_5_0='|' |
| { |
| newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXClosureRule()); |
| } |
| setWithLastConsumed($current, "explicitSyntax", true, "|"); |
| } |
| ) |
| ) |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| } |
| lv_expression_6_0=ruleXExpressionInClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_7=']' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXExpressionInClosure |
| entryRuleXExpressionInClosure returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXExpressionInClosureRule()); } |
| iv_ruleXExpressionInClosure=ruleXExpressionInClosure |
| { $current=$iv_ruleXExpressionInClosure.current; } |
| EOF; |
| |
| // Rule XExpressionInClosure |
| ruleXExpressionInClosure returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| } |
| lv_expressions_1_0=ruleXExpressionOrVarDeclaration |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule()); |
| } |
| add( |
| $current, |
| "expressions", |
| lv_expressions_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_2=';' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| } |
| )? |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleXShortClosure |
| entryRuleXShortClosure returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXShortClosureRule()); } |
| iv_ruleXShortClosure=ruleXShortClosure |
| { $current=$iv_ruleXShortClosure.current; } |
| EOF; |
| |
| // Rule XShortClosure |
| ruleXShortClosure returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ( |
| ',' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| '|' |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| } |
| lv_declaredFormalParameters_1_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| $current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_1_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_2=',' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| } |
| lv_declaredFormalParameters_3_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| $current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| lv_explicitSyntax_4_0='|' |
| { |
| newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXShortClosureRule()); |
| } |
| setWithLastConsumed($current, "explicitSyntax", true, "|"); |
| } |
| ) |
| ) |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); |
| } |
| lv_expression_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXParenthesizedExpression |
| entryRuleXParenthesizedExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); } |
| iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression |
| { $current=$iv_ruleXParenthesizedExpression.current; } |
| EOF; |
| |
| // Rule XParenthesizedExpression |
| ruleXParenthesizedExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='(' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); |
| } |
| { |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); |
| } |
| this_XExpression_1=ruleXExpression |
| { |
| $current = $this_XExpression_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| otherlv_2=')' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXIfExpression |
| entryRuleXIfExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXIfExpressionRule()); } |
| iv_ruleXIfExpression=ruleXIfExpression |
| { $current=$iv_ruleXIfExpression.current; } |
| EOF; |
| |
| // Rule XIfExpression |
| ruleXIfExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='if' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| } |
| lv_if_3_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| $current, |
| "if", |
| lv_if_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_4=')' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| } |
| lv_then_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| $current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ('else')=> |
| otherlv_6='else' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); |
| } |
| lv_else_7_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| $current, |
| "else", |
| lv_else_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleXSwitchExpression |
| entryRuleXSwitchExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXSwitchExpressionRule()); } |
| iv_ruleXSwitchExpression=ruleXSwitchExpression |
| { $current=$iv_ruleXSwitchExpression.current; } |
| EOF; |
| |
| // Rule XSwitchExpression |
| ruleXSwitchExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='switch' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| } |
| ( |
| ( |
| ( |
| (( |
| '(' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ':' |
| ) |
| )=> |
| ( |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| } |
| lv_declaredParam_3_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| $current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_4=':' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| } |
| lv_switch_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| $current, |
| "switch", |
| lv_switch_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| } |
| ) |
| | |
| ( |
| ( |
| (( |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ':' |
| ) |
| )=> |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| } |
| lv_declaredParam_7_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| $current, |
| "declaredParam", |
| lv_declaredParam_7_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_8=':' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| } |
| lv_switch_9_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| $current, |
| "switch", |
| lv_switch_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| otherlv_10='{' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| } |
| lv_cases_11_0=ruleXCasePart |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| add( |
| $current, |
| "cases", |
| lv_cases_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XCasePart"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ( |
| otherlv_12='default' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| } |
| otherlv_13=':' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| } |
| lv_default_14_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| $current, |
| "default", |
| lv_default_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| otherlv_15='}' |
| { |
| newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXCasePart |
| entryRuleXCasePart returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXCasePartRule()); } |
| iv_ruleXCasePart=ruleXCasePart |
| { $current=$iv_ruleXCasePart.current; } |
| EOF; |
| |
| // Rule XCasePart |
| ruleXCasePart returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| } |
| lv_typeGuard_1_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| $current, |
| "typeGuard", |
| lv_typeGuard_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| otherlv_2='case' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| } |
| lv_case_3_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| $current, |
| "case", |
| lv_case_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ( |
| ( |
| otherlv_4=':' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); |
| } |
| lv_then_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| $current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| | |
| ( |
| ( |
| lv_fallThrough_6_0=',' |
| { |
| newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXCasePartRule()); |
| } |
| setWithLastConsumed($current, "fallThrough", true, ","); |
| } |
| ) |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXForLoopExpression |
| entryRuleXForLoopExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXForLoopExpressionRule()); } |
| iv_ruleXForLoopExpression=ruleXForLoopExpression |
| { $current=$iv_ruleXForLoopExpression.current; } |
| EOF; |
| |
| // Rule XForLoopExpression |
| ruleXForLoopExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| (( |
| ( |
| ) |
| 'for' |
| '(' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ':' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_1='for' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| } |
| lv_declaredParam_3_0=ruleJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| $current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_4=':' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| } |
| lv_forExpression_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| $current, |
| "forExpression", |
| lv_forExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); |
| } |
| lv_eachExpression_7_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| $current, |
| "eachExpression", |
| lv_eachExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXBasicForLoopExpression |
| entryRuleXBasicForLoopExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); } |
| iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression |
| { $current=$iv_ruleXBasicForLoopExpression.current; } |
| EOF; |
| |
| // Rule XBasicForLoopExpression |
| ruleXBasicForLoopExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='for' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| } |
| lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| $current, |
| "initExpressions", |
| lv_initExpressions_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_4=',' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| } |
| lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| $current, |
| "initExpressions", |
| lv_initExpressions_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_6=';' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| } |
| lv_expression_7_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| otherlv_8=';' |
| { |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| } |
| lv_updateExpressions_9_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| $current, |
| "updateExpressions", |
| lv_updateExpressions_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_10=',' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| } |
| lv_updateExpressions_11_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| $current, |
| "updateExpressions", |
| lv_updateExpressions_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_12=')' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); |
| } |
| lv_eachExpression_13_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| $current, |
| "eachExpression", |
| lv_eachExpression_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXWhileExpression |
| entryRuleXWhileExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXWhileExpressionRule()); } |
| iv_ruleXWhileExpression=ruleXWhileExpression |
| { $current=$iv_ruleXWhileExpression.current; } |
| EOF; |
| |
| // Rule XWhileExpression |
| ruleXWhileExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='while' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| } |
| lv_predicate_3_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| $current, |
| "predicate", |
| lv_predicate_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_4=')' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); |
| } |
| lv_body_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXDoWhileExpression |
| entryRuleXDoWhileExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); } |
| iv_ruleXDoWhileExpression=ruleXDoWhileExpression |
| { $current=$iv_ruleXDoWhileExpression.current; } |
| EOF; |
| |
| // Rule XDoWhileExpression |
| ruleXDoWhileExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='do' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| } |
| lv_body_2_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| $current, |
| "body", |
| lv_body_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_3='while' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| } |
| otherlv_4='(' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| } |
| lv_predicate_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| $current, |
| "predicate", |
| lv_predicate_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_6=')' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXBlockExpression |
| entryRuleXBlockExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXBlockExpressionRule()); } |
| iv_ruleXBlockExpression=ruleXBlockExpression |
| { $current=$iv_ruleXBlockExpression.current; } |
| EOF; |
| |
| // Rule XBlockExpression |
| ruleXBlockExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='{' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| } |
| lv_expressions_2_0=ruleXExpressionOrVarDeclaration |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXBlockExpressionRule()); |
| } |
| add( |
| $current, |
| "expressions", |
| lv_expressions_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3=';' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| } |
| )? |
| )* |
| otherlv_4='}' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXExpressionOrVarDeclaration |
| entryRuleXExpressionOrVarDeclaration returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); } |
| iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration |
| { $current=$iv_ruleXExpressionOrVarDeclaration.current; } |
| EOF; |
| |
| // Rule XExpressionOrVarDeclaration |
| ruleXExpressionOrVarDeclaration returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); |
| } |
| this_XVariableDeclaration_0=ruleXVariableDeclaration |
| { |
| $current = $this_XVariableDeclaration_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); |
| } |
| this_XExpression_1=ruleXExpression |
| { |
| $current = $this_XExpression_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXVariableDeclaration |
| entryRuleXVariableDeclaration returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXVariableDeclarationRule()); } |
| iv_ruleXVariableDeclaration=ruleXVariableDeclaration |
| { $current=$iv_ruleXVariableDeclaration.current; } |
| EOF; |
| |
| // Rule XVariableDeclaration |
| ruleXVariableDeclaration returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| ( |
| lv_writeable_1_0='var' |
| { |
| newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXVariableDeclarationRule()); |
| } |
| setWithLastConsumed($current, "writeable", true, "var"); |
| } |
| ) |
| ) |
| | |
| otherlv_2='val' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| } |
| ) |
| ( |
| ( |
| (( |
| ( |
| ( |
| ruleJvmTypeReference |
| ) |
| ) |
| ( |
| ( |
| ruleValidID |
| ) |
| ) |
| ) |
| )=> |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); |
| } |
| lv_type_3_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| $current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| } |
| lv_name_4_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| | |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| } |
| lv_name_5_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_5_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ( |
| otherlv_6='=' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); |
| } |
| lv_right_7_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| $current, |
| "right", |
| lv_right_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmFormalParameter |
| entryRuleJvmFormalParameter returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmFormalParameterRule()); } |
| iv_ruleJvmFormalParameter=ruleJvmFormalParameter |
| { $current=$iv_ruleJvmFormalParameter.current; } |
| EOF; |
| |
| // Rule JvmFormalParameter |
| ruleJvmFormalParameter returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| } |
| lv_parameterType_0_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| $current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleFullJvmFormalParameter |
| entryRuleFullJvmFormalParameter returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); } |
| iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter |
| { $current=$iv_ruleFullJvmFormalParameter.current; } |
| EOF; |
| |
| // Rule FullJvmFormalParameter |
| ruleFullJvmFormalParameter returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| } |
| lv_parameterType_0_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| $current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| } |
| lv_name_1_0=ruleValidID |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| $current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXFeatureCall |
| entryRuleXFeatureCall returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXFeatureCallRule()); } |
| iv_ruleXFeatureCall=ruleXFeatureCall |
| { $current=$iv_ruleXFeatureCall.current; } |
| EOF; |
| |
| // Rule XFeatureCall |
| ruleXFeatureCall returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| $current); |
| } |
| ) |
| ( |
| otherlv_1='<' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| } |
| lv_typeArguments_2_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| $current, |
| "typeArguments", |
| lv_typeArguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3=',' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| } |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| $current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_5='>' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| } |
| )? |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); |
| } |
| ruleIdOrSuper |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| (( |
| '(' |
| ) |
| )=> |
| ( |
| lv_explicitOperationCall_7_0='(' |
| { |
| newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| setWithLastConsumed($current, "explicitOperationCall", true, "("); |
| } |
| ) |
| ) |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ( |
| ',' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| '|' |
| ) |
| ) |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| } |
| lv_featureCallArguments_8_0=ruleXShortClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| $current, |
| "featureCallArguments", |
| lv_featureCallArguments_8_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| } |
| lv_featureCallArguments_9_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| $current, |
| "featureCallArguments", |
| lv_featureCallArguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_10=',' |
| { |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| } |
| lv_featureCallArguments_11_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| $current, |
| "featureCallArguments", |
| lv_featureCallArguments_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| )? |
| otherlv_12=')' |
| { |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| } |
| )? |
| ( |
| (( |
| ( |
| ) |
| '[' |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); |
| } |
| lv_featureCallArguments_13_0=ruleXClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| $current, |
| "featureCallArguments", |
| lv_featureCallArguments_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleFeatureCallID |
| entryRuleFeatureCallID returns [String current=null]: |
| { newCompositeNode(grammarAccess.getFeatureCallIDRule()); } |
| iv_ruleFeatureCallID=ruleFeatureCallID |
| { $current=$iv_ruleFeatureCallID.current.getText(); } |
| EOF; |
| |
| // Rule FeatureCallID |
| ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); |
| } |
| this_ValidID_0=ruleValidID |
| { |
| $current.merge(this_ValidID_0); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| kw='extends' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| } |
| | |
| kw='static' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| } |
| | |
| kw='import' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| } |
| | |
| kw='extension' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleIdOrSuper |
| entryRuleIdOrSuper returns [String current=null]: |
| { newCompositeNode(grammarAccess.getIdOrSuperRule()); } |
| iv_ruleIdOrSuper=ruleIdOrSuper |
| { $current=$iv_ruleIdOrSuper.current.getText(); } |
| EOF; |
| |
| // Rule IdOrSuper |
| ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); |
| } |
| this_FeatureCallID_0=ruleFeatureCallID |
| { |
| $current.merge(this_FeatureCallID_0); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| kw='super' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXConstructorCall |
| entryRuleXConstructorCall returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXConstructorCallRule()); } |
| iv_ruleXConstructorCall=ruleXConstructorCall |
| { $current=$iv_ruleXConstructorCall.current; } |
| EOF; |
| |
| // Rule XConstructorCall |
| ruleXConstructorCall returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='new' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); |
| } |
| ruleQualifiedName |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ('<')=> |
| otherlv_3='<' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| } |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| $current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_5=',' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| } |
| lv_typeArguments_6_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| $current, |
| "typeArguments", |
| lv_typeArguments_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_7='>' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| } |
| )? |
| ( |
| ( |
| (( |
| '(' |
| ) |
| )=> |
| ( |
| lv_explicitConstructorCall_8_0='(' |
| { |
| newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| setWithLastConsumed($current, "explicitConstructorCall", true, "("); |
| } |
| ) |
| ) |
| ( |
| ( |
| (( |
| ( |
| ) |
| ( |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| ( |
| ',' |
| ( |
| ( |
| ruleJvmFormalParameter |
| ) |
| ) |
| )* |
| )? |
| ( |
| ( |
| '|' |
| ) |
| ) |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| } |
| lv_arguments_9_0=ruleXShortClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| | |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| } |
| lv_arguments_10_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_11=',' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| } |
| lv_arguments_12_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| ) |
| )? |
| otherlv_13=')' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| } |
| )? |
| ( |
| (( |
| ( |
| ) |
| '[' |
| ) |
| )=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); |
| } |
| lv_arguments_14_0=ruleXClosure |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleXBooleanLiteral |
| entryRuleXBooleanLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXBooleanLiteralRule()); } |
| iv_ruleXBooleanLiteral=ruleXBooleanLiteral |
| { $current=$iv_ruleXBooleanLiteral.current; } |
| EOF; |
| |
| // Rule XBooleanLiteral |
| ruleXBooleanLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| $current); |
| } |
| ) |
| ( |
| otherlv_1='false' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| } |
| | |
| ( |
| ( |
| lv_isTrue_2_0='true' |
| { |
| newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXBooleanLiteralRule()); |
| } |
| setWithLastConsumed($current, "isTrue", true, "true"); |
| } |
| ) |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXNullLiteral |
| entryRuleXNullLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXNullLiteralRule()); } |
| iv_ruleXNullLiteral=ruleXNullLiteral |
| { $current=$iv_ruleXNullLiteral.current; } |
| EOF; |
| |
| // Rule XNullLiteral |
| ruleXNullLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='null' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXNumberLiteral |
| entryRuleXNumberLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXNumberLiteralRule()); } |
| iv_ruleXNumberLiteral=ruleXNumberLiteral |
| { $current=$iv_ruleXNumberLiteral.current; } |
| EOF; |
| |
| // Rule XNumberLiteral |
| ruleXNumberLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); |
| } |
| lv_value_1_0=ruleNumber |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXNumberLiteralRule()); |
| } |
| set( |
| $current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXStringLiteral |
| entryRuleXStringLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXStringLiteralRule()); } |
| iv_ruleXStringLiteral=ruleXStringLiteral |
| { $current=$iv_ruleXStringLiteral.current; } |
| EOF; |
| |
| // Rule XStringLiteral |
| ruleXStringLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| $current); |
| } |
| ) |
| ( |
| ( |
| lv_value_1_0=RULE_STRING |
| { |
| newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); |
| } |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXStringLiteralRule()); |
| } |
| setWithLastConsumed( |
| $current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXTypeLiteral |
| entryRuleXTypeLiteral returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXTypeLiteralRule()); } |
| iv_ruleXTypeLiteral=ruleXTypeLiteral |
| { $current=$iv_ruleXTypeLiteral.current; } |
| EOF; |
| |
| // Rule XTypeLiteral |
| ruleXTypeLiteral returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='typeof' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getXTypeLiteralRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); |
| } |
| ruleQualifiedName |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| } |
| lv_arrayDimensions_4_0=ruleArrayBrackets |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXTypeLiteralRule()); |
| } |
| add( |
| $current, |
| "arrayDimensions", |
| lv_arrayDimensions_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ArrayBrackets"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| otherlv_5=')' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXThrowExpression |
| entryRuleXThrowExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXThrowExpressionRule()); } |
| iv_ruleXThrowExpression=ruleXThrowExpression |
| { $current=$iv_ruleXThrowExpression.current; } |
| EOF; |
| |
| // Rule XThrowExpression |
| ruleXThrowExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='throw' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| } |
| lv_expression_2_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXThrowExpressionRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXReturnExpression |
| entryRuleXReturnExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXReturnExpressionRule()); } |
| iv_ruleXReturnExpression=ruleXReturnExpression |
| { $current=$iv_ruleXReturnExpression.current; } |
| EOF; |
| |
| // Rule XReturnExpression |
| ruleXReturnExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='return' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| } |
| ( |
| ('extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING)=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| } |
| lv_expression_2_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXReturnExpressionRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleXTryCatchFinallyExpression |
| entryRuleXTryCatchFinallyExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); } |
| iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression |
| { $current=$iv_ruleXTryCatchFinallyExpression.current; } |
| EOF; |
| |
| // Rule XTryCatchFinallyExpression |
| ruleXTryCatchFinallyExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='try' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| } |
| lv_expression_2_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ( |
| ('catch')=> |
| ( |
| { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| } |
| lv_catchClauses_3_0=ruleXCatchClause |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| add( |
| $current, |
| "catchClauses", |
| lv_catchClauses_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XCatchClause"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )+ |
| ( |
| ( |
| ('finally')=> |
| otherlv_4='finally' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); |
| } |
| lv_finallyExpression_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| $current, |
| "finallyExpression", |
| lv_finallyExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )? |
| ) |
| | |
| ( |
| otherlv_6='finally' |
| { |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); |
| } |
| lv_finallyExpression_7_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| $current, |
| "finallyExpression", |
| lv_finallyExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXSynchronizedExpression |
| entryRuleXSynchronizedExpression returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); } |
| iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression |
| { $current=$iv_ruleXSynchronizedExpression.current; } |
| EOF; |
| |
| // Rule XSynchronizedExpression |
| ruleXSynchronizedExpression returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| (( |
| ( |
| ) |
| 'synchronized' |
| '(' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_1='synchronized' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| } |
| otherlv_2='(' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| } |
| lv_param_3_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| $current, |
| "param", |
| lv_param_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_4=')' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); |
| } |
| lv_expression_5_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleXCatchClause |
| entryRuleXCatchClause returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXCatchClauseRule()); } |
| iv_ruleXCatchClause=ruleXCatchClause |
| { $current=$iv_ruleXCatchClause.current; } |
| EOF; |
| |
| // Rule XCatchClause |
| ruleXCatchClause returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ('catch')=> |
| otherlv_0='catch' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| } |
| ) |
| otherlv_1='(' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| } |
| lv_declaredParam_2_0=ruleFullJvmFormalParameter |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| $current, |
| "declaredParam", |
| lv_declaredParam_2_0, |
| "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| otherlv_3=')' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); |
| } |
| lv_expression_4_0=ruleXExpression |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| $current, |
| "expression", |
| lv_expression_4_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleQualifiedName |
| entryRuleQualifiedName returns [String current=null]: |
| { newCompositeNode(grammarAccess.getQualifiedNameRule()); } |
| iv_ruleQualifiedName=ruleQualifiedName |
| { $current=$iv_ruleQualifiedName.current.getText(); } |
| EOF; |
| |
| // Rule QualifiedName |
| ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| } |
| this_ValidID_0=ruleValidID |
| { |
| $current.merge(this_ValidID_0); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| ( |
| ('.')=> |
| kw='.' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
| } |
| ) |
| { |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); |
| } |
| this_ValidID_2=ruleValidID |
| { |
| $current.merge(this_ValidID_2); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| )* |
| ) |
| ; |
| |
| // Entry rule entryRuleNumber |
| entryRuleNumber returns [String current=null]@init { |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| }: |
| { newCompositeNode(grammarAccess.getNumberRule()); } |
| iv_ruleNumber=ruleNumber |
| { $current=$iv_ruleNumber.current.getText(); } |
| EOF; |
| finally { |
| myHiddenTokenState.restore(); |
| } |
| |
| // Rule Number |
| ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| this_HEX_0=RULE_HEX |
| { |
| $current.merge(this_HEX_0); |
| } |
| { |
| newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); |
| } |
| | |
| ( |
| ( |
| this_INT_1=RULE_INT |
| { |
| $current.merge(this_INT_1); |
| } |
| { |
| newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); |
| } |
| | |
| this_DECIMAL_2=RULE_DECIMAL |
| { |
| $current.merge(this_DECIMAL_2); |
| } |
| { |
| newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); |
| } |
| ) |
| ( |
| kw='.' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| } |
| ( |
| this_INT_4=RULE_INT |
| { |
| $current.merge(this_INT_4); |
| } |
| { |
| newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); |
| } |
| | |
| this_DECIMAL_5=RULE_DECIMAL |
| { |
| $current.merge(this_DECIMAL_5); |
| } |
| { |
| newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); |
| } |
| ) |
| )? |
| ) |
| ) |
| ; |
| finally { |
| myHiddenTokenState.restore(); |
| } |
| |
| // Entry rule entryRuleJvmTypeReference |
| entryRuleJvmTypeReference returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); } |
| iv_ruleJvmTypeReference=ruleJvmTypeReference |
| { $current=$iv_ruleJvmTypeReference.current; } |
| EOF; |
| |
| // Rule JvmTypeReference |
| ruleJvmTypeReference returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| } |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference |
| { |
| $current = $this_JvmParameterizedTypeReference_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ( |
| (( |
| ( |
| ) |
| ruleArrayBrackets |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), |
| $current); |
| } |
| ) |
| { |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); |
| } |
| ruleArrayBrackets |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ) |
| | |
| { |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); |
| } |
| this_XFunctionTypeRef_3=ruleXFunctionTypeRef |
| { |
| $current = $this_XFunctionTypeRef_3.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleArrayBrackets |
| entryRuleArrayBrackets returns [String current=null]: |
| { newCompositeNode(grammarAccess.getArrayBracketsRule()); } |
| iv_ruleArrayBrackets=ruleArrayBrackets |
| { $current=$iv_ruleArrayBrackets.current.getText(); } |
| EOF; |
| |
| // Rule ArrayBrackets |
| ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| kw='[' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| } |
| kw=']' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleXFunctionTypeRef |
| entryRuleXFunctionTypeRef returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); } |
| iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef |
| { $current=$iv_ruleXFunctionTypeRef.current; } |
| EOF; |
| |
| // Rule XFunctionTypeRef |
| ruleXFunctionTypeRef returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| otherlv_0='(' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| } |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| } |
| lv_paramTypes_1_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| $current, |
| "paramTypes", |
| lv_paramTypes_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_2=',' |
| { |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| } |
| lv_paramTypes_3_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| $current, |
| "paramTypes", |
| lv_paramTypes_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| )? |
| otherlv_4=')' |
| { |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| } |
| )? |
| otherlv_5='=>' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); |
| } |
| lv_returnType_6_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| set( |
| $current, |
| "returnType", |
| lv_returnType_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmParameterizedTypeReference |
| entryRuleJvmParameterizedTypeReference returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); } |
| iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference |
| { $current=$iv_ruleJvmParameterizedTypeReference.current; } |
| EOF; |
| |
| // Rule JvmParameterizedTypeReference |
| ruleJvmParameterizedTypeReference returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); |
| } |
| ruleQualifiedName |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ('<')=> |
| otherlv_1='<' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| } |
| lv_arguments_2_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_3=',' |
| { |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| } |
| lv_arguments_4_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_5='>' |
| { |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| } |
| ( |
| ( |
| (( |
| ( |
| ) |
| '.' |
| ) |
| )=> |
| ( |
| ( |
| { |
| $current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| $current); |
| } |
| ) |
| otherlv_7='.' |
| { |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| if ($current==null) { |
| $current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| } |
| { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); |
| } |
| ruleValidID |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| ('<')=> |
| otherlv_9='<' |
| { |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| } |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| } |
| lv_arguments_10_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| otherlv_11=',' |
| { |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| } |
| lv_arguments_12_0=ruleJvmArgumentTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| )* |
| otherlv_13='>' |
| { |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| } |
| )? |
| )* |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmArgumentTypeReference |
| entryRuleJvmArgumentTypeReference returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); } |
| iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference |
| { $current=$iv_ruleJvmArgumentTypeReference.current; } |
| EOF; |
| |
| // Rule JvmArgumentTypeReference |
| ruleJvmArgumentTypeReference returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); |
| } |
| this_JvmTypeReference_0=ruleJvmTypeReference |
| { |
| $current = $this_JvmTypeReference_0.current; |
| afterParserOrEnumRuleCall(); |
| } |
| | |
| { |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); |
| } |
| this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference |
| { |
| $current = $this_JvmWildcardTypeReference_1.current; |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmWildcardTypeReference |
| entryRuleJvmWildcardTypeReference returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); } |
| iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference |
| { $current=$iv_ruleJvmWildcardTypeReference.current; } |
| EOF; |
| |
| // Rule JvmWildcardTypeReference |
| ruleJvmWildcardTypeReference returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| $current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| $current); |
| } |
| ) |
| otherlv_1='?' |
| { |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| } |
| ( |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| } |
| lv_constraints_2_0=ruleJvmUpperBound |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "constraints", |
| lv_constraints_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBound"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| } |
| lv_constraints_3_0=ruleJvmUpperBoundAnded |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "constraints", |
| lv_constraints_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ) |
| | |
| ( |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| } |
| lv_constraints_4_0=ruleJvmLowerBound |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "constraints", |
| lv_constraints_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBound"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| } |
| lv_constraints_5_0=ruleJvmLowerBoundAnded |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| $current, |
| "constraints", |
| lv_constraints_5_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )* |
| ) |
| )? |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmUpperBound |
| entryRuleJvmUpperBound returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmUpperBoundRule()); } |
| iv_ruleJvmUpperBound=ruleJvmUpperBound |
| { $current=$iv_ruleJvmUpperBound.current; } |
| EOF; |
| |
| // Rule JvmUpperBound |
| ruleJvmUpperBound returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='extends' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| } |
| lv_typeReference_1_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule()); |
| } |
| set( |
| $current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmUpperBoundAnded |
| entryRuleJvmUpperBoundAnded returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); } |
| iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded |
| { $current=$iv_ruleJvmUpperBoundAnded.current; } |
| EOF; |
| |
| // Rule JvmUpperBoundAnded |
| ruleJvmUpperBoundAnded returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='&' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| } |
| lv_typeReference_1_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| set( |
| $current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmLowerBound |
| entryRuleJvmLowerBound returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmLowerBoundRule()); } |
| iv_ruleJvmLowerBound=ruleJvmLowerBound |
| { $current=$iv_ruleJvmLowerBound.current; } |
| EOF; |
| |
| // Rule JvmLowerBound |
| ruleJvmLowerBound returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='super' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| } |
| lv_typeReference_1_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule()); |
| } |
| set( |
| $current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleJvmLowerBoundAnded |
| entryRuleJvmLowerBoundAnded returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); } |
| iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded |
| { $current=$iv_ruleJvmLowerBoundAnded.current; } |
| EOF; |
| |
| // Rule JvmLowerBoundAnded |
| ruleJvmLowerBoundAnded returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| otherlv_0='&' |
| { |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| } |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| } |
| lv_typeReference_1_0=ruleJvmTypeReference |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| set( |
| $current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| ) |
| ) |
| ; |
| |
| // Entry rule entryRuleQualifiedNameWithWildcard |
| entryRuleQualifiedNameWithWildcard returns [String current=null]: |
| { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } |
| iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard |
| { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } |
| EOF; |
| |
| // Rule QualifiedNameWithWildcard |
| ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| } |
| this_QualifiedName_0=ruleQualifiedName |
| { |
| $current.merge(this_QualifiedName_0); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| kw='.' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| } |
| kw='*' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); |
| } |
| ) |
| ; |
| |
| // Entry rule entryRuleValidID |
| entryRuleValidID returns [String current=null]: |
| { newCompositeNode(grammarAccess.getValidIDRule()); } |
| iv_ruleValidID=ruleValidID |
| { $current=$iv_ruleValidID.current.getText(); } |
| EOF; |
| |
| // Rule ValidID |
| ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| this_ID_0=RULE_ID |
| { |
| $current.merge(this_ID_0); |
| } |
| { |
| newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); |
| } |
| ; |
| |
| // Entry rule entryRuleXImportSection |
| entryRuleXImportSection returns [EObject current=null]: |
| { newCompositeNode(grammarAccess.getXImportSectionRule()); } |
| iv_ruleXImportSection=ruleXImportSection |
| { $current=$iv_ruleXImportSection.current; } |
| EOF; |
| |
| // Rule XImportSection |
| ruleXImportSection returns [EObject current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| { |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| } |
| lv_importDeclarations_0_0=ruleXImportDeclaration |
| { |
| if ($current==null) { |
| $current = createModelElementForParent(grammarAccess.getXImportSectionRule()); |
| } |
| add( |
| $current, |
| "importDeclarations", |
| lv_importDeclarations_0_0, |
| "org.eclipse.osbp.xtext.oxtype.OXtype.XImportDeclaration"); |
| afterParserOrEnumRuleCall(); |
| } |
| ) |
| )+ |
| ; |
| |
| // Entry rule entryRuleQualifiedNameInStaticImport |
| entryRuleQualifiedNameInStaticImport returns [String current=null]: |
| { newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); } |
| iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport |
| { $current=$iv_ruleQualifiedNameInStaticImport.current.getText(); } |
| EOF; |
| |
| // Rule QualifiedNameInStaticImport |
| ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| { |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| } |
| this_ValidID_0=ruleValidID |
| { |
| $current.merge(this_ValidID_0); |
| } |
| { |
| afterParserOrEnumRuleCall(); |
| } |
| kw='.' |
| { |
| $current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| } |
| )+ |
| ; |
| |
| // Rule UnitEnum |
| ruleUnitEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='mm' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getMMEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getUnitEnumAccess().getMMEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='cm' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getCMEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getUnitEnumAccess().getCMEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='pt' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getPTEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getUnitEnumAccess().getPTEnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='inch' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getINEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getUnitEnumAccess().getINEnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='pc' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getPCEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getUnitEnumAccess().getPCEnumLiteralDeclaration_4()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_5='em' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getEMEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getUnitEnumAccess().getEMEnumLiteralDeclaration_5()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_6='ex' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getEXEnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getUnitEnumAccess().getEXEnumLiteralDeclaration_6()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_7='px' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getPXEnumLiteralDeclaration_7().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_7, grammarAccess.getUnitEnumAccess().getPXEnumLiteralDeclaration_7()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_8='%' |
| { |
| $current = grammarAccess.getUnitEnumAccess().getPERCENTAGEEnumLiteralDeclaration_8().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_8, grammarAccess.getUnitEnumAccess().getPERCENTAGEEnumLiteralDeclaration_8()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule PageSizeEnum |
| rulePageSizeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='a4' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getA4EnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getPageSizeEnumAccess().getA4EnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='a3' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getA3EnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getPageSizeEnumAccess().getA3EnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='a5' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getA5EnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getPageSizeEnumAccess().getA5EnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='us-letter' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getUS_LETTEREnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getPageSizeEnumAccess().getUS_LETTEREnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='us-legal' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getUS_LEGALEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getPageSizeEnumAccess().getUS_LEGALEnumLiteralDeclaration_4()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_5='us-ledger' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getUS_LEDGEREnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getPageSizeEnumAccess().getUS_LEDGEREnumLiteralDeclaration_5()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_6='us-super-b' |
| { |
| $current = grammarAccess.getPageSizeEnumAccess().getUS_SUPER_BEnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getPageSizeEnumAccess().getUS_SUPER_BEnumLiteralDeclaration_6()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule OrientationEnum |
| ruleOrientationEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='portrait' |
| { |
| $current = grammarAccess.getOrientationEnumAccess().getPORTRAITEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getOrientationEnumAccess().getPORTRAITEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='landscape' |
| { |
| $current = grammarAccess.getOrientationEnumAccess().getLANDSCAPEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getOrientationEnumAccess().getLANDSCAPEEnumLiteralDeclaration_1()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule FontStyleEnum |
| ruleFontStyleEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='normal' |
| { |
| $current = grammarAccess.getFontStyleEnumAccess().getNORMALEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getFontStyleEnumAccess().getNORMALEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='italic' |
| { |
| $current = grammarAccess.getFontStyleEnumAccess().getITALICEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getFontStyleEnumAccess().getITALICEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='oblique' |
| { |
| $current = grammarAccess.getFontStyleEnumAccess().getOBLIQUEEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getFontStyleEnumAccess().getOBLIQUEEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule BuildInFontFamilyEnum |
| ruleBuildInFontFamilyEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='monospace' |
| { |
| $current = grammarAccess.getBuildInFontFamilyEnumAccess().getMONOSPACEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getBuildInFontFamilyEnumAccess().getMONOSPACEEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='sans-serif' |
| { |
| $current = grammarAccess.getBuildInFontFamilyEnumAccess().getSANS_SERIFEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getBuildInFontFamilyEnumAccess().getSANS_SERIFEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='serif' |
| { |
| $current = grammarAccess.getBuildInFontFamilyEnumAccess().getSERIFEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getBuildInFontFamilyEnumAccess().getSERIFEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule TextAlignEnum |
| ruleTextAlignEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='left' |
| { |
| $current = grammarAccess.getTextAlignEnumAccess().getLEFTEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTextAlignEnumAccess().getLEFTEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='center' |
| { |
| $current = grammarAccess.getTextAlignEnumAccess().getCENTEREnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTextAlignEnumAccess().getCENTEREnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='right' |
| { |
| $current = grammarAccess.getTextAlignEnumAccess().getRIGHTEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getTextAlignEnumAccess().getRIGHTEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule NumberFormatCategoryEnum |
| ruleNumberFormatCategoryEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='unformatted' |
| { |
| $current = grammarAccess.getNumberFormatCategoryEnumAccess().getUNFORMATTEDEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getNumberFormatCategoryEnumAccess().getUNFORMATTEDEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='general-number' |
| { |
| $current = grammarAccess.getNumberFormatCategoryEnumAccess().getGENERAL_NUMBEREnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getNumberFormatCategoryEnumAccess().getGENERAL_NUMBEREnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='fixed' |
| { |
| $current = grammarAccess.getNumberFormatCategoryEnumAccess().getFIXEDEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getNumberFormatCategoryEnumAccess().getFIXEDEnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='percent' |
| { |
| $current = grammarAccess.getNumberFormatCategoryEnumAccess().getPERCENTEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getNumberFormatCategoryEnumAccess().getPERCENTEnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='scientific' |
| { |
| $current = grammarAccess.getNumberFormatCategoryEnumAccess().getSCIENTIFICEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getNumberFormatCategoryEnumAccess().getSCIENTIFICEnumLiteralDeclaration_4()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_5='custom' |
| { |
| $current = grammarAccess.getNumberFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getNumberFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration_5()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule CurrencyFormatCategoryEnum |
| ruleCurrencyFormatCategoryEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='unformatted' |
| { |
| $current = grammarAccess.getCurrencyFormatCategoryEnumAccess().getUNFORMATTEDEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getCurrencyFormatCategoryEnumAccess().getUNFORMATTEDEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='currency' |
| { |
| $current = grammarAccess.getCurrencyFormatCategoryEnumAccess().getCURRENCYEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getCurrencyFormatCategoryEnumAccess().getCURRENCYEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='custom' |
| { |
| $current = grammarAccess.getCurrencyFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getCurrencyFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule DateFormatCategoryEnum |
| ruleDateFormatCategoryEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| enumLiteral_0='custom' |
| { |
| $current = grammarAccess.getDateFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getDateFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration()); |
| } |
| ) |
| ; |
| |
| // Rule DateTimeFormatCategoryEnum |
| ruleDateTimeFormatCategoryEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| enumLiteral_0='custom' |
| { |
| $current = grammarAccess.getDateTimeFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getDateTimeFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration()); |
| } |
| ) |
| ; |
| |
| // Rule TimeFormatCategoryEnum |
| ruleTimeFormatCategoryEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| enumLiteral_0='custom' |
| { |
| $current = grammarAccess.getTimeFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTimeFormatCategoryEnumAccess().getCUSTOMEnumLiteralDeclaration()); |
| } |
| ) |
| ; |
| |
| // Rule RenderingEnum |
| ruleRenderingEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='html' |
| { |
| $current = grammarAccess.getRenderingEnumAccess().getHTMLEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getRenderingEnumAccess().getHTMLEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='pdf' |
| { |
| $current = grammarAccess.getRenderingEnumAccess().getPDFEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getRenderingEnumAccess().getPDFEnumLiteralDeclaration_1()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule PureAggregationTypeEnum |
| rulePureAggregationTypeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='count' |
| { |
| $current = grammarAccess.getPureAggregationTypeEnumAccess().getCOUNTEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getPureAggregationTypeEnumAccess().getCOUNTEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='running-count' |
| { |
| $current = grammarAccess.getPureAggregationTypeEnumAccess().getRUNNINGCOUNTEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getPureAggregationTypeEnumAccess().getRUNNINGCOUNTEnumLiteralDeclaration_1()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule UnaryAggregationTypeEnum |
| ruleUnaryAggregationTypeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='sum' |
| { |
| $current = grammarAccess.getUnaryAggregationTypeEnumAccess().getSUMEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getUnaryAggregationTypeEnumAccess().getSUMEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='average' |
| { |
| $current = grammarAccess.getUnaryAggregationTypeEnumAccess().getAVEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getUnaryAggregationTypeEnumAccess().getAVEEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='minimum' |
| { |
| $current = grammarAccess.getUnaryAggregationTypeEnumAccess().getMINEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getUnaryAggregationTypeEnumAccess().getMINEnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='maximum' |
| { |
| $current = grammarAccess.getUnaryAggregationTypeEnumAccess().getMAXEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getUnaryAggregationTypeEnumAccess().getMAXEnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='running-sum' |
| { |
| $current = grammarAccess.getUnaryAggregationTypeEnumAccess().getRUNNINGSUMEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getUnaryAggregationTypeEnumAccess().getRUNNINGSUMEnumLiteralDeclaration_4()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule BinaryAggregationTypeEnum |
| ruleBinaryAggregationTypeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| enumLiteral_0='divide' |
| { |
| $current = grammarAccess.getBinaryAggregationTypeEnumAccess().getDIVEnumLiteralDeclaration().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getBinaryAggregationTypeEnumAccess().getDIVEnumLiteralDeclaration()); |
| } |
| ) |
| ; |
| |
| // Rule MultipleAggregationTypeEnum |
| ruleMultipleAggregationTypeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| enumLiteral_0='concat' |
| { |
| $current = grammarAccess.getMultipleAggregationTypeEnumAccess().getCONCATENATEEnumLiteralDeclaration().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getMultipleAggregationTypeEnumAccess().getCONCATENATEEnumLiteralDeclaration()); |
| } |
| ) |
| ; |
| |
| // Rule BeforeAfterPageBreakEnum |
| ruleBeforeAfterPageBreakEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='auto' |
| { |
| $current = grammarAccess.getBeforeAfterPageBreakEnumAccess().getAUTOEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getBeforeAfterPageBreakEnumAccess().getAUTOEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='always' |
| { |
| $current = grammarAccess.getBeforeAfterPageBreakEnumAccess().getALWAYSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getBeforeAfterPageBreakEnumAccess().getALWAYSEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='avoid' |
| { |
| $current = grammarAccess.getBeforeAfterPageBreakEnumAccess().getAVOIDEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getBeforeAfterPageBreakEnumAccess().getAVOIDEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule InsidePageBreakEnum |
| ruleInsidePageBreakEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='auto' |
| { |
| $current = grammarAccess.getInsidePageBreakEnumAccess().getAUTOEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getInsidePageBreakEnumAccess().getAUTOEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='avoid' |
| { |
| $current = grammarAccess.getInsidePageBreakEnumAccess().getAVOIDEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getInsidePageBreakEnumAccess().getAVOIDEnumLiteralDeclaration_1()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule TrendIconEnum |
| ruleTrendIconEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='rising' |
| { |
| $current = grammarAccess.getTrendIconEnumAccess().getRISINGEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTrendIconEnumAccess().getRISINGEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='bad-rising' |
| { |
| $current = grammarAccess.getTrendIconEnumAccess().getBADRISINGEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTrendIconEnumAccess().getBADRISINGEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='sloping' |
| { |
| $current = grammarAccess.getTrendIconEnumAccess().getSLOPINGEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getTrendIconEnumAccess().getSLOPINGEnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='good-sloping' |
| { |
| $current = grammarAccess.getTrendIconEnumAccess().getGOODSLOPINGEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getTrendIconEnumAccess().getGOODSLOPINGEnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='stagnating' |
| { |
| $current = grammarAccess.getTrendIconEnumAccess().getSTAGNATINGEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getTrendIconEnumAccess().getSTAGNATINGEnumLiteralDeclaration_4()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule BorderTypeEnum |
| ruleBorderTypeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='none' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getNONEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getBorderTypeEnumAccess().getNONEEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='solid' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getSOLIDEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getBorderTypeEnumAccess().getSOLIDEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='dotted' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getDOTTEDEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getBorderTypeEnumAccess().getDOTTEDEnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='dashed' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getDASHEDEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getBorderTypeEnumAccess().getDASHEDEnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='double' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getDOUBLEEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getBorderTypeEnumAccess().getDOUBLEEnumLiteralDeclaration_4()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_5='groove' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getGROOVEEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getBorderTypeEnumAccess().getGROOVEEnumLiteralDeclaration_5()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_6='ridge' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getRIDGEEnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getBorderTypeEnumAccess().getRIDGEEnumLiteralDeclaration_6()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_7='inset' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getINSETEnumLiteralDeclaration_7().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_7, grammarAccess.getBorderTypeEnumAccess().getINSETEnumLiteralDeclaration_7()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_8='outset' |
| { |
| $current = grammarAccess.getBorderTypeEnumAccess().getOUTSETEnumLiteralDeclaration_8().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_8, grammarAccess.getBorderTypeEnumAccess().getOUTSETEnumLiteralDeclaration_8()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule AutoTextEnum |
| ruleAutoTextEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='page-number' |
| { |
| $current = grammarAccess.getAutoTextEnumAccess().getPAGE_NUMBEREnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getAutoTextEnumAccess().getPAGE_NUMBEREnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='total-page' |
| { |
| $current = grammarAccess.getAutoTextEnumAccess().getTOTAL_PAGEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getAutoTextEnumAccess().getTOTAL_PAGEEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='page-number-unfiltered' |
| { |
| $current = grammarAccess.getAutoTextEnumAccess().getPAGE_NUMBER_UNFILTEREDEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getAutoTextEnumAccess().getPAGE_NUMBER_UNFILTEREDEnumLiteralDeclaration_2()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_3='total-page-unfiltered' |
| { |
| $current = grammarAccess.getAutoTextEnumAccess().getTOTAL_PAGE_UNFILTEREDEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getAutoTextEnumAccess().getTOTAL_PAGE_UNFILTEREDEnumLiteralDeclaration_3()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_4='page-variable' |
| { |
| $current = grammarAccess.getAutoTextEnumAccess().getPAGE_VARIABLEEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getAutoTextEnumAccess().getPAGE_VARIABLEEnumLiteralDeclaration_4()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule ImageSizeEnum |
| ruleImageSizeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='size-to-image' |
| { |
| $current = grammarAccess.getImageSizeEnumAccess().getSIZE_TO_IMAGEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getImageSizeEnumAccess().getSIZE_TO_IMAGEEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='scale-to-item' |
| { |
| $current = grammarAccess.getImageSizeEnumAccess().getSCALE_TO_ITEMEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getImageSizeEnumAccess().getSCALE_TO_ITEMEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='clip' |
| { |
| $current = grammarAccess.getImageSizeEnumAccess().getCLIPEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getImageSizeEnumAccess().getCLIPEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule ImageSourceEnum |
| ruleImageSourceEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='url' |
| { |
| $current = grammarAccess.getImageSourceEnumAccess().getURLEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getImageSourceEnumAccess().getURLEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='embed' |
| { |
| $current = grammarAccess.getImageSourceEnumAccess().getEMBEDEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getImageSourceEnumAccess().getEMBEDEnumLiteralDeclaration_1()); |
| } |
| ) |
| ) |
| ; |
| |
| // Rule TextContentTypeEnum |
| ruleTextContentTypeEnum returns [Enumerator current=null] |
| @init { |
| enterRule(); |
| } |
| @after { |
| leaveRule(); |
| }: |
| ( |
| ( |
| enumLiteral_0='auto' |
| { |
| $current = grammarAccess.getTextContentTypeEnumAccess().getAUTOEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTextContentTypeEnumAccess().getAUTOEnumLiteralDeclaration_0()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_1='plain' |
| { |
| $current = grammarAccess.getTextContentTypeEnumAccess().getPLAINEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTextContentTypeEnumAccess().getPLAINEnumLiteralDeclaration_1()); |
| } |
| ) |
| | |
| ( |
| enumLiteral_2='html' |
| { |
| $current = grammarAccess.getTextContentTypeEnumAccess().getHTMLEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getTextContentTypeEnumAccess().getHTMLEnumLiteralDeclaration_2()); |
| } |
| ) |
| ) |
| ; |
| |
| RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F'|'_')+ ('#' (('b'|'B') ('i'|'I')|('l'|'L')))?; |
| |
| RULE_INT : '0'..'9' ('0'..'9'|'_')*; |
| |
| RULE_DECIMAL : RULE_INT (('e'|'E') ('+'|'-')? RULE_INT)? (('b'|'B') ('i'|'I'|'d'|'D')|('l'|'L'|'d'|'D'|'f'|'F'))?; |
| |
| RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*; |
| |
| RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'?|'\'' ('\\' .|~(('\\'|'\'')))* '\''?); |
| |
| RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; |
| |
| RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; |
| |
| RULE_WS : (' '|'\t'|'\r'|'\n')+; |
| |
| RULE_ANY_OTHER : .; |