blob: a463ede26a08764429ec60b931154abcaf928c3f [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2017 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated by Xtext 2.11.0
*
*/
grammar InternalDatamartDSL;
options {
superClass=AbstractInternalAntlrParser;
}
@lexer::header {
package org.eclipse.osbp.xtext.datamartdsl.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.datamartdsl.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.datamartdsl.services.DatamartDSLGrammarAccess;
}
@parser::members {
private DatamartDSLGrammarAccess grammarAccess;
public InternalDatamartDSLParser(TokenStream input, DatamartDSLGrammarAccess grammarAccess) {
this(input);
this.grammarAccess = grammarAccess;
registerRules(grammarAccess.getGrammar());
}
@Override
protected String getFirstRuleName() {
return "DatamartModel";
}
@Override
protected DatamartDSLGrammarAccess getGrammarAccess() {
return grammarAccess;
}
}
@rulecatch {
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
}
// Entry rule entryRuleDatamartModel
entryRuleDatamartModel returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartModelRule()); }
iv_ruleDatamartModel=ruleDatamartModel
{ $current=$iv_ruleDatamartModel.current; }
EOF;
// Rule DatamartModel
ruleDatamartModel returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartModelAccess().getImportSectionXImportSectionParserRuleCall_0_0());
}
lv_importSection_0_0=ruleXImportSection
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartModelRule());
}
set(
$current,
"importSection",
lv_importSection_0_0,
"org.eclipse.xtext.xbase.Xtype.XImportSection");
afterParserOrEnumRuleCall();
}
)
)?
(
(
{
newCompositeNode(grammarAccess.getDatamartModelAccess().getPackagesDatamartPackageParserRuleCall_1_0());
}
lv_packages_1_0=ruleDatamartPackage
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartModelRule());
}
add(
$current,
"packages",
lv_packages_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartPackage");
afterParserOrEnumRuleCall();
}
)
)*
)
;
// Entry rule entryRuleDatamartPackage
entryRuleDatamartPackage returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartPackageRule()); }
iv_ruleDatamartPackage=ruleDatamartPackage
{ $current=$iv_ruleDatamartPackage.current; }
EOF;
// Rule DatamartPackage
ruleDatamartPackage returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getDatamartPackageAccess().getDatamartPackageAction_0(),
$current);
}
)
otherlv_1='package'
{
newLeafNode(otherlv_1, grammarAccess.getDatamartPackageAccess().getPackageKeyword_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartPackageAccess().getNameQualifiedNameParserRuleCall_2_0());
}
lv_name_2_0=ruleQualifiedName
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartPackageRule());
}
set(
$current,
"name",
lv_name_2_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_3='{'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartPackageAccess().getLeftCurlyBracketKeyword_3_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartPackageAccess().getDefinitionsDatamartDefinitionParserRuleCall_3_1_0());
}
lv_definitions_4_0=ruleDatamartDefinition
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartPackageRule());
}
add(
$current,
"definitions",
lv_definitions_4_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartDefinition");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_5='}'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartPackageAccess().getRightCurlyBracketKeyword_3_2());
}
)?
)
;
// Entry rule entryRuleDatamartDefinition
entryRuleDatamartDefinition returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartDefinitionRule()); }
iv_ruleDatamartDefinition=ruleDatamartDefinition
{ $current=$iv_ruleDatamartDefinition.current; }
EOF;
// Rule DatamartDefinition
ruleDatamartDefinition returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='datamart'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartDefinitionAccess().getDatamartKeyword_0());
}
(
(
lv_name_1_0=RULE_ID
{
newLeafNode(lv_name_1_0, grammarAccess.getDatamartDefinitionAccess().getNameIDTerminalRuleCall_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartDefinitionRule());
}
setWithLastConsumed(
$current,
"name",
lv_name_1_0,
"org.eclipse.xtext.xbase.Xtype.ID");
}
)
)
(
(
(
lv_description_2_0='description'
{
newLeafNode(lv_description_2_0, grammarAccess.getDatamartDefinitionAccess().getDescriptionDescriptionKeyword_2_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartDefinitionRule());
}
setWithLastConsumed($current, "description", true, "description");
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartDefinitionAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_2_1_0());
}
lv_descriptionValue_3_0=ruleTRANSLATABLESTRING
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDefinitionRule());
}
set(
$current,
"descriptionValue",
lv_descriptionValue_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TRANSLATABLESTRING");
afterParserOrEnumRuleCall();
}
)
)
)?
(
otherlv_4='for'
{
newLeafNode(otherlv_4, grammarAccess.getDatamartDefinitionAccess().getForKeyword_3_0());
}
otherlv_5='{'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartDefinitionAccess().getLeftCurlyBracketKeyword_3_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartDefinitionAccess().getRolesDatamartRoleParserRuleCall_3_2_0());
}
lv_roles_6_0=ruleDatamartRole
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDefinitionRule());
}
add(
$current,
"roles",
lv_roles_6_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartRole");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_7='}'
{
newLeafNode(otherlv_7, grammarAccess.getDatamartDefinitionAccess().getRightCurlyBracketKeyword_3_3());
}
)?
otherlv_8='using'
{
newLeafNode(otherlv_8, grammarAccess.getDatamartDefinitionAccess().getUsingKeyword_4());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartDefinitionAccess().getSourceDatamartSourceParserRuleCall_5_0());
}
lv_source_9_0=ruleDatamartSource
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDefinitionRule());
}
set(
$current,
"source",
lv_source_9_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSource");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartRole
entryRuleDatamartRole returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartRoleRule()); }
iv_ruleDatamartRole=ruleDatamartRole
{ $current=$iv_ruleDatamartRole.current; }
EOF;
// Rule DatamartRole
ruleDatamartRole returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='role'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartRoleAccess().getRoleKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartRoleRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartRoleAccess().getAssignedRoleRoleCrossReference_1_0());
}
)
)
)
;
// Entry rule entryRuleDatamartSource
entryRuleDatamartSource returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSourceRule()); }
iv_ruleDatamartSource=ruleDatamartSource
{ $current=$iv_ruleDatamartSource.current; }
EOF;
// Rule DatamartSource
ruleDatamartSource returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartSourceAccess().getDatamartCubeParserRuleCall_0());
}
this_DatamartCube_0=ruleDatamartCube
{
$current = $this_DatamartCube_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartSourceAccess().getDatamartEntityParserRuleCall_1());
}
this_DatamartEntity_1=ruleDatamartEntity
{
$current = $this_DatamartEntity_1.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartSourceAccess().getDatamartTaskParserRuleCall_2());
}
this_DatamartTask_2=ruleDatamartTask
{
$current = $this_DatamartTask_2.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleDatamartTask
entryRuleDatamartTask returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartTaskRule()); }
iv_ruleDatamartTask=ruleDatamartTask
{ $current=$iv_ruleDatamartTask.current; }
EOF;
// Rule DatamartTask
ruleDatamartTask returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='task'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartTaskAccess().getTaskKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartTaskAccess().getTaskQueryTaskQueryTopicEnumEnumRuleCall_1_0());
}
lv_taskQuery_1_0=ruleTaskQueryTopicEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartTaskRule());
}
set(
$current,
"taskQuery",
lv_taskQuery_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TaskQueryTopicEnum");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_2='columns'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartTaskAccess().getColumnsKeyword_2_0());
}
otherlv_3='{'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartTaskAccess().getLeftCurlyBracketKeyword_2_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartTaskAccess().getColumnsDatamartColumnParserRuleCall_2_2_0());
}
lv_columns_4_0=ruleDatamartColumn
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartTaskRule());
}
add(
$current,
"columns",
lv_columns_4_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartColumn");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_5='}'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartTaskAccess().getRightCurlyBracketKeyword_2_3());
}
)?
(
otherlv_6='conditions'
{
newLeafNode(otherlv_6, grammarAccess.getDatamartTaskAccess().getConditionsKeyword_3_0());
}
otherlv_7='{'
{
newLeafNode(otherlv_7, grammarAccess.getDatamartTaskAccess().getLeftCurlyBracketKeyword_3_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartTaskAccess().getConditionsDatamartConditionParserRuleCall_3_2_0());
}
lv_conditions_8_0=ruleDatamartCondition
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartTaskRule());
}
add(
$current,
"conditions",
lv_conditions_8_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartCondition");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_9='}'
{
newLeafNode(otherlv_9, grammarAccess.getDatamartTaskAccess().getRightCurlyBracketKeyword_3_3());
}
)?
)
;
// Entry rule entryRuleDatamartColumn
entryRuleDatamartColumn returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartColumnRule()); }
iv_ruleDatamartColumn=ruleDatamartColumn
{ $current=$iv_ruleDatamartColumn.current; }
EOF;
// Rule DatamartColumn
ruleDatamartColumn returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='column'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartColumnAccess().getColumnKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartColumnAccess().getColumnRefTaskQueryColumnEnumEnumRuleCall_1_0());
}
lv_columnRef_1_0=ruleTaskQueryColumnEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartColumnRule());
}
set(
$current,
"columnRef",
lv_columnRef_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TaskQueryColumnEnum");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartTaskFilter
entryRuleDatamartTaskFilter returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartTaskFilterRule()); }
iv_ruleDatamartTaskFilter=ruleDatamartTaskFilter
{ $current=$iv_ruleDatamartTaskFilter.current; }
EOF;
// Rule DatamartTaskFilter
ruleDatamartTaskFilter returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='filter'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartTaskFilterAccess().getFilterKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartTaskFilterAccess().getFilterRefTaskFilterEnumEnumRuleCall_1_0());
}
lv_filterRef_1_0=ruleTaskFilterEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartTaskFilterRule());
}
set(
$current,
"filterRef",
lv_filterRef_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TaskFilterEnum");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartCube
entryRuleDatamartCube returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartCubeRule()); }
iv_ruleDatamartCube=ruleDatamartCube
{ $current=$iv_ruleDatamartCube.current; }
EOF;
// Rule DatamartCube
ruleDatamartCube returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='cube'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartCubeAccess().getCubeKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartCubeRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartCubeAccess().getCubeRefCubeTypeCrossReference_1_0());
}
)
)
(
(
lv_nonEmpty_2_0='nonempty'
{
newLeafNode(lv_nonEmpty_2_0, grammarAccess.getDatamartCubeAccess().getNonEmptyNonemptyKeyword_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartCubeRule());
}
setWithLastConsumed($current, "nonEmpty", true, "nonempty");
}
)
)?
otherlv_3='{'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartCubeAccess().getLeftCurlyBracketKeyword_3());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartCubeAccess().getAxisslicerDatamartCubeElementParserRuleCall_4_0());
}
lv_axisslicer_4_0=ruleDatamartCubeElement
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartCubeRule());
}
add(
$current,
"axisslicer",
lv_axisslicer_4_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartCubeElement");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_5='}'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartCubeAccess().getRightCurlyBracketKeyword_5());
}
)
;
// Entry rule entryRuleDatamartReference
entryRuleDatamartReference returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartReferenceRule()); }
iv_ruleDatamartReference=ruleDatamartReference
{ $current=$iv_ruleDatamartReference.current; }
EOF;
// Rule DatamartReference
ruleDatamartReference returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='join'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartReferenceAccess().getJoinKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartReferenceRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartReferenceAccess().getRefLEntityReferenceCrossReference_1_0());
}
)
)
)
;
// Entry rule entryRuleDatamartEntity
entryRuleDatamartEntity returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartEntityRule()); }
iv_ruleDatamartEntity=ruleDatamartEntity
{ $current=$iv_ruleDatamartEntity.current; }
EOF;
// Rule DatamartEntity
ruleDatamartEntity returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='entity'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartEntityAccess().getEntityKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartEntityRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartEntityAccess().getEntityRefLEntityCrossReference_1_0());
}
)
)
(
(
lv_tracking_2_0='tracking'
{
newLeafNode(lv_tracking_2_0, grammarAccess.getDatamartEntityAccess().getTrackingTrackingKeyword_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartEntityRule());
}
setWithLastConsumed($current, "tracking", true, "tracking");
}
)
)?
(
otherlv_3='{'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_0());
}
(
otherlv_4='navigation'
{
newLeafNode(otherlv_4, grammarAccess.getDatamartEntityAccess().getNavigationKeyword_3_1_0());
}
otherlv_5='{'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_1_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartEntityAccess().getNavigationsDatamartNavigationParserRuleCall_3_1_2_0());
}
lv_navigations_6_0=ruleDatamartNavigation
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartEntityRule());
}
add(
$current,
"navigations",
lv_navigations_6_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartNavigation");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_7='}'
{
newLeafNode(otherlv_7, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_1_3());
}
)?
(
otherlv_8='attributes'
{
newLeafNode(otherlv_8, grammarAccess.getDatamartEntityAccess().getAttributesKeyword_3_2_0());
}
otherlv_9='{'
{
newLeafNode(otherlv_9, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_2_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartEntityAccess().getAttributesDatamartAttributeParserRuleCall_3_2_2_0());
}
lv_attributes_10_0=ruleDatamartAttribute
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartEntityRule());
}
add(
$current,
"attributes",
lv_attributes_10_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAttribute");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_11='}'
{
newLeafNode(otherlv_11, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_2_3());
}
)?
(
otherlv_12='conditions'
{
newLeafNode(otherlv_12, grammarAccess.getDatamartEntityAccess().getConditionsKeyword_3_3_0());
}
otherlv_13='{'
{
newLeafNode(otherlv_13, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_3_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartEntityAccess().getConditionsDatamartConditionParserRuleCall_3_3_2_0());
}
lv_conditions_14_0=ruleDatamartCondition
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartEntityRule());
}
add(
$current,
"conditions",
lv_conditions_14_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartCondition");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_15='}'
{
newLeafNode(otherlv_15, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_3_3());
}
)?
(
otherlv_16='ordering'
{
newLeafNode(otherlv_16, grammarAccess.getDatamartEntityAccess().getOrderingKeyword_3_4_0());
}
otherlv_17='{'
{
newLeafNode(otherlv_17, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_4_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartEntityAccess().getOrderingDatamartOrderParserRuleCall_3_4_2_0());
}
lv_ordering_18_0=ruleDatamartOrder
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartEntityRule());
}
add(
$current,
"ordering",
lv_ordering_18_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartOrder");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_19='}'
{
newLeafNode(otherlv_19, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_4_3());
}
)?
(
otherlv_20='fillerRows'
{
newLeafNode(otherlv_20, grammarAccess.getDatamartEntityAccess().getFillerRowsKeyword_3_5_0());
}
(
(
lv_fillerMinCountRows_21_0=RULE_INT
{
newLeafNode(lv_fillerMinCountRows_21_0, grammarAccess.getDatamartEntityAccess().getFillerMinCountRowsINTTerminalRuleCall_3_5_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartEntityRule());
}
setWithLastConsumed(
$current,
"fillerMinCountRows",
lv_fillerMinCountRows_21_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
)
)
otherlv_22='to'
{
newLeafNode(otherlv_22, grammarAccess.getDatamartEntityAccess().getToKeyword_3_5_2());
}
(
(
lv_fillerMaxCountRows_23_0=RULE_INT
{
newLeafNode(lv_fillerMaxCountRows_23_0, grammarAccess.getDatamartEntityAccess().getFillerMaxCountRowsINTTerminalRuleCall_3_5_3_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartEntityRule());
}
setWithLastConsumed(
$current,
"fillerMaxCountRows",
lv_fillerMaxCountRows_23_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
)
)
otherlv_24='{'
{
newLeafNode(otherlv_24, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_5_4());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartEntityAccess().getFillerDatasAttributeFillerDataParserRuleCall_3_5_5_0());
}
lv_fillerDatas_25_0=ruleAttributeFillerData
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartEntityRule());
}
add(
$current,
"fillerDatas",
lv_fillerDatas_25_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.AttributeFillerData");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_26='}'
{
newLeafNode(otherlv_26, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_5_6());
}
)?
otherlv_27='}'
{
newLeafNode(otherlv_27, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_6());
}
)?
)
;
// Entry rule entryRuleDatamartNavigation
entryRuleDatamartNavigation returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartNavigationRule()); }
iv_ruleDatamartNavigation=ruleDatamartNavigation
{ $current=$iv_ruleDatamartNavigation.current; }
EOF;
// Rule DatamartNavigation
ruleDatamartNavigation returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartNavigationAccess().getDatamartOwnerParserRuleCall_0());
}
this_DatamartOwner_0=ruleDatamartOwner
{
$current = $this_DatamartOwner_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartNavigationAccess().getDatamartMemberParserRuleCall_1());
}
this_DatamartMember_1=ruleDatamartMember
{
$current = $this_DatamartMember_1.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleDatamartOwner
entryRuleDatamartOwner returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartOwnerRule()); }
iv_ruleDatamartOwner=ruleDatamartOwner
{ $current=$iv_ruleDatamartOwner.current; }
EOF;
// Rule DatamartOwner
ruleDatamartOwner returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='many2one'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartOwnerAccess().getMany2oneKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartOwnerAccess().getJoinRefDatamartReferenceParserRuleCall_1_0());
}
lv_joinRef_1_0=ruleDatamartReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartOwnerRule());
}
set(
$current,
"joinRef",
lv_joinRef_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartReference");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='to'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartOwnerAccess().getToKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartOwnerAccess().getDatamartEntityDatamartEntityParserRuleCall_3_0());
}
lv_datamartEntity_3_0=ruleDatamartEntity
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartOwnerRule());
}
set(
$current,
"datamartEntity",
lv_datamartEntity_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartEntity");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartMember
entryRuleDatamartMember returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartMemberRule()); }
iv_ruleDatamartMember=ruleDatamartMember
{ $current=$iv_ruleDatamartMember.current; }
EOF;
// Rule DatamartMember
ruleDatamartMember returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='one2many'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartMemberAccess().getOne2manyKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartMemberAccess().getJoinRefDatamartReferenceParserRuleCall_1_0());
}
lv_joinRef_1_0=ruleDatamartReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMemberRule());
}
set(
$current,
"joinRef",
lv_joinRef_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartReference");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='to'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartMemberAccess().getToKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartMemberAccess().getDatamartEntityDatamartEntityParserRuleCall_3_0());
}
lv_datamartEntity_3_0=ruleDatamartEntity
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMemberRule());
}
set(
$current,
"datamartEntity",
lv_datamartEntity_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartEntity");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartAxis
entryRuleDatamartAxis returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartAxisRule()); }
iv_ruleDatamartAxis=ruleDatamartAxis
{ $current=$iv_ruleDatamartAxis.current; }
EOF;
// Rule DatamartAxis
ruleDatamartAxis returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='axis'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartAxisAccess().getAxisKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartAxisAccess().getNameAxisEnumEnumRuleCall_1_0());
}
lv_name_1_0=ruleAxisEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAxisRule());
}
set(
$current,
"name",
lv_name_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.AxisEnum");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartAttributeBase
entryRuleDatamartAttributeBase returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartAttributeBaseRule()); }
iv_ruleDatamartAttributeBase=ruleDatamartAttributeBase
{ $current=$iv_ruleDatamartAttributeBase.current; }
EOF;
// Rule DatamartAttributeBase
ruleDatamartAttributeBase returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='attribute'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartAttributeBaseAccess().getAttributeKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeBaseRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartAttributeBaseAccess().getAttributeRefLEntityAttributeCrossReference_1_0());
}
)
)
)
;
// Entry rule entryRuleDatamartAttribute
entryRuleDatamartAttribute returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartAttributeRule()); }
iv_ruleDatamartAttribute=ruleDatamartAttribute
{ $current=$iv_ruleDatamartAttribute.current; }
EOF;
// Rule DatamartAttribute
ruleDatamartAttribute returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='attribute'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartAttributeAccess().getAttributeKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartAttributeAccess().getAttributeRefLEntityAttributeCrossReference_1_0());
}
)
)
(
(
(
lv_aliased_2_0='alias'
{
newLeafNode(lv_aliased_2_0, grammarAccess.getDatamartAttributeAccess().getAliasedAliasKeyword_2_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeRule());
}
setWithLastConsumed($current, "aliased", true, "alias");
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartAttributeAccess().getAliasNameTRANSLATABLEIDParserRuleCall_2_1_0());
}
lv_aliasName_3_0=ruleTRANSLATABLEID
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAttributeRule());
}
set(
$current,
"aliasName",
lv_aliasName_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TRANSLATABLEID");
afterParserOrEnumRuleCall();
}
)
)
)?
(
(
{
newCompositeNode(grammarAccess.getDatamartAttributeAccess().getAxisDatamartAxisParserRuleCall_3_0());
}
lv_axis_4_0=ruleDatamartAxis
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAttributeRule());
}
set(
$current,
"axis",
lv_axis_4_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAxis");
afterParserOrEnumRuleCall();
}
)
)
(
(
(
lv_hasColumnWeight_5_0='columnWeight'
{
newLeafNode(lv_hasColumnWeight_5_0, grammarAccess.getDatamartAttributeAccess().getHasColumnWeightColumnWeightKeyword_4_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeRule());
}
setWithLastConsumed($current, "hasColumnWeight", true, "columnWeight");
}
)
)
(
(
lv_columnWeight_6_0=RULE_INT
{
newLeafNode(lv_columnWeight_6_0, grammarAccess.getDatamartAttributeAccess().getColumnWeightINTTerminalRuleCall_4_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeRule());
}
setWithLastConsumed(
$current,
"columnWeight",
lv_columnWeight_6_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
)
)
)?
(
(
{
getUnorderedGroupHelper().enter(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5());
}
(
(
(
{getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 0)}?=>(
{
getUnorderedGroupHelper().select(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 0);
}
({true}?=>((
(
lv_aggregated_8_0='aggregate'
{
newLeafNode(lv_aggregated_8_0, grammarAccess.getDatamartAttributeAccess().getAggregatedAggregateKeyword_5_0_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeRule());
}
setWithLastConsumed($current, "aggregated", true, "aggregate");
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartAttributeAccess().getAggregateSqlAggregationEnumEnumRuleCall_5_0_1_0());
}
lv_aggregate_9_0=ruleSqlAggregationEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAttributeRule());
}
set(
$current,
"aggregate",
lv_aggregate_9_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SqlAggregationEnum");
afterParserOrEnumRuleCall();
}
)
)
))
{
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5());
}
)
)|
(
{getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 1)}?=>(
{
getUnorderedGroupHelper().select(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 1);
}
({true}?=>((
(
lv_scaled_10_0='scale'
{
newLeafNode(lv_scaled_10_0, grammarAccess.getDatamartAttributeAccess().getScaledScaleKeyword_5_1_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartAttributeRule());
}
setWithLastConsumed($current, "scaled", true, "scale");
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartAttributeAccess().getScaleValueScaleEnumEnumRuleCall_5_1_1_0());
}
lv_scale_11_0=ruleValueScaleEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAttributeRule());
}
set(
$current,
"scale",
lv_scale_11_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ValueScaleEnum");
afterParserOrEnumRuleCall();
}
)
)
))
{
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5());
}
)
)
)*
)
)
{
getUnorderedGroupHelper().leave(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5());
}
)
)
;
// Entry rule entryRuleDatamartCondition
entryRuleDatamartCondition returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartConditionRule()); }
iv_ruleDatamartCondition=ruleDatamartCondition
{ $current=$iv_ruleDatamartCondition.current; }
EOF;
// Rule DatamartCondition
ruleDatamartCondition returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='condition'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartConditionAccess().getConditionKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartConditionAccess().getConditionDatamartDisjunctionParserRuleCall_1_0());
}
lv_condition_1_0=ruleDatamartDisjunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartConditionRule());
}
set(
$current,
"condition",
lv_condition_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartDisjunction");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartOrder
entryRuleDatamartOrder returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartOrderRule()); }
iv_ruleDatamartOrder=ruleDatamartOrder
{ $current=$iv_ruleDatamartOrder.current; }
EOF;
// Rule DatamartOrder
ruleDatamartOrder returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='order'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartOrderAccess().getOrderKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartOrderRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartOrderAccess().getOrderByLEntityAttributeCrossReference_1_0());
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartOrderAccess().getOrderHowOrderEnumEnumRuleCall_2_0());
}
lv_orderHow_2_0=ruleOrderEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartOrderRule());
}
set(
$current,
"orderHow",
lv_orderHow_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.OrderEnum");
afterParserOrEnumRuleCall();
}
)
)
(
(
(
lv_hasColumnWeight_3_0='columnWeight'
{
newLeafNode(lv_hasColumnWeight_3_0, grammarAccess.getDatamartOrderAccess().getHasColumnWeightColumnWeightKeyword_3_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartOrderRule());
}
setWithLastConsumed($current, "hasColumnWeight", true, "columnWeight");
}
)
)
(
(
lv_columnWeight_4_0=RULE_INT
{
newLeafNode(lv_columnWeight_4_0, grammarAccess.getDatamartOrderAccess().getColumnWeightINTTerminalRuleCall_3_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartOrderRule());
}
setWithLastConsumed(
$current,
"columnWeight",
lv_columnWeight_4_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
)
)
)?
)
;
// Entry rule entryRuleDatamartDisjunction
entryRuleDatamartDisjunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartDisjunctionRule()); }
iv_ruleDatamartDisjunction=ruleDatamartDisjunction
{ $current=$iv_ruleDatamartDisjunction.current; }
EOF;
// Rule DatamartDisjunction
ruleDatamartDisjunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartDisjunctionAccess().getDatamartConjunctionParserRuleCall_0());
}
this_DatamartConjunction_0=ruleDatamartConjunction
{
$current = $this_DatamartConjunction_0.current;
afterParserOrEnumRuleCall();
}
(
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartDisjunctionAccess().getDisjunctionLeftAction_1_0_0(),
$current);
}
)
otherlv_2='or'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartDisjunctionAccess().getOrKeyword_1_0_1());
}
)
(
(
{
newCompositeNode(grammarAccess.getDatamartDisjunctionAccess().getRightDatamartConjunctionParserRuleCall_1_1_0());
}
lv_right_3_0=ruleDatamartConjunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDisjunctionRule());
}
set(
$current,
"right",
lv_right_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartConjunction");
afterParserOrEnumRuleCall();
}
)
)
)*
)
;
// Entry rule entryRuleDatamartConjunction
entryRuleDatamartConjunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartConjunctionRule()); }
iv_ruleDatamartConjunction=ruleDatamartConjunction
{ $current=$iv_ruleDatamartConjunction.current; }
EOF;
// Rule DatamartConjunction
ruleDatamartConjunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartConjunctionAccess().getDatamartConditionalExpressionParserRuleCall_0());
}
this_DatamartConditionalExpression_0=ruleDatamartConditionalExpression
{
$current = $this_DatamartConditionalExpression_0.current;
afterParserOrEnumRuleCall();
}
(
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartConjunctionAccess().getConjunctionLeftAction_1_0_0(),
$current);
}
)
otherlv_2='and'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartConjunctionAccess().getAndKeyword_1_0_1());
}
)
(
(
{
newCompositeNode(grammarAccess.getDatamartConjunctionAccess().getRightDatamartConditionalExpressionParserRuleCall_1_1_0());
}
lv_right_3_0=ruleDatamartConditionalExpression
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartConjunctionRule());
}
set(
$current,
"right",
lv_right_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartConditionalExpression");
afterParserOrEnumRuleCall();
}
)
)
)*
)
;
// Entry rule entryRuleDatamartConditionalExpression
entryRuleDatamartConditionalExpression returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartConditionalExpressionRule()); }
iv_ruleDatamartConditionalExpression=ruleDatamartConditionalExpression
{ $current=$iv_ruleDatamartConditionalExpression.current; }
EOF;
// Rule DatamartConditionalExpression
ruleDatamartConditionalExpression returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartConditionalExpressionAccess().getDatamartOperandParserRuleCall_0());
}
this_DatamartOperand_0=ruleDatamartOperand
{
$current = $this_DatamartOperand_0.current;
afterParserOrEnumRuleCall();
}
(
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartConditionalExpressionAccess().getConditionalExpressionLeftAction_1_0_0(),
$current);
}
)
(
(
{
newCompositeNode(grammarAccess.getDatamartConditionalExpressionAccess().getOperatorOperatorEnumEnumRuleCall_1_0_1_0());
}
lv_operator_2_0=ruleOperatorEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartConditionalExpressionRule());
}
set(
$current,
"operator",
lv_operator_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.OperatorEnum");
afterParserOrEnumRuleCall();
}
)
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartConditionalExpressionAccess().getRightDatamartOperandParserRuleCall_1_1_0());
}
lv_right_3_0=ruleDatamartOperand
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartConditionalExpressionRule());
}
set(
$current,
"right",
lv_right_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartOperand");
afterParserOrEnumRuleCall();
}
)
)
)*
)
;
// Entry rule entryRuleDatamartOperand
entryRuleDatamartOperand returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartOperandRule()); }
iv_ruleDatamartOperand=ruleDatamartOperand
{ $current=$iv_ruleDatamartOperand.current; }
EOF;
// Rule DatamartOperand
ruleDatamartOperand returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartOperandAccess().getDatamartValueParserRuleCall_0());
}
this_DatamartValue_0=ruleDatamartValue
{
$current = $this_DatamartValue_0.current;
afterParserOrEnumRuleCall();
}
|
(
otherlv_1='('
{
newLeafNode(otherlv_1, grammarAccess.getDatamartOperandAccess().getLeftParenthesisKeyword_1_0());
}
{
newCompositeNode(grammarAccess.getDatamartOperandAccess().getDatamartDisjunctionParserRuleCall_1_1());
}
this_DatamartDisjunction_2=ruleDatamartDisjunction
{
$current = $this_DatamartDisjunction_2.current;
afterParserOrEnumRuleCall();
}
otherlv_3=')'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartOperandAccess().getRightParenthesisKeyword_1_2());
}
)
)
;
// Entry rule entryRuleDatamartValue
entryRuleDatamartValue returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartValueRule()); }
iv_ruleDatamartValue=ruleDatamartValue
{ $current=$iv_ruleDatamartValue.current; }
EOF;
// Rule DatamartValue
ruleDatamartValue returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartValueAccess().getNumberValueNumberParserRuleCall_0_0());
}
lv_numberValue_0_0=ruleNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartValueRule());
}
set(
$current,
"numberValue",
lv_numberValue_0_0,
"org.eclipse.xtext.xbase.Xbase.Number");
afterParserOrEnumRuleCall();
}
)
)
|
(
(
lv_stringValue_1_0=RULE_STRING
{
newLeafNode(lv_stringValue_1_0, grammarAccess.getDatamartValueAccess().getStringValueSTRINGTerminalRuleCall_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartValueRule());
}
setWithLastConsumed(
$current,
"stringValue",
lv_stringValue_1_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
|
(
(
(
(
lv_filtered_2_0='filtered'
{
newLeafNode(lv_filtered_2_0, grammarAccess.getDatamartValueAccess().getFilteredFilteredKeyword_2_0_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartValueRule());
}
setWithLastConsumed($current, "filtered", true, "filtered");
}
)
)
(
(
lv_optional_3_0='optional'
{
newLeafNode(lv_optional_3_0, grammarAccess.getDatamartValueAccess().getOptionalOptionalKeyword_2_0_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartValueRule());
}
setWithLastConsumed($current, "optional", true, "optional");
}
)
)?
)
|
(
(
lv_selected_4_0='selected'
{
newLeafNode(lv_selected_4_0, grammarAccess.getDatamartValueAccess().getSelectedSelectedKeyword_2_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartValueRule());
}
setWithLastConsumed($current, "selected", true, "selected");
}
)
)
|
(
(
lv_ranged_5_0='ranged'
{
newLeafNode(lv_ranged_5_0, grammarAccess.getDatamartValueAccess().getRangedRangedKeyword_2_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartValueRule());
}
setWithLastConsumed($current, "ranged", true, "ranged");
}
)
)
)
|
{
newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartTaskFilterParserRuleCall_3());
}
this_DatamartTaskFilter_6=ruleDatamartTaskFilter
{
$current = $this_DatamartTaskFilter_6.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartColumnParserRuleCall_4());
}
this_DatamartColumn_7=ruleDatamartColumn
{
$current = $this_DatamartColumn_7.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartAttributeBaseParserRuleCall_5());
}
this_DatamartAttributeBase_8=ruleDatamartAttributeBase
{
$current = $this_DatamartAttributeBase_8.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleDatamartCubeElement
entryRuleDatamartCubeElement returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartCubeElementRule()); }
iv_ruleDatamartCubeElement=ruleDatamartCubeElement
{ $current=$iv_ruleDatamartCubeElement.current; }
EOF;
// Rule DatamartCubeElement
ruleDatamartCubeElement returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartCubeElementAccess().getDatamartCubeAxisParserRuleCall_0());
}
this_DatamartCubeAxis_0=ruleDatamartCubeAxis
{
$current = $this_DatamartCubeAxis_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartCubeElementAccess().getDatamartSlicerParserRuleCall_1());
}
this_DatamartSlicer_1=ruleDatamartSlicer
{
$current = $this_DatamartSlicer_1.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartCubeElementAccess().getDatamartDefineDerivedMeasureParserRuleCall_2());
}
this_DatamartDefineDerivedMeasure_2=ruleDatamartDefineDerivedMeasure
{
$current = $this_DatamartDefineDerivedMeasure_2.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleDatamartDefineDerivedMeasure
entryRuleDatamartDefineDerivedMeasure returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartDefineDerivedMeasureRule()); }
iv_ruleDatamartDefineDerivedMeasure=ruleDatamartDefineDerivedMeasure
{ $current=$iv_ruleDatamartDefineDerivedMeasure.current; }
EOF;
// Rule DatamartDefineDerivedMeasure
ruleDatamartDefineDerivedMeasure returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='derive'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartDefineDerivedMeasureAccess().getDeriveKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartDefineDerivedMeasureAccess().getNameTRANSLATABLEIDParserRuleCall_1_0());
}
lv_name_1_0=ruleTRANSLATABLEID
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDefineDerivedMeasureRule());
}
set(
$current,
"name",
lv_name_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TRANSLATABLEID");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='from'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartDefineDerivedMeasureAccess().getFromKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartDefineDerivedMeasureAccess().getDerivedElementDatamartAdditionParserRuleCall_3_0());
}
lv_derivedElement_3_0=ruleDatamartAddition
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDefineDerivedMeasureRule());
}
add(
$current,
"derivedElement",
lv_derivedElement_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAddition");
afterParserOrEnumRuleCall();
}
)
)*
)
;
// Entry rule entryRuleDatamartAddition
entryRuleDatamartAddition returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartAdditionRule()); }
iv_ruleDatamartAddition=ruleDatamartAddition
{ $current=$iv_ruleDatamartAddition.current; }
EOF;
// Rule DatamartAddition
ruleDatamartAddition returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartAdditionAccess().getDatamartMultiplicationParserRuleCall_0());
}
this_DatamartMultiplication_0=ruleDatamartMultiplication
{
$current = $this_DatamartMultiplication_0.current;
afterParserOrEnumRuleCall();
}
(
(
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartAdditionAccess().getAdditionLeftAction_1_0_0_0(),
$current);
}
)
otherlv_2='+'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartAdditionAccess().getPlusSignKeyword_1_0_0_1());
}
)
|
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartAdditionAccess().getSubtractionLeftAction_1_0_1_0(),
$current);
}
)
otherlv_4='-'
{
newLeafNode(otherlv_4, grammarAccess.getDatamartAdditionAccess().getHyphenMinusKeyword_1_0_1_1());
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartAdditionAccess().getRightDatamartMultiplicationParserRuleCall_1_1_0());
}
lv_right_5_0=ruleDatamartMultiplication
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAdditionRule());
}
set(
$current,
"right",
lv_right_5_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMultiplication");
afterParserOrEnumRuleCall();
}
)
)
)*
)
;
// Entry rule entryRuleDatamartMultiplication
entryRuleDatamartMultiplication returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartMultiplicationRule()); }
iv_ruleDatamartMultiplication=ruleDatamartMultiplication
{ $current=$iv_ruleDatamartMultiplication.current; }
EOF;
// Rule DatamartMultiplication
ruleDatamartMultiplication returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartMultiplicationAccess().getDatamartPrimaryParserRuleCall_0());
}
this_DatamartPrimary_0=ruleDatamartPrimary
{
$current = $this_DatamartPrimary_0.current;
afterParserOrEnumRuleCall();
}
(
(
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartMultiplicationAccess().getMultiplicationLeftAction_1_0_0_0(),
$current);
}
)
otherlv_2='*'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartMultiplicationAccess().getAsteriskKeyword_1_0_0_1());
}
)
|
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartMultiplicationAccess().getDivisionLeftAction_1_0_1_0(),
$current);
}
)
otherlv_4='/'
{
newLeafNode(otherlv_4, grammarAccess.getDatamartMultiplicationAccess().getSolidusKeyword_1_0_1_1());
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartMultiplicationAccess().getRightDatamartPrimaryParserRuleCall_1_1_0());
}
lv_right_5_0=ruleDatamartPrimary
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMultiplicationRule());
}
set(
$current,
"right",
lv_right_5_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartPrimary");
afterParserOrEnumRuleCall();
}
)
)
)*
)
;
// Entry rule entryRuleDatamartPrimary
entryRuleDatamartPrimary returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartPrimaryRule()); }
iv_ruleDatamartPrimary=ruleDatamartPrimary
{ $current=$iv_ruleDatamartPrimary.current; }
EOF;
// Rule DatamartPrimary
ruleDatamartPrimary returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartPrimaryAccess().getDatamartNumberOrElementParserRuleCall_0());
}
this_DatamartNumberOrElement_0=ruleDatamartNumberOrElement
{
$current = $this_DatamartNumberOrElement_0.current;
afterParserOrEnumRuleCall();
}
|
(
otherlv_1='('
{
newLeafNode(otherlv_1, grammarAccess.getDatamartPrimaryAccess().getLeftParenthesisKeyword_1_0());
}
{
newCompositeNode(grammarAccess.getDatamartPrimaryAccess().getDatamartAdditionParserRuleCall_1_1());
}
this_DatamartAddition_2=ruleDatamartAddition
{
$current = $this_DatamartAddition_2.current;
afterParserOrEnumRuleCall();
}
otherlv_3=')'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartPrimaryAccess().getRightParenthesisKeyword_1_2());
}
)
)
;
// Entry rule entryRuleDatamartNumberOrElement
entryRuleDatamartNumberOrElement returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartNumberOrElementRule()); }
iv_ruleDatamartNumberOrElement=ruleDatamartNumberOrElement
{ $current=$iv_ruleDatamartNumberOrElement.current; }
EOF;
// Rule DatamartNumberOrElement
ruleDatamartNumberOrElement returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getValueNumberParserRuleCall_0_0());
}
lv_value_0_0=ruleNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartNumberOrElementRule());
}
set(
$current,
"value",
lv_value_0_0,
"org.eclipse.xtext.xbase.Xbase.Number");
afterParserOrEnumRuleCall();
}
)
)
|
{
newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartMeasureParserRuleCall_1());
}
this_DatamartMeasure_1=ruleDatamartMeasure
{
$current = $this_DatamartMeasure_1.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartDerivedMeasureParserRuleCall_2());
}
this_DatamartDerivedMeasure_2=ruleDatamartDerivedMeasure
{
$current = $this_DatamartDerivedMeasure_2.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartMemberTupleParserRuleCall_3());
}
this_DatamartMemberTuple_3=ruleDatamartMemberTuple
{
$current = $this_DatamartMemberTuple_3.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartAggregationParserRuleCall_4());
}
this_DatamartAggregation_4=ruleDatamartAggregation
{
$current = $this_DatamartAggregation_4.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleDatamartMemberTuple
entryRuleDatamartMemberTuple returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartMemberTupleRule()); }
iv_ruleDatamartMemberTuple=ruleDatamartMemberTuple
{ $current=$iv_ruleDatamartMemberTuple.current; }
EOF;
// Rule DatamartMemberTuple
ruleDatamartMemberTuple returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
(
(
{
newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getFunctionDatamartFunctionParserRuleCall_0_0_0_0());
}
lv_function_0_0=ruleDatamartFunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule());
}
set(
$current,
"function",
lv_function_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunction");
afterParserOrEnumRuleCall();
}
)
)
|
(
(
{
newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getFunctionDatamartParameterFunctionParserRuleCall_0_0_1_0());
}
lv_function_1_0=ruleDatamartParameterFunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule());
}
set(
$current,
"function",
lv_function_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartParameterFunction");
afterParserOrEnumRuleCall();
}
)
)
)
otherlv_2='of'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartMemberTupleAccess().getOfKeyword_0_1());
}
)?
(
(
{
newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getHierarchyDatamartHierarchyParserRuleCall_1_0());
}
lv_hierarchy_3_0=ruleDatamartHierarchy
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule());
}
set(
$current,
"hierarchy",
lv_hierarchy_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy");
afterParserOrEnumRuleCall();
}
)
)
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartMemberTupleAccess().getDatamartMemberTupleLeftAction_2_0(),
$current);
}
)
otherlv_5='over'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartMemberTupleAccess().getOverKeyword_2_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getRightDatamartMeasureParserRuleCall_2_2_0());
}
lv_right_6_0=ruleDatamartMeasure
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule());
}
set(
$current,
"right",
lv_right_6_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure");
afterParserOrEnumRuleCall();
}
)
)
)
)
;
// Entry rule entryRuleDatamartFunction
entryRuleDatamartFunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartFunctionRule()); }
iv_ruleDatamartFunction=ruleDatamartFunction
{ $current=$iv_ruleDatamartFunction.current; }
EOF;
// Rule DatamartFunction
ruleDatamartFunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
newCompositeNode(grammarAccess.getDatamartFunctionAccess().getFunctionFunctionEnumEnumRuleCall_0());
}
lv_function_0_0=ruleFunctionEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartFunctionRule());
}
set(
$current,
"function",
lv_function_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.FunctionEnum");
afterParserOrEnumRuleCall();
}
)
)
;
// Entry rule entryRuleDatamartParameterFunction
entryRuleDatamartParameterFunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartParameterFunctionRule()); }
iv_ruleDatamartParameterFunction=ruleDatamartParameterFunction
{ $current=$iv_ruleDatamartParameterFunction.current; }
EOF;
// Rule DatamartParameterFunction
ruleDatamartParameterFunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartParameterFunctionAccess().getFunctionParameterFunctionEnumEnumRuleCall_0_0());
}
lv_function_0_0=ruleParameterFunctionEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartParameterFunctionRule());
}
set(
$current,
"function",
lv_function_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ParameterFunctionEnum");
afterParserOrEnumRuleCall();
}
)
)
otherlv_1='('
{
newLeafNode(otherlv_1, grammarAccess.getDatamartParameterFunctionAccess().getLeftParenthesisKeyword_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartParameterFunctionAccess().getParameterDatamartFunctionIntParameterParserRuleCall_2_0());
}
lv_parameter_2_0=ruleDatamartFunctionIntParameter
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartParameterFunctionRule());
}
set(
$current,
"parameter",
lv_parameter_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunctionIntParameter");
afterParserOrEnumRuleCall();
}
)
)
otherlv_3=')'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartParameterFunctionAccess().getRightParenthesisKeyword_3());
}
)
;
// Entry rule entryRuleDatamartFunctionIntParameter
entryRuleDatamartFunctionIntParameter returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartFunctionIntParameterRule()); }
iv_ruleDatamartFunctionIntParameter=ruleDatamartFunctionIntParameter
{ $current=$iv_ruleDatamartFunctionIntParameter.current; }
EOF;
// Rule DatamartFunctionIntParameter
ruleDatamartFunctionIntParameter returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
lv_value_0_0=RULE_INT
{
newLeafNode(lv_value_0_0, grammarAccess.getDatamartFunctionIntParameterAccess().getValueINTTerminalRuleCall_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartFunctionIntParameterRule());
}
setWithLastConsumed(
$current,
"value",
lv_value_0_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
)
)
;
// Entry rule entryRuleDatamartSetFunction
entryRuleDatamartSetFunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSetFunctionRule()); }
iv_ruleDatamartSetFunction=ruleDatamartSetFunction
{ $current=$iv_ruleDatamartSetFunction.current; }
EOF;
// Rule DatamartSetFunction
ruleDatamartSetFunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
newCompositeNode(grammarAccess.getDatamartSetFunctionAccess().getSetFunctionSetFunctionEnumEnumRuleCall_0());
}
lv_setFunction_0_0=ruleSetFunctionEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetFunctionRule());
}
set(
$current,
"setFunction",
lv_setFunction_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SetFunctionEnum");
afterParserOrEnumRuleCall();
}
)
)
;
// Entry rule entryRuleDatamartSetParameterFunction
entryRuleDatamartSetParameterFunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSetParameterFunctionRule()); }
iv_ruleDatamartSetParameterFunction=ruleDatamartSetParameterFunction
{ $current=$iv_ruleDatamartSetParameterFunction.current; }
EOF;
// Rule DatamartSetParameterFunction
ruleDatamartSetParameterFunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartSetParameterFunctionAccess().getSetFunctionSetParameterFunctionEnumEnumRuleCall_0_0());
}
lv_setFunction_0_0=ruleSetParameterFunctionEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetParameterFunctionRule());
}
set(
$current,
"setFunction",
lv_setFunction_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SetParameterFunctionEnum");
afterParserOrEnumRuleCall();
}
)
)
otherlv_1='('
{
newLeafNode(otherlv_1, grammarAccess.getDatamartSetParameterFunctionAccess().getLeftParenthesisKeyword_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartSetParameterFunctionAccess().getParameterDatamartFunctionIntParameterParserRuleCall_2_0());
}
lv_parameter_2_0=ruleDatamartFunctionIntParameter
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetParameterFunctionRule());
}
set(
$current,
"parameter",
lv_parameter_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunctionIntParameter");
afterParserOrEnumRuleCall();
}
)
)
otherlv_3=')'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartSetParameterFunctionAccess().getRightParenthesisKeyword_3());
}
)
;
// Entry rule entryRuleDatamartSetAggregationFunction
entryRuleDatamartSetAggregationFunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSetAggregationFunctionRule()); }
iv_ruleDatamartSetAggregationFunction=ruleDatamartSetAggregationFunction
{ $current=$iv_ruleDatamartSetAggregationFunction.current; }
EOF;
// Rule DatamartSetAggregationFunction
ruleDatamartSetAggregationFunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartSetAggregationFunctionAccess().getAggregationSetAggregationEnumEnumRuleCall_0_0());
}
lv_aggregation_0_0=ruleSetAggregationEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetAggregationFunctionRule());
}
set(
$current,
"aggregation",
lv_aggregation_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SetAggregationEnum");
afterParserOrEnumRuleCall();
}
)
)
otherlv_1='('
{
newLeafNode(otherlv_1, grammarAccess.getDatamartSetAggregationFunctionAccess().getLeftParenthesisKeyword_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartSetAggregationFunctionAccess().getParameterDatamartFunctionIntParameterParserRuleCall_2_0());
}
lv_parameter_2_0=ruleDatamartFunctionIntParameter
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetAggregationFunctionRule());
}
set(
$current,
"parameter",
lv_parameter_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunctionIntParameter");
afterParserOrEnumRuleCall();
}
)
)
otherlv_3=')'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartSetAggregationFunctionAccess().getRightParenthesisKeyword_3());
}
)
;
// Entry rule entryRuleDatamartSetTuple
entryRuleDatamartSetTuple returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSetTupleRule()); }
iv_ruleDatamartSetTuple=ruleDatamartSetTuple
{ $current=$iv_ruleDatamartSetTuple.current; }
EOF;
// Rule DatamartSetTuple
ruleDatamartSetTuple returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
(
{
newCompositeNode(grammarAccess.getDatamartSetTupleAccess().getSetFunctionDatamartSetFunctionParserRuleCall_0_0_0());
}
lv_setFunction_0_0=ruleDatamartSetFunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetTupleRule());
}
set(
$current,
"setFunction",
lv_setFunction_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetFunction");
afterParserOrEnumRuleCall();
}
)
)
|
(
(
{
newCompositeNode(grammarAccess.getDatamartSetTupleAccess().getSetFunctionDatamartSetParameterFunctionParserRuleCall_0_1_0());
}
lv_setFunction_1_0=ruleDatamartSetParameterFunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetTupleRule());
}
set(
$current,
"setFunction",
lv_setFunction_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetParameterFunction");
afterParserOrEnumRuleCall();
}
)
)
)
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartSetTupleAccess().getDatamartSetTupleLeftAction_1_0(),
$current);
}
)
otherlv_3='of'
{
newLeafNode(otherlv_3, grammarAccess.getDatamartSetTupleAccess().getOfKeyword_1_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartSetTupleAccess().getRightDatamartHierarchyParserRuleCall_1_2_0());
}
lv_right_4_0=ruleDatamartHierarchy
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetTupleRule());
}
set(
$current,
"right",
lv_right_4_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy");
afterParserOrEnumRuleCall();
}
)
)
)
)
;
// Entry rule entryRuleDatamartAggregationFunction
entryRuleDatamartAggregationFunction returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartAggregationFunctionRule()); }
iv_ruleDatamartAggregationFunction=ruleDatamartAggregationFunction
{ $current=$iv_ruleDatamartAggregationFunction.current; }
EOF;
// Rule DatamartAggregationFunction
ruleDatamartAggregationFunction returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
newCompositeNode(grammarAccess.getDatamartAggregationFunctionAccess().getAggregationAggregationEnumEnumRuleCall_0());
}
lv_aggregation_0_0=ruleAggregationEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAggregationFunctionRule());
}
set(
$current,
"aggregation",
lv_aggregation_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.AggregationEnum");
afterParserOrEnumRuleCall();
}
)
)
;
// Entry rule entryRuleDatamartAggregation
entryRuleDatamartAggregation returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartAggregationRule()); }
iv_ruleDatamartAggregation=ruleDatamartAggregation
{ $current=$iv_ruleDatamartAggregation.current; }
EOF;
// Rule DatamartAggregation
ruleDatamartAggregation returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartAggregationAccess().getAggregationDatamartAggregationFunctionParserRuleCall_0_0());
}
lv_aggregation_0_0=ruleDatamartAggregationFunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAggregationRule());
}
set(
$current,
"aggregation",
lv_aggregation_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAggregationFunction");
afterParserOrEnumRuleCall();
}
)
)
otherlv_1='of'
{
newLeafNode(otherlv_1, grammarAccess.getDatamartAggregationAccess().getOfKeyword_1());
}
(
(
(
{
newCompositeNode(grammarAccess.getDatamartAggregationAccess().getSetDatamartSetTupleParserRuleCall_2_0_0());
}
lv_set_2_0=ruleDatamartSetTuple
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAggregationRule());
}
set(
$current,
"set",
lv_set_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetTuple");
afterParserOrEnumRuleCall();
}
)
)
|
(
(
{
newCompositeNode(grammarAccess.getDatamartAggregationAccess().getSetDatamartHierarchyParserRuleCall_2_1_0());
}
lv_set_3_0=ruleDatamartHierarchy
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAggregationRule());
}
set(
$current,
"set",
lv_set_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy");
afterParserOrEnumRuleCall();
}
)
)
)
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartAggregationAccess().getDatamartAggregationLeftAction_3_0(),
$current);
}
)
otherlv_5='over'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartAggregationAccess().getOverKeyword_3_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartAggregationAccess().getRightDatamartMeasureParserRuleCall_3_2_0());
}
lv_right_6_0=ruleDatamartMeasure
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartAggregationRule());
}
set(
$current,
"right",
lv_right_6_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure");
afterParserOrEnumRuleCall();
}
)
)
)
)
;
// Entry rule entryRuleDatamartSetAggregation
entryRuleDatamartSetAggregation returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSetAggregationRule()); }
iv_ruleDatamartSetAggregation=ruleDatamartSetAggregation
{ $current=$iv_ruleDatamartSetAggregation.current; }
EOF;
// Rule DatamartSetAggregation
ruleDatamartSetAggregation returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getAggregationDatamartSetAggregationFunctionParserRuleCall_0_0());
}
lv_aggregation_0_0=ruleDatamartSetAggregationFunction
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule());
}
set(
$current,
"aggregation",
lv_aggregation_0_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetAggregationFunction");
afterParserOrEnumRuleCall();
}
)
)
otherlv_1='of'
{
newLeafNode(otherlv_1, grammarAccess.getDatamartSetAggregationAccess().getOfKeyword_1());
}
(
(
(
{
newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getSetDatamartSetTupleParserRuleCall_2_0_0());
}
lv_set_2_0=ruleDatamartSetTuple
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule());
}
set(
$current,
"set",
lv_set_2_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetTuple");
afterParserOrEnumRuleCall();
}
)
)
|
(
(
{
newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getSetDatamartHierarchyParserRuleCall_2_1_0());
}
lv_set_3_0=ruleDatamartHierarchy
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule());
}
set(
$current,
"set",
lv_set_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy");
afterParserOrEnumRuleCall();
}
)
)
)
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getDatamartSetAggregationAccess().getDatamartSetAggregationLeftAction_3_0(),
$current);
}
)
otherlv_5='over'
{
newLeafNode(otherlv_5, grammarAccess.getDatamartSetAggregationAccess().getOverKeyword_3_1());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getRightDatamartMeasureParserRuleCall_3_2_0());
}
lv_right_6_0=ruleDatamartMeasure
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule());
}
set(
$current,
"right",
lv_right_6_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure");
afterParserOrEnumRuleCall();
}
)
)
)
)
;
// Entry rule entryRuleDatamartSlicer
entryRuleDatamartSlicer returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartSlicerRule()); }
iv_ruleDatamartSlicer=ruleDatamartSlicer
{ $current=$iv_ruleDatamartSlicer.current; }
EOF;
// Rule DatamartSlicer
ruleDatamartSlicer returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='slicer'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartSlicerAccess().getSlicerKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartSlicerAccess().getElementDatamartElementParserRuleCall_1_0());
}
lv_element_1_0=ruleDatamartElement
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartSlicerRule());
}
set(
$current,
"element",
lv_element_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartElement");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleDatamartCubeAxis
entryRuleDatamartCubeAxis returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartCubeAxisRule()); }
iv_ruleDatamartCubeAxis=ruleDatamartCubeAxis
{ $current=$iv_ruleDatamartCubeAxis.current; }
EOF;
// Rule DatamartCubeAxis
ruleDatamartCubeAxis returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getDatamartCubeAxisAccess().getDatamartCubeAxisAction_0(),
$current);
}
)
(
(
{
newCompositeNode(grammarAccess.getDatamartCubeAxisAccess().getAxisDatamartAxisParserRuleCall_1_0());
}
lv_axis_1_0=ruleDatamartAxis
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartCubeAxisRule());
}
set(
$current,
"axis",
lv_axis_1_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAxis");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='{'
{
newLeafNode(otherlv_2, grammarAccess.getDatamartCubeAxisAccess().getLeftCurlyBracketKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getDatamartCubeAxisAccess().getElementsDatamartElementParserRuleCall_3_0());
}
lv_elements_3_0=ruleDatamartElement
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartCubeAxisRule());
}
add(
$current,
"elements",
lv_elements_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartElement");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_4='}'
{
newLeafNode(otherlv_4, grammarAccess.getDatamartCubeAxisAccess().getRightCurlyBracketKeyword_4());
}
)
;
// Entry rule entryRuleDatamartElement
entryRuleDatamartElement returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartElementRule()); }
iv_ruleDatamartElement=ruleDatamartElement
{ $current=$iv_ruleDatamartElement.current; }
EOF;
// Rule DatamartElement
ruleDatamartElement returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartHierarchyParserRuleCall_0());
}
this_DatamartHierarchy_0=ruleDatamartHierarchy
{
$current = $this_DatamartHierarchy_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartMeasureParserRuleCall_1());
}
this_DatamartMeasure_1=ruleDatamartMeasure
{
$current = $this_DatamartMeasure_1.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartDerivedMeasureParserRuleCall_2());
}
this_DatamartDerivedMeasure_2=ruleDatamartDerivedMeasure
{
$current = $this_DatamartDerivedMeasure_2.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartSetAggregationParserRuleCall_3());
}
this_DatamartSetAggregation_3=ruleDatamartSetAggregation
{
$current = $this_DatamartSetAggregation_3.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleDatamartDerivedMeasure
entryRuleDatamartDerivedMeasure returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartDerivedMeasureRule()); }
iv_ruleDatamartDerivedMeasure=ruleDatamartDerivedMeasure
{ $current=$iv_ruleDatamartDerivedMeasure.current; }
EOF;
// Rule DatamartDerivedMeasure
ruleDatamartDerivedMeasure returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='derived'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartDerivedMeasureAccess().getDerivedKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartDerivedMeasureRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartDerivedMeasureAccess().getDerivedRefDatamartDefineDerivedMeasureCrossReference_1_0());
}
)
)
(
(
(
lv_scaled_2_0='scale'
{
newLeafNode(lv_scaled_2_0, grammarAccess.getDatamartDerivedMeasureAccess().getScaledScaleKeyword_2_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartDerivedMeasureRule());
}
setWithLastConsumed($current, "scaled", true, "scale");
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartDerivedMeasureAccess().getScaleValueScaleEnumEnumRuleCall_2_1_0());
}
lv_scale_3_0=ruleValueScaleEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartDerivedMeasureRule());
}
set(
$current,
"scale",
lv_scale_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ValueScaleEnum");
afterParserOrEnumRuleCall();
}
)
)
)?
)
;
// Entry rule entryRuleDatamartMeasure
entryRuleDatamartMeasure returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartMeasureRule()); }
iv_ruleDatamartMeasure=ruleDatamartMeasure
{ $current=$iv_ruleDatamartMeasure.current; }
EOF;
// Rule DatamartMeasure
ruleDatamartMeasure returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='measure'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartMeasureAccess().getMeasureKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartMeasureRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartMeasureAccess().getMeasureRefCubeMeasureCrossReference_1_0());
}
)
)
(
(
(
lv_scaled_2_0='scale'
{
newLeafNode(lv_scaled_2_0, grammarAccess.getDatamartMeasureAccess().getScaledScaleKeyword_2_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartMeasureRule());
}
setWithLastConsumed($current, "scaled", true, "scale");
}
)
)
(
(
{
newCompositeNode(grammarAccess.getDatamartMeasureAccess().getScaleValueScaleEnumEnumRuleCall_2_1_0());
}
lv_scale_3_0=ruleValueScaleEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getDatamartMeasureRule());
}
set(
$current,
"scale",
lv_scale_3_0,
"org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ValueScaleEnum");
afterParserOrEnumRuleCall();
}
)
)
)?
)
;
// Entry rule entryRuleDatamartHierarchy
entryRuleDatamartHierarchy returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getDatamartHierarchyRule()); }
iv_ruleDatamartHierarchy=ruleDatamartHierarchy
{ $current=$iv_ruleDatamartHierarchy.current; }
EOF;
// Rule DatamartHierarchy
ruleDatamartHierarchy returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='hierarchy'
{
newLeafNode(otherlv_0, grammarAccess.getDatamartHierarchyAccess().getHierarchyKeyword_0());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getDatamartHierarchyRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getDatamartHierarchyAccess().getHierarchyRefCubeHierarchyCrossReference_1_0());
}
)
)
(
(
lv_defaultMember_2_0='default'
{
newLeafNode(lv_defaultMember_2_0, grammarAccess.getDatamartHierarchyAccess().getDefaultMemberDefaultKeyword_2_0());
}
{
if ($current==null) {