blob: 987f105d36c624c81460e6f7057405dfeb6822f9 [file] [log] [blame]
/*
* generated by Xtext 2.11.0
*/
grammar InternalGridSource;
options {
superClass=AbstractInternalAntlrParser;
}
@lexer::header {
package org.eclipse.osbp.xtext.gridsource.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.gridsource.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.gridsource.services.GridSourceGrammarAccess;
}
@parser::members {
private GridSourceGrammarAccess grammarAccess;
public InternalGridSourceParser(TokenStream input, GridSourceGrammarAccess grammarAccess) {
this(input);
this.grammarAccess = grammarAccess;
registerRules(grammarAccess.getGrammar());
}
@Override
protected String getFirstRuleName() {
return "Source";
}
@Override
protected GridSourceGrammarAccess getGrammarAccess() {
return grammarAccess;
}
}
@rulecatch {
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
}
// Entry rule entryRuleSource
entryRuleSource returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getSourceRule()); }
iv_ruleSource=ruleSource
{ $current=$iv_ruleSource.current; }
EOF;
// Rule Source
ruleSource returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='gridsource'
{
newLeafNode(otherlv_0, grammarAccess.getSourceAccess().getGridsourceKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getSourceAccess().getIdQualifiedNameParserRuleCall_1_0());
}
lv_id_1_0=ruleQualifiedName
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getSourceRule());
}
set(
$current,
"id",
lv_id_1_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.QualifiedName");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='for'
{
newLeafNode(otherlv_2, grammarAccess.getSourceAccess().getForKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getSourceAccess().getRootTypeJvmTypeReferenceParserRuleCall_3_0());
}
lv_rootType_3_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getSourceRule());
}
set(
$current,
"rootType",
lv_rootType_3_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
otherlv_4='{'
{
newLeafNode(otherlv_4, grammarAccess.getSourceAccess().getLeftCurlyBracketKeyword_4());
}
otherlv_5='inputs'
{
newLeafNode(otherlv_5, grammarAccess.getSourceAccess().getInputsKeyword_5());
}
otherlv_6='{'
{
newLeafNode(otherlv_6, grammarAccess.getSourceAccess().getLeftCurlyBracketKeyword_6());
}
(
(
{
newCompositeNode(grammarAccess.getSourceAccess().getInputsInputParserRuleCall_7_0());
}
lv_inputs_7_0=ruleInput
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getSourceRule());
}
add(
$current,
"inputs",
lv_inputs_7_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.Input");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_8='}'
{
newLeafNode(otherlv_8, grammarAccess.getSourceAccess().getRightCurlyBracketKeyword_8());
}
(
(
{
newCompositeNode(grammarAccess.getSourceAccess().getPropertiesPropertyParserRuleCall_9_0());
}
lv_properties_9_0=ruleProperty
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getSourceRule());
}
add(
$current,
"properties",
lv_properties_9_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.Property");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_10='}'
{
newLeafNode(otherlv_10, grammarAccess.getSourceAccess().getRightCurlyBracketKeyword_10());
}
)
;
// Entry rule entryRuleInput
entryRuleInput returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getInputRule()); }
iv_ruleInput=ruleInput
{ $current=$iv_ruleInput.current; }
EOF;
// Rule Input
ruleInput returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='inputType'
{
newLeafNode(otherlv_0, grammarAccess.getInputAccess().getInputTypeKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getInputAccess().getInputTypeJvmTypeReferenceParserRuleCall_1_0());
}
lv_inputType_1_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getInputRule());
}
set(
$current,
"inputType",
lv_inputType_1_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='filters'
{
newLeafNode(otherlv_2, grammarAccess.getInputAccess().getFiltersKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getInputAccess().getFiltersEQFilterParserRuleCall_3_0());
}
lv_filters_3_0=ruleEQFilter
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getInputRule());
}
add(
$current,
"filters",
lv_filters_3_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.EQFilter");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_4='&&'
{
newLeafNode(otherlv_4, grammarAccess.getInputAccess().getAmpersandAmpersandKeyword_4_0());
}
(
(
{
newCompositeNode(grammarAccess.getInputAccess().getFiltersEQFilterParserRuleCall_4_1_0());
}
lv_filters_5_0=ruleEQFilter
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getInputRule());
}
add(
$current,
"filters",
lv_filters_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.EQFilter");
afterParserOrEnumRuleCall();
}
)
)
)*
)
;
// Entry rule entryRuleEQFilter
entryRuleEQFilter returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getEQFilterRule()); }
iv_ruleEQFilter=ruleEQFilter
{ $current=$iv_ruleEQFilter.current; }
EOF;
// Rule EQFilter
ruleEQFilter returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getEQFilterAccess().getCxGridSourceEQFilterAction_0(),
$current);
}
)
otherlv_1='root:'
{
newLeafNode(otherlv_1, grammarAccess.getEQFilterAccess().getRootKeyword_1());
}
(
(
{
newCompositeNode(grammarAccess.getEQFilterAccess().getRootTypePropertyPathNestedFieldParserRuleCall_2_0());
}
lv_rootTypePropertyPath_2_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getEQFilterRule());
}
set(
$current,
"rootTypePropertyPath",
lv_rootTypePropertyPath_2_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
otherlv_3='='
{
newLeafNode(otherlv_3, grammarAccess.getEQFilterAccess().getEqualsSignKeyword_3());
}
otherlv_4='input:'
{
newLeafNode(otherlv_4, grammarAccess.getEQFilterAccess().getInputKeyword_4());
}
(
(
{
newCompositeNode(grammarAccess.getEQFilterAccess().getInputTypePropertyPathNestedFieldParserRuleCall_5_0());
}
lv_inputTypePropertyPath_5_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getEQFilterRule());
}
set(
$current,
"inputTypePropertyPath",
lv_inputTypePropertyPath_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleProperty
entryRuleProperty returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyRule()); }
iv_ruleProperty=ruleProperty
{ $current=$iv_ruleProperty.current; }
EOF;
// Rule Property
ruleProperty returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='prop'
{
newLeafNode(otherlv_0, grammarAccess.getPropertyAccess().getPropKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyAccess().getPathNestedFieldParserRuleCall_1_0());
}
lv_path_1_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyRule());
}
set(
$current,
"path",
lv_path_1_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
otherlv_2='style'
{
newLeafNode(otherlv_2, grammarAccess.getPropertyAccess().getStyleKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyAccess().getStylePropertyStyleParserRuleCall_3_0());
}
lv_style_3_0=rulePropertyStyle
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyRule());
}
set(
$current,
"style",
lv_style_3_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.PropertyStyle");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleNestedField
entryRuleNestedField returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getNestedFieldRule()); }
iv_ruleNestedField=ruleNestedField
{ $current=$iv_ruleNestedField.current; }
EOF;
// Rule NestedField
ruleNestedField returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getNestedFieldAccess().getCxGridNestedFieldAction_0(),
$current);
}
)
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getNestedFieldRule());
}
}
otherlv_1=RULE_ID
{
newLeafNode(otherlv_1, grammarAccess.getNestedFieldAccess().getFieldJvmOperationCrossReference_1_0());
}
)
)
(
(
{
newCompositeNode(grammarAccess.getNestedFieldAccess().getPathNestedPathParserRuleCall_2_0());
}
lv_path_2_0=ruleNestedPath
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getNestedFieldRule());
}
set(
$current,
"path",
lv_path_2_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedPath");
afterParserOrEnumRuleCall();
}
)
)?
)
;
// Entry rule entryRuleNestedPath
entryRuleNestedPath returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getNestedPathRule()); }
iv_ruleNestedPath=ruleNestedPath
{ $current=$iv_ruleNestedPath.current; }
EOF;
// Rule NestedPath
ruleNestedPath returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getNestedPathAccess().getCxGridNestedPathAction_0(),
$current);
}
)
otherlv_1='.'
{
newLeafNode(otherlv_1, grammarAccess.getNestedPathAccess().getFullStopKeyword_1());
}
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getNestedPathRule());
}
}
otherlv_2=RULE_ID
{
newLeafNode(otherlv_2, grammarAccess.getNestedPathAccess().getFieldJvmOperationCrossReference_2_0());
}
)
)
(
(
{
newCompositeNode(grammarAccess.getNestedPathAccess().getPathNestedPathParserRuleCall_3_0());
}
lv_path_3_0=ruleNestedPath
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getNestedPathRule());
}
set(
$current,
"path",
lv_path_3_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedPath");
afterParserOrEnumRuleCall();
}
)
)?
)
;
// Entry rule entryRulePropertyStyle
entryRulePropertyStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyStyleRule()); }
iv_rulePropertyStyle=rulePropertyStyle
{ $current=$iv_rulePropertyStyle.current; }
EOF;
// Rule PropertyStyle
rulePropertyStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyButtonStyleParserRuleCall_0());
}
this_PropertyButtonStyle_0=rulePropertyButtonStyle
{
$current = $this_PropertyButtonStyle_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyHtmlStyleParserRuleCall_1());
}
this_PropertyHtmlStyle_1=rulePropertyHtmlStyle
{
$current = $this_PropertyHtmlStyle_1.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyProgressbarStyleParserRuleCall_2());
}
this_PropertyProgressbarStyle_2=rulePropertyProgressbarStyle
{
$current = $this_PropertyProgressbarStyle_2.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyTextStyleParserRuleCall_3());
}
this_PropertyTextStyle_3=rulePropertyTextStyle
{
$current = $this_PropertyTextStyle_3.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyBooleanStyleParserRuleCall_4());
}
this_PropertyBooleanStyle_4=rulePropertyBooleanStyle
{
$current = $this_PropertyBooleanStyle_4.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyDateStyleParserRuleCall_5());
}
this_PropertyDateStyle_5=rulePropertyDateStyle
{
$current = $this_PropertyDateStyle_5.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyNumberStyleParserRuleCall_6());
}
this_PropertyNumberStyle_6=rulePropertyNumberStyle
{
$current = $this_PropertyNumberStyle_6.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyImageStyleParserRuleCall_7());
}
this_PropertyImageStyle_7=rulePropertyImageStyle
{
$current = $this_PropertyImageStyle_7.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyQuantityStyleParserRuleCall_8());
}
this_PropertyQuantityStyle_8=rulePropertyQuantityStyle
{
$current = $this_PropertyQuantityStyle_8.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyPriceStyleParserRuleCall_9());
}
this_PropertyPriceStyle_9=rulePropertyPriceStyle
{
$current = $this_PropertyPriceStyle_9.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getPropertyStyleAccess().getGridPropIndicatorStyleParserRuleCall_10());
}
this_GridPropIndicatorStyle_10=ruleGridPropIndicatorStyle
{
$current = $this_GridPropIndicatorStyle_10.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRulePropertyButtonStyle
entryRulePropertyButtonStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyButtonStyleRule()); }
iv_rulePropertyButtonStyle=rulePropertyButtonStyle
{ $current=$iv_rulePropertyButtonStyle.current; }
EOF;
// Rule PropertyButtonStyle
rulePropertyButtonStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyButtonStyleAccess().getCxGridPropButtonStyleAction_0(),
$current);
}
)
otherlv_1='buttonStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyButtonStyleAccess().getButtonStyleKeyword_1());
}
otherlv_2='eventTopic'
{
newLeafNode(otherlv_2, grammarAccess.getPropertyButtonStyleAccess().getEventTopicKeyword_2());
}
(
(
lv_eventTopic_3_0=RULE_STRING
{
newLeafNode(lv_eventTopic_3_0, grammarAccess.getPropertyButtonStyleAccess().getEventTopicSTRINGTerminalRuleCall_3_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyButtonStyleRule());
}
setWithLastConsumed(
$current,
"eventTopic",
lv_eventTopic_3_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
)
;
// Entry rule entryRulePropertyHtmlStyle
entryRulePropertyHtmlStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyHtmlStyleRule()); }
iv_rulePropertyHtmlStyle=rulePropertyHtmlStyle
{ $current=$iv_rulePropertyHtmlStyle.current; }
EOF;
// Rule PropertyHtmlStyle
rulePropertyHtmlStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyHtmlStyleAccess().getCxGridPropHtmlStyleAction_0(),
$current);
}
)
otherlv_1='htmlStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyHtmlStyleAccess().getHtmlStyleKeyword_1());
}
)
;
// Entry rule entryRulePropertyBooleanStyle
entryRulePropertyBooleanStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyBooleanStyleRule()); }
iv_rulePropertyBooleanStyle=rulePropertyBooleanStyle
{ $current=$iv_rulePropertyBooleanStyle.current; }
EOF;
// Rule PropertyBooleanStyle
rulePropertyBooleanStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyBooleanStyleAccess().getCxGridPropBooleanStyleAction_0(),
$current);
}
)
otherlv_1='boolStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyBooleanStyleAccess().getBoolStyleKeyword_1());
}
)
;
// Entry rule entryRulePropertyDateStyle
entryRulePropertyDateStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyDateStyleRule()); }
iv_rulePropertyDateStyle=rulePropertyDateStyle
{ $current=$iv_rulePropertyDateStyle.current; }
EOF;
// Rule PropertyDateStyle
rulePropertyDateStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyDateStyleAccess().getCxGridPropDateStyleAction_0(),
$current);
}
)
otherlv_1='dateStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyDateStyleAccess().getDateStyleKeyword_1());
}
otherlv_2='format'
{
newLeafNode(otherlv_2, grammarAccess.getPropertyDateStyleAccess().getFormatKeyword_2());
}
(
(
lv_dateFormat_3_0=RULE_STRING
{
newLeafNode(lv_dateFormat_3_0, grammarAccess.getPropertyDateStyleAccess().getDateFormatSTRINGTerminalRuleCall_3_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyDateStyleRule());
}
setWithLastConsumed(
$current,
"dateFormat",
lv_dateFormat_3_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
)
;
// Entry rule entryRulePropertyNumberStyle
entryRulePropertyNumberStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyNumberStyleRule()); }
iv_rulePropertyNumberStyle=rulePropertyNumberStyle
{ $current=$iv_rulePropertyNumberStyle.current; }
EOF;
// Rule PropertyNumberStyle
rulePropertyNumberStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyNumberStyleAccess().getCxGridPropNumberStyleAction_0(),
$current);
}
)
otherlv_1='numberStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyNumberStyleAccess().getNumberStyleKeyword_1());
}
otherlv_2='format'
{
newLeafNode(otherlv_2, grammarAccess.getPropertyNumberStyleAccess().getFormatKeyword_2());
}
(
(
lv_numberFormat_3_0=RULE_STRING
{
newLeafNode(lv_numberFormat_3_0, grammarAccess.getPropertyNumberStyleAccess().getNumberFormatSTRINGTerminalRuleCall_3_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyNumberStyleRule());
}
setWithLastConsumed(
$current,
"numberFormat",
lv_numberFormat_3_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
)
;
// Entry rule entryRulePropertyProgressbarStyle
entryRulePropertyProgressbarStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyProgressbarStyleRule()); }
iv_rulePropertyProgressbarStyle=rulePropertyProgressbarStyle
{ $current=$iv_rulePropertyProgressbarStyle.current; }
EOF;
// Rule PropertyProgressbarStyle
rulePropertyProgressbarStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyProgressbarStyleAccess().getCxGridPropProgressbarStyleAction_0(),
$current);
}
)
otherlv_1='progressbarStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyProgressbarStyleAccess().getProgressbarStyleKeyword_1());
}
otherlv_2='max'
{
newLeafNode(otherlv_2, grammarAccess.getPropertyProgressbarStyleAccess().getMaxKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyProgressbarStyleAccess().getMaxValueLDoubleParserRuleCall_3_0());
}
lv_maxValue_3_0=ruleLDouble
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyProgressbarStyleRule());
}
set(
$current,
"maxValue",
lv_maxValue_3_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.LDouble");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleGridPropIndicatorStyle
entryRuleGridPropIndicatorStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getGridPropIndicatorStyleRule()); }
iv_ruleGridPropIndicatorStyle=ruleGridPropIndicatorStyle
{ $current=$iv_ruleGridPropIndicatorStyle.current; }
EOF;
// Rule GridPropIndicatorStyle
ruleGridPropIndicatorStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getGridPropIndicatorStyleAccess().getCxGridPropIndicatorStyleAction_0(),
$current);
}
)
otherlv_1='indicatorStyle'
{
newLeafNode(otherlv_1, grammarAccess.getGridPropIndicatorStyleAccess().getIndicatorStyleKeyword_1());
}
otherlv_2='greenFrom'
{
newLeafNode(otherlv_2, grammarAccess.getGridPropIndicatorStyleAccess().getGreenFromKeyword_2());
}
(
(
{
newCompositeNode(grammarAccess.getGridPropIndicatorStyleAccess().getGreenStartsLDoubleParserRuleCall_3_0());
}
lv_greenStarts_3_0=ruleLDouble
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getGridPropIndicatorStyleRule());
}
set(
$current,
"greenStarts",
lv_greenStarts_3_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.LDouble");
afterParserOrEnumRuleCall();
}
)
)
otherlv_4='redUntil'
{
newLeafNode(otherlv_4, grammarAccess.getGridPropIndicatorStyleAccess().getRedUntilKeyword_4());
}
(
(
{
newCompositeNode(grammarAccess.getGridPropIndicatorStyleAccess().getRedEndsLDoubleParserRuleCall_5_0());
}
lv_redEnds_5_0=ruleLDouble
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getGridPropIndicatorStyleRule());
}
set(
$current,
"redEnds",
lv_redEnds_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.LDouble");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRulePropertyQuantityStyle
entryRulePropertyQuantityStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyQuantityStyleRule()); }
iv_rulePropertyQuantityStyle=rulePropertyQuantityStyle
{ $current=$iv_rulePropertyQuantityStyle.current; }
EOF;
// Rule PropertyQuantityStyle
rulePropertyQuantityStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyQuantityStyleAccess().getCxGridPropQuantityStyleAction_0(),
$current);
}
)
otherlv_1='quantityStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyQuantityStyleAccess().getQuantityStyleKeyword_1());
}
(
(
lv_htmlPattern_2_0=RULE_STRING
{
newLeafNode(lv_htmlPattern_2_0, grammarAccess.getPropertyQuantityStyleAccess().getHtmlPatternSTRINGTerminalRuleCall_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyQuantityStyleRule());
}
setWithLastConsumed(
$current,
"htmlPattern",
lv_htmlPattern_2_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)?
otherlv_3='value'
{
newLeafNode(otherlv_3, grammarAccess.getPropertyQuantityStyleAccess().getValueKeyword_3());
}
otherlv_4='='
{
newLeafNode(otherlv_4, grammarAccess.getPropertyQuantityStyleAccess().getEqualsSignKeyword_4());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyQuantityStyleAccess().getValuePropertyPathNestedFieldParserRuleCall_5_0());
}
lv_valuePropertyPath_5_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyQuantityStyleRule());
}
set(
$current,
"valuePropertyPath",
lv_valuePropertyPath_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_6='('
{
newLeafNode(otherlv_6, grammarAccess.getPropertyQuantityStyleAccess().getLeftParenthesisKeyword_6_0());
}
otherlv_7='format'
{
newLeafNode(otherlv_7, grammarAccess.getPropertyQuantityStyleAccess().getFormatKeyword_6_1());
}
(
(
lv_valueNumberFormat_8_0=RULE_STRING
{
newLeafNode(lv_valueNumberFormat_8_0, grammarAccess.getPropertyQuantityStyleAccess().getValueNumberFormatSTRINGTerminalRuleCall_6_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyQuantityStyleRule());
}
setWithLastConsumed(
$current,
"valueNumberFormat",
lv_valueNumberFormat_8_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
otherlv_9=')'
{
newLeafNode(otherlv_9, grammarAccess.getPropertyQuantityStyleAccess().getRightParenthesisKeyword_6_3());
}
)?
otherlv_10='uom'
{
newLeafNode(otherlv_10, grammarAccess.getPropertyQuantityStyleAccess().getUomKeyword_7());
}
otherlv_11='='
{
newLeafNode(otherlv_11, grammarAccess.getPropertyQuantityStyleAccess().getEqualsSignKeyword_8());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyQuantityStyleAccess().getUomPropertyPathNestedFieldParserRuleCall_9_0());
}
lv_uomPropertyPath_12_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyQuantityStyleRule());
}
set(
$current,
"uomPropertyPath",
lv_uomPropertyPath_12_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRulePropertyPriceStyle
entryRulePropertyPriceStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyPriceStyleRule()); }
iv_rulePropertyPriceStyle=rulePropertyPriceStyle
{ $current=$iv_rulePropertyPriceStyle.current; }
EOF;
// Rule PropertyPriceStyle
rulePropertyPriceStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyPriceStyleAccess().getCxGridPropPriceStyleAction_0(),
$current);
}
)
otherlv_1='priceStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyPriceStyleAccess().getPriceStyleKeyword_1());
}
(
(
lv_htmlPattern_2_0=RULE_STRING
{
newLeafNode(lv_htmlPattern_2_0, grammarAccess.getPropertyPriceStyleAccess().getHtmlPatternSTRINGTerminalRuleCall_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyPriceStyleRule());
}
setWithLastConsumed(
$current,
"htmlPattern",
lv_htmlPattern_2_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)?
otherlv_3='value'
{
newLeafNode(otherlv_3, grammarAccess.getPropertyPriceStyleAccess().getValueKeyword_3());
}
otherlv_4='='
{
newLeafNode(otherlv_4, grammarAccess.getPropertyPriceStyleAccess().getEqualsSignKeyword_4());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyPriceStyleAccess().getValuePropertyPathNestedFieldParserRuleCall_5_0());
}
lv_valuePropertyPath_5_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyPriceStyleRule());
}
set(
$current,
"valuePropertyPath",
lv_valuePropertyPath_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_6='('
{
newLeafNode(otherlv_6, grammarAccess.getPropertyPriceStyleAccess().getLeftParenthesisKeyword_6_0());
}
otherlv_7='format'
{
newLeafNode(otherlv_7, grammarAccess.getPropertyPriceStyleAccess().getFormatKeyword_6_1());
}
(
(
lv_valueNumberFormat_8_0=RULE_STRING
{
newLeafNode(lv_valueNumberFormat_8_0, grammarAccess.getPropertyPriceStyleAccess().getValueNumberFormatSTRINGTerminalRuleCall_6_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyPriceStyleRule());
}
setWithLastConsumed(
$current,
"valueNumberFormat",
lv_valueNumberFormat_8_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
otherlv_9=')'
{
newLeafNode(otherlv_9, grammarAccess.getPropertyPriceStyleAccess().getRightParenthesisKeyword_6_3());
}
)?
otherlv_10='currency'
{
newLeafNode(otherlv_10, grammarAccess.getPropertyPriceStyleAccess().getCurrencyKeyword_7());
}
otherlv_11='='
{
newLeafNode(otherlv_11, grammarAccess.getPropertyPriceStyleAccess().getEqualsSignKeyword_8());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyPriceStyleAccess().getCurrencyPropertyPathNestedFieldParserRuleCall_9_0());
}
lv_currencyPropertyPath_12_0=ruleNestedField
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyPriceStyleRule());
}
set(
$current,
"currencyPropertyPath",
lv_currencyPropertyPath_12_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.NestedField");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRulePropertyTextStyle
entryRulePropertyTextStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyTextStyleRule()); }
iv_rulePropertyTextStyle=rulePropertyTextStyle
{ $current=$iv_rulePropertyTextStyle.current; }
EOF;
// Rule PropertyTextStyle
rulePropertyTextStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyTextStyleAccess().getCxGridPropTextStyleAction_0(),
$current);
}
)
otherlv_1='textStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyTextStyleAccess().getTextStyleKeyword_1());
}
)
;
// Entry rule entryRulePropertyImageStyle
entryRulePropertyImageStyle returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getPropertyImageStyleRule()); }
iv_rulePropertyImageStyle=rulePropertyImageStyle
{ $current=$iv_rulePropertyImageStyle.current; }
EOF;
// Rule PropertyImageStyle
rulePropertyImageStyle returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getPropertyImageStyleAccess().getCxGridPropImageStyleAction_0(),
$current);
}
)
otherlv_1='imageStyle'
{
newLeafNode(otherlv_1, grammarAccess.getPropertyImageStyleAccess().getImageStyleKeyword_1());
}
(
otherlv_2='eventTopic'
{
newLeafNode(otherlv_2, grammarAccess.getPropertyImageStyleAccess().getEventTopicKeyword_2_0());
}
(
(
lv_eventTopic_3_0=RULE_STRING
{
newLeafNode(lv_eventTopic_3_0, grammarAccess.getPropertyImageStyleAccess().getEventTopicSTRINGTerminalRuleCall_2_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getPropertyImageStyleRule());
}
setWithLastConsumed(
$current,
"eventTopic",
lv_eventTopic_3_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
)?
otherlv_4='{'
{
newLeafNode(otherlv_4, grammarAccess.getPropertyImageStyleAccess().getLeftCurlyBracketKeyword_3());
}
(
(
{
newCompositeNode(grammarAccess.getPropertyImageStyleAccess().getConfigsStyleConfigParserRuleCall_4_0());
}
lv_configs_5_0=ruleStyleConfig
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getPropertyImageStyleRule());
}
add(
$current,
"configs",
lv_configs_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.StyleConfig");
afterParserOrEnumRuleCall();
}
)
)*
otherlv_6='}'
{
newLeafNode(otherlv_6, grammarAccess.getPropertyImageStyleAccess().getRightCurlyBracketKeyword_5());
}
)
;
// Entry rule entryRuleQualifiedName
entryRuleQualifiedName returns [String current=null]:
{ newCompositeNode(grammarAccess.getQualifiedNameRule()); }
iv_ruleQualifiedName=ruleQualifiedName
{ $current=$iv_ruleQualifiedName.current.getText(); }
EOF;
// Rule QualifiedName
ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0());
}
this_ValidID_0=ruleValidID
{
$current.merge(this_ValidID_0);
}
{
afterParserOrEnumRuleCall();
}
(
(
('.')=>
kw='.'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0());
}
)
{
newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1());
}
this_ValidID_2=ruleValidID
{
$current.merge(this_ValidID_2);
}
{
afterParserOrEnumRuleCall();
}
)*
)
;
// Entry rule entryRuleValidID
entryRuleValidID returns [String current=null]:
{ newCompositeNode(grammarAccess.getValidIDRule()); }
iv_ruleValidID=ruleValidID
{ $current=$iv_ruleValidID.current.getText(); }
EOF;
// Rule ValidID
ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
this_ID_0=RULE_ID
{
$current.merge(this_ID_0);
}
{
newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall());
}
;
// Entry rule entryRuleStyleConfig
entryRuleStyleConfig returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getStyleConfigRule()); }
iv_ruleStyleConfig=ruleStyleConfig
{ $current=$iv_ruleStyleConfig.current; }
EOF;
// Rule StyleConfig
ruleStyleConfig returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getStyleConfigAccess().getNumericToResourceStyleConfigParserRuleCall_0());
}
this_NumericToResourceStyleConfig_0=ruleNumericToResourceStyleConfig
{
$current = $this_NumericToResourceStyleConfig_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getStyleConfigAccess().getStringToResourceStyleConfigParserRuleCall_1());
}
this_StringToResourceStyleConfig_1=ruleStringToResourceStyleConfig
{
$current = $this_StringToResourceStyleConfig_1.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleNumericToResourceStyleConfig
entryRuleNumericToResourceStyleConfig returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getNumericToResourceStyleConfigRule()); }
iv_ruleNumericToResourceStyleConfig=ruleNumericToResourceStyleConfig
{ $current=$iv_ruleNumericToResourceStyleConfig.current; }
EOF;
// Rule NumericToResourceStyleConfig
ruleNumericToResourceStyleConfig returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='number'
{
newLeafNode(otherlv_0, grammarAccess.getNumericToResourceStyleConfigAccess().getNumberKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getNumericToResourceStyleConfigAccess().getCompareStyleCompareEnumRuleCall_1_0());
}
lv_compare_1_0=ruleStyleCompare
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getNumericToResourceStyleConfigRule());
}
set(
$current,
"compare",
lv_compare_1_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.StyleCompare");
afterParserOrEnumRuleCall();
}
)
)
(
(
{
newCompositeNode(grammarAccess.getNumericToResourceStyleConfigAccess().getValueLDoubleParserRuleCall_2_0());
}
lv_value_2_0=ruleLDouble
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getNumericToResourceStyleConfigRule());
}
set(
$current,
"value",
lv_value_2_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.LDouble");
afterParserOrEnumRuleCall();
}
)
)
otherlv_3='then'
{
newLeafNode(otherlv_3, grammarAccess.getNumericToResourceStyleConfigAccess().getThenKeyword_3());
}
(
(
lv_resourceThemePath_4_0=RULE_THEME_RESOURCE
{
newLeafNode(lv_resourceThemePath_4_0, grammarAccess.getNumericToResourceStyleConfigAccess().getResourceThemePathTHEME_RESOURCETerminalRuleCall_4_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getNumericToResourceStyleConfigRule());
}
setWithLastConsumed(
$current,
"resourceThemePath",
lv_resourceThemePath_4_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.THEME_RESOURCE");
}
)
)
)
;
// Entry rule entryRuleStringToResourceStyleConfig
entryRuleStringToResourceStyleConfig returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getStringToResourceStyleConfigRule()); }
iv_ruleStringToResourceStyleConfig=ruleStringToResourceStyleConfig
{ $current=$iv_ruleStringToResourceStyleConfig.current; }
EOF;
// Rule StringToResourceStyleConfig
ruleStringToResourceStyleConfig returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='string'
{
newLeafNode(otherlv_0, grammarAccess.getStringToResourceStyleConfigAccess().getStringKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getStringToResourceStyleConfigAccess().getCompareStyleCompareEnumRuleCall_1_0());
}
lv_compare_1_0=ruleStyleCompare
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getStringToResourceStyleConfigRule());
}
set(
$current,
"compare",
lv_compare_1_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.StyleCompare");
afterParserOrEnumRuleCall();
}
)
)
(
(
lv_value_2_0=RULE_STRING
{
newLeafNode(lv_value_2_0, grammarAccess.getStringToResourceStyleConfigAccess().getValueSTRINGTerminalRuleCall_2_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getStringToResourceStyleConfigRule());
}
setWithLastConsumed(
$current,
"value",
lv_value_2_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
)
)
otherlv_3='then'
{
newLeafNode(otherlv_3, grammarAccess.getStringToResourceStyleConfigAccess().getThenKeyword_3());
}
(
(
lv_resourceThemePath_4_0=RULE_THEME_RESOURCE
{
newLeafNode(lv_resourceThemePath_4_0, grammarAccess.getStringToResourceStyleConfigAccess().getResourceThemePathTHEME_RESOURCETerminalRuleCall_4_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getStringToResourceStyleConfigRule());
}
setWithLastConsumed(
$current,
"resourceThemePath",
lv_resourceThemePath_4_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.THEME_RESOURCE");
}
)
)
)
;
// Entry rule entryRuleLInt
entryRuleLInt returns [String current=null]:
{ newCompositeNode(grammarAccess.getLIntRule()); }
iv_ruleLInt=ruleLInt
{ $current=$iv_ruleLInt.current.getText(); }
EOF;
// Rule LInt
ruleLInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
kw='+'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getLIntAccess().getPlusSignKeyword_0_0());
}
|
kw='-'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getLIntAccess().getHyphenMinusKeyword_0_1());
}
)?
this_INT_2=RULE_INT
{
$current.merge(this_INT_2);
}
{
newLeafNode(this_INT_2, grammarAccess.getLIntAccess().getINTTerminalRuleCall_1());
}
)
;
// Entry rule entryRuleLDouble
entryRuleLDouble returns [String current=null]:
{ newCompositeNode(grammarAccess.getLDoubleRule()); }
iv_ruleLDouble=ruleLDouble
{ $current=$iv_ruleLDouble.current.getText(); }
EOF;
// Rule LDouble
ruleLDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getLDoubleAccess().getLIntParserRuleCall_0());
}
this_LInt_0=ruleLInt
{
$current.merge(this_LInt_0);
}
{
afterParserOrEnumRuleCall();
}
(
kw='.'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getLDoubleAccess().getFullStopKeyword_1_0());
}
this_INT_2=RULE_INT
{
$current.merge(this_INT_2);
}
{
newLeafNode(this_INT_2, grammarAccess.getLDoubleAccess().getINTTerminalRuleCall_1_1());
}
)?
)
;
// Entry rule entryRuleJvmTypeReference
entryRuleJvmTypeReference returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); }
iv_ruleJvmTypeReference=ruleJvmTypeReference
{ $current=$iv_ruleJvmTypeReference.current; }
EOF;
// Rule JvmTypeReference
ruleJvmTypeReference returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0());
}
this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference
{
$current = $this_JvmParameterizedTypeReference_0.current;
afterParserOrEnumRuleCall();
}
(
((
(
)
ruleArrayBrackets
)
)=>
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(),
$current);
}
)
{
newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1());
}
ruleArrayBrackets
{
afterParserOrEnumRuleCall();
}
)
)*
)
|
{
newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1());
}
this_XFunctionTypeRef_3=ruleXFunctionTypeRef
{
$current = $this_XFunctionTypeRef_3.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleArrayBrackets
entryRuleArrayBrackets returns [String current=null]:
{ newCompositeNode(grammarAccess.getArrayBracketsRule()); }
iv_ruleArrayBrackets=ruleArrayBrackets
{ $current=$iv_ruleArrayBrackets.current.getText(); }
EOF;
// Rule ArrayBrackets
ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
kw='['
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0());
}
kw=']'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1());
}
)
;
// Entry rule entryRuleXFunctionTypeRef
entryRuleXFunctionTypeRef returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); }
iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef
{ $current=$iv_ruleXFunctionTypeRef.current; }
EOF;
// Rule XFunctionTypeRef
ruleXFunctionTypeRef returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
otherlv_0='('
{
newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0());
}
(
(
(
{
newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0());
}
lv_paramTypes_1_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule());
}
add(
$current,
"paramTypes",
lv_paramTypes_1_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_2=','
{
newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0());
}
(
(
{
newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0());
}
lv_paramTypes_3_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule());
}
add(
$current,
"paramTypes",
lv_paramTypes_3_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)*
)?
otherlv_4=')'
{
newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2());
}
)?
otherlv_5='=>'
{
newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1());
}
(
(
{
newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0());
}
lv_returnType_6_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule());
}
set(
$current,
"returnType",
lv_returnType_6_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleJvmParameterizedTypeReference
entryRuleJvmParameterizedTypeReference returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); }
iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference
{ $current=$iv_ruleJvmParameterizedTypeReference.current; }
EOF;
// Rule JvmParameterizedTypeReference
ruleJvmParameterizedTypeReference returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule());
}
}
{
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0());
}
ruleQualifiedName
{
afterParserOrEnumRuleCall();
}
)
)
(
(
('<')=>
otherlv_1='<'
{
newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0());
}
)
(
(
{
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0());
}
lv_arguments_2_0=ruleJvmArgumentTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
}
add(
$current,
"arguments",
lv_arguments_2_0,
"org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_3=','
{
newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0());
}
(
(
{
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0());
}
lv_arguments_4_0=ruleJvmArgumentTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
}
add(
$current,
"arguments",
lv_arguments_4_0,
"org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)*
otherlv_5='>'
{
newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3());
}
(
(
((
(
)
'.'
)
)=>
(
(
{
$current = forceCreateModelElementAndSet(
grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(),
$current);
}
)
otherlv_7='.'
{
newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1());
}
)
)
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule());
}
}
{
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0());
}
ruleValidID
{
afterParserOrEnumRuleCall();
}
)
)
(
(
('<')=>
otherlv_9='<'
{
newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0());
}
)
(
(
{
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0());
}
lv_arguments_10_0=ruleJvmArgumentTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
}
add(
$current,
"arguments",
lv_arguments_10_0,
"org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
afterParserOrEnumRuleCall();
}
)
)
(
otherlv_11=','
{
newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0());
}
(
(
{
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0());
}
lv_arguments_12_0=ruleJvmArgumentTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
}
add(
$current,
"arguments",
lv_arguments_12_0,
"org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)*
otherlv_13='>'
{
newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3());
}
)?
)*
)?
)
;
// Entry rule entryRuleJvmArgumentTypeReference
entryRuleJvmArgumentTypeReference returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); }
iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference
{ $current=$iv_ruleJvmArgumentTypeReference.current; }
EOF;
// Rule JvmArgumentTypeReference
ruleJvmArgumentTypeReference returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0());
}
this_JvmTypeReference_0=ruleJvmTypeReference
{
$current = $this_JvmTypeReference_0.current;
afterParserOrEnumRuleCall();
}
|
{
newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1());
}
this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference
{
$current = $this_JvmWildcardTypeReference_1.current;
afterParserOrEnumRuleCall();
}
)
;
// Entry rule entryRuleJvmWildcardTypeReference
entryRuleJvmWildcardTypeReference returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); }
iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference
{ $current=$iv_ruleJvmWildcardTypeReference.current; }
EOF;
// Rule JvmWildcardTypeReference
ruleJvmWildcardTypeReference returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
{
$current = forceCreateModelElement(
grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(),
$current);
}
)
otherlv_1='?'
{
newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1());
}
(
(
(
(
{
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0());
}
lv_constraints_2_0=ruleJvmUpperBound
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
}
add(
$current,
"constraints",
lv_constraints_2_0,
"org.eclipse.xtext.xbase.Xtype.JvmUpperBound");
afterParserOrEnumRuleCall();
}
)
)
(
(
{
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0());
}
lv_constraints_3_0=ruleJvmUpperBoundAnded
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
}
add(
$current,
"constraints",
lv_constraints_3_0,
"org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded");
afterParserOrEnumRuleCall();
}
)
)*
)
|
(
(
(
{
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0());
}
lv_constraints_4_0=ruleJvmLowerBound
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
}
add(
$current,
"constraints",
lv_constraints_4_0,
"org.eclipse.xtext.xbase.Xtype.JvmLowerBound");
afterParserOrEnumRuleCall();
}
)
)
(
(
{
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0());
}
lv_constraints_5_0=ruleJvmLowerBoundAnded
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
}
add(
$current,
"constraints",
lv_constraints_5_0,
"org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded");
afterParserOrEnumRuleCall();
}
)
)*
)
)?
)
;
// Entry rule entryRuleJvmUpperBound
entryRuleJvmUpperBound returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmUpperBoundRule()); }
iv_ruleJvmUpperBound=ruleJvmUpperBound
{ $current=$iv_ruleJvmUpperBound.current; }
EOF;
// Rule JvmUpperBound
ruleJvmUpperBound returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='extends'
{
newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
}
lv_typeReference_1_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule());
}
set(
$current,
"typeReference",
lv_typeReference_1_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleJvmUpperBoundAnded
entryRuleJvmUpperBoundAnded returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); }
iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded
{ $current=$iv_ruleJvmUpperBoundAnded.current; }
EOF;
// Rule JvmUpperBoundAnded
ruleJvmUpperBoundAnded returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='&'
{
newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
}
lv_typeReference_1_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule());
}
set(
$current,
"typeReference",
lv_typeReference_1_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleJvmLowerBound
entryRuleJvmLowerBound returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmLowerBoundRule()); }
iv_ruleJvmLowerBound=ruleJvmLowerBound
{ $current=$iv_ruleJvmLowerBound.current; }
EOF;
// Rule JvmLowerBound
ruleJvmLowerBound returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='super'
{
newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
}
lv_typeReference_1_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule());
}
set(
$current,
"typeReference",
lv_typeReference_1_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleJvmLowerBoundAnded
entryRuleJvmLowerBoundAnded returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); }
iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded
{ $current=$iv_ruleJvmLowerBoundAnded.current; }
EOF;
// Rule JvmLowerBoundAnded
ruleJvmLowerBoundAnded returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='&'
{
newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0());
}
(
(
{
newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
}
lv_typeReference_1_0=ruleJvmTypeReference
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule());
}
set(
$current,
"typeReference",
lv_typeReference_1_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
)
)
)
;
// Entry rule entryRuleQualifiedNameWithWildcard
entryRuleQualifiedNameWithWildcard returns [String current=null]:
{ newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); }
iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard
{ $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); }
EOF;
// Rule QualifiedNameWithWildcard
ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0());
}
this_QualifiedName_0=ruleQualifiedName
{
$current.merge(this_QualifiedName_0);
}
{
afterParserOrEnumRuleCall();
}
kw='.'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1());
}
kw='*'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2());
}
)
;
// Entry rule entryRuleXImportDeclaration
entryRuleXImportDeclaration returns [EObject current=null]:
{ newCompositeNode(grammarAccess.getXImportDeclarationRule()); }
iv_ruleXImportDeclaration=ruleXImportDeclaration
{ $current=$iv_ruleXImportDeclaration.current; }
EOF;
// Rule XImportDeclaration
ruleXImportDeclaration returns [EObject current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
otherlv_0='import'
{
newLeafNode(otherlv_0, grammarAccess.getXImportDeclarationAccess().getImportKeyword_0());
}
(
(
(
(
lv_static_1_0='static'
{
newLeafNode(lv_static_1_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getXImportDeclarationRule());
}
setWithLastConsumed($current, "static", true, "static");
}
)
)
(
(
lv_extension_2_0='extension'
{
newLeafNode(lv_extension_2_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getXImportDeclarationRule());
}
setWithLastConsumed($current, "extension", true, "extension");
}
)
)?
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getXImportDeclarationRule());
}
}
{
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0());
}
ruleQualifiedNameInStaticImport
{
afterParserOrEnumRuleCall();
}
)
)
(
(
(
lv_wildcard_4_0='*'
{
newLeafNode(lv_wildcard_4_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0());
}
{
if ($current==null) {
$current = createModelElement(grammarAccess.getXImportDeclarationRule());
}
setWithLastConsumed($current, "wildcard", true, "*");
}
)
)
|
(
(
{
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0());
}
lv_memberName_5_0=ruleValidID
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getXImportDeclarationRule());
}
set(
$current,
"memberName",
lv_memberName_5_0,
"org.eclipse.osbp.xtext.gridsource.GridSource.ValidID");
afterParserOrEnumRuleCall();
}
)
)
)
)
|
(
(
{
if ($current==null) {
$current = createModelElement(grammarAccess.getXImportDeclarationRule());
}
}
{
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0());
}
ruleQualifiedName
{
afterParserOrEnumRuleCall();
}
)
)
|
(
(
{
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0());
}
lv_importedNamespace_7_0=ruleQualifiedNameWithWildcard
{
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getXImportDeclarationRule());
}
set(
$current,
"importedNamespace",
lv_importedNamespace_7_0,
"org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard");
afterParserOrEnumRuleCall();
}
)
)
)
(
otherlv_8=';'
{
newLeafNode(otherlv_8, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2());
}
)?
)
;
// Entry rule entryRuleQualifiedNameInStaticImport
entryRuleQualifiedNameInStaticImport returns [String current=null]:
{ newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); }
iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport
{ $current=$iv_ruleQualifiedNameInStaticImport.current.getText(); }
EOF;
// Rule QualifiedNameInStaticImport
ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
{
newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0());
}
this_ValidID_0=ruleValidID
{
$current.merge(this_ValidID_0);
}
{
afterParserOrEnumRuleCall();
}
kw='.'
{
$current.merge(kw);
newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1());
}
)+
;
// Rule StyleCompare
ruleStyleCompare returns [Enumerator current=null]
@init {
enterRule();
}
@after {
leaveRule();
}:
(
(
enumLiteral_0='equal'
{
$current = grammarAccess.getStyleCompareAccess().getEqualEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getStyleCompareAccess().getEqualEnumLiteralDeclaration_0());
}
)
|
(
enumLiteral_1='greater equal'
{
$current = grammarAccess.getStyleCompareAccess().getGreaterEqualEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getStyleCompareAccess().getGreaterEqualEnumLiteralDeclaration_1());
}
)
|
(
enumLiteral_2='greater than'
{
$current = grammarAccess.getStyleCompareAccess().getGreaterThanEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_2, grammarAccess.getStyleCompareAccess().getGreaterThanEnumLiteralDeclaration_2());
}
)
|
(
enumLiteral_3='lower equal'
{
$current = grammarAccess.getStyleCompareAccess().getLowerEqualEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_3, grammarAccess.getStyleCompareAccess().getLowerEqualEnumLiteralDeclaration_3());
}
)
|
(
enumLiteral_4='lower than'
{
$current = grammarAccess.getStyleCompareAccess().getLowerThanEnumLiteralDeclaration_4().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_4, grammarAccess.getStyleCompareAccess().getLowerThanEnumLiteralDeclaration_4());
}
)
|
(
enumLiteral_5='not equal'
{
$current = grammarAccess.getStyleCompareAccess().getNotEqualEnumLiteralDeclaration_5().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_5, grammarAccess.getStyleCompareAccess().getNotEqualEnumLiteralDeclaration_5());
}
)
)
;
RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*;
RULE_INT : '0'..'9' ('0'..'9'|'_')*;
RULE_THEME_RESOURCE : 'theme:/' ('a'..'z'|'A'..'Z'|'$'|'_'|'.'|'/'|'0'..'9')*;
RULE_EVENT_TOPIC : '\'' RULE_ID ('/' RULE_ID)* '/*'? '\'';
RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'?|'\'' ('\\' .|~(('\\'|'\'')))* '\''?);
RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';
RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?;
RULE_WS : (' '|'\t'|'\r'|'\n')+;
RULE_ANY_OTHER : .;