eclipse plugin: Rework a bit the grammar...
...to remove pure DataTypes grammar elements
This commit is contained in:
parent
7c04c02423
commit
c22099b7f2
29 changed files with 3073 additions and 2836 deletions
|
@ -35,7 +35,7 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void completeWMLKey_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLKey_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeWMLKey_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLKey_Eol(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -90,6 +90,26 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void completeWMLLuaCode_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLValue_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor);
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(1)), context, acceptor);
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(10)), context, acceptor);
|
||||
}
|
||||
public void completeMacroTokens_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
}
|
||||
|
||||
public void complete_WMLRoot(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
|
|
|
@ -45,27 +45,24 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
put(grammarAccess.getWMLExpressionAccess().getAlternatives(), "rule__WMLExpression__Alternatives");
|
||||
put(grammarAccess.getWMLValuedExpressionAccess().getAlternatives(), "rule__WMLValuedExpression__Alternatives");
|
||||
put(grammarAccess.getWMLMacroParameterAccess().getAlternatives(), "rule__WMLMacroParameter__Alternatives");
|
||||
put(grammarAccess.getWMLValueAccess().getAlternatives(), "rule__WMLValue__Alternatives");
|
||||
put(grammarAccess.getMacroTokensAccess().getAlternatives(), "rule__MacroTokens__Alternatives");
|
||||
put(grammarAccess.getWMLValueAccess().getValueAlternatives_0(), "rule__WMLValue__ValueAlternatives_0");
|
||||
put(grammarAccess.getMacroTokensAccess().getValueAlternatives_0(), "rule__MacroTokens__ValueAlternatives_0");
|
||||
put(grammarAccess.getWMLTagAccess().getGroup(), "rule__WMLTag__Group__0");
|
||||
put(grammarAccess.getWMLKeyAccess().getGroup(), "rule__WMLKey__Group__0");
|
||||
put(grammarAccess.getWMLKeyAccess().getGroup_3(), "rule__WMLKey__Group_3__0");
|
||||
put(grammarAccess.getWMLKeyValueAccess().getGroup_0(), "rule__WMLKeyValue__Group_0__0");
|
||||
put(grammarAccess.getWMLMacroCallAccess().getGroup(), "rule__WMLMacroCall__Group__0");
|
||||
put(grammarAccess.getWMLMacroCallParameterAccess().getGroup_0(), "rule__WMLMacroCallParameter__Group_0__0");
|
||||
put(grammarAccess.getWMLArrayCallAccess().getGroup(), "rule__WMLArrayCall__Group__0");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getGroup(), "rule__WMLMacroDefine__Group__0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getGroup(), "rule__WMLPreprocIF__Group__0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getGroup_2(), "rule__WMLPreprocIF__Group_2__0");
|
||||
put(grammarAccess.getWMLValuedExpressionAccess().getGroup_1(), "rule__WMLValuedExpression__Group_1__0");
|
||||
put(grammarAccess.getWMLRootAccess().getExpressionsAssignment(), "rule__WMLRoot__ExpressionsAssignment");
|
||||
put(grammarAccess.getWMLTagAccess().getPlusAssignment_1(), "rule__WMLTag__PlusAssignment_1");
|
||||
put(grammarAccess.getWMLTagAccess().getNameAssignment_2(), "rule__WMLTag__NameAssignment_2");
|
||||
put(grammarAccess.getWMLTagAccess().getExpressionsAssignment_4(), "rule__WMLTag__ExpressionsAssignment_4");
|
||||
put(grammarAccess.getWMLTagAccess().getEndNameAssignment_6(), "rule__WMLTag__EndNameAssignment_6");
|
||||
put(grammarAccess.getWMLKeyAccess().getNameAssignment_0(), "rule__WMLKey__NameAssignment_0");
|
||||
put(grammarAccess.getWMLKeyAccess().getValueAssignment_2(), "rule__WMLKey__ValueAssignment_2");
|
||||
put(grammarAccess.getWMLKeyAccess().getValueAssignment_3_3(), "rule__WMLKey__ValueAssignment_3_3");
|
||||
put(grammarAccess.getWMLKeyAccess().getValuesAssignment_2(), "rule__WMLKey__ValuesAssignment_2");
|
||||
put(grammarAccess.getWMLKeyAccess().getValuesAssignment_3_3(), "rule__WMLKey__ValuesAssignment_3_3");
|
||||
put(grammarAccess.getWMLKeyAccess().getEolAssignment_4(), "rule__WMLKey__EolAssignment_4");
|
||||
put(grammarAccess.getWMLMacroCallAccess().getPointAssignment_1(), "rule__WMLMacroCall__PointAssignment_1");
|
||||
put(grammarAccess.getWMLMacroCallAccess().getRelativeAssignment_2(), "rule__WMLMacroCall__RelativeAssignment_2");
|
||||
|
@ -82,6 +79,8 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
put(grammarAccess.getWMLPreprocIFAccess().getEndNameAssignment_3(), "rule__WMLPreprocIF__EndNameAssignment_3");
|
||||
put(grammarAccess.getWMLTextdomainAccess().getNameAssignment(), "rule__WMLTextdomain__NameAssignment");
|
||||
put(grammarAccess.getWMLLuaCodeAccess().getValueAssignment(), "rule__WMLLuaCode__ValueAssignment");
|
||||
put(grammarAccess.getWMLValueAccess().getValueAssignment(), "rule__WMLValue__ValueAssignment");
|
||||
put(grammarAccess.getMacroTokensAccess().getValueAssignment(), "rule__MacroTokens__ValueAssignment");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -501,9 +501,9 @@ ruleWMLValue
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValueAccess().getAlternatives()); }
|
||||
(rule__WMLValue__Alternatives)
|
||||
{ after(grammarAccess.getWMLValueAccess().getAlternatives()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueAssignment()); }
|
||||
(rule__WMLValue__ValueAssignment)
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueAssignment()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -529,9 +529,9 @@ ruleMacroTokens
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getAlternatives()); }
|
||||
(rule__MacroTokens__Alternatives)
|
||||
{ after(grammarAccess.getMacroTokensAccess().getAlternatives()); }
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValueAssignment()); }
|
||||
(rule__MacroTokens__ValueAssignment)
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValueAssignment()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -570,9 +570,9 @@ rule__WMLKeyValue__Alternatives
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyValueAccess().getGroup_0()); }
|
||||
(rule__WMLKeyValue__Group_0__0)
|
||||
{ after(grammarAccess.getWMLKeyValueAccess().getGroup_0()); }
|
||||
{ before(grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0()); }
|
||||
ruleWMLValue
|
||||
{ after(grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
|
@ -604,9 +604,9 @@ rule__WMLMacroCallParameter__Alternatives
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroCallParameterAccess().getGroup_0()); }
|
||||
(rule__WMLMacroCallParameter__Group_0__0)
|
||||
{ after(grammarAccess.getWMLMacroCallParameterAccess().getGroup_0()); }
|
||||
{ before(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0()); }
|
||||
ruleWMLMacroParameter
|
||||
{ after(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
|
@ -728,9 +728,9 @@ rule__WMLValuedExpression__Alternatives
|
|||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getGroup_1()); }
|
||||
(rule__WMLValuedExpression__Group_1__0)
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getGroup_1()); }
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1()); }
|
||||
ruleWMLValue
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -760,91 +760,91 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLValue__Alternatives
|
||||
rule__WMLValue__ValueAlternatives_0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValueAccess().getIDTerminalRuleCall_0()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0()); }
|
||||
RULE_ID
|
||||
{ after(grammarAccess.getWMLValueAccess().getIDTerminalRuleCall_0()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getSTRINGTerminalRuleCall_1()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getWMLValueAccess().getSTRINGTerminalRuleCall_1()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().get_Keyword_2()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValue_Keyword_0_2()); }
|
||||
|
||||
'_'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().get_Keyword_2()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValue_Keyword_0_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getTildeKeyword_3()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3()); }
|
||||
|
||||
'~'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getTildeKeyword_3()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getFullStopKeyword_4()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4()); }
|
||||
|
||||
'.'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getFullStopKeyword_4()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getFullStopSolidusKeyword_5()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5()); }
|
||||
|
||||
'./'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getFullStopSolidusKeyword_5()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getDollarSignKeyword_6()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6()); }
|
||||
|
||||
'$'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getDollarSignKeyword_6()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getSolidusKeyword_7()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7()); }
|
||||
|
||||
'/'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getSolidusKeyword_7()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getLeftParenthesisKeyword_8()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8()); }
|
||||
|
||||
'('
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getLeftParenthesisKeyword_8()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getRightParenthesisKeyword_9()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9()); }
|
||||
|
||||
')'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getRightParenthesisKeyword_9()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getANY_OTHERTerminalRuleCall_10()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10()); }
|
||||
RULE_ANY_OTHER
|
||||
{ after(grammarAccess.getWMLValueAccess().getANY_OTHERTerminalRuleCall_10()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -852,49 +852,49 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__MacroTokens__Alternatives
|
||||
rule__MacroTokens__ValueAlternatives_0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getEqualsSignKeyword_0()); }
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValueEqualsSignKeyword_0_0()); }
|
||||
|
||||
'='
|
||||
|
||||
{ after(grammarAccess.getMacroTokensAccess().getEqualsSignKeyword_0()); }
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValueEqualsSignKeyword_0_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getLeftSquareBracketKeyword_1()); }
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketKeyword_0_1()); }
|
||||
|
||||
'['
|
||||
|
||||
{ after(grammarAccess.getMacroTokensAccess().getLeftSquareBracketKeyword_1()); }
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketKeyword_0_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getRightSquareBracketKeyword_2()); }
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValueRightSquareBracketKeyword_0_2()); }
|
||||
|
||||
']'
|
||||
|
||||
{ after(grammarAccess.getMacroTokensAccess().getRightSquareBracketKeyword_2()); }
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValueRightSquareBracketKeyword_0_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getPlusSignKeyword_3()); }
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValuePlusSignKeyword_0_3()); }
|
||||
|
||||
'+'
|
||||
|
||||
{ after(grammarAccess.getMacroTokensAccess().getPlusSignKeyword_3()); }
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValuePlusSignKeyword_0_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getLeftSquareBracketSolidusKeyword_4()); }
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketSolidusKeyword_0_4()); }
|
||||
|
||||
'[/'
|
||||
|
||||
{ after(grammarAccess.getMacroTokensAccess().getLeftSquareBracketSolidusKeyword_4()); }
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketSolidusKeyword_0_4()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -1237,9 +1237,9 @@ rule__WMLKey__Group__2__Impl
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValueAssignment_2()); }
|
||||
(rule__WMLKey__ValueAssignment_2)*
|
||||
{ after(grammarAccess.getWMLKeyAccess().getValueAssignment_2()); }
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValuesAssignment_2()); }
|
||||
(rule__WMLKey__ValuesAssignment_2)*
|
||||
{ after(grammarAccess.getWMLKeyAccess().getValuesAssignment_2()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -1422,14 +1422,14 @@ rule__WMLKey__Group_3__3__Impl
|
|||
:
|
||||
(
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValueAssignment_3_3()); }
|
||||
(rule__WMLKey__ValueAssignment_3_3)
|
||||
{ after(grammarAccess.getWMLKeyAccess().getValueAssignment_3_3()); }
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValuesAssignment_3_3()); }
|
||||
(rule__WMLKey__ValuesAssignment_3_3)
|
||||
{ after(grammarAccess.getWMLKeyAccess().getValuesAssignment_3_3()); }
|
||||
)
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValueAssignment_3_3()); }
|
||||
(rule__WMLKey__ValueAssignment_3_3)*
|
||||
{ after(grammarAccess.getWMLKeyAccess().getValueAssignment_3_3()); }
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValuesAssignment_3_3()); }
|
||||
(rule__WMLKey__ValuesAssignment_3_3)*
|
||||
{ after(grammarAccess.getWMLKeyAccess().getValuesAssignment_3_3()); }
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -1447,69 +1447,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
rule__WMLKeyValue__Group_0__0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__WMLKeyValue__Group_0__0__Impl
|
||||
rule__WMLKeyValue__Group_0__1
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLKeyValue__Group_0__0__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyValueAccess().getWMLKeyValueAction_0_0()); }
|
||||
(
|
||||
|
||||
)
|
||||
{ after(grammarAccess.getWMLKeyValueAccess().getWMLKeyValueAction_0_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
rule__WMLKeyValue__Group_0__1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__WMLKeyValue__Group_0__1__Impl
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLKeyValue__Group_0__1__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0_1()); }
|
||||
ruleWMLValue
|
||||
{ after(grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rule__WMLMacroCall__Group__0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
@ -1699,69 +1636,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
rule__WMLMacroCallParameter__Group_0__0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__WMLMacroCallParameter__Group_0__0__Impl
|
||||
rule__WMLMacroCallParameter__Group_0__1
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroCallParameter__Group_0__0__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParameterAction_0_0()); }
|
||||
(
|
||||
|
||||
)
|
||||
{ after(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParameterAction_0_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
rule__WMLMacroCallParameter__Group_0__1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__WMLMacroCallParameter__Group_0__1__Impl
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroCallParameter__Group_0__1__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0_1()); }
|
||||
ruleWMLMacroParameter
|
||||
{ after(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rule__WMLArrayCall__Group__0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
@ -2148,69 +2022,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
rule__WMLValuedExpression__Group_1__0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__WMLValuedExpression__Group_1__0__Impl
|
||||
rule__WMLValuedExpression__Group_1__1
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLValuedExpression__Group_1__0__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0()); }
|
||||
(
|
||||
|
||||
)
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
rule__WMLValuedExpression__Group_1__1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__WMLValuedExpression__Group_1__1__Impl
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLValuedExpression__Group_1__1__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1()); }
|
||||
ruleWMLValue
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rule__WMLRoot__ExpressionsAssignment
|
||||
@init {
|
||||
|
@ -2310,14 +2121,14 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLKey__ValueAssignment_2
|
||||
rule__WMLKey__ValuesAssignment_2
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_2_0()); }
|
||||
ruleWMLKeyValue{ after(grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_2_0()); }
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_2_0()); }
|
||||
ruleWMLKeyValue{ after(grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_2_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2325,14 +2136,14 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLKey__ValueAssignment_3_3
|
||||
rule__WMLKey__ValuesAssignment_3_3
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_3_3_0()); }
|
||||
ruleWMLKeyValue{ after(grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_3_3_0()); }
|
||||
{ before(grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_3_3_0()); }
|
||||
ruleWMLKeyValue{ after(grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_3_3_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2598,6 +2409,38 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLValue__ValueAssignment
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueAlternatives_0()); }
|
||||
(rule__WMLValue__ValueAlternatives_0)
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueAlternatives_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__MacroTokens__ValueAssignment
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getMacroTokensAccess().getValueAlternatives_0()); }
|
||||
(rule__MacroTokens__ValueAlternatives_0)
|
||||
{ after(grammarAccess.getMacroTokensAccess().getValueAlternatives_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
RULE_LUA_CODE : '<<' ( options {greedy=false;} : . )*'>>';
|
||||
|
||||
|
|
|
@ -365,12 +365,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_LUA_CODE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2602:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2602:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
{
|
||||
match("<<");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2602:22: ( options {greedy=false; } : . )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:22: ( options {greedy=false; } : . )*
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
|
@ -395,7 +395,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2602:50: .
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:50: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -425,12 +425,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifhave");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -443,7 +443,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -463,7 +463,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
|
@ -472,9 +472,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:42: ( '\\r' )?
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
|
@ -483,7 +483,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2604:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -515,12 +515,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifnhave");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=2;
|
||||
|
@ -533,7 +533,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -553,7 +553,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:43: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:43: ( ( '\\r' )? '\\n' )?
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
|
@ -562,9 +562,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:44: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:44: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:44: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:44: ( '\\r' )?
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -573,7 +573,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2606:44: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:44: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -605,12 +605,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifdef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -623,7 +623,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -643,7 +643,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -652,9 +652,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:40: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -663,7 +663,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2608:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -695,12 +695,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifndef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
|
@ -713,7 +713,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -733,7 +733,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
|
@ -742,9 +742,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt13) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:42: ( '\\r' )?
|
||||
int alt12=2;
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
|
@ -753,7 +753,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2610:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -785,12 +785,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ELSE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#else");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop14:
|
||||
do {
|
||||
int alt14=2;
|
||||
|
@ -803,7 +803,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt14) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -823,7 +823,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:37: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:37: ( ( '\\r' )? '\\n' )?
|
||||
int alt16=2;
|
||||
int LA16_0 = input.LA(1);
|
||||
|
||||
|
@ -832,9 +832,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt16) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:38: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:38: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:38: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:38: ( '\\r' )?
|
||||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
|
@ -843,7 +843,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt15) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2612:38: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:38: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -875,12 +875,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDIF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#endif");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop17:
|
||||
do {
|
||||
int alt17=2;
|
||||
|
@ -893,7 +893,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt17) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -913,7 +913,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt19=2;
|
||||
int LA19_0 = input.LA(1);
|
||||
|
||||
|
@ -922,9 +922,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt19) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:40: ( '\\r' )?
|
||||
int alt18=2;
|
||||
int LA18_0 = input.LA(1);
|
||||
|
||||
|
@ -933,7 +933,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt18) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2614:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -965,12 +965,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_DEFINE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#define");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop20:
|
||||
do {
|
||||
int alt20=2;
|
||||
|
@ -983,7 +983,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1003,7 +1003,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt22=2;
|
||||
int LA22_0 = input.LA(1);
|
||||
|
||||
|
@ -1012,9 +1012,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt22) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:42: ( '\\r' )?
|
||||
int alt21=2;
|
||||
int LA21_0 = input.LA(1);
|
||||
|
||||
|
@ -1023,7 +1023,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt21) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2616:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1055,12 +1055,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#enddef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop23:
|
||||
do {
|
||||
int alt23=2;
|
||||
|
@ -1073,7 +1073,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt23) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1093,7 +1093,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt25=2;
|
||||
int LA25_0 = input.LA(1);
|
||||
|
||||
|
@ -1102,9 +1102,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt25) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:42: ( '\\r' )?
|
||||
int alt24=2;
|
||||
int LA24_0 = input.LA(1);
|
||||
|
||||
|
@ -1113,7 +1113,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt24) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2618:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1145,12 +1145,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_TEXTDOMAIN;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#textdomain");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop26:
|
||||
do {
|
||||
int alt26=2;
|
||||
|
@ -1163,7 +1163,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt26) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1183,7 +1183,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:49: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:49: ( ( '\\r' )? '\\n' )?
|
||||
int alt28=2;
|
||||
int LA28_0 = input.LA(1);
|
||||
|
||||
|
@ -1192,9 +1192,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt28) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:50: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:50: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:50: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:50: ( '\\r' )?
|
||||
int alt27=2;
|
||||
int LA27_0 = input.LA(1);
|
||||
|
||||
|
@ -1203,7 +1203,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt27) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2620:50: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:50: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1235,11 +1235,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2622:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2622:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2622:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop29:
|
||||
do {
|
||||
int alt29=3;
|
||||
|
@ -1255,7 +1255,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt29) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2622:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
{
|
||||
match('\\');
|
||||
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
|
||||
|
@ -1271,7 +1271,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2622:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1308,10 +1308,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2624:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2624:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2467:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2467:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2624:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2467:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
int cnt30=0;
|
||||
loop30:
|
||||
do {
|
||||
|
@ -1365,8 +1365,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_EOL;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2626:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2626:12: ( '\\r' | '\\n' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2469:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2469:12: ( '\\r' | '\\n' )
|
||||
{
|
||||
if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
|
||||
input.consume();
|
||||
|
@ -1393,10 +1393,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_WS;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2628:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2628:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2471:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2471:11: ( ' ' | '\\t' )+
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2628:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2471:11: ( ' ' | '\\t' )+
|
||||
int cnt31=0;
|
||||
loop31:
|
||||
do {
|
||||
|
@ -1450,8 +1450,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2630:16: ( . )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2630:18: .
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2473:16: ( . )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2473:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1470,11 +1470,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match('#');
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop32:
|
||||
do {
|
||||
int alt32=2;
|
||||
|
@ -1487,7 +1487,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt32) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1507,7 +1507,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt34=2;
|
||||
int LA34_0 = input.LA(1);
|
||||
|
||||
|
@ -1516,9 +1516,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt34) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:40: ( '\\r' )?
|
||||
int alt33=2;
|
||||
int LA33_0 = input.LA(1);
|
||||
|
||||
|
@ -1527,7 +1527,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt33) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2632:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -210,7 +210,7 @@ public class WMLProposalProvider extends AbstractWMLProposalProvider
|
|||
WMLKey tagKey = WMLUtils.getKeyByName( tag, keyName );
|
||||
if ( tagKey != null && tagKey.is_Enum() )
|
||||
{
|
||||
for(WMLKeyValue val : tagKey.getValue( ) )
|
||||
for(WMLKeyValue val : tagKey.getValues( ) )
|
||||
{
|
||||
acceptor.accept(createCompletionProposal(
|
||||
val.toString( ), context, KEY_VALUE_PRIORITY ) );
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
defaultValueLiteral=""/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKey" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1"
|
||||
eType="ecore:EClass platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
|
||||
|
@ -48,8 +48,9 @@
|
|||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCallParameter"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLArrayCall" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
|
||||
eType="ecore:EClass platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValue"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroDefine" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Expressions" upperBound="-1"
|
||||
|
@ -123,4 +124,10 @@
|
|||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
|
||||
defaultValueLiteral=""/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroParameter" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroCallParameter">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
|
||||
defaultValueLiteral=""/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLValue" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValuedExpression platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroParameter"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="MacroTokens" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroParameter"/>
|
||||
</ecore:EPackage>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_Description"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/value"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/values"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/eol"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/_Enum"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/_Translatable"/>
|
||||
|
@ -34,7 +34,7 @@
|
|||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroCallParameter"/>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLArrayCall">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLArrayCall/value"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLArrayCall/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroDefine">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroDefine/Expressions"/>
|
||||
|
@ -64,5 +64,10 @@
|
|||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLLuaCode">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLLuaCode/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroParameter">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroParameter/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValue"/>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//MacroTokens"/>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
||||
|
|
|
@ -46,14 +46,14 @@
|
|||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="value" operator="+=">
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="*">
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.29"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.29"/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="value" operator="+=">
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</elements>
|
||||
</elements>
|
||||
|
@ -70,14 +70,7 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKeyValue"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Action">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKeyValue"/>
|
||||
</type>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.13"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
|
@ -109,14 +102,7 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroCallParameter"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Action">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroCallParameter"/>
|
||||
</type>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
|
@ -204,14 +190,7 @@
|
|||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
<elements xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Action">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLValuedExpression"/>
|
||||
</type>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLTextdomain">
|
||||
|
@ -231,8 +210,8 @@
|
|||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroParameter">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroParameter"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
|
@ -240,33 +219,37 @@
|
|||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLValue">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLValue"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
<elements xsi:type="xtext:Keyword" value="_"/>
|
||||
<elements xsi:type="xtext:Keyword" value="~"/>
|
||||
<elements xsi:type="xtext:Keyword" value="."/>
|
||||
<elements xsi:type="xtext:Keyword" value="./"/>
|
||||
<elements xsi:type="xtext:Keyword" value="$"/>
|
||||
<elements xsi:type="xtext:Keyword" value="/"/>
|
||||
<elements xsi:type="xtext:Keyword" value="("/>
|
||||
<elements xsi:type="xtext:Keyword" value=")"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.31"/>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
<elements xsi:type="xtext:Keyword" value="_"/>
|
||||
<elements xsi:type="xtext:Keyword" value="~"/>
|
||||
<elements xsi:type="xtext:Keyword" value="."/>
|
||||
<elements xsi:type="xtext:Keyword" value="./"/>
|
||||
<elements xsi:type="xtext:Keyword" value="$"/>
|
||||
<elements xsi:type="xtext:Keyword" value="/"/>
|
||||
<elements xsi:type="xtext:Keyword" value="("/>
|
||||
<elements xsi:type="xtext:Keyword" value=")"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.31"/>
|
||||
</terminal>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="MacroTokens">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//MacroTokens"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Keyword" value="["/>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:Keyword" value="[/"/>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Keyword" value="["/>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:Keyword" value="[/"/>
|
||||
</terminal>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="LUA_CODE">
|
||||
|
|
|
@ -45,6 +45,9 @@ protected class ThisRootNode extends RootToken {
|
|||
case 11: return new WMLValuedExpression_Alternatives(this, this, 11, inst);
|
||||
case 12: return new WMLTextdomain_NameAssignment(this, this, 12, inst);
|
||||
case 13: return new WMLLuaCode_ValueAssignment(this, this, 13, inst);
|
||||
case 14: return new WMLMacroParameter_Alternatives(this, this, 14, inst);
|
||||
case 15: return new WMLValue_ValueAssignment(this, this, 15, inst);
|
||||
case 16: return new MacroTokens_ValueAssignment(this, this, 16, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
@ -388,11 +391,11 @@ protected class WMLTag_RightSquareBracketKeyword_7 extends KeywordToken {
|
|||
/************ begin Rule WMLKey ****************
|
||||
*
|
||||
* WMLKey hidden(WS):
|
||||
* name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
* name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
*
|
||||
**/
|
||||
|
||||
// name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT)
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol=(EOL | SL_COMMENT)
|
||||
protected class WMLKey_Group extends GroupToken {
|
||||
|
||||
public WMLKey_Group(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -476,16 +479,16 @@ protected class WMLKey_EqualsSignKeyword_1 extends KeywordToken {
|
|||
|
||||
}
|
||||
|
||||
// value+=WMLKeyValue*
|
||||
protected class WMLKey_ValueAssignment_2 extends AssignmentToken {
|
||||
// values+=WMLKeyValue*
|
||||
protected class WMLKey_ValuesAssignment_2 extends AssignmentToken {
|
||||
|
||||
public WMLKey_ValueAssignment_2(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
public WMLKey_ValuesAssignment_2(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Assignment getGrammarElement() {
|
||||
return grammarAccess.getWMLKeyAccess().getValueAssignment_2();
|
||||
return grammarAccess.getWMLKeyAccess().getValuesAssignment_2();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -498,13 +501,13 @@ protected class WMLKey_ValueAssignment_2 extends AssignmentToken {
|
|||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if((value = eObjectConsumer.getConsumable("value",false)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value");
|
||||
if((value = eObjectConsumer.getConsumable("values",false)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("values");
|
||||
if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
|
||||
IEObjectConsumer param = createEObjectConsumer((EObject)value);
|
||||
if(param.isInstanceOf(grammarAccess.getWMLKeyValueRule().getType().getClassifier())) {
|
||||
type = AssignmentType.PARSER_RULE_CALL;
|
||||
element = grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_2_0();
|
||||
element = grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_2_0();
|
||||
consumed = obj;
|
||||
return param;
|
||||
}
|
||||
|
@ -516,14 +519,14 @@ protected class WMLKey_ValueAssignment_2 extends AssignmentToken {
|
|||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
if(value == inst.getEObject() && !inst.isConsumed()) return null;
|
||||
switch(index) {
|
||||
case 0: return new WMLKey_ValueAssignment_2(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
case 0: return new WMLKey_ValuesAssignment_2(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
case 1: return new WMLKey_EqualsSignKeyword_1(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// (EOL? "+" EOL? value+=WMLKeyValue+)*
|
||||
// (EOL? "+" EOL? values+=WMLKeyValue+)*
|
||||
protected class WMLKey_Group_3 extends GroupToken {
|
||||
|
||||
public WMLKey_Group_3(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -538,7 +541,7 @@ protected class WMLKey_Group_3 extends GroupToken {
|
|||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKey_ValueAssignment_3_3(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLKey_ValuesAssignment_3_3(lastRuleCallOrigin, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
@ -560,7 +563,7 @@ protected class WMLKey_PlusSignKeyword_3_1 extends KeywordToken {
|
|||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKey_ValueAssignment_2(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLKey_ValuesAssignment_2(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLKey_EqualsSignKeyword_1(lastRuleCallOrigin, this, 1, inst);
|
||||
default: return null;
|
||||
}
|
||||
|
@ -568,16 +571,16 @@ protected class WMLKey_PlusSignKeyword_3_1 extends KeywordToken {
|
|||
|
||||
}
|
||||
|
||||
// value+=WMLKeyValue+
|
||||
protected class WMLKey_ValueAssignment_3_3 extends AssignmentToken {
|
||||
// values+=WMLKeyValue+
|
||||
protected class WMLKey_ValuesAssignment_3_3 extends AssignmentToken {
|
||||
|
||||
public WMLKey_ValueAssignment_3_3(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
public WMLKey_ValuesAssignment_3_3(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Assignment getGrammarElement() {
|
||||
return grammarAccess.getWMLKeyAccess().getValueAssignment_3_3();
|
||||
return grammarAccess.getWMLKeyAccess().getValuesAssignment_3_3();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -590,13 +593,13 @@ protected class WMLKey_ValueAssignment_3_3 extends AssignmentToken {
|
|||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if((value = eObjectConsumer.getConsumable("value",false)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value");
|
||||
if((value = eObjectConsumer.getConsumable("values",false)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("values");
|
||||
if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
|
||||
IEObjectConsumer param = createEObjectConsumer((EObject)value);
|
||||
if(param.isInstanceOf(grammarAccess.getWMLKeyValueRule().getType().getClassifier())) {
|
||||
type = AssignmentType.PARSER_RULE_CALL;
|
||||
element = grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_3_3_0();
|
||||
element = grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_3_3_0();
|
||||
consumed = obj;
|
||||
return param;
|
||||
}
|
||||
|
@ -608,7 +611,7 @@ protected class WMLKey_ValueAssignment_3_3 extends AssignmentToken {
|
|||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
if(value == inst.getEObject() && !inst.isConsumed()) return null;
|
||||
switch(index) {
|
||||
case 0: return new WMLKey_ValueAssignment_3_3(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
case 0: return new WMLKey_ValuesAssignment_3_3(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
case 1: return new WMLKey_PlusSignKeyword_3_1(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
default: return null;
|
||||
}
|
||||
|
@ -632,7 +635,7 @@ protected class WMLKey_EolAssignment_4 extends AssignmentToken {
|
|||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKey_Group_3(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLKey_ValueAssignment_2(lastRuleCallOrigin, this, 1, inst);
|
||||
case 1: return new WMLKey_ValuesAssignment_2(lastRuleCallOrigin, this, 1, inst);
|
||||
case 2: return new WMLKey_EqualsSignKeyword_1(lastRuleCallOrigin, this, 2, inst);
|
||||
default: return null;
|
||||
}
|
||||
|
@ -664,11 +667,11 @@ protected class WMLKey_EolAssignment_4 extends AssignmentToken {
|
|||
/************ begin Rule WMLKeyValue ****************
|
||||
*
|
||||
* WMLKeyValue:
|
||||
* {WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
* WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
*
|
||||
**/
|
||||
|
||||
// {WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall
|
||||
// WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall
|
||||
protected class WMLKeyValue_Alternatives extends AlternativesToken {
|
||||
|
||||
public WMLKeyValue_Alternatives(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -683,7 +686,7 @@ protected class WMLKeyValue_Alternatives extends AlternativesToken {
|
|||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKeyValue_Group_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLKeyValue_WMLValueParserRuleCall_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLKeyValue_WMLMacroCallParserRuleCall_1(lastRuleCallOrigin, this, 1, inst);
|
||||
case 2: return new WMLKeyValue_WMLLuaCodeParserRuleCall_2(lastRuleCallOrigin, this, 2, inst);
|
||||
case 3: return new WMLKeyValue_WMLArrayCallParserRuleCall_3(lastRuleCallOrigin, this, 3, inst);
|
||||
|
@ -694,93 +697,51 @@ protected class WMLKeyValue_Alternatives extends AlternativesToken {
|
|||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLArrayCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLKeyValueAccess().getWMLKeyValueAction_0_0().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLLuaCodeRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier())
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// {WMLKeyValue} WMLValue
|
||||
protected class WMLKeyValue_Group_0 extends GroupToken {
|
||||
|
||||
public WMLKeyValue_Group_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Group getGrammarElement() {
|
||||
return grammarAccess.getWMLKeyValueAccess().getGroup_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKeyValue_WMLValueParserRuleCall_0_1(lastRuleCallOrigin, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLKeyValueAccess().getWMLKeyValueAction_0_0().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// {WMLKeyValue}
|
||||
protected class WMLKeyValue_WMLKeyValueAction_0_0 extends ActionToken {
|
||||
|
||||
public WMLKeyValue_WMLKeyValueAction_0_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Action getGrammarElement() {
|
||||
return grammarAccess.getWMLKeyValueAccess().getWMLKeyValueAction_0_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(this, index, index, inst);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(!eObjectConsumer.isConsumed()) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
}
|
||||
|
||||
// WMLValue
|
||||
protected class WMLKeyValue_WMLValueParserRuleCall_0_1 extends UnassignedTextToken {
|
||||
|
||||
public WMLKeyValue_WMLValueParserRuleCall_0_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
protected class WMLKeyValue_WMLValueParserRuleCall_0 extends RuleCallToken {
|
||||
|
||||
public WMLKeyValue_WMLValueParserRuleCall_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0_1();
|
||||
return grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKeyValue_WMLKeyValueAction_0_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLValue_ValueAssignment(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLValue_ValueAssignment.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// WMLMacroCall
|
||||
protected class WMLKeyValue_WMLMacroCallParserRuleCall_1 extends RuleCallToken {
|
||||
|
||||
|
@ -1132,11 +1093,11 @@ protected class WMLMacroCall_RightCurlyBracketKeyword_5 extends KeywordToken {
|
|||
/************ begin Rule WMLMacroCallParameter ****************
|
||||
*
|
||||
* WMLMacroCallParameter:
|
||||
* {WMLMacroCallParameter} WMLMacroParameter | WMLMacroCall;
|
||||
* WMLMacroParameter | WMLMacroCall;
|
||||
*
|
||||
**/
|
||||
|
||||
// {WMLMacroCallParameter} WMLMacroParameter | WMLMacroCall
|
||||
// WMLMacroParameter | WMLMacroCall
|
||||
protected class WMLMacroCallParameter_Alternatives extends AlternativesToken {
|
||||
|
||||
public WMLMacroCallParameter_Alternatives(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -1151,7 +1112,7 @@ protected class WMLMacroCallParameter_Alternatives extends AlternativesToken {
|
|||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLMacroCallParameter_Group_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLMacroCallParameter_WMLMacroParameterParserRuleCall_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLMacroCallParameter_WMLMacroCallParserRuleCall_1(lastRuleCallOrigin, this, 1, inst);
|
||||
default: return null;
|
||||
}
|
||||
|
@ -1159,92 +1120,52 @@ protected class WMLMacroCallParameter_Alternatives extends AlternativesToken {
|
|||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParameterAction_0_0().getType().getClassifier())
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// {WMLMacroCallParameter} WMLMacroParameter
|
||||
protected class WMLMacroCallParameter_Group_0 extends GroupToken {
|
||||
|
||||
public WMLMacroCallParameter_Group_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Group getGrammarElement() {
|
||||
return grammarAccess.getWMLMacroCallParameterAccess().getGroup_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLMacroCallParameter_WMLMacroParameterParserRuleCall_0_1(lastRuleCallOrigin, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParameterAction_0_0().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// {WMLMacroCallParameter}
|
||||
protected class WMLMacroCallParameter_WMLMacroCallParameterAction_0_0 extends ActionToken {
|
||||
|
||||
public WMLMacroCallParameter_WMLMacroCallParameterAction_0_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Action getGrammarElement() {
|
||||
return grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParameterAction_0_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(this, index, index, inst);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(!eObjectConsumer.isConsumed()) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
}
|
||||
|
||||
// WMLMacroParameter
|
||||
protected class WMLMacroCallParameter_WMLMacroParameterParserRuleCall_0_1 extends UnassignedTextToken {
|
||||
|
||||
public WMLMacroCallParameter_WMLMacroParameterParserRuleCall_0_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
protected class WMLMacroCallParameter_WMLMacroParameterParserRuleCall_0 extends RuleCallToken {
|
||||
|
||||
public WMLMacroCallParameter_WMLMacroParameterParserRuleCall_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0_1();
|
||||
return grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLMacroCallParameter_WMLMacroCallParameterAction_0_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLMacroParameter_Alternatives(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLMacroParameter_Alternatives.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// WMLMacroCall
|
||||
protected class WMLMacroCallParameter_WMLMacroCallParserRuleCall_1 extends RuleCallToken {
|
||||
|
||||
|
@ -1357,8 +1278,7 @@ protected class WMLArrayCall_ValueAssignment_1 extends AssignmentToken {
|
|||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLArrayCall_ValueAssignment_1(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLArrayCall_LeftSquareBracketKeyword_0(lastRuleCallOrigin, this, 1, inst);
|
||||
case 0: return new WMLValue_ValueAssignment(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
@ -1367,14 +1287,27 @@ protected class WMLArrayCall_ValueAssignment_1 extends AssignmentToken {
|
|||
public IEObjectConsumer tryConsume() {
|
||||
if((value = eObjectConsumer.getConsumable("value",true)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value");
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLArrayCallAccess().getValueWMLValueParserRuleCall_1_0(), value, null)) {
|
||||
type = AssignmentType.DATATYPE_RULE_CALL;
|
||||
element = grammarAccess.getWMLArrayCallAccess().getValueWMLValueParserRuleCall_1_0();
|
||||
return obj;
|
||||
if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
|
||||
IEObjectConsumer param = createEObjectConsumer((EObject)value);
|
||||
if(param.isInstanceOf(grammarAccess.getWMLValueRule().getType().getClassifier())) {
|
||||
type = AssignmentType.PARSER_RULE_CALL;
|
||||
element = grammarAccess.getWMLArrayCallAccess().getValueWMLValueParserRuleCall_1_0();
|
||||
consumed = obj;
|
||||
return param;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
if(value == inst.getEObject() && !inst.isConsumed()) return null;
|
||||
switch(index) {
|
||||
case 0: return new WMLArrayCall_ValueAssignment_1(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
case 1: return new WMLArrayCall_LeftSquareBracketKeyword_0(lastRuleCallOrigin, next, actIndex, consumed);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// "]"
|
||||
|
@ -2189,11 +2122,11 @@ protected class WMLExpression_WMLKeyParserRuleCall_1 extends RuleCallToken {
|
|||
/************ begin Rule WMLValuedExpression ****************
|
||||
*
|
||||
* WMLValuedExpression:
|
||||
* WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
* WMLExpression | WMLValue;
|
||||
*
|
||||
**/
|
||||
|
||||
// WMLExpression | {WMLValuedExpression} WMLValue
|
||||
// WMLExpression | WMLValue
|
||||
protected class WMLValuedExpression_Alternatives extends AlternativesToken {
|
||||
|
||||
public WMLValuedExpression_Alternatives(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -2209,7 +2142,7 @@ protected class WMLValuedExpression_Alternatives extends AlternativesToken {
|
|||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLValuedExpression_WMLExpressionParserRuleCall_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLValuedExpression_Group_1(lastRuleCallOrigin, this, 1, inst);
|
||||
case 1: return new WMLValuedExpression_WMLValueParserRuleCall_1(lastRuleCallOrigin, this, 1, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
@ -2222,7 +2155,7 @@ protected class WMLValuedExpression_Alternatives extends AlternativesToken {
|
|||
getEObject().eClass() != grammarAccess.getWMLPreprocIFRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLTagRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLTextdomainRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0().getType().getClassifier())
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
@ -2270,85 +2203,43 @@ protected class WMLValuedExpression_WMLExpressionParserRuleCall_0 extends RuleCa
|
|||
}
|
||||
}
|
||||
|
||||
// {WMLValuedExpression} WMLValue
|
||||
protected class WMLValuedExpression_Group_1 extends GroupToken {
|
||||
|
||||
public WMLValuedExpression_Group_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Group getGrammarElement() {
|
||||
return grammarAccess.getWMLValuedExpressionAccess().getGroup_1();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLValuedExpression_WMLValueParserRuleCall_1_1(lastRuleCallOrigin, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// {WMLValuedExpression}
|
||||
protected class WMLValuedExpression_WMLValuedExpressionAction_1_0 extends ActionToken {
|
||||
|
||||
public WMLValuedExpression_WMLValuedExpressionAction_1_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Action getGrammarElement() {
|
||||
return grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(this, index, index, inst);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(!eObjectConsumer.isConsumed()) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
}
|
||||
|
||||
// WMLValue
|
||||
protected class WMLValuedExpression_WMLValueParserRuleCall_1_1 extends UnassignedTextToken {
|
||||
|
||||
public WMLValuedExpression_WMLValueParserRuleCall_1_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
protected class WMLValuedExpression_WMLValueParserRuleCall_1 extends RuleCallToken {
|
||||
|
||||
public WMLValuedExpression_WMLValueParserRuleCall_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1();
|
||||
return grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLValuedExpression_WMLValuedExpressionAction_1_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 0: return new WMLValue_ValueAssignment(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLValue_ValueAssignment.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/************ end Rule WMLValuedExpression ****************/
|
||||
|
||||
|
||||
|
@ -2442,6 +2333,279 @@ protected class WMLLuaCode_ValueAssignment extends AssignmentToken {
|
|||
/************ end Rule WMLLuaCode ****************/
|
||||
|
||||
|
||||
/************ begin Rule WMLMacroParameter ****************
|
||||
*
|
||||
* WMLMacroParameter:
|
||||
* WMLValue | MacroTokens;
|
||||
*
|
||||
**/
|
||||
|
||||
// WMLValue | MacroTokens
|
||||
protected class WMLMacroParameter_Alternatives extends AlternativesToken {
|
||||
|
||||
public WMLMacroParameter_Alternatives(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Alternatives getGrammarElement() {
|
||||
return grammarAccess.getWMLMacroParameterAccess().getAlternatives();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLMacroParameter_WMLValueParserRuleCall_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLMacroParameter_MacroTokensParserRuleCall_1(lastRuleCallOrigin, this, 1, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// WMLValue
|
||||
protected class WMLMacroParameter_WMLValueParserRuleCall_0 extends RuleCallToken {
|
||||
|
||||
public WMLMacroParameter_WMLValueParserRuleCall_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLMacroParameterAccess().getWMLValueParserRuleCall_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLValue_ValueAssignment(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLValue_ValueAssignment.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MacroTokens
|
||||
protected class WMLMacroParameter_MacroTokensParserRuleCall_1 extends RuleCallToken {
|
||||
|
||||
public WMLMacroParameter_MacroTokensParserRuleCall_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLMacroParameterAccess().getMacroTokensParserRuleCall_1();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new MacroTokens_ValueAssignment(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(MacroTokens_ValueAssignment.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/************ end Rule WMLMacroParameter ****************/
|
||||
|
||||
|
||||
/************ begin Rule WMLValue ****************
|
||||
*
|
||||
* WMLValue:
|
||||
* value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
*
|
||||
**/
|
||||
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
protected class WMLValue_ValueAssignment extends AssignmentToken {
|
||||
|
||||
public WMLValue_ValueAssignment(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Assignment getGrammarElement() {
|
||||
return grammarAccess.getWMLValueAccess().getValueAssignment();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(this, index, index, inst);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if((value = eObjectConsumer.getConsumable("value",true)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value");
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValue_Keyword_0_2(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValue_Keyword_0_2();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0(), value, null)) {
|
||||
type = AssignmentType.TERMINAL_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1(), value, null)) {
|
||||
type = AssignmentType.TERMINAL_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10(), value, null)) {
|
||||
type = AssignmentType.TERMINAL_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10();
|
||||
return obj;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/************ end Rule WMLValue ****************/
|
||||
|
||||
|
||||
/************ begin Rule MacroTokens ****************
|
||||
*
|
||||
* // we use this as a hack for any characters in the macro call
|
||||
* // so we won't trigger things like: key=value or [tag]
|
||||
* MacroTokens:
|
||||
* value=("=" | "[" | "]" | "+" | "[/");
|
||||
*
|
||||
**/
|
||||
|
||||
// value=("=" | "[" | "]" | "+" | "[/")
|
||||
protected class MacroTokens_ValueAssignment extends AssignmentToken {
|
||||
|
||||
public MacroTokens_ValueAssignment(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Assignment getGrammarElement() {
|
||||
return grammarAccess.getMacroTokensAccess().getValueAssignment();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(this, index, index, inst);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier())
|
||||
return null;
|
||||
if((value = eObjectConsumer.getConsumable("value",true)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value");
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getMacroTokensAccess().getValueEqualsSignKeyword_0_0(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getMacroTokensAccess().getValueEqualsSignKeyword_0_0();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketKeyword_0_1(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketKeyword_0_1();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getMacroTokensAccess().getValueRightSquareBracketKeyword_0_2(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getMacroTokensAccess().getValueRightSquareBracketKeyword_0_2();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getMacroTokensAccess().getValuePlusSignKeyword_0_3(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getMacroTokensAccess().getValuePlusSignKeyword_0_3();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketSolidusKeyword_0_4(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketSolidusKeyword_0_4();
|
||||
return obj;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/************ end Rule MacroTokens ****************/
|
||||
|
||||
}
|
||||
|
|
|
@ -254,16 +254,16 @@ ruleWMLKey returns [EObject current=null]
|
|||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_2_0());
|
||||
newCompositeNode(grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_2_0());
|
||||
}
|
||||
lv_value_2_0=ruleWMLKeyValue {
|
||||
lv_values_2_0=ruleWMLKeyValue {
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getWMLKeyRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_2_0,
|
||||
"values",
|
||||
lv_values_2_0,
|
||||
"WMLKeyValue");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
@ -284,16 +284,16 @@ ruleWMLKey returns [EObject current=null]
|
|||
)?(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLKeyAccess().getValueWMLKeyValueParserRuleCall_3_3_0());
|
||||
newCompositeNode(grammarAccess.getWMLKeyAccess().getValuesWMLKeyValueParserRuleCall_3_3_0());
|
||||
}
|
||||
lv_value_6_0=ruleWMLKeyValue {
|
||||
lv_values_6_0=ruleWMLKeyValue {
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getWMLKeyRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_6_0,
|
||||
"values",
|
||||
lv_values_6_0,
|
||||
"WMLKeyValue");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
@ -359,28 +359,23 @@ ruleWMLKeyValue returns [EObject current=null]
|
|||
@init { enterRule();
|
||||
}
|
||||
@after { leaveRule(); }:
|
||||
(((
|
||||
{
|
||||
$current = forceCreateModelElement(
|
||||
grammarAccess.getWMLKeyValueAccess().getWMLKeyValueAction_0_0(),
|
||||
$current);
|
||||
}
|
||||
)
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0_1());
|
||||
newCompositeNode(grammarAccess.getWMLKeyValueAccess().getWMLValueParserRuleCall_0());
|
||||
}
|
||||
ruleWMLValue
|
||||
this_WMLValue_0=ruleWMLValue
|
||||
{
|
||||
$current = $this_WMLValue_0.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLKeyValueAccess().getWMLMacroCallParserRuleCall_1());
|
||||
}
|
||||
this_WMLMacroCall_2=ruleWMLMacroCall
|
||||
this_WMLMacroCall_1=ruleWMLMacroCall
|
||||
{
|
||||
$current = $this_WMLMacroCall_2.current;
|
||||
$current = $this_WMLMacroCall_1.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
||||
|
@ -388,9 +383,9 @@ ruleWMLValue
|
|||
{
|
||||
newCompositeNode(grammarAccess.getWMLKeyValueAccess().getWMLLuaCodeParserRuleCall_2());
|
||||
}
|
||||
this_WMLLuaCode_3=ruleWMLLuaCode
|
||||
this_WMLLuaCode_2=ruleWMLLuaCode
|
||||
{
|
||||
$current = $this_WMLLuaCode_3.current;
|
||||
$current = $this_WMLLuaCode_2.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
||||
|
@ -398,9 +393,9 @@ ruleWMLValue
|
|||
{
|
||||
newCompositeNode(grammarAccess.getWMLKeyValueAccess().getWMLArrayCallParserRuleCall_3());
|
||||
}
|
||||
this_WMLArrayCall_4=ruleWMLArrayCall
|
||||
this_WMLArrayCall_3=ruleWMLArrayCall
|
||||
{
|
||||
$current = $this_WMLArrayCall_4.current;
|
||||
$current = $this_WMLArrayCall_3.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
|
@ -519,28 +514,23 @@ ruleWMLMacroCallParameter returns [EObject current=null]
|
|||
@init { enterRule();
|
||||
}
|
||||
@after { leaveRule(); }:
|
||||
(((
|
||||
{
|
||||
$current = forceCreateModelElement(
|
||||
grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParameterAction_0_0(),
|
||||
$current);
|
||||
}
|
||||
)
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0_1());
|
||||
newCompositeNode(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroParameterParserRuleCall_0());
|
||||
}
|
||||
ruleWMLMacroParameter
|
||||
this_WMLMacroParameter_0=ruleWMLMacroParameter
|
||||
{
|
||||
$current = $this_WMLMacroParameter_0.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLMacroCallParameterAccess().getWMLMacroCallParserRuleCall_1());
|
||||
}
|
||||
this_WMLMacroCall_2=ruleWMLMacroCall
|
||||
this_WMLMacroCall_1=ruleWMLMacroCall
|
||||
{
|
||||
$current = $this_WMLMacroCall_2.current;
|
||||
$current = $this_WMLMacroCall_1.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
|
@ -965,21 +955,16 @@ ruleWMLValuedExpression returns [EObject current=null]
|
|||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
||||
|((
|
||||
{
|
||||
$current = forceCreateModelElement(
|
||||
grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0(),
|
||||
$current);
|
||||
}
|
||||
)
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1());
|
||||
newCompositeNode(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1());
|
||||
}
|
||||
ruleWMLValue
|
||||
this_WMLValue_1=ruleWMLValue
|
||||
{
|
||||
$current = $this_WMLValue_1.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
))
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
@ -1065,16 +1050,16 @@ ruleWMLLuaCode returns [EObject current=null]
|
|||
|
||||
|
||||
// Entry rule entryRuleWMLMacroParameter
|
||||
entryRuleWMLMacroParameter returns [String current=null]
|
||||
entryRuleWMLMacroParameter returns [EObject current=null]
|
||||
:
|
||||
{ newCompositeNode(grammarAccess.getWMLMacroParameterRule()); }
|
||||
{ newCompositeNode(grammarAccess.getWMLMacroParameterRule()); }
|
||||
iv_ruleWMLMacroParameter=ruleWMLMacroParameter
|
||||
{ $current=$iv_ruleWMLMacroParameter.current.getText(); }
|
||||
{ $current=$iv_ruleWMLMacroParameter.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLMacroParameter
|
||||
ruleWMLMacroParameter returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
|
||||
ruleWMLMacroParameter returns [EObject current=null]
|
||||
@init { enterRule();
|
||||
}
|
||||
@after { leaveRule(); }:
|
||||
|
@ -1082,11 +1067,9 @@ ruleWMLMacroParameter returns [AntlrDatatypeRuleToken current=new AntlrDatatypeR
|
|||
{
|
||||
newCompositeNode(grammarAccess.getWMLMacroParameterAccess().getWMLValueParserRuleCall_0());
|
||||
}
|
||||
this_WMLValue_0=ruleWMLValue {
|
||||
$current.merge(this_WMLValue_0);
|
||||
}
|
||||
|
||||
this_WMLValue_0=ruleWMLValue
|
||||
{
|
||||
$current = $this_WMLValue_0.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
||||
|
@ -1094,170 +1077,268 @@ ruleWMLMacroParameter returns [AntlrDatatypeRuleToken current=new AntlrDatatypeR
|
|||
{
|
||||
newCompositeNode(grammarAccess.getWMLMacroParameterAccess().getMacroTokensParserRuleCall_1());
|
||||
}
|
||||
this_MacroTokens_1=ruleMacroTokens {
|
||||
$current.merge(this_MacroTokens_1);
|
||||
}
|
||||
|
||||
this_MacroTokens_1=ruleMacroTokens
|
||||
{
|
||||
$current = $this_MacroTokens_1.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
;
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLValue
|
||||
entryRuleWMLValue returns [String current=null]
|
||||
entryRuleWMLValue returns [EObject current=null]
|
||||
:
|
||||
{ newCompositeNode(grammarAccess.getWMLValueRule()); }
|
||||
{ newCompositeNode(grammarAccess.getWMLValueRule()); }
|
||||
iv_ruleWMLValue=ruleWMLValue
|
||||
{ $current=$iv_ruleWMLValue.current.getText(); }
|
||||
{ $current=$iv_ruleWMLValue.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLValue
|
||||
ruleWMLValue returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
|
||||
ruleWMLValue returns [EObject current=null]
|
||||
@init { enterRule();
|
||||
}
|
||||
@after { leaveRule(); }:
|
||||
( this_ID_0=RULE_ID {
|
||||
$current.merge(this_ID_0);
|
||||
}
|
||||
(
|
||||
(
|
||||
(
|
||||
lv_value_0_1=RULE_ID
|
||||
{
|
||||
newLeafNode(lv_value_0_1, grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_1,
|
||||
"ID");
|
||||
}
|
||||
|
||||
{
|
||||
newLeafNode(this_ID_0, grammarAccess.getWMLValueAccess().getIDTerminalRuleCall_0());
|
||||
}
|
||||
| lv_value_0_2=RULE_STRING
|
||||
{
|
||||
newLeafNode(lv_value_0_2, grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_2,
|
||||
"STRING");
|
||||
}
|
||||
|
||||
| this_STRING_1=RULE_STRING {
|
||||
$current.merge(this_STRING_1);
|
||||
}
|
||||
|
||||
{
|
||||
newLeafNode(this_STRING_1, grammarAccess.getWMLValueAccess().getSTRINGTerminalRuleCall_1());
|
||||
}
|
||||
|
||||
|
|
||||
kw='_'
|
||||
| lv_value_0_3= '_'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().get_Keyword_2());
|
||||
newLeafNode(lv_value_0_3, grammarAccess.getWMLValueAccess().getValue_Keyword_0_2());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_3, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='~'
|
||||
| lv_value_0_4= '~'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getTildeKeyword_3());
|
||||
newLeafNode(lv_value_0_4, grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_4, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='.'
|
||||
| lv_value_0_5= '.'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getFullStopKeyword_4());
|
||||
newLeafNode(lv_value_0_5, grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_5, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='./'
|
||||
| lv_value_0_6= './'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getFullStopSolidusKeyword_5());
|
||||
newLeafNode(lv_value_0_6, grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_6, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='$'
|
||||
| lv_value_0_7= '$'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getDollarSignKeyword_6());
|
||||
newLeafNode(lv_value_0_7, grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_7, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='/'
|
||||
| lv_value_0_8= '/'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getSolidusKeyword_7());
|
||||
newLeafNode(lv_value_0_8, grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_8, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='('
|
||||
| lv_value_0_9= '('
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getLeftParenthesisKeyword_8());
|
||||
newLeafNode(lv_value_0_9, grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_9, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw=')'
|
||||
| lv_value_0_10= ')'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getWMLValueAccess().getRightParenthesisKeyword_9());
|
||||
newLeafNode(lv_value_0_10, grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_10, null);
|
||||
}
|
||||
|
||||
| this_ANY_OTHER_10=RULE_ANY_OTHER {
|
||||
$current.merge(this_ANY_OTHER_10);
|
||||
}
|
||||
| lv_value_0_11=RULE_ANY_OTHER
|
||||
{
|
||||
newLeafNode(lv_value_0_11, grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getWMLValueRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_11,
|
||||
"ANY_OTHER");
|
||||
}
|
||||
|
||||
{
|
||||
newLeafNode(this_ANY_OTHER_10, grammarAccess.getWMLValueAccess().getANY_OTHERTerminalRuleCall_10());
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleMacroTokens
|
||||
entryRuleMacroTokens returns [String current=null]
|
||||
entryRuleMacroTokens returns [EObject current=null]
|
||||
:
|
||||
{ newCompositeNode(grammarAccess.getMacroTokensRule()); }
|
||||
{ newCompositeNode(grammarAccess.getMacroTokensRule()); }
|
||||
iv_ruleMacroTokens=ruleMacroTokens
|
||||
{ $current=$iv_ruleMacroTokens.current.getText(); }
|
||||
{ $current=$iv_ruleMacroTokens.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule MacroTokens
|
||||
ruleMacroTokens returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
|
||||
ruleMacroTokens returns [EObject current=null]
|
||||
@init { enterRule();
|
||||
}
|
||||
@after { leaveRule(); }:
|
||||
(
|
||||
kw='='
|
||||
(
|
||||
(
|
||||
lv_value_0_1= '='
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getMacroTokensAccess().getEqualsSignKeyword_0());
|
||||
newLeafNode(lv_value_0_1, grammarAccess.getMacroTokensAccess().getValueEqualsSignKeyword_0_0());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getMacroTokensRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_1, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='['
|
||||
| lv_value_0_2= '['
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getMacroTokensAccess().getLeftSquareBracketKeyword_1());
|
||||
newLeafNode(lv_value_0_2, grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketKeyword_0_1());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getMacroTokensRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_2, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw=']'
|
||||
| lv_value_0_3= ']'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getMacroTokensAccess().getRightSquareBracketKeyword_2());
|
||||
newLeafNode(lv_value_0_3, grammarAccess.getMacroTokensAccess().getValueRightSquareBracketKeyword_0_2());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getMacroTokensRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_3, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='+'
|
||||
| lv_value_0_4= '+'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getMacroTokensAccess().getPlusSignKeyword_3());
|
||||
newLeafNode(lv_value_0_4, grammarAccess.getMacroTokensAccess().getValuePlusSignKeyword_0_3());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getMacroTokensRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_4, null);
|
||||
}
|
||||
|
||||
|
|
||||
kw='[/'
|
||||
| lv_value_0_5= '[/'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getMacroTokensAccess().getLeftSquareBracketSolidusKeyword_4());
|
||||
newLeafNode(lv_value_0_5, grammarAccess.getMacroTokensAccess().getValueLeftSquareBracketSolidusKeyword_0_4());
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getMacroTokensRule());
|
||||
}
|
||||
setWithLastConsumed($current, "value", lv_value_0_5, null);
|
||||
}
|
||||
|
||||
)
|
||||
;
|
||||
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -365,12 +365,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_LUA_CODE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1266:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1266:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
{
|
||||
match("<<");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1266:22: ( options {greedy=false; } : . )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:22: ( options {greedy=false; } : . )*
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
|
@ -395,7 +395,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1266:50: .
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:50: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -425,12 +425,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifhave");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -443,7 +443,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -463,7 +463,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
|
@ -472,9 +472,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:42: ( '\\r' )?
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
|
@ -483,7 +483,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1268:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -515,12 +515,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifnhave");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=2;
|
||||
|
@ -533,7 +533,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -553,7 +553,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:43: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:43: ( ( '\\r' )? '\\n' )?
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
|
@ -562,9 +562,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:44: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:44: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:44: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:44: ( '\\r' )?
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -573,7 +573,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1270:44: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:44: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -605,12 +605,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifdef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -623,7 +623,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -643,7 +643,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -652,9 +652,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:40: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -663,7 +663,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1272:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -695,12 +695,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifndef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
|
@ -713,7 +713,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -733,7 +733,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
|
@ -742,9 +742,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt13) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:42: ( '\\r' )?
|
||||
int alt12=2;
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
|
@ -753,7 +753,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1274:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -785,12 +785,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ELSE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#else");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop14:
|
||||
do {
|
||||
int alt14=2;
|
||||
|
@ -803,7 +803,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt14) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -823,7 +823,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:37: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:37: ( ( '\\r' )? '\\n' )?
|
||||
int alt16=2;
|
||||
int LA16_0 = input.LA(1);
|
||||
|
||||
|
@ -832,9 +832,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt16) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:38: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:38: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:38: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:38: ( '\\r' )?
|
||||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
|
@ -843,7 +843,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt15) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1276:38: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:38: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -875,12 +875,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDIF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#endif");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop17:
|
||||
do {
|
||||
int alt17=2;
|
||||
|
@ -893,7 +893,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt17) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -913,7 +913,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt19=2;
|
||||
int LA19_0 = input.LA(1);
|
||||
|
||||
|
@ -922,9 +922,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt19) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:40: ( '\\r' )?
|
||||
int alt18=2;
|
||||
int LA18_0 = input.LA(1);
|
||||
|
||||
|
@ -933,7 +933,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt18) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1278:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -965,12 +965,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_DEFINE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#define");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop20:
|
||||
do {
|
||||
int alt20=2;
|
||||
|
@ -983,7 +983,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1003,7 +1003,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt22=2;
|
||||
int LA22_0 = input.LA(1);
|
||||
|
||||
|
@ -1012,9 +1012,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt22) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:42: ( '\\r' )?
|
||||
int alt21=2;
|
||||
int LA21_0 = input.LA(1);
|
||||
|
||||
|
@ -1023,7 +1023,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt21) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1280:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1055,12 +1055,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#enddef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop23:
|
||||
do {
|
||||
int alt23=2;
|
||||
|
@ -1073,7 +1073,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt23) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1093,7 +1093,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt25=2;
|
||||
int LA25_0 = input.LA(1);
|
||||
|
||||
|
@ -1102,9 +1102,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt25) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: ( '\\r' )?
|
||||
int alt24=2;
|
||||
int LA24_0 = input.LA(1);
|
||||
|
||||
|
@ -1113,7 +1113,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt24) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1282:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1145,12 +1145,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_TEXTDOMAIN;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#textdomain");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop26:
|
||||
do {
|
||||
int alt26=2;
|
||||
|
@ -1163,7 +1163,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt26) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1183,7 +1183,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:49: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:49: ( ( '\\r' )? '\\n' )?
|
||||
int alt28=2;
|
||||
int LA28_0 = input.LA(1);
|
||||
|
||||
|
@ -1192,9 +1192,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt28) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:50: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:50: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:50: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:50: ( '\\r' )?
|
||||
int alt27=2;
|
||||
int LA27_0 = input.LA(1);
|
||||
|
||||
|
@ -1203,7 +1203,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt27) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1284:50: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:50: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1235,11 +1235,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1286:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1286:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1286:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop29:
|
||||
do {
|
||||
int alt29=3;
|
||||
|
@ -1255,7 +1255,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt29) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1286:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
{
|
||||
match('\\');
|
||||
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
|
||||
|
@ -1271,7 +1271,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1286:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1308,10 +1308,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1288:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1288:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1288:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
int cnt30=0;
|
||||
loop30:
|
||||
do {
|
||||
|
@ -1365,8 +1365,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_EOL;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1290:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1290:12: ( '\\r' | '\\n' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:12: ( '\\r' | '\\n' )
|
||||
{
|
||||
if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
|
||||
input.consume();
|
||||
|
@ -1393,10 +1393,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_WS;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1292:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1292:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:11: ( ' ' | '\\t' )+
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1292:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:11: ( ' ' | '\\t' )+
|
||||
int cnt31=0;
|
||||
loop31:
|
||||
do {
|
||||
|
@ -1450,8 +1450,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1294:16: ( . )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1294:18: .
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:16: ( . )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1470,11 +1470,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match('#');
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop32:
|
||||
do {
|
||||
int alt32=2;
|
||||
|
@ -1487,7 +1487,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt32) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1507,7 +1507,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt34=2;
|
||||
int LA34_0 = input.LA(1);
|
||||
|
||||
|
@ -1516,9 +1516,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt34) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:40: ( '\\r' )?
|
||||
int alt33=2;
|
||||
int LA33_0 = input.LA(1);
|
||||
|
||||
|
@ -1527,7 +1527,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt33) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1296:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -98,24 +98,24 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
||||
private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
|
||||
private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
||||
private final Assignment cValueAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cValueWMLKeyValueParserRuleCall_2_0 = (RuleCall)cValueAssignment_2.eContents().get(0);
|
||||
private final Assignment cValuesAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cValuesWMLKeyValueParserRuleCall_2_0 = (RuleCall)cValuesAssignment_2.eContents().get(0);
|
||||
private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
|
||||
private final RuleCall cEOLTerminalRuleCall_3_0 = (RuleCall)cGroup_3.eContents().get(0);
|
||||
private final Keyword cPlusSignKeyword_3_1 = (Keyword)cGroup_3.eContents().get(1);
|
||||
private final RuleCall cEOLTerminalRuleCall_3_2 = (RuleCall)cGroup_3.eContents().get(2);
|
||||
private final Assignment cValueAssignment_3_3 = (Assignment)cGroup_3.eContents().get(3);
|
||||
private final RuleCall cValueWMLKeyValueParserRuleCall_3_3_0 = (RuleCall)cValueAssignment_3_3.eContents().get(0);
|
||||
private final Assignment cValuesAssignment_3_3 = (Assignment)cGroup_3.eContents().get(3);
|
||||
private final RuleCall cValuesWMLKeyValueParserRuleCall_3_3_0 = (RuleCall)cValuesAssignment_3_3.eContents().get(0);
|
||||
private final Assignment cEolAssignment_4 = (Assignment)cGroup.eContents().get(4);
|
||||
private final Alternatives cEolAlternatives_4_0 = (Alternatives)cEolAssignment_4.eContents().get(0);
|
||||
private final RuleCall cEolEOLTerminalRuleCall_4_0_0 = (RuleCall)cEolAlternatives_4_0.eContents().get(0);
|
||||
private final RuleCall cEolSL_COMMENTTerminalRuleCall_4_0_1 = (RuleCall)cEolAlternatives_4_0.eContents().get(1);
|
||||
|
||||
//WMLKey hidden(WS):
|
||||
// name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT)
|
||||
//name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol=(EOL | SL_COMMENT)
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=ID
|
||||
|
@ -127,13 +127,13 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
//"="
|
||||
public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
|
||||
|
||||
//value+=WMLKeyValue*
|
||||
public Assignment getValueAssignment_2() { return cValueAssignment_2; }
|
||||
//values+=WMLKeyValue*
|
||||
public Assignment getValuesAssignment_2() { return cValuesAssignment_2; }
|
||||
|
||||
//WMLKeyValue
|
||||
public RuleCall getValueWMLKeyValueParserRuleCall_2_0() { return cValueWMLKeyValueParserRuleCall_2_0; }
|
||||
public RuleCall getValuesWMLKeyValueParserRuleCall_2_0() { return cValuesWMLKeyValueParserRuleCall_2_0; }
|
||||
|
||||
//(EOL? "+" EOL? value+=WMLKeyValue+)*
|
||||
//(EOL? "+" EOL? values+=WMLKeyValue+)*
|
||||
public Group getGroup_3() { return cGroup_3; }
|
||||
|
||||
//EOL?
|
||||
|
@ -145,11 +145,11 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
//EOL?
|
||||
public RuleCall getEOLTerminalRuleCall_3_2() { return cEOLTerminalRuleCall_3_2; }
|
||||
|
||||
//value+=WMLKeyValue+
|
||||
public Assignment getValueAssignment_3_3() { return cValueAssignment_3_3; }
|
||||
//values+=WMLKeyValue+
|
||||
public Assignment getValuesAssignment_3_3() { return cValuesAssignment_3_3; }
|
||||
|
||||
//WMLKeyValue
|
||||
public RuleCall getValueWMLKeyValueParserRuleCall_3_3_0() { return cValueWMLKeyValueParserRuleCall_3_3_0; }
|
||||
public RuleCall getValuesWMLKeyValueParserRuleCall_3_3_0() { return cValuesWMLKeyValueParserRuleCall_3_3_0; }
|
||||
|
||||
//eol=(EOL | SL_COMMENT)
|
||||
public Assignment getEolAssignment_4() { return cEolAssignment_4; }
|
||||
|
@ -167,28 +167,20 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
public class WMLKeyValueElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLKeyValue");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
|
||||
private final Action cWMLKeyValueAction_0_0 = (Action)cGroup_0.eContents().get(0);
|
||||
private final RuleCall cWMLValueParserRuleCall_0_1 = (RuleCall)cGroup_0.eContents().get(1);
|
||||
private final RuleCall cWMLValueParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cWMLMacroCallParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cWMLLuaCodeParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cWMLArrayCallParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
|
||||
|
||||
//WMLKeyValue:
|
||||
// {WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
// WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//{WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall
|
||||
//WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//{WMLKeyValue} WMLValue
|
||||
public Group getGroup_0() { return cGroup_0; }
|
||||
|
||||
//{WMLKeyValue}
|
||||
public Action getWMLKeyValueAction_0_0() { return cWMLKeyValueAction_0_0; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getWMLValueParserRuleCall_0_1() { return cWMLValueParserRuleCall_0_1; }
|
||||
public RuleCall getWMLValueParserRuleCall_0() { return cWMLValueParserRuleCall_0; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getWMLMacroCallParserRuleCall_1() { return cWMLMacroCallParserRuleCall_1; }
|
||||
|
@ -255,26 +247,18 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
public class WMLMacroCallParameterElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLMacroCallParameter");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
|
||||
private final Action cWMLMacroCallParameterAction_0_0 = (Action)cGroup_0.eContents().get(0);
|
||||
private final RuleCall cWMLMacroParameterParserRuleCall_0_1 = (RuleCall)cGroup_0.eContents().get(1);
|
||||
private final RuleCall cWMLMacroParameterParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cWMLMacroCallParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
|
||||
//WMLMacroCallParameter:
|
||||
// {WMLMacroCallParameter} WMLMacroParameter | WMLMacroCall;
|
||||
// WMLMacroParameter | WMLMacroCall;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//{WMLMacroCallParameter} WMLMacroParameter | WMLMacroCall
|
||||
//WMLMacroParameter | WMLMacroCall
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//{WMLMacroCallParameter} WMLMacroParameter
|
||||
public Group getGroup_0() { return cGroup_0; }
|
||||
|
||||
//{WMLMacroCallParameter}
|
||||
public Action getWMLMacroCallParameterAction_0_0() { return cWMLMacroCallParameterAction_0_0; }
|
||||
|
||||
//WMLMacroParameter
|
||||
public RuleCall getWMLMacroParameterParserRuleCall_0_1() { return cWMLMacroParameterParserRuleCall_0_1; }
|
||||
public RuleCall getWMLMacroParameterParserRuleCall_0() { return cWMLMacroParameterParserRuleCall_0; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getWMLMacroCallParserRuleCall_1() { return cWMLMacroCallParserRuleCall_1; }
|
||||
|
@ -474,28 +458,20 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLValuedExpression");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cWMLExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
|
||||
private final Action cWMLValuedExpressionAction_1_0 = (Action)cGroup_1.eContents().get(0);
|
||||
private final RuleCall cWMLValueParserRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1);
|
||||
private final RuleCall cWMLValueParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
|
||||
//WMLValuedExpression:
|
||||
// WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
// WMLExpression | WMLValue;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//WMLExpression | {WMLValuedExpression} WMLValue
|
||||
//WMLExpression | WMLValue
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//WMLExpression
|
||||
public RuleCall getWMLExpressionParserRuleCall_0() { return cWMLExpressionParserRuleCall_0; }
|
||||
|
||||
//{WMLValuedExpression} WMLValue
|
||||
public Group getGroup_1() { return cGroup_1; }
|
||||
|
||||
//{WMLValuedExpression}
|
||||
public Action getWMLValuedExpressionAction_1_0() { return cWMLValuedExpressionAction_1_0; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getWMLValueParserRuleCall_1_1() { return cWMLValueParserRuleCall_1_1; }
|
||||
public RuleCall getWMLValueParserRuleCall_1() { return cWMLValueParserRuleCall_1; }
|
||||
}
|
||||
|
||||
public class WMLTextdomainElements extends AbstractParserRuleElementFinder {
|
||||
|
@ -536,7 +512,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final RuleCall cWMLValueParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cMacroTokensParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
|
||||
//WMLMacroParameter returns ecore::EString:
|
||||
//WMLMacroParameter:
|
||||
// WMLValue | MacroTokens;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
|
@ -552,92 +528,100 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
|
||||
public class WMLValueElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLValue");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cSTRINGTerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
private final Keyword c_Keyword_2 = (Keyword)cAlternatives.eContents().get(2);
|
||||
private final Keyword cTildeKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
|
||||
private final Keyword cFullStopKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
|
||||
private final Keyword cFullStopSolidusKeyword_5 = (Keyword)cAlternatives.eContents().get(5);
|
||||
private final Keyword cDollarSignKeyword_6 = (Keyword)cAlternatives.eContents().get(6);
|
||||
private final Keyword cSolidusKeyword_7 = (Keyword)cAlternatives.eContents().get(7);
|
||||
private final Keyword cLeftParenthesisKeyword_8 = (Keyword)cAlternatives.eContents().get(8);
|
||||
private final Keyword cRightParenthesisKeyword_9 = (Keyword)cAlternatives.eContents().get(9);
|
||||
private final RuleCall cANY_OTHERTerminalRuleCall_10 = (RuleCall)cAlternatives.eContents().get(10);
|
||||
private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final Alternatives cValueAlternatives_0 = (Alternatives)cValueAssignment.eContents().get(0);
|
||||
private final RuleCall cValueIDTerminalRuleCall_0_0 = (RuleCall)cValueAlternatives_0.eContents().get(0);
|
||||
private final RuleCall cValueSTRINGTerminalRuleCall_0_1 = (RuleCall)cValueAlternatives_0.eContents().get(1);
|
||||
private final Keyword cValue_Keyword_0_2 = (Keyword)cValueAlternatives_0.eContents().get(2);
|
||||
private final Keyword cValueTildeKeyword_0_3 = (Keyword)cValueAlternatives_0.eContents().get(3);
|
||||
private final Keyword cValueFullStopKeyword_0_4 = (Keyword)cValueAlternatives_0.eContents().get(4);
|
||||
private final Keyword cValueFullStopSolidusKeyword_0_5 = (Keyword)cValueAlternatives_0.eContents().get(5);
|
||||
private final Keyword cValueDollarSignKeyword_0_6 = (Keyword)cValueAlternatives_0.eContents().get(6);
|
||||
private final Keyword cValueSolidusKeyword_0_7 = (Keyword)cValueAlternatives_0.eContents().get(7);
|
||||
private final Keyword cValueLeftParenthesisKeyword_0_8 = (Keyword)cValueAlternatives_0.eContents().get(8);
|
||||
private final Keyword cValueRightParenthesisKeyword_0_9 = (Keyword)cValueAlternatives_0.eContents().get(9);
|
||||
private final RuleCall cValueANY_OTHERTerminalRuleCall_0_10 = (RuleCall)cValueAlternatives_0.eContents().get(10);
|
||||
|
||||
//WMLValue returns ecore::EString:
|
||||
// ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER;
|
||||
//WMLValue:
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; }
|
||||
|
||||
//ID
|
||||
public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
|
||||
public RuleCall getValueIDTerminalRuleCall_0_0() { return cValueIDTerminalRuleCall_0_0; }
|
||||
|
||||
//STRING
|
||||
public RuleCall getSTRINGTerminalRuleCall_1() { return cSTRINGTerminalRuleCall_1; }
|
||||
public RuleCall getValueSTRINGTerminalRuleCall_0_1() { return cValueSTRINGTerminalRuleCall_0_1; }
|
||||
|
||||
//"_"
|
||||
public Keyword get_Keyword_2() { return c_Keyword_2; }
|
||||
public Keyword getValue_Keyword_0_2() { return cValue_Keyword_0_2; }
|
||||
|
||||
//"~"
|
||||
public Keyword getTildeKeyword_3() { return cTildeKeyword_3; }
|
||||
public Keyword getValueTildeKeyword_0_3() { return cValueTildeKeyword_0_3; }
|
||||
|
||||
//"."
|
||||
public Keyword getFullStopKeyword_4() { return cFullStopKeyword_4; }
|
||||
public Keyword getValueFullStopKeyword_0_4() { return cValueFullStopKeyword_0_4; }
|
||||
|
||||
//"./"
|
||||
public Keyword getFullStopSolidusKeyword_5() { return cFullStopSolidusKeyword_5; }
|
||||
public Keyword getValueFullStopSolidusKeyword_0_5() { return cValueFullStopSolidusKeyword_0_5; }
|
||||
|
||||
//"$"
|
||||
public Keyword getDollarSignKeyword_6() { return cDollarSignKeyword_6; }
|
||||
public Keyword getValueDollarSignKeyword_0_6() { return cValueDollarSignKeyword_0_6; }
|
||||
|
||||
//"/"
|
||||
public Keyword getSolidusKeyword_7() { return cSolidusKeyword_7; }
|
||||
public Keyword getValueSolidusKeyword_0_7() { return cValueSolidusKeyword_0_7; }
|
||||
|
||||
//"("
|
||||
public Keyword getLeftParenthesisKeyword_8() { return cLeftParenthesisKeyword_8; }
|
||||
public Keyword getValueLeftParenthesisKeyword_0_8() { return cValueLeftParenthesisKeyword_0_8; }
|
||||
|
||||
//")"
|
||||
public Keyword getRightParenthesisKeyword_9() { return cRightParenthesisKeyword_9; }
|
||||
public Keyword getValueRightParenthesisKeyword_0_9() { return cValueRightParenthesisKeyword_0_9; }
|
||||
|
||||
//ANY_OTHER
|
||||
public RuleCall getANY_OTHERTerminalRuleCall_10() { return cANY_OTHERTerminalRuleCall_10; }
|
||||
public RuleCall getValueANY_OTHERTerminalRuleCall_0_10() { return cValueANY_OTHERTerminalRuleCall_0_10; }
|
||||
}
|
||||
|
||||
public class MacroTokensElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MacroTokens");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final Keyword cEqualsSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
|
||||
private final Keyword cLeftSquareBracketKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
|
||||
private final Keyword cRightSquareBracketKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
|
||||
private final Keyword cPlusSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
|
||||
private final Keyword cLeftSquareBracketSolidusKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
|
||||
private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final Alternatives cValueAlternatives_0 = (Alternatives)cValueAssignment.eContents().get(0);
|
||||
private final Keyword cValueEqualsSignKeyword_0_0 = (Keyword)cValueAlternatives_0.eContents().get(0);
|
||||
private final Keyword cValueLeftSquareBracketKeyword_0_1 = (Keyword)cValueAlternatives_0.eContents().get(1);
|
||||
private final Keyword cValueRightSquareBracketKeyword_0_2 = (Keyword)cValueAlternatives_0.eContents().get(2);
|
||||
private final Keyword cValuePlusSignKeyword_0_3 = (Keyword)cValueAlternatives_0.eContents().get(3);
|
||||
private final Keyword cValueLeftSquareBracketSolidusKeyword_0_4 = (Keyword)cValueAlternatives_0.eContents().get(4);
|
||||
|
||||
//// we use this as a hack for any characters in the macro call
|
||||
//// so we won't trigger things like: key=value or [tag]
|
||||
//MacroTokens returns ecore::EString:
|
||||
// "=" | "[" | "]" | "+" | "[/";
|
||||
//MacroTokens:
|
||||
// value=("=" | "[" | "]" | "+" | "[/");
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=("=" | "[" | "]" | "+" | "[/")
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//"=" | "[" | "]" | "+" | "[/"
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; }
|
||||
|
||||
//"="
|
||||
public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
|
||||
public Keyword getValueEqualsSignKeyword_0_0() { return cValueEqualsSignKeyword_0_0; }
|
||||
|
||||
//"["
|
||||
public Keyword getLeftSquareBracketKeyword_1() { return cLeftSquareBracketKeyword_1; }
|
||||
public Keyword getValueLeftSquareBracketKeyword_0_1() { return cValueLeftSquareBracketKeyword_0_1; }
|
||||
|
||||
//"]"
|
||||
public Keyword getRightSquareBracketKeyword_2() { return cRightSquareBracketKeyword_2; }
|
||||
public Keyword getValueRightSquareBracketKeyword_0_2() { return cValueRightSquareBracketKeyword_0_2; }
|
||||
|
||||
//"+"
|
||||
public Keyword getPlusSignKeyword_3() { return cPlusSignKeyword_3; }
|
||||
public Keyword getValuePlusSignKeyword_0_3() { return cValuePlusSignKeyword_0_3; }
|
||||
|
||||
//"[/"
|
||||
public Keyword getLeftSquareBracketSolidusKeyword_4() { return cLeftSquareBracketSolidusKeyword_4; }
|
||||
public Keyword getValueLeftSquareBracketSolidusKeyword_0_4() { return cValueLeftSquareBracketSolidusKeyword_0_4; }
|
||||
}
|
||||
|
||||
|
||||
|
@ -709,7 +693,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLKey hidden(WS):
|
||||
// name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
public WMLKeyElements getWMLKeyAccess() {
|
||||
return (pWMLKey != null) ? pWMLKey : (pWMLKey = new WMLKeyElements());
|
||||
}
|
||||
|
@ -719,7 +703,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLKeyValue:
|
||||
// {WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
// WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
public WMLKeyValueElements getWMLKeyValueAccess() {
|
||||
return (pWMLKeyValue != null) ? pWMLKeyValue : (pWMLKeyValue = new WMLKeyValueElements());
|
||||
}
|
||||
|
@ -739,7 +723,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLMacroCallParameter:
|
||||
// {WMLMacroCallParameter} WMLMacroParameter | WMLMacroCall;
|
||||
// WMLMacroParameter | WMLMacroCall;
|
||||
public WMLMacroCallParameterElements getWMLMacroCallParameterAccess() {
|
||||
return (pWMLMacroCallParameter != null) ? pWMLMacroCallParameter : (pWMLMacroCallParameter = new WMLMacroCallParameterElements());
|
||||
}
|
||||
|
@ -800,7 +784,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLValuedExpression:
|
||||
// WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
// WMLExpression | WMLValue;
|
||||
public WMLValuedExpressionElements getWMLValuedExpressionAccess() {
|
||||
return (pWMLValuedExpression != null) ? pWMLValuedExpression : (pWMLValuedExpression = new WMLValuedExpressionElements());
|
||||
}
|
||||
|
@ -829,7 +813,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLLuaCodeAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLMacroParameter returns ecore::EString:
|
||||
//WMLMacroParameter:
|
||||
// WMLValue | MacroTokens;
|
||||
public WMLMacroParameterElements getWMLMacroParameterAccess() {
|
||||
return (pWMLMacroParameter != null) ? pWMLMacroParameter : (pWMLMacroParameter = new WMLMacroParameterElements());
|
||||
|
@ -839,8 +823,8 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLMacroParameterAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLValue returns ecore::EString:
|
||||
// ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER;
|
||||
//WMLValue:
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
public WMLValueElements getWMLValueAccess() {
|
||||
return (pWMLValue != null) ? pWMLValue : (pWMLValue = new WMLValueElements());
|
||||
}
|
||||
|
@ -851,8 +835,8 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
|
||||
//// we use this as a hack for any characters in the macro call
|
||||
//// so we won't trigger things like: key=value or [tag]
|
||||
//MacroTokens returns ecore::EString:
|
||||
// "=" | "[" | "]" | "+" | "[/";
|
||||
//MacroTokens:
|
||||
// value=("=" | "[" | "]" | "+" | "[/");
|
||||
public MacroTokensElements getMacroTokensAccess() {
|
||||
return (pMacroTokens != null) ? pMacroTokens : (pMacroTokens = new MacroTokensElements());
|
||||
}
|
||||
|
|
|
@ -27,19 +27,19 @@ import org.eclipse.emf.common.util.EList;
|
|||
public interface WMLArrayCall extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</em>' attribute list isn't clear,
|
||||
* If the meaning of the '<em>Value</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' attribute list.
|
||||
* @return the value of the '<em>Value</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall_Value()
|
||||
* @model default="" unique="false"
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getValue();
|
||||
EList<WMLValue> getValue();
|
||||
|
||||
} // WMLArrayCall
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.eclipse.emf.common.util.EList;
|
|||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getValue <em>Value</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#is_Enum <em>Enum</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#is_Translatable <em>Translatable</em>}</li>
|
||||
|
@ -31,20 +31,20 @@ import org.eclipse.emf.common.util.EList;
|
|||
public interface WMLKey extends WMLExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference list.
|
||||
* Returns the value of the '<em><b>Values</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKeyValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</em>' containment reference list isn't clear,
|
||||
* If the meaning of the '<em>Values</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Value()
|
||||
* @return the value of the '<em>Values</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Values()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKeyValue> getValue();
|
||||
EList<WMLKeyValue> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Eol</b></em>' attribute.
|
||||
|
|
|
@ -152,6 +152,33 @@ public interface WmlFactory extends EFactory
|
|||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Parameter</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroParameter createWMLMacroParameter();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValue createWMLValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Tokens</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Tokens</em>'.
|
||||
* @generated
|
||||
*/
|
||||
MacroTokens createMacroTokens();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -301,13 +301,13 @@ public interface WmlPackage extends EPackage
|
|||
int WML_KEY__CARDINALITY = WML_EXPRESSION__CARDINALITY;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' containment reference list.
|
||||
* The feature id for the '<em><b>Values</b></em>' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_KEY__VALUE = WML_EXPRESSION_FEATURE_COUNT + 0;
|
||||
int WML_KEY__VALUES = WML_EXPRESSION_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Eol</b></em>' attribute.
|
||||
|
@ -467,7 +467,7 @@ public interface WmlPackage extends EPackage
|
|||
int WML_ARRAY_CALL = 6;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute list.
|
||||
* The feature id for the '<em><b>Value</b></em>' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
|
@ -677,6 +677,90 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
int WML_LUA_CODE_FEATURE_COUNT = WML_KEY_VALUE_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLMacroParameterImpl <em>WML Macro Parameter</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.WMLMacroParameterImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLMacroParameter()
|
||||
* @generated
|
||||
*/
|
||||
int WML_MACRO_PARAMETER = 14;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_MACRO_PARAMETER__VALUE = WML_MACRO_CALL_PARAMETER_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Macro Parameter</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_MACRO_PARAMETER_FEATURE_COUNT = WML_MACRO_CALL_PARAMETER_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLValueImpl <em>WML Value</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.WMLValueImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLValue()
|
||||
* @generated
|
||||
*/
|
||||
int WML_VALUE = 15;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_VALUE__VALUE = WML_KEY_VALUE_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Value</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_VALUE_FEATURE_COUNT = WML_KEY_VALUE_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.MacroTokensImpl <em>Macro Tokens</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.MacroTokensImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getMacroTokens()
|
||||
* @generated
|
||||
*/
|
||||
int MACRO_TOKENS = 16;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int MACRO_TOKENS__VALUE = WML_MACRO_PARAMETER__VALUE;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>Macro Tokens</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int MACRO_TOKENS_FEATURE_COUNT = WML_MACRO_PARAMETER_FEATURE_COUNT + 0;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.WMLRoot <em>WML Root</em>}'.
|
||||
|
@ -786,15 +870,15 @@ public interface WmlPackage extends EPackage
|
|||
EClass getWMLKey();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the containment reference list '{@link org.wesnoth.wml.WMLKey#getValue <em>Value</em>}'.
|
||||
* Returns the meta object for the containment reference list '{@link org.wesnoth.wml.WMLKey#getValues <em>Values</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference list '<em>Value</em>'.
|
||||
* @see org.wesnoth.wml.WMLKey#getValue()
|
||||
* @return the meta object for the containment reference list '<em>Values</em>'.
|
||||
* @see org.wesnoth.wml.WMLKey#getValues()
|
||||
* @see #getWMLKey()
|
||||
* @generated
|
||||
*/
|
||||
EReference getWMLKey_Value();
|
||||
EReference getWMLKey_Values();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</em>}'.
|
||||
|
@ -914,15 +998,15 @@ public interface WmlPackage extends EPackage
|
|||
EClass getWMLArrayCall();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the attribute list '{@link org.wesnoth.wml.WMLArrayCall#getValue <em>Value</em>}'.
|
||||
* Returns the meta object for the containment reference list '{@link org.wesnoth.wml.WMLArrayCall#getValue <em>Value</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute list '<em>Value</em>'.
|
||||
* @return the meta object for the containment reference list '<em>Value</em>'.
|
||||
* @see org.wesnoth.wml.WMLArrayCall#getValue()
|
||||
* @see #getWMLArrayCall()
|
||||
* @generated
|
||||
*/
|
||||
EAttribute getWMLArrayCall_Value();
|
||||
EReference getWMLArrayCall_Value();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.WMLMacroDefine <em>WML Macro Define</em>}'.
|
||||
|
@ -1093,6 +1177,47 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
EAttribute getWMLLuaCode_Value();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.WMLMacroParameter <em>WML Macro Parameter</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>WML Macro Parameter</em>'.
|
||||
* @see org.wesnoth.wml.WMLMacroParameter
|
||||
* @generated
|
||||
*/
|
||||
EClass getWMLMacroParameter();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLMacroParameter#getValue <em>Value</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Value</em>'.
|
||||
* @see org.wesnoth.wml.WMLMacroParameter#getValue()
|
||||
* @see #getWMLMacroParameter()
|
||||
* @generated
|
||||
*/
|
||||
EAttribute getWMLMacroParameter_Value();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.WMLValue <em>WML Value</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>WML Value</em>'.
|
||||
* @see org.wesnoth.wml.WMLValue
|
||||
* @generated
|
||||
*/
|
||||
EClass getWMLValue();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.MacroTokens <em>Macro Tokens</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>Macro Tokens</em>'.
|
||||
* @see org.wesnoth.wml.MacroTokens
|
||||
* @generated
|
||||
*/
|
||||
EClass getMacroTokens();
|
||||
|
||||
/**
|
||||
* Returns the factory that creates the instances of the model.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -1203,12 +1328,12 @@ public interface WmlPackage extends EPackage
|
|||
EClass WML_KEY = eINSTANCE.getWMLKey();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Value</b></em>' containment reference list feature.
|
||||
* The meta object literal for the '<em><b>Values</b></em>' containment reference list feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference WML_KEY__VALUE = eINSTANCE.getWMLKey_Value();
|
||||
EReference WML_KEY__VALUES = eINSTANCE.getWMLKey_Values();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Eol</b></em>' attribute feature.
|
||||
|
@ -1307,12 +1432,12 @@ public interface WmlPackage extends EPackage
|
|||
EClass WML_ARRAY_CALL = eINSTANCE.getWMLArrayCall();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Value</b></em>' attribute list feature.
|
||||
* The meta object literal for the '<em><b>Value</b></em>' containment reference list feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute WML_ARRAY_CALL__VALUE = eINSTANCE.getWMLArrayCall_Value();
|
||||
EReference WML_ARRAY_CALL__VALUE = eINSTANCE.getWMLArrayCall_Value();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLMacroDefineImpl <em>WML Macro Define</em>}' class.
|
||||
|
@ -1456,6 +1581,44 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
EAttribute WML_LUA_CODE__VALUE = eINSTANCE.getWMLLuaCode_Value();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLMacroParameterImpl <em>WML Macro Parameter</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.WMLMacroParameterImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLMacroParameter()
|
||||
* @generated
|
||||
*/
|
||||
EClass WML_MACRO_PARAMETER = eINSTANCE.getWMLMacroParameter();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute WML_MACRO_PARAMETER__VALUE = eINSTANCE.getWMLMacroParameter_Value();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLValueImpl <em>WML Value</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.WMLValueImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLValue()
|
||||
* @generated
|
||||
*/
|
||||
EClass WML_VALUE = eINSTANCE.getWMLValue();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.wesnoth.wml.impl.MacroTokensImpl <em>Macro Tokens</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.MacroTokensImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getMacroTokens()
|
||||
* @generated
|
||||
*/
|
||||
EClass MACRO_TOKENS = eINSTANCE.getMacroTokens();
|
||||
|
||||
}
|
||||
|
||||
} //WmlPackage
|
||||
|
|
|
@ -8,13 +8,18 @@ package org.wesnoth.wml.impl;
|
|||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
|
@ -33,14 +38,14 @@ import org.wesnoth.wml.WmlPackage;
|
|||
public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' attribute list.
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> value;
|
||||
protected EList<WMLValue> value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -68,15 +73,31 @@ public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getValue()
|
||||
public EList<WMLValue> getValue()
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
value = new EDataTypeEList<String>(String.class, this, WmlPackage.WML_ARRAY_CALL__VALUE);
|
||||
value = new EObjectContainmentEList<WMLValue>(WMLValue.class, this, WmlPackage.WML_ARRAY_CALL__VALUE);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return ((InternalEList<?>)getValue()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -106,7 +127,7 @@ public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
|||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends String>)newValue);
|
||||
getValue().addAll((Collection<? extends WMLValue>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -145,21 +166,4 @@ public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (value: ");
|
||||
result.append(value);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLArrayCallImpl
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValue <em>Value</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getEol <em>Eol</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#is_Enum <em>Enum</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#is_Translatable <em>Translatable</em>}</li>
|
||||
|
@ -45,14 +45,14 @@ import org.wesnoth.wml.WmlPackage;
|
|||
public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @see #getValues()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKeyValue> value;
|
||||
protected EList<WMLKeyValue> values;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEol() <em>Eol</em>}' attribute.
|
||||
|
@ -160,13 +160,13 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKeyValue> getValue()
|
||||
public EList<WMLKeyValue> getValues()
|
||||
{
|
||||
if (value == null)
|
||||
if (values == null)
|
||||
{
|
||||
value = new EObjectContainmentEList<WMLKeyValue>(WMLKeyValue.class, this, WmlPackage.WML_KEY__VALUE);
|
||||
values = new EObjectContainmentEList<WMLKeyValue>(WMLKeyValue.class, this, WmlPackage.WML_KEY__VALUES);
|
||||
}
|
||||
return value;
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -271,8 +271,8 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return ((InternalEList<?>)getValue()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -287,8 +287,8 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return getValue();
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return getEol();
|
||||
case WmlPackage.WML_KEY__ENUM:
|
||||
|
@ -312,9 +312,9 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends WMLKeyValue>)newValue);
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends WMLKeyValue>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
setEol((String)newValue);
|
||||
|
@ -342,8 +342,8 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
getValue().clear();
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
setEol(EOL_EDEFAULT);
|
||||
|
@ -371,8 +371,8 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return value != null && !value.isEmpty();
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return EOL_EDEFAULT == null ? eol != null : !EOL_EDEFAULT.equals(eol);
|
||||
case WmlPackage.WML_KEY__ENUM:
|
||||
|
|
|
@ -82,6 +82,9 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
case WmlPackage.WML_VALUED_EXPRESSION: return createWMLValuedExpression();
|
||||
case WmlPackage.WML_TEXTDOMAIN: return createWMLTextdomain();
|
||||
case WmlPackage.WML_LUA_CODE: return createWMLLuaCode();
|
||||
case WmlPackage.WML_MACRO_PARAMETER: return createWMLMacroParameter();
|
||||
case WmlPackage.WML_VALUE: return createWMLValue();
|
||||
case WmlPackage.MACRO_TOKENS: return createMacroTokens();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
|
@ -241,6 +244,39 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
return wmlLuaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroParameter createWMLMacroParameter()
|
||||
{
|
||||
WMLMacroParameterImpl wmlMacroParameter = new WMLMacroParameterImpl();
|
||||
return wmlMacroParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValue createWMLValue()
|
||||
{
|
||||
WMLValueImpl wmlValue = new WMLValueImpl();
|
||||
return wmlValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public MacroTokens createMacroTokens()
|
||||
{
|
||||
MacroTokensImpl macroTokens = new MacroTokensImpl();
|
||||
return macroTokens;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -13,6 +13,7 @@ import org.eclipse.emf.ecore.EReference;
|
|||
|
||||
import org.eclipse.emf.ecore.impl.EPackageImpl;
|
||||
|
||||
import org.wesnoth.wml.MacroTokens;
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLExpression;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
|
@ -21,11 +22,13 @@ import org.wesnoth.wml.WMLLuaCode;
|
|||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroCallParameter;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLMacroParameter;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLRoot;
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlFactory;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
@ -136,6 +139,27 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
private EClass wmlLuaCodeEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlMacroParameterEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlValueEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass macroTokensEClass = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
|
@ -304,7 +328,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLKey_Value()
|
||||
public EReference getWMLKey_Values()
|
||||
{
|
||||
return (EReference)wmlKeyEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
@ -424,9 +448,9 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLArrayCall_Value()
|
||||
public EReference getWMLArrayCall_Value()
|
||||
{
|
||||
return (EAttribute)wmlArrayCallEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)wmlArrayCallEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -589,6 +613,46 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
return (EAttribute)wmlLuaCodeEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLMacroParameter()
|
||||
{
|
||||
return wmlMacroParameterEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroParameter_Value()
|
||||
{
|
||||
return (EAttribute)wmlMacroParameterEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLValue()
|
||||
{
|
||||
return wmlValueEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getMacroTokens()
|
||||
{
|
||||
return macroTokensEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -631,7 +695,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
createEAttribute(wmlTagEClass, WML_TAG__DESCRIPTION);
|
||||
|
||||
wmlKeyEClass = createEClass(WML_KEY);
|
||||
createEReference(wmlKeyEClass, WML_KEY__VALUE);
|
||||
createEReference(wmlKeyEClass, WML_KEY__VALUES);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__EOL);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__ENUM);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__TRANSLATABLE);
|
||||
|
@ -647,7 +711,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
wmlMacroCallParameterEClass = createEClass(WML_MACRO_CALL_PARAMETER);
|
||||
|
||||
wmlArrayCallEClass = createEClass(WML_ARRAY_CALL);
|
||||
createEAttribute(wmlArrayCallEClass, WML_ARRAY_CALL__VALUE);
|
||||
createEReference(wmlArrayCallEClass, WML_ARRAY_CALL__VALUE);
|
||||
|
||||
wmlMacroDefineEClass = createEClass(WML_MACRO_DEFINE);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__EXPRESSIONS);
|
||||
|
@ -671,6 +735,13 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
|
||||
wmlLuaCodeEClass = createEClass(WML_LUA_CODE);
|
||||
createEAttribute(wmlLuaCodeEClass, WML_LUA_CODE__VALUE);
|
||||
|
||||
wmlMacroParameterEClass = createEClass(WML_MACRO_PARAMETER);
|
||||
createEAttribute(wmlMacroParameterEClass, WML_MACRO_PARAMETER__VALUE);
|
||||
|
||||
wmlValueEClass = createEClass(WML_VALUE);
|
||||
|
||||
macroTokensEClass = createEClass(MACRO_TOKENS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -714,6 +785,11 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
wmlExpressionEClass.getESuperTypes().add(this.getWMLValuedExpression());
|
||||
wmlTextdomainEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlLuaCodeEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlMacroParameterEClass.getESuperTypes().add(this.getWMLMacroCallParameter());
|
||||
wmlValueEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlValueEClass.getESuperTypes().add(this.getWMLValuedExpression());
|
||||
wmlValueEClass.getESuperTypes().add(this.getWMLMacroParameter());
|
||||
macroTokensEClass.getESuperTypes().add(this.getWMLMacroParameter());
|
||||
|
||||
// Initialize classes and features; add operations and parameters
|
||||
initEClass(wmlRootEClass, WMLRoot.class, "WMLRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
@ -728,7 +804,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
initEAttribute(getWMLTag__Description(), ecorePackage.getEString(), "_Description", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlKeyEClass, WMLKey.class, "WMLKey", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getWMLKey_Value(), this.getWMLKeyValue(), null, "value", null, 0, -1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLKey_Values(), this.getWMLKeyValue(), null, "values", null, 0, -1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLKey_Eol(), ecorePackage.getEString(), "eol", "", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLKey__Enum(), ecorePackage.getEBoolean(), "_Enum", "false", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLKey__Translatable(), ecorePackage.getEBoolean(), "_Translatable", "false", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
@ -744,7 +820,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
initEClass(wmlMacroCallParameterEClass, WMLMacroCallParameter.class, "WMLMacroCallParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(wmlArrayCallEClass, WMLArrayCall.class, "WMLArrayCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLArrayCall_Value(), ecorePackage.getEString(), "value", "", 0, -1, WMLArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLArrayCall_Value(), this.getWMLValue(), null, "value", null, 0, -1, WMLArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlMacroDefineEClass, WMLMacroDefine.class, "WMLMacroDefine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getWMLMacroDefine_Expressions(), this.getWMLValuedExpression(), null, "Expressions", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
@ -785,6 +861,13 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
initEClass(wmlLuaCodeEClass, WMLLuaCode.class, "WMLLuaCode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLLuaCode_Value(), ecorePackage.getEString(), "value", "", 0, 1, WMLLuaCode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlMacroParameterEClass, WMLMacroParameter.class, "WMLMacroParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLMacroParameter_Value(), ecorePackage.getEString(), "value", "", 0, 1, WMLMacroParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlValueEClass, WMLValue.class, "WMLValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(macroTokensEClass, MacroTokens.class, "MacroTokens", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
// Create resource
|
||||
createResource(eNS_URI);
|
||||
}
|
||||
|
|
|
@ -149,6 +149,21 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return createWMLLuaCodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroParameter(WMLMacroParameter object)
|
||||
{
|
||||
return createWMLMacroParameterAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValue(WMLValue object)
|
||||
{
|
||||
return createWMLValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseMacroTokens(MacroTokens object)
|
||||
{
|
||||
return createMacroTokensAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter defaultCase(EObject object)
|
||||
{
|
||||
return createEObjectAdapter();
|
||||
|
@ -380,6 +395,51 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroParameter <em>WML Macro Parameter</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null so that we can easily ignore cases;
|
||||
* it's useful to ignore a case when inheritance will catch all the cases anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.wesnoth.wml.WMLMacroParameter
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroParameterAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValue <em>WML Value</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null so that we can easily ignore cases;
|
||||
* it's useful to ignore a case when inheritance will catch all the cases anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.wesnoth.wml.WMLValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.MacroTokens <em>Macro Tokens</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null so that we can easily ignore cases;
|
||||
* it's useful to ignore a case when inheritance will catch all the cases anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.wesnoth.wml.MacroTokens
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createMacroTokensAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for the default case.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -198,6 +198,34 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_MACRO_PARAMETER:
|
||||
{
|
||||
WMLMacroParameter wmlMacroParameter = (WMLMacroParameter)theEObject;
|
||||
T result = caseWMLMacroParameter(wmlMacroParameter);
|
||||
if (result == null) result = caseWMLMacroCallParameter(wmlMacroParameter);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_VALUE:
|
||||
{
|
||||
WMLValue wmlValue = (WMLValue)theEObject;
|
||||
T result = caseWMLValue(wmlValue);
|
||||
if (result == null) result = caseWMLKeyValue(wmlValue);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlValue);
|
||||
if (result == null) result = caseWMLMacroParameter(wmlValue);
|
||||
if (result == null) result = caseWMLMacroCallParameter(wmlValue);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.MACRO_TOKENS:
|
||||
{
|
||||
MacroTokens macroTokens = (MacroTokens)theEObject;
|
||||
T result = caseMacroTokens(macroTokens);
|
||||
if (result == null) result = caseWMLMacroParameter(macroTokens);
|
||||
if (result == null) result = caseWMLMacroCallParameter(macroTokens);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
default: return defaultCase(theEObject);
|
||||
}
|
||||
}
|
||||
|
@ -426,6 +454,54 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Macro Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>WML Macro Parameter</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLMacroParameter(WMLMacroParameter object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>WML Value</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLValue(WMLValue object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Macro Tokens</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Macro Tokens</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseMacroTokens(MacroTokens object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -15,10 +15,10 @@ WMLTag:
|
|||
;
|
||||
|
||||
WMLKey hidden(WS):
|
||||
name = ID '=' value += WMLKeyValue* (EOL? '+' EOL? value += WMLKeyValue+)* eol=(EOL|SL_COMMENT);
|
||||
name = ID '=' values += WMLKeyValue* (EOL? '+' EOL? values += WMLKeyValue+)* eol=(EOL|SL_COMMENT);
|
||||
|
||||
WMLKeyValue:
|
||||
{WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
|
||||
WMLMacroCall:
|
||||
'{' (point='./')? (relative='~')? name=ID
|
||||
|
@ -26,7 +26,7 @@ WMLMacroCall:
|
|||
'}';
|
||||
|
||||
WMLMacroCallParameter:
|
||||
{WMLMacroCallParameter} WMLMacroParameter | WMLMacroCall;
|
||||
WMLMacroParameter | WMLMacroCall;
|
||||
|
||||
WMLArrayCall:
|
||||
'[' value += WMLValue+ ']' ;
|
||||
|
@ -52,7 +52,7 @@ WMLExpression:
|
|||
WMLRootExpression | WMLKey ;
|
||||
|
||||
WMLValuedExpression:
|
||||
WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
WMLExpression | WMLValue;
|
||||
|
||||
WMLTextdomain:
|
||||
name = TEXTDOMAIN;
|
||||
|
@ -60,15 +60,15 @@ WMLTextdomain:
|
|||
WMLLuaCode:
|
||||
value = LUA_CODE;
|
||||
|
||||
WMLMacroParameter returns ecore::EString:
|
||||
WMLMacroParameter:
|
||||
WMLValue | MacroTokens;
|
||||
|
||||
WMLValue returns ecore::EString:
|
||||
(ID | STRING |'_'|'~' | '.' | './' |'$'|'/' |'(' | ')'| ANY_OTHER);
|
||||
WMLValue:
|
||||
value = (ID | STRING |'_'|'~' | '.' | './' |'$'|'/' |'(' | ')'| ANY_OTHER);
|
||||
// we use this as a hack for any characters in the macro call
|
||||
// so we won't trigger things like: key=value or [tag]
|
||||
MacroTokens returns ecore::EString:
|
||||
('='|'['|']'|'+'|'[/');
|
||||
MacroTokens:
|
||||
value = ('='|'['|']'|'+'|'[/');
|
||||
|
||||
terminal LUA_CODE : '<<' -> '>>';
|
||||
// Preprocessor terminals
|
||||
|
|
|
@ -149,7 +149,7 @@ public class WMLUtils
|
|||
*/
|
||||
public static String toWMLString( WMLKey key )
|
||||
{
|
||||
return key.getName( ) + "=" + getKeyValue( key.getValue( ) );
|
||||
return key.getName( ) + "=" + getKeyValue( key.getValues( ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -74,7 +74,7 @@ public class WizardGeneratorPageKey extends NewWizardPageTemplate
|
|||
combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
|
||||
combo.setData("name", key.getName()); //$NON-NLS-1$
|
||||
|
||||
for ( WMLKeyValue value : key.getValue( ) ) {
|
||||
for ( WMLKeyValue value : key.getValues( ) ) {
|
||||
combo.add( value.toString( ) );
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class WizardGeneratorPageKey extends NewWizardPageTemplate
|
|||
textBox.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
|
||||
|
||||
textBox.setData("name", key.getName()); //$NON-NLS-1$
|
||||
textBox.setData("valType", key.getValue()); //$NON-NLS-1$
|
||||
textBox.setData("valType", key.getValues()); //$NON-NLS-1$
|
||||
textBox.setData("card", key.get_Cardinality()); //$NON-NLS-1$
|
||||
textBox.setData("trans", key.is_Translatable()); //$NON-NLS-1$
|
||||
if ( key.is_Required( ) )
|
||||
|
|
|
@ -97,9 +97,9 @@ public class SimpleWMLParser
|
|||
|
||||
if ( keyName.equals( "id" ) ) {
|
||||
if ( currentTagName.equals( "scenario" ) )
|
||||
config_.ScenarioId = WMLUtils.getKeyValue( key.getValue( ) );
|
||||
config_.ScenarioId = WMLUtils.getKeyValue( key.getValues( ) );
|
||||
else if ( currentTagName.equals( "campaign" ) )
|
||||
config_.CampaignId = WMLUtils.getKeyValue( key.getValue( ) );
|
||||
config_.CampaignId = WMLUtils.getKeyValue( key.getValues( ) );
|
||||
} else if ( keyName.equals( "name" ) ) {
|
||||
if ( currentTagName.equals( "set_variable" ) ||
|
||||
currentTagName.equals( "set_variables" ) ) {
|
||||
|
@ -137,7 +137,7 @@ public class SimpleWMLParser
|
|||
String variableName = null;
|
||||
|
||||
if ( context instanceof WMLKey ) {
|
||||
variableName = WMLUtils.getKeyValue( ( ( WMLKey ) context ).getValue( ) ) ;
|
||||
variableName = WMLUtils.getKeyValue( ( ( WMLKey ) context ).getValues( ) ) ;
|
||||
} else if ( context instanceof WMLMacroCall ) {
|
||||
WMLMacroCall macro = ( WMLMacroCall ) context;
|
||||
if ( macro.getParameters( ).size( ) > 0 ) {
|
||||
|
|
|
@ -10,6 +10,7 @@ package org.wesnoth.wml.impl;
|
|||
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlFactory2;
|
||||
|
||||
public class WmlFactory2Impl extends WmlFactoryImpl implements WmlFactory2
|
||||
|
@ -57,8 +58,15 @@ public class WmlFactory2Impl extends WmlFactoryImpl implements WmlFactory2
|
|||
|
||||
if ( dataType.startsWith( "enum" ) ) {
|
||||
// add the enums values
|
||||
//TODO: fix
|
||||
String[] res = dataType.substring( 4 ).split( "," );
|
||||
for ( String string : res ) {
|
||||
if ( string.length( ) == 0 )
|
||||
continue;
|
||||
|
||||
WMLValue value = createWMLValue( );
|
||||
value.setValue( string );
|
||||
key.getValues( ).add( value );
|
||||
}
|
||||
key.set_Enum( true );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue