blob: 947c5f509cb6b8539c50776a4b33dd0d8e167d27 [file] [log] [blame]
/*
* 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='verticalalign'
{
newLeafNode(otherlv_18, grammarAccess.getStyleAccess().getVerticalalignKeyword_4_5_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getVerticalalignVerticalTextAlignEnumEnumRuleCall_4_5_1_0());
}
lv_verticalalign_19_0=ruleVerticalTextAlignEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"verticalalign",
lv_verticalalign_19_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.VerticalTextAlignEnum");
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-top'
{
newLeafNode(otherlv_20, grammarAccess.getStyleAccess().getBorderTopKeyword_4_6_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getBorderTopBorderStyleParserRuleCall_4_6_1_0());
}
lv_borderTop_21_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"borderTop",
lv_borderTop_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-bottom'
{
newLeafNode(otherlv_22, grammarAccess.getStyleAccess().getBorderBottomKeyword_4_7_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getBorderBottomBorderStyleParserRuleCall_4_7_1_0());
}
lv_borderBottom_23_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"borderBottom",
lv_borderBottom_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-left'
{
newLeafNode(otherlv_24, grammarAccess.getStyleAccess().getBorderLeftKeyword_4_8_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getBorderLeftBorderStyleParserRuleCall_4_8_1_0());
}
lv_borderLeft_25_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"borderLeft",
lv_borderLeft_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='border-right'
{
newLeafNode(otherlv_26, grammarAccess.getStyleAccess().getBorderRightKeyword_4_9_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getBorderRightBorderStyleParserRuleCall_4_9_1_0());
}
lv_borderRight_27_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"borderRight",
lv_borderRight_27_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle");
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-top'
{
newLeafNode(otherlv_28, grammarAccess.getStyleAccess().getPaddingTopKeyword_4_10_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getPaddingTopValueUnsignedNumberParserRuleCall_4_10_1_0());
}
lv_paddingTopValue_29_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"paddingTopValue",
lv_paddingTopValue_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-bottom'
{
newLeafNode(otherlv_30, grammarAccess.getStyleAccess().getPaddingBottomKeyword_4_11_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getPaddingBottomValueUnsignedNumberParserRuleCall_4_11_1_0());
}
lv_paddingBottomValue_31_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"paddingBottomValue",
lv_paddingBottomValue_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-left'
{
newLeafNode(otherlv_32, grammarAccess.getStyleAccess().getPaddingLeftKeyword_4_12_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getPaddingLeftValueUnsignedNumberParserRuleCall_4_12_1_0());
}
lv_paddingLeftValue_33_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"paddingLeftValue",
lv_paddingLeftValue_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='padding-right'
{
newLeafNode(otherlv_34, grammarAccess.getStyleAccess().getPaddingRightKeyword_4_13_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getPaddingRightValueUnsignedNumberParserRuleCall_4_13_1_0());
}
lv_paddingRightValue_35_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"paddingRightValue",
lv_paddingRightValue_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-top'
{
newLeafNode(otherlv_36, grammarAccess.getStyleAccess().getMarginTopKeyword_4_14_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getMarginTopValueUnsignedNumberParserRuleCall_4_14_1_0());
}
lv_marginTopValue_37_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"marginTopValue",
lv_marginTopValue_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-bottom'
{
newLeafNode(otherlv_38, grammarAccess.getStyleAccess().getMarginBottomKeyword_4_15_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getMarginBottomValueUnsignedNumberParserRuleCall_4_15_1_0());
}
lv_marginBottomValue_39_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"marginBottomValue",
lv_marginBottomValue_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-left'
{
newLeafNode(otherlv_40, grammarAccess.getStyleAccess().getMarginLeftKeyword_4_16_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getMarginLeftValueUnsignedNumberParserRuleCall_4_16_1_0());
}
lv_marginLeftValue_41_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"marginLeftValue",
lv_marginLeftValue_41_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber");
afterParserOrEnumRuleCall();
}
)
)
))
{
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getStyleAccess().getUnorderedGroup_4());
}
)
)|
(
{getUnorderedGroupHelper().canSelect(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 17)}?=>(
{
getUnorderedGroupHelper().select(grammarAccess.getStyleAccess().getUnorderedGroup_4(), 17);
}
({true}?=>(otherlv_42='margin-right'
{
newLeafNode(otherlv_42, grammarAccess.getStyleAccess().getMarginRightKeyword_4_17_0());
}
(
(
{
newCompositeNode(grammarAccess.getStyleAccess().getMarginRightValueUnsignedNumberParserRuleCall_4_17_1_0());
}
lv_marginRightValue_43_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
set(
$current,
"marginRightValue",
lv_marginRightValue_43_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_44_0=ruleMediaStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStyleRule());
}
add(
$current,
"mediastyles",
lv_mediastyles_44_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.MediaStyle");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_45='}'
{
newLeafNode(otherlv_45, 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='verticalalign'
{
newLeafNode(otherlv_16, grammarAccess.getMediaStyleAccess().getVerticalalignKeyword_3_5_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getVerticalalignVerticalTextAlignEnumEnumRuleCall_3_5_1_0());
}
lv_verticalalign_17_0=ruleVerticalTextAlignEnum
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"verticalalign",
lv_verticalalign_17_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.VerticalTextAlignEnum");
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-top'
{
newLeafNode(otherlv_18, grammarAccess.getMediaStyleAccess().getBorderTopKeyword_3_6_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderTopBorderStyleParserRuleCall_3_6_1_0());
}
lv_borderTop_19_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"borderTop",
lv_borderTop_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-bottom'
{
newLeafNode(otherlv_20, grammarAccess.getMediaStyleAccess().getBorderBottomKeyword_3_7_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderBottomBorderStyleParserRuleCall_3_7_1_0());
}
lv_borderBottom_21_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"borderBottom",
lv_borderBottom_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-left'
{
newLeafNode(otherlv_22, grammarAccess.getMediaStyleAccess().getBorderLeftKeyword_3_8_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderLeftBorderStyleParserRuleCall_3_8_1_0());
}
lv_borderLeft_23_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"borderLeft",
lv_borderLeft_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='border-right'
{
newLeafNode(otherlv_24, grammarAccess.getMediaStyleAccess().getBorderRightKeyword_3_9_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getBorderRightBorderStyleParserRuleCall_3_9_1_0());
}
lv_borderRight_25_0=ruleBorderStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"borderRight",
lv_borderRight_25_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.BorderStyle");
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-top'
{
newLeafNode(otherlv_26, grammarAccess.getMediaStyleAccess().getPaddingTopKeyword_3_10_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingTopValueUnsignedNumberParserRuleCall_3_10_1_0());
}
lv_paddingTopValue_27_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"paddingTopValue",
lv_paddingTopValue_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-bottom'
{
newLeafNode(otherlv_28, grammarAccess.getMediaStyleAccess().getPaddingBottomKeyword_3_11_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingBottomValueUnsignedNumberParserRuleCall_3_11_1_0());
}
lv_paddingBottomValue_29_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"paddingBottomValue",
lv_paddingBottomValue_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-left'
{
newLeafNode(otherlv_30, grammarAccess.getMediaStyleAccess().getPaddingLeftKeyword_3_12_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingLeftValueUnsignedNumberParserRuleCall_3_12_1_0());
}
lv_paddingLeftValue_31_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"paddingLeftValue",
lv_paddingLeftValue_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='padding-right'
{
newLeafNode(otherlv_32, grammarAccess.getMediaStyleAccess().getPaddingRightKeyword_3_13_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getPaddingRightValueUnsignedNumberParserRuleCall_3_13_1_0());
}
lv_paddingRightValue_33_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"paddingRightValue",
lv_paddingRightValue_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-top'
{
newLeafNode(otherlv_34, grammarAccess.getMediaStyleAccess().getMarginTopKeyword_3_14_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginTopValueUnsignedNumberParserRuleCall_3_14_1_0());
}
lv_marginTopValue_35_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"marginTopValue",
lv_marginTopValue_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-bottom'
{
newLeafNode(otherlv_36, grammarAccess.getMediaStyleAccess().getMarginBottomKeyword_3_15_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginBottomValueUnsignedNumberParserRuleCall_3_15_1_0());
}
lv_marginBottomValue_37_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"marginBottomValue",
lv_marginBottomValue_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-left'
{
newLeafNode(otherlv_38, grammarAccess.getMediaStyleAccess().getMarginLeftKeyword_3_16_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginLeftValueUnsignedNumberParserRuleCall_3_16_1_0());
}
lv_marginLeftValue_39_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"marginLeftValue",
lv_marginLeftValue_39_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber");
afterParserOrEnumRuleCall();
}
)
)
))
{
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3());
}
)
)|
(
{getUnorderedGroupHelper().canSelect(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 17)}?=>(
{
getUnorderedGroupHelper().select(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3(), 17);
}
({true}?=>(otherlv_40='margin-right'
{
newLeafNode(otherlv_40, grammarAccess.getMediaStyleAccess().getMarginRightKeyword_3_17_0());
}
(
(
{
newCompositeNode(grammarAccess.getMediaStyleAccess().getMarginRightValueUnsignedNumberParserRuleCall_3_17_1_0());
}
lv_marginRightValue_41_0=ruleUnsignedNumber
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getMediaStyleRule());
}
set(
$current,
"marginRightValue",
lv_marginRightValue_41_0,
"org.eclipse.osbp.xtext.reportdsl.ReportDSL.UnsignedNumber");
afterParserOrEnumRuleCall();
}
)
)
))
{
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3());
}
)
)
)*
)
)
{
getUnorderedGroupHelper().leave(grammarAccess.getMediaStyleAccess().getUnorderedGroup_3());
}
)
otherlv_42='}'
{
newLeafNode(otherlv_42, 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) {