eclipse plugin: Fix the grammar so the order...
...in the file of the WML expressions is maintained.
This commit is contained in:
parent
f547b70b9e
commit
bdd534a7ea
48 changed files with 6147 additions and 10989 deletions
|
@ -17,19 +17,7 @@ import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
|
|||
@SuppressWarnings("all")
|
||||
public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposalProvider {
|
||||
|
||||
public void completeWMLRoot_Tags(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLRoot_MacroCalls(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLRoot_MacroDefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLRoot_Textdomains(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLRoot_IfDefs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeWMLRoot_Expressions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_Plus(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -38,22 +26,7 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void completeWMLTag_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_Tags(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_Keys(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_MacroCalls(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_MacroDefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_Textdomains(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_IfDefs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeWMLTag_Expressions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLTag_EndName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -84,34 +57,13 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void completeWMLMacroCall_ExtraMacros(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLLuaCode_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLArrayCall_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_Tags(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_Keys(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_MacroCalls(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_MacroDefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_Textdomains(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_IfDefs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeWMLMacroDefine_Expressions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLMacroDefine_EndName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -123,25 +75,7 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(2)), context, acceptor);
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(3)), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_Tags(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_Keys(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_MacroCalls(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_MacroDefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_Textdomains(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_IfDefs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeWMLPreprocIF_Expressions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLPreprocIF_Elses(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -153,6 +87,9 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void completeWMLTextdomain_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeWMLLuaCode_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
|
||||
public void complete_WMLRoot(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
|
@ -169,9 +106,6 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void complete_WMLMacroCall(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLLuaCode(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLArrayCall(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
|
@ -181,9 +115,21 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void complete_WMLPreprocIF(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLRootExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLValuedExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLTextdomain(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLLuaCode(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLMacroParameter(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
|
|
|
@ -37,14 +37,14 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
nameMappings = new HashMap<AbstractElement, String>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
{
|
||||
put(grammarAccess.getWMLRootAccess().getAlternatives(), "rule__WMLRoot__Alternatives");
|
||||
put(grammarAccess.getWMLTagAccess().getAlternatives_4(), "rule__WMLTag__Alternatives_4");
|
||||
put(grammarAccess.getWMLKeyAccess().getEolAlternatives_4_0(), "rule__WMLKey__EolAlternatives_4_0");
|
||||
put(grammarAccess.getWMLKeyValueAccess().getAlternatives(), "rule__WMLKeyValue__Alternatives");
|
||||
put(grammarAccess.getWMLMacroCallAccess().getAlternatives_4(), "rule__WMLMacroCall__Alternatives_4");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getAlternatives_1(), "rule__WMLMacroDefine__Alternatives_1");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getNameAlternatives_0_0(), "rule__WMLPreprocIF__NameAlternatives_0_0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getAlternatives_1(), "rule__WMLPreprocIF__Alternatives_1");
|
||||
put(grammarAccess.getWMLRootExpressionAccess().getAlternatives(), "rule__WMLRootExpression__Alternatives");
|
||||
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");
|
||||
|
@ -56,19 +56,11 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
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.getWMLRootAccess().getTagsAssignment_0(), "rule__WMLRoot__TagsAssignment_0");
|
||||
put(grammarAccess.getWMLRootAccess().getMacroCallsAssignment_1(), "rule__WMLRoot__MacroCallsAssignment_1");
|
||||
put(grammarAccess.getWMLRootAccess().getMacroDefinesAssignment_2(), "rule__WMLRoot__MacroDefinesAssignment_2");
|
||||
put(grammarAccess.getWMLRootAccess().getTextdomainsAssignment_3(), "rule__WMLRoot__TextdomainsAssignment_3");
|
||||
put(grammarAccess.getWMLRootAccess().getIfDefsAssignment_4(), "rule__WMLRoot__IfDefsAssignment_4");
|
||||
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().getTagsAssignment_4_0(), "rule__WMLTag__TagsAssignment_4_0");
|
||||
put(grammarAccess.getWMLTagAccess().getKeysAssignment_4_1(), "rule__WMLTag__KeysAssignment_4_1");
|
||||
put(grammarAccess.getWMLTagAccess().getMacroCallsAssignment_4_2(), "rule__WMLTag__MacroCallsAssignment_4_2");
|
||||
put(grammarAccess.getWMLTagAccess().getMacroDefinesAssignment_4_3(), "rule__WMLTag__MacroDefinesAssignment_4_3");
|
||||
put(grammarAccess.getWMLTagAccess().getTextdomainsAssignment_4_4(), "rule__WMLTag__TextdomainsAssignment_4_4");
|
||||
put(grammarAccess.getWMLTagAccess().getIfDefsAssignment_4_5(), "rule__WMLTag__IfDefsAssignment_4_5");
|
||||
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");
|
||||
|
@ -79,28 +71,16 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
put(grammarAccess.getWMLMacroCallAccess().getNameAssignment_3(), "rule__WMLMacroCall__NameAssignment_3");
|
||||
put(grammarAccess.getWMLMacroCallAccess().getParamsAssignment_4_0(), "rule__WMLMacroCall__ParamsAssignment_4_0");
|
||||
put(grammarAccess.getWMLMacroCallAccess().getExtraMacrosAssignment_4_1(), "rule__WMLMacroCall__ExtraMacrosAssignment_4_1");
|
||||
put(grammarAccess.getWMLLuaCodeAccess().getValueAssignment(), "rule__WMLLuaCode__ValueAssignment");
|
||||
put(grammarAccess.getWMLArrayCallAccess().getValueAssignment_1(), "rule__WMLArrayCall__ValueAssignment_1");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getNameAssignment_0(), "rule__WMLMacroDefine__NameAssignment_0");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getTagsAssignment_1_0(), "rule__WMLMacroDefine__TagsAssignment_1_0");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getKeysAssignment_1_1(), "rule__WMLMacroDefine__KeysAssignment_1_1");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getMacroCallsAssignment_1_2(), "rule__WMLMacroDefine__MacroCallsAssignment_1_2");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getMacroDefinesAssignment_1_3(), "rule__WMLMacroDefine__MacroDefinesAssignment_1_3");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getTextdomainsAssignment_1_4(), "rule__WMLMacroDefine__TextdomainsAssignment_1_4");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getValuesAssignment_1_5(), "rule__WMLMacroDefine__ValuesAssignment_1_5");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getIfDefsAssignment_1_6(), "rule__WMLMacroDefine__IfDefsAssignment_1_6");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getExpressionsAssignment_1(), "rule__WMLMacroDefine__ExpressionsAssignment_1");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getEndNameAssignment_2(), "rule__WMLMacroDefine__EndNameAssignment_2");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getNameAssignment_0(), "rule__WMLPreprocIF__NameAssignment_0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getTagsAssignment_1_0(), "rule__WMLPreprocIF__TagsAssignment_1_0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getKeysAssignment_1_1(), "rule__WMLPreprocIF__KeysAssignment_1_1");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getMacroCallsAssignment_1_2(), "rule__WMLPreprocIF__MacroCallsAssignment_1_2");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getMacroDefinesAssignment_1_3(), "rule__WMLPreprocIF__MacroDefinesAssignment_1_3");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getTextdomainsAssignment_1_4(), "rule__WMLPreprocIF__TextdomainsAssignment_1_4");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getValuesAssignment_1_5(), "rule__WMLPreprocIF__ValuesAssignment_1_5");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getIfDefsAssignment_1_6(), "rule__WMLPreprocIF__IfDefsAssignment_1_6");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getElsesAssignment_1_7(), "rule__WMLPreprocIF__ElsesAssignment_1_7");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getExpressionsAssignment_1_0(), "rule__WMLPreprocIF__ExpressionsAssignment_1_0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getElsesAssignment_1_1(), "rule__WMLPreprocIF__ElsesAssignment_1_1");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getEndNameAssignment_2(), "rule__WMLPreprocIF__EndNameAssignment_2");
|
||||
put(grammarAccess.getWMLTextdomainAccess().getNameAssignment(), "rule__WMLTextdomain__NameAssignment");
|
||||
put(grammarAccess.getWMLLuaCodeAccess().getValueAssignment(), "rule__WMLLuaCode__ValueAssignment");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -73,9 +73,9 @@ ruleWMLRoot
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootAccess().getAlternatives()); }
|
||||
(rule__WMLRoot__Alternatives)*
|
||||
{ after(grammarAccess.getWMLRootAccess().getAlternatives()); }
|
||||
{ before(grammarAccess.getWMLRootAccess().getExpressionsAssignment()); }
|
||||
(rule__WMLRoot__ExpressionsAssignment)*
|
||||
{ after(grammarAccess.getWMLRootAccess().getExpressionsAssignment()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -205,34 +205,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLLuaCode
|
||||
entryRuleWMLLuaCode
|
||||
:
|
||||
{ before(grammarAccess.getWMLLuaCodeRule()); }
|
||||
ruleWMLLuaCode
|
||||
{ after(grammarAccess.getWMLLuaCodeRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLLuaCode
|
||||
ruleWMLLuaCode
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLLuaCodeAccess().getValueAssignment()); }
|
||||
(rule__WMLLuaCode__ValueAssignment)
|
||||
{ after(grammarAccess.getWMLLuaCodeAccess().getValueAssignment()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLArrayCall
|
||||
entryRuleWMLArrayCall
|
||||
:
|
||||
|
@ -317,6 +289,90 @@ finally {
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLRootExpression
|
||||
entryRuleWMLRootExpression
|
||||
:
|
||||
{ before(grammarAccess.getWMLRootExpressionRule()); }
|
||||
ruleWMLRootExpression
|
||||
{ after(grammarAccess.getWMLRootExpressionRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLRootExpression
|
||||
ruleWMLRootExpression
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootExpressionAccess().getAlternatives()); }
|
||||
(rule__WMLRootExpression__Alternatives)
|
||||
{ after(grammarAccess.getWMLRootExpressionAccess().getAlternatives()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLExpression
|
||||
entryRuleWMLExpression
|
||||
:
|
||||
{ before(grammarAccess.getWMLExpressionRule()); }
|
||||
ruleWMLExpression
|
||||
{ after(grammarAccess.getWMLExpressionRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLExpression
|
||||
ruleWMLExpression
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLExpressionAccess().getAlternatives()); }
|
||||
(rule__WMLExpression__Alternatives)
|
||||
{ after(grammarAccess.getWMLExpressionAccess().getAlternatives()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLValuedExpression
|
||||
entryRuleWMLValuedExpression
|
||||
:
|
||||
{ before(grammarAccess.getWMLValuedExpressionRule()); }
|
||||
ruleWMLValuedExpression
|
||||
{ after(grammarAccess.getWMLValuedExpressionRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLValuedExpression
|
||||
ruleWMLValuedExpression
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getAlternatives()); }
|
||||
(rule__WMLValuedExpression__Alternatives)
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getAlternatives()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLTextdomain
|
||||
entryRuleWMLTextdomain
|
||||
:
|
||||
|
@ -345,6 +401,34 @@ finally {
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLLuaCode
|
||||
entryRuleWMLLuaCode
|
||||
:
|
||||
{ before(grammarAccess.getWMLLuaCodeRule()); }
|
||||
ruleWMLLuaCode
|
||||
{ after(grammarAccess.getWMLLuaCodeRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLLuaCode
|
||||
ruleWMLLuaCode
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLLuaCodeAccess().getValueAssignment()); }
|
||||
(rule__WMLLuaCode__ValueAssignment)
|
||||
{ after(grammarAccess.getWMLLuaCodeAccess().getValueAssignment()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLMacroParameter
|
||||
entryRuleWMLMacroParameter
|
||||
:
|
||||
|
@ -430,92 +514,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
rule__WMLRoot__Alternatives
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootAccess().getTagsAssignment_0()); }
|
||||
(rule__WMLRoot__TagsAssignment_0)
|
||||
{ after(grammarAccess.getWMLRootAccess().getTagsAssignment_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLRootAccess().getMacroCallsAssignment_1()); }
|
||||
(rule__WMLRoot__MacroCallsAssignment_1)
|
||||
{ after(grammarAccess.getWMLRootAccess().getMacroCallsAssignment_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLRootAccess().getMacroDefinesAssignment_2()); }
|
||||
(rule__WMLRoot__MacroDefinesAssignment_2)
|
||||
{ after(grammarAccess.getWMLRootAccess().getMacroDefinesAssignment_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLRootAccess().getTextdomainsAssignment_3()); }
|
||||
(rule__WMLRoot__TextdomainsAssignment_3)
|
||||
{ after(grammarAccess.getWMLRootAccess().getTextdomainsAssignment_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLRootAccess().getIfDefsAssignment_4()); }
|
||||
(rule__WMLRoot__IfDefsAssignment_4)
|
||||
{ after(grammarAccess.getWMLRootAccess().getIfDefsAssignment_4()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__Alternatives_4
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getTagsAssignment_4_0()); }
|
||||
(rule__WMLTag__TagsAssignment_4_0)
|
||||
{ after(grammarAccess.getWMLTagAccess().getTagsAssignment_4_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLTagAccess().getKeysAssignment_4_1()); }
|
||||
(rule__WMLTag__KeysAssignment_4_1)
|
||||
{ after(grammarAccess.getWMLTagAccess().getKeysAssignment_4_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLTagAccess().getMacroCallsAssignment_4_2()); }
|
||||
(rule__WMLTag__MacroCallsAssignment_4_2)
|
||||
{ after(grammarAccess.getWMLTagAccess().getMacroCallsAssignment_4_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLTagAccess().getMacroDefinesAssignment_4_3()); }
|
||||
(rule__WMLTag__MacroDefinesAssignment_4_3)
|
||||
{ after(grammarAccess.getWMLTagAccess().getMacroDefinesAssignment_4_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLTagAccess().getTextdomainsAssignment_4_4()); }
|
||||
(rule__WMLTag__TextdomainsAssignment_4_4)
|
||||
{ after(grammarAccess.getWMLTagAccess().getTextdomainsAssignment_4_4()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLTagAccess().getIfDefsAssignment_4_5()); }
|
||||
(rule__WMLTag__IfDefsAssignment_4_5)
|
||||
{ after(grammarAccess.getWMLTagAccess().getIfDefsAssignment_4_5()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLKey__EolAlternatives_4_0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
@ -594,58 +592,6 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__Alternatives_1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getTagsAssignment_1_0()); }
|
||||
(rule__WMLMacroDefine__TagsAssignment_1_0)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getTagsAssignment_1_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getKeysAssignment_1_1()); }
|
||||
(rule__WMLMacroDefine__KeysAssignment_1_1)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getKeysAssignment_1_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getMacroCallsAssignment_1_2()); }
|
||||
(rule__WMLMacroDefine__MacroCallsAssignment_1_2)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getMacroCallsAssignment_1_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getMacroDefinesAssignment_1_3()); }
|
||||
(rule__WMLMacroDefine__MacroDefinesAssignment_1_3)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getMacroDefinesAssignment_1_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getTextdomainsAssignment_1_4()); }
|
||||
(rule__WMLMacroDefine__TextdomainsAssignment_1_4)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getTextdomainsAssignment_1_4()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getValuesAssignment_1_5()); }
|
||||
(rule__WMLMacroDefine__ValuesAssignment_1_5)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getValuesAssignment_1_5()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getIfDefsAssignment_1_6()); }
|
||||
(rule__WMLMacroDefine__IfDefsAssignment_1_6)
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getIfDefsAssignment_1_6()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__NameAlternatives_0_0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
@ -686,51 +632,99 @@ rule__WMLPreprocIF__Alternatives_1
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getTagsAssignment_1_0()); }
|
||||
(rule__WMLPreprocIF__TagsAssignment_1_0)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getTagsAssignment_1_0()); }
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getExpressionsAssignment_1_0()); }
|
||||
(rule__WMLPreprocIF__ExpressionsAssignment_1_0)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getExpressionsAssignment_1_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getKeysAssignment_1_1()); }
|
||||
(rule__WMLPreprocIF__KeysAssignment_1_1)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getKeysAssignment_1_1()); }
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getElsesAssignment_1_1()); }
|
||||
(rule__WMLPreprocIF__ElsesAssignment_1_1)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getElsesAssignment_1_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLRootExpression__Alternatives
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootExpressionAccess().getWMLTagParserRuleCall_0()); }
|
||||
ruleWMLTag
|
||||
{ after(grammarAccess.getWMLRootExpressionAccess().getWMLTagParserRuleCall_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getMacroCallsAssignment_1_2()); }
|
||||
(rule__WMLPreprocIF__MacroCallsAssignment_1_2)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getMacroCallsAssignment_1_2()); }
|
||||
{ before(grammarAccess.getWMLRootExpressionAccess().getWMLMacroCallParserRuleCall_1()); }
|
||||
ruleWMLMacroCall
|
||||
{ after(grammarAccess.getWMLRootExpressionAccess().getWMLMacroCallParserRuleCall_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getMacroDefinesAssignment_1_3()); }
|
||||
(rule__WMLPreprocIF__MacroDefinesAssignment_1_3)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getMacroDefinesAssignment_1_3()); }
|
||||
{ before(grammarAccess.getWMLRootExpressionAccess().getWMLMacroDefineParserRuleCall_2()); }
|
||||
ruleWMLMacroDefine
|
||||
{ after(grammarAccess.getWMLRootExpressionAccess().getWMLMacroDefineParserRuleCall_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getTextdomainsAssignment_1_4()); }
|
||||
(rule__WMLPreprocIF__TextdomainsAssignment_1_4)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getTextdomainsAssignment_1_4()); }
|
||||
{ before(grammarAccess.getWMLRootExpressionAccess().getWMLTextdomainParserRuleCall_3()); }
|
||||
ruleWMLTextdomain
|
||||
{ after(grammarAccess.getWMLRootExpressionAccess().getWMLTextdomainParserRuleCall_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getValuesAssignment_1_5()); }
|
||||
(rule__WMLPreprocIF__ValuesAssignment_1_5)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getValuesAssignment_1_5()); }
|
||||
{ before(grammarAccess.getWMLRootExpressionAccess().getWMLPreprocIFParserRuleCall_4()); }
|
||||
ruleWMLPreprocIF
|
||||
{ after(grammarAccess.getWMLRootExpressionAccess().getWMLPreprocIFParserRuleCall_4()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLExpression__Alternatives
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLExpressionAccess().getWMLRootExpressionParserRuleCall_0()); }
|
||||
ruleWMLRootExpression
|
||||
{ after(grammarAccess.getWMLExpressionAccess().getWMLRootExpressionParserRuleCall_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getIfDefsAssignment_1_6()); }
|
||||
(rule__WMLPreprocIF__IfDefsAssignment_1_6)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getIfDefsAssignment_1_6()); }
|
||||
{ before(grammarAccess.getWMLExpressionAccess().getWMLKeyParserRuleCall_1()); }
|
||||
ruleWMLKey
|
||||
{ after(grammarAccess.getWMLExpressionAccess().getWMLKeyParserRuleCall_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLValuedExpression__Alternatives
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getWMLExpressionParserRuleCall_0()); }
|
||||
ruleWMLExpression
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getWMLExpressionParserRuleCall_0()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getElsesAssignment_1_7()); }
|
||||
(rule__WMLPreprocIF__ElsesAssignment_1_7)
|
||||
{ after(grammarAccess.getWMLPreprocIFAccess().getElsesAssignment_1_7()); }
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getGroup_1()); }
|
||||
(rule__WMLValuedExpression__Group_1__0)
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getGroup_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -1042,9 +1036,9 @@ rule__WMLTag__Group__4__Impl
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getAlternatives_4()); }
|
||||
(rule__WMLTag__Alternatives_4)*
|
||||
{ after(grammarAccess.getWMLTagAccess().getAlternatives_4()); }
|
||||
{ before(grammarAccess.getWMLTagAccess().getExpressionsAssignment_4()); }
|
||||
(rule__WMLTag__ExpressionsAssignment_4)*
|
||||
{ after(grammarAccess.getWMLTagAccess().getExpressionsAssignment_4()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -1849,9 +1843,9 @@ rule__WMLMacroDefine__Group__1__Impl
|
|||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getAlternatives_1()); }
|
||||
(rule__WMLMacroDefine__Alternatives_1)*
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getAlternatives_1()); }
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getExpressionsAssignment_1()); }
|
||||
(rule__WMLMacroDefine__ExpressionsAssignment_1)*
|
||||
{ after(grammarAccess.getWMLMacroDefineAccess().getExpressionsAssignment_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -1986,15 +1980,29 @@ 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__WMLRoot__TagsAssignment_0
|
||||
rule__WMLValuedExpression__Group_1__0__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootAccess().getTagsWMLTagParserRuleCall_0_0()); }
|
||||
ruleWMLTag{ after(grammarAccess.getWMLRootAccess().getTagsWMLTagParserRuleCall_0_0()); }
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0()); }
|
||||
(
|
||||
|
||||
)
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2002,14 +2010,27 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLRoot__MacroCallsAssignment_1
|
||||
|
||||
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.getWMLRootAccess().getMacroCallsWMLMacroCallParserRuleCall_1_0()); }
|
||||
ruleWMLMacroCall{ after(grammarAccess.getWMLRootAccess().getMacroCallsWMLMacroCallParserRuleCall_1_0()); }
|
||||
{ before(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1()); }
|
||||
ruleWMLValue
|
||||
{ after(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2017,44 +2038,20 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLRoot__MacroDefinesAssignment_2
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rule__WMLRoot__ExpressionsAssignment
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootAccess().getMacroDefinesWMLMacroDefineParserRuleCall_2_0()); }
|
||||
ruleWMLMacroDefine{ after(grammarAccess.getWMLRootAccess().getMacroDefinesWMLMacroDefineParserRuleCall_2_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLRoot__TextdomainsAssignment_3
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootAccess().getTextdomainsWMLTextdomainParserRuleCall_3_0()); }
|
||||
ruleWMLTextdomain{ after(grammarAccess.getWMLRootAccess().getTextdomainsWMLTextdomainParserRuleCall_3_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLRoot__IfDefsAssignment_4
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLRootAccess().getIfDefsWMLPreprocIFParserRuleCall_4_0()); }
|
||||
ruleWMLPreprocIF{ after(grammarAccess.getWMLRootAccess().getIfDefsWMLPreprocIFParserRuleCall_4_0()); }
|
||||
{ before(grammarAccess.getWMLRootAccess().getExpressionsWMLRootExpressionParserRuleCall_0()); }
|
||||
ruleWMLRootExpression{ after(grammarAccess.getWMLRootAccess().getExpressionsWMLRootExpressionParserRuleCall_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2100,89 +2097,14 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__TagsAssignment_4_0
|
||||
rule__WMLTag__ExpressionsAssignment_4
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getTagsWMLTagParserRuleCall_4_0_0()); }
|
||||
ruleWMLTag{ after(grammarAccess.getWMLTagAccess().getTagsWMLTagParserRuleCall_4_0_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__KeysAssignment_4_1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getKeysWMLKeyParserRuleCall_4_1_0()); }
|
||||
ruleWMLKey{ after(grammarAccess.getWMLTagAccess().getKeysWMLKeyParserRuleCall_4_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__MacroCallsAssignment_4_2
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getMacroCallsWMLMacroCallParserRuleCall_4_2_0()); }
|
||||
ruleWMLMacroCall{ after(grammarAccess.getWMLTagAccess().getMacroCallsWMLMacroCallParserRuleCall_4_2_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__MacroDefinesAssignment_4_3
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getMacroDefinesWMLMacroDefineParserRuleCall_4_3_0()); }
|
||||
ruleWMLMacroDefine{ after(grammarAccess.getWMLTagAccess().getMacroDefinesWMLMacroDefineParserRuleCall_4_3_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__TextdomainsAssignment_4_4
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getTextdomainsWMLTextdomainParserRuleCall_4_4_0()); }
|
||||
ruleWMLTextdomain{ after(grammarAccess.getWMLTagAccess().getTextdomainsWMLTextdomainParserRuleCall_4_4_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLTag__IfDefsAssignment_4_5
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLTagAccess().getIfDefsWMLPreprocIFParserRuleCall_4_5_0()); }
|
||||
ruleWMLPreprocIF{ after(grammarAccess.getWMLTagAccess().getIfDefsWMLPreprocIFParserRuleCall_4_5_0()); }
|
||||
{ before(grammarAccess.getWMLTagAccess().getExpressionsWMLExpressionParserRuleCall_4_0()); }
|
||||
ruleWMLExpression{ after(grammarAccess.getWMLTagAccess().getExpressionsWMLExpressionParserRuleCall_4_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2357,21 +2279,6 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLLuaCode__ValueAssignment
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLLuaCodeAccess().getValueLUA_CODETerminalRuleCall_0()); }
|
||||
RULE_LUA_CODE{ after(grammarAccess.getWMLLuaCodeAccess().getValueLUA_CODETerminalRuleCall_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLArrayCall__ValueAssignment_1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
@ -2402,104 +2309,14 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__TagsAssignment_1_0
|
||||
rule__WMLMacroDefine__ExpressionsAssignment_1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getTagsWMLTagParserRuleCall_1_0_0()); }
|
||||
ruleWMLTag{ after(grammarAccess.getWMLMacroDefineAccess().getTagsWMLTagParserRuleCall_1_0_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__KeysAssignment_1_1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getKeysWMLKeyParserRuleCall_1_1_0()); }
|
||||
ruleWMLKey{ after(grammarAccess.getWMLMacroDefineAccess().getKeysWMLKeyParserRuleCall_1_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__MacroCallsAssignment_1_2
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getMacroCallsWMLMacroCallParserRuleCall_1_2_0()); }
|
||||
ruleWMLMacroCall{ after(grammarAccess.getWMLMacroDefineAccess().getMacroCallsWMLMacroCallParserRuleCall_1_2_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__MacroDefinesAssignment_1_3
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0()); }
|
||||
ruleWMLMacroDefine{ after(grammarAccess.getWMLMacroDefineAccess().getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__TextdomainsAssignment_1_4
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getTextdomainsWMLTextdomainParserRuleCall_1_4_0()); }
|
||||
ruleWMLTextdomain{ after(grammarAccess.getWMLMacroDefineAccess().getTextdomainsWMLTextdomainParserRuleCall_1_4_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__ValuesAssignment_1_5
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getValuesWMLValueParserRuleCall_1_5_0()); }
|
||||
ruleWMLValue{ after(grammarAccess.getWMLMacroDefineAccess().getValuesWMLValueParserRuleCall_1_5_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLMacroDefine__IfDefsAssignment_1_6
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getIfDefsWMLPreprocIFParserRuleCall_1_6_0()); }
|
||||
ruleWMLPreprocIF{ after(grammarAccess.getWMLMacroDefineAccess().getIfDefsWMLPreprocIFParserRuleCall_1_6_0()); }
|
||||
{ before(grammarAccess.getWMLMacroDefineAccess().getExpressionsWMLValuedExpressionParserRuleCall_1_0()); }
|
||||
ruleWMLValuedExpression{ after(grammarAccess.getWMLMacroDefineAccess().getExpressionsWMLValuedExpressionParserRuleCall_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2538,14 +2355,14 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__TagsAssignment_1_0
|
||||
rule__WMLPreprocIF__ExpressionsAssignment_1_0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getTagsWMLTagParserRuleCall_1_0_0()); }
|
||||
ruleWMLTag{ after(grammarAccess.getWMLPreprocIFAccess().getTagsWMLTagParserRuleCall_1_0_0()); }
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getExpressionsWMLValuedExpressionParserRuleCall_1_0_0()); }
|
||||
ruleWMLValuedExpression{ after(grammarAccess.getWMLPreprocIFAccess().getExpressionsWMLValuedExpressionParserRuleCall_1_0_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2553,104 +2370,14 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__KeysAssignment_1_1
|
||||
rule__WMLPreprocIF__ElsesAssignment_1_1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getKeysWMLKeyParserRuleCall_1_1_0()); }
|
||||
ruleWMLKey{ after(grammarAccess.getWMLPreprocIFAccess().getKeysWMLKeyParserRuleCall_1_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__MacroCallsAssignment_1_2
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getMacroCallsWMLMacroCallParserRuleCall_1_2_0()); }
|
||||
ruleWMLMacroCall{ after(grammarAccess.getWMLPreprocIFAccess().getMacroCallsWMLMacroCallParserRuleCall_1_2_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__MacroDefinesAssignment_1_3
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0()); }
|
||||
ruleWMLMacroDefine{ after(grammarAccess.getWMLPreprocIFAccess().getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__TextdomainsAssignment_1_4
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getTextdomainsWMLTextdomainParserRuleCall_1_4_0()); }
|
||||
ruleWMLTextdomain{ after(grammarAccess.getWMLPreprocIFAccess().getTextdomainsWMLTextdomainParserRuleCall_1_4_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__ValuesAssignment_1_5
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getValuesWMLValueParserRuleCall_1_5_0()); }
|
||||
ruleWMLValue{ after(grammarAccess.getWMLPreprocIFAccess().getValuesWMLValueParserRuleCall_1_5_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__IfDefsAssignment_1_6
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getIfDefsWMLPreprocIFParserRuleCall_1_6_0()); }
|
||||
ruleWMLPreprocIF{ after(grammarAccess.getWMLPreprocIFAccess().getIfDefsWMLPreprocIFParserRuleCall_1_6_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLPreprocIF__ElsesAssignment_1_7
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getElsesELSETerminalRuleCall_1_7_0()); }
|
||||
RULE_ELSE{ after(grammarAccess.getWMLPreprocIFAccess().getElsesELSETerminalRuleCall_1_7_0()); }
|
||||
{ before(grammarAccess.getWMLPreprocIFAccess().getElsesELSETerminalRuleCall_1_1_0()); }
|
||||
RULE_ELSE{ after(grammarAccess.getWMLPreprocIFAccess().getElsesELSETerminalRuleCall_1_1_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -2688,6 +2415,21 @@ finally {
|
|||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__WMLLuaCode__ValueAssignment
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getWMLLuaCodeAccess().getValueLUA_CODETerminalRuleCall_0()); }
|
||||
RULE_LUA_CODE{ after(grammarAccess.getWMLLuaCodeAccess().getValueLUA_CODETerminalRuleCall_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
RULE_LUA_CODE : '<<' ( options {greedy=false;} : . )*'>>';
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
RULE_LUA_CODE=13
|
||||
RULE_LUA_CODE=18
|
||||
RULE_IFDEF=6
|
||||
RULE_ID=10
|
||||
RULE_ANY_OTHER=12
|
||||
RULE_IFNDEF=7
|
||||
RULE_EOL=4
|
||||
RULE_TEXTDOMAIN=18
|
||||
RULE_TEXTDOMAIN=17
|
||||
RULE_IFNHAVE=9
|
||||
RULE_SL_COMMENT=5
|
||||
RULE_STRING=11
|
||||
RULE_ENDIF=17
|
||||
RULE_DEFINE=14
|
||||
RULE_ENDDEF=15
|
||||
RULE_ENDIF=16
|
||||
RULE_DEFINE=13
|
||||
RULE_ENDDEF=14
|
||||
RULE_IFHAVE=8
|
||||
RULE_WS=19
|
||||
RULE_ELSE=16
|
||||
RULE_ELSE=15
|
||||
'$'=24
|
||||
'}'=34
|
||||
'~'=21
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.ArrayList;
|
|||
|
||||
@SuppressWarnings("all")
|
||||
public class InternalWMLLexer extends Lexer {
|
||||
public static final int RULE_LUA_CODE=13;
|
||||
public static final int RULE_LUA_CODE=18;
|
||||
public static final int RULE_ID=10;
|
||||
public static final int RULE_IFDEF=6;
|
||||
public static final int RULE_ANY_OTHER=12;
|
||||
|
@ -20,7 +20,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
public static final int RULE_EOL=4;
|
||||
public static final int T29=29;
|
||||
public static final int T28=28;
|
||||
public static final int RULE_TEXTDOMAIN=18;
|
||||
public static final int RULE_TEXTDOMAIN=17;
|
||||
public static final int T27=27;
|
||||
public static final int RULE_IFNHAVE=9;
|
||||
public static final int T26=26;
|
||||
|
@ -34,15 +34,15 @@ public class InternalWMLLexer extends Lexer {
|
|||
public static final int T21=21;
|
||||
public static final int T20=20;
|
||||
public static final int RULE_STRING=11;
|
||||
public static final int RULE_ENDIF=17;
|
||||
public static final int RULE_DEFINE=14;
|
||||
public static final int RULE_ENDDEF=15;
|
||||
public static final int RULE_ENDIF=16;
|
||||
public static final int RULE_DEFINE=13;
|
||||
public static final int RULE_ENDDEF=14;
|
||||
public static final int RULE_IFHAVE=8;
|
||||
public static final int T34=34;
|
||||
public static final int RULE_WS=19;
|
||||
public static final int T33=33;
|
||||
public static final int T30=30;
|
||||
public static final int RULE_ELSE=16;
|
||||
public static final int RULE_ELSE=15;
|
||||
public static final int T32=32;
|
||||
public static final int T31=31;
|
||||
public InternalWMLLexer() {;}
|
||||
|
@ -327,12 +327,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_LUA_CODE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_LUA_CODE;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2692:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2692:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2434:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2434:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
{
|
||||
match("<<");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2692:22: ( options {greedy=false; } : . )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2434:22: ( options {greedy=false; } : . )*
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
|
@ -357,7 +357,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2692:50: .
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2434:50: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -385,12 +385,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFHAVE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFHAVE;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifhave");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -403,7 +403,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -424,7 +424,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
|
@ -433,9 +433,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:42: ( '\\r' )?
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
|
@ -444,7 +444,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2694:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2436:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -474,12 +474,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFNHAVE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFNHAVE;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifnhave");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=2;
|
||||
|
@ -492,7 +492,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -513,7 +513,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:43: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:43: ( ( '\\r' )? '\\n' )?
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
|
@ -522,9 +522,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:44: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:44: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:44: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:44: ( '\\r' )?
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -533,7 +533,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2696:44: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2438:44: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -563,12 +563,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFDEF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFDEF;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifdef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -581,7 +581,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -602,7 +602,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -611,9 +611,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:40: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -622,7 +622,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2698:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2440:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -652,12 +652,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFNDEF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFNDEF;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifndef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
|
@ -670,7 +670,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -691,7 +691,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
|
@ -700,9 +700,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt13) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:42: ( '\\r' )?
|
||||
int alt12=2;
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
|
@ -711,7 +711,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2700:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2442:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -741,12 +741,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ELSE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ELSE;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#else");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop14:
|
||||
do {
|
||||
int alt14=2;
|
||||
|
@ -759,7 +759,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt14) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -780,7 +780,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:37: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:37: ( ( '\\r' )? '\\n' )?
|
||||
int alt16=2;
|
||||
int LA16_0 = input.LA(1);
|
||||
|
||||
|
@ -789,9 +789,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt16) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:38: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:38: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:38: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:38: ( '\\r' )?
|
||||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
|
@ -800,7 +800,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt15) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2702:38: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2444:38: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -830,12 +830,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ENDIF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ENDIF;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#endif");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop17:
|
||||
do {
|
||||
int alt17=2;
|
||||
|
@ -848,7 +848,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt17) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -869,7 +869,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt19=2;
|
||||
int LA19_0 = input.LA(1);
|
||||
|
||||
|
@ -878,9 +878,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt19) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:40: ( '\\r' )?
|
||||
int alt18=2;
|
||||
int LA18_0 = input.LA(1);
|
||||
|
||||
|
@ -889,7 +889,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt18) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2704:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2446:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -919,12 +919,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_DEFINE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_DEFINE;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#define");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop20:
|
||||
do {
|
||||
int alt20=2;
|
||||
|
@ -937,7 +937,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -958,7 +958,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt22=2;
|
||||
int LA22_0 = input.LA(1);
|
||||
|
||||
|
@ -967,9 +967,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt22) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:42: ( '\\r' )?
|
||||
int alt21=2;
|
||||
int LA21_0 = input.LA(1);
|
||||
|
||||
|
@ -978,7 +978,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt21) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2706:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1008,12 +1008,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ENDDEF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ENDDEF;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#enddef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop23:
|
||||
do {
|
||||
int alt23=2;
|
||||
|
@ -1026,7 +1026,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt23) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1047,7 +1047,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt25=2;
|
||||
int LA25_0 = input.LA(1);
|
||||
|
||||
|
@ -1056,9 +1056,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt25) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:42: ( '\\r' )?
|
||||
int alt24=2;
|
||||
int LA24_0 = input.LA(1);
|
||||
|
||||
|
@ -1067,7 +1067,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt24) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2708:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1097,12 +1097,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_TEXTDOMAIN() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_TEXTDOMAIN;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#textdomain");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop26:
|
||||
do {
|
||||
int alt26=2;
|
||||
|
@ -1115,7 +1115,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt26) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1136,7 +1136,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:49: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:49: ( ( '\\r' )? '\\n' )?
|
||||
int alt28=2;
|
||||
int LA28_0 = input.LA(1);
|
||||
|
||||
|
@ -1145,9 +1145,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt28) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:50: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:50: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:50: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:50: ( '\\r' )?
|
||||
int alt27=2;
|
||||
int LA27_0 = input.LA(1);
|
||||
|
||||
|
@ -1156,7 +1156,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt27) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2710:50: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:50: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1186,11 +1186,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_STRING() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_STRING;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2712:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2712:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2712:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop29:
|
||||
do {
|
||||
int alt29=3;
|
||||
|
@ -1206,7 +1206,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt29) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2712:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454: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' ) {
|
||||
|
@ -1223,7 +1223,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2712:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1259,10 +1259,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ID() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ID;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2714:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2714:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2714:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
int cnt30=0;
|
||||
loop30:
|
||||
do {
|
||||
|
@ -1315,8 +1315,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_EOL() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_EOL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2716:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2716:12: ( '\\r' | '\\n' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:12: ( '\\r' | '\\n' )
|
||||
{
|
||||
if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
|
||||
input.consume();
|
||||
|
@ -1342,10 +1342,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_WS() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_WS;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2718:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2718:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:11: ( ' ' | '\\t' )+
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2718:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:11: ( ' ' | '\\t' )+
|
||||
int cnt31=0;
|
||||
loop31:
|
||||
do {
|
||||
|
@ -1398,8 +1398,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ANY_OTHER() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2720:16: ( . )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2720:18: .
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:16: ( . )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1416,11 +1416,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_SL_COMMENT() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match('#');
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop32:
|
||||
do {
|
||||
int alt32=2;
|
||||
|
@ -1433,7 +1433,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt32) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1454,7 +1454,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt34=2;
|
||||
int LA34_0 = input.LA(1);
|
||||
|
||||
|
@ -1463,9 +1463,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt34) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:40: ( '\\r' )?
|
||||
int alt33=2;
|
||||
int LA33_0 = input.LA(1);
|
||||
|
||||
|
@ -1474,7 +1474,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt33) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2722:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -23,52 +23,52 @@ T32 : '[/' ;
|
|||
T33 : '{' ;
|
||||
T34 : '}' ;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2692
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2434
|
||||
RULE_LUA_CODE : '<<' ( options {greedy=false;} : . )*'>>';
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2694
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2436
|
||||
RULE_IFHAVE : '#ifhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2696
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2438
|
||||
RULE_IFNHAVE : '#ifnhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2698
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2440
|
||||
RULE_IFDEF : '#ifdef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2700
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2442
|
||||
RULE_IFNDEF : '#ifndef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2702
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2444
|
||||
RULE_ELSE : '#else' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2704
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2446
|
||||
RULE_ENDIF : '#endif' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2706
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2448
|
||||
RULE_DEFINE : '#define' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2708
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2450
|
||||
RULE_ENDDEF : '#enddef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2710
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2452
|
||||
RULE_TEXTDOMAIN : '#textdomain' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2712
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2454
|
||||
RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2714
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2456
|
||||
RULE_ID : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-'|',')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2716
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2458
|
||||
RULE_EOL : ('\r'|'\n');
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2718
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2460
|
||||
RULE_WS : (' '|'\t')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2720
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2462
|
||||
RULE_ANY_OTHER : .;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2722
|
||||
// $ANTLR src "../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2464
|
||||
RULE_SL_COMMENT : '#' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ import org.wesnoth.ui.WMLUiModule;
|
|||
import org.wesnoth.ui.WMLUtil;
|
||||
import org.wesnoth.ui.labeling.WMLLabelProvider;
|
||||
import org.wesnoth.utils.StringUtils;
|
||||
import org.wesnoth.utils.WMLGrammarUtils;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.core.ConfigFile;
|
||||
|
@ -240,7 +241,7 @@ public class WMLProposalProvider extends AbstractWMLProposalProvider
|
|||
if (key.isRepeatable() == false)
|
||||
{
|
||||
// don't suggest already completed keys
|
||||
for(WMLKey eKey: tag.getKeys())
|
||||
for( WMLKey eKey: WMLGrammarUtils.getTagKeys( tag ) )
|
||||
if (eKey.getName().equals(key.getName()))
|
||||
found = true;
|
||||
}
|
||||
|
@ -301,7 +302,7 @@ public class WMLProposalProvider extends AbstractWMLProposalProvider
|
|||
// check only non-repeatable tags
|
||||
if (tag.isRepeatable() == false)
|
||||
{
|
||||
for(WMLTag wmlTag : parentTag.getTags())
|
||||
for( WMLTag wmlTag : WMLGrammarUtils.getTagTags( parentTag ) )
|
||||
if (wmlTag.getName().equals(tag.getName()))
|
||||
{
|
||||
found = true;
|
||||
|
|
|
@ -52,7 +52,7 @@ public class WMLSemanticHighlightingCalculator extends SemanticHighlightingCalcu
|
|||
String beginId = null, endId = null;
|
||||
if (current instanceof WMLTag)
|
||||
{
|
||||
begin = getFirstFeatureNode(current, WmlPackage.Literals.WML_TAG__NAME.getName());
|
||||
begin = getFirstFeatureNode(current, WmlPackage.eINSTANCE.getWMLExpression_Name( ).getName( ));
|
||||
beginId = WMLHighlightingConfiguration.RULE_WML_TAG;
|
||||
|
||||
end = getFirstFeatureNode(current, WmlPackage.Literals.WML_TAG__END_NAME.getName());
|
||||
|
@ -60,22 +60,22 @@ public class WMLSemanticHighlightingCalculator extends SemanticHighlightingCalcu
|
|||
}
|
||||
else if (current instanceof WMLKey)
|
||||
{
|
||||
begin = getFirstFeatureNode(current, WmlPackage.Literals.WML_KEY__NAME.getName());
|
||||
begin = getFirstFeatureNode(current, WmlPackage.eINSTANCE.getWMLExpression_Name( ).getName());
|
||||
beginId = WMLHighlightingConfiguration.RULE_WML_KEY;
|
||||
}
|
||||
else if (current instanceof WMLMacroCall)
|
||||
{
|
||||
begin = getFirstFeatureNode(current, WmlPackage.Literals.WML_MACRO_CALL__NAME.getName());
|
||||
begin = getFirstFeatureNode(current, WmlPackage.eINSTANCE.getWMLExpression_Name( ).getName());
|
||||
beginId = WMLHighlightingConfiguration.RULE_WML_MACRO_CALL;
|
||||
}
|
||||
else if (current instanceof WMLTextdomain)
|
||||
{
|
||||
begin = getFirstFeatureNode(current, WmlPackage.Literals.WML_TEXTDOMAIN__NAME.getName());
|
||||
begin = getFirstFeatureNode(current, WmlPackage.eINSTANCE.getWMLExpression_Name( ).getName());
|
||||
beginId = WMLHighlightingConfiguration.RULE_WML_TEXTDOMAIN;
|
||||
}
|
||||
else if (current instanceof WMLPreprocIF)
|
||||
{
|
||||
begin = getFirstFeatureNode(current, WmlPackage.Literals.WML_PREPROC_IF__NAME.getName());
|
||||
begin = getFirstFeatureNode(current, WmlPackage.eINSTANCE.getWMLExpression_Name( ).getName());
|
||||
beginId = WMLHighlightingConfiguration.RULE_WML_IF;
|
||||
|
||||
end = getFirstFeatureNode(current, WmlPackage.Literals.WML_PREPROC_IF__END_NAME.getName());
|
||||
|
@ -83,7 +83,7 @@ public class WMLSemanticHighlightingCalculator extends SemanticHighlightingCalcu
|
|||
}
|
||||
else if (current instanceof WMLMacroDefine)
|
||||
{
|
||||
begin = getFirstFeatureNode(current, WmlPackage.Literals.WML_MACRO_DEFINE__NAME.getName());
|
||||
begin = getFirstFeatureNode(current, WmlPackage.eINSTANCE.getWMLExpression_Name( ).getName());
|
||||
beginId = WMLHighlightingConfiguration.RULE_WML_MACRO_DEFINE;
|
||||
|
||||
end = getFirstFeatureNode(current, WmlPackage.Literals.WML_MACRO_DEFINE__END_NAME.getName());
|
||||
|
|
|
@ -4,96 +4,52 @@
|
|||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="wml"
|
||||
nsURI="http://www.wesnoth.org/WML" nsPrefix="wml">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLRoot">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Expressions" upperBound="-1"
|
||||
eType="#//WMLRootExpression" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTag">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTag" eSuperTypes="#//WMLRootExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="plus" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Keys" upperBound="-1" eType="#//WMLKey"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Expressions" upperBound="-1"
|
||||
eType="#//WMLExpression" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKey">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKey" eSuperTypes="#//WMLExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
|
||||
eType="#//WMLKeyValue" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKeyValue"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCall" eSuperTypes="#//WMLKeyValue">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCall" eSuperTypes="#//WMLKeyValue #//WMLRootExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="point" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="relative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="params" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="extraMacros" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLLuaCode" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLArrayCall" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroDefine">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Keys" upperBound="-1" eType="#//WMLKey"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="Values" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroDefine" eSuperTypes="#//WMLRootExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Expressions" upperBound="-1"
|
||||
eType="#//WMLValuedExpression" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLPreprocIF">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Keys" upperBound="-1" eType="#//WMLKey"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="Values" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLPreprocIF" eSuperTypes="#//WMLRootExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Expressions" upperBound="-1"
|
||||
eType="#//WMLValuedExpression" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="Elses" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTextdomain">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLRootExpression" eSuperTypes="#//WMLExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLExpression" eSuperTypes="#//WMLValuedExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLValuedExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTextdomain" eSuperTypes="#//WMLRootExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLLuaCode" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
||||
|
|
|
@ -9,25 +9,14 @@
|
|||
<genPackages prefix="Wml" basePackage="org.wesnoth" disposableProviderFactory="true"
|
||||
ecorePackage="WML.ecore#/">
|
||||
<genClasses ecoreClass="WML.ecore#//WMLRoot">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/Textdomains"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/IfDefs"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/Expressions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLTag">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTag/plus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTag/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Keys"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Textdomains"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/IfDefs"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Expressions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTag/endName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLKey">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLKey/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLKey/value"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLKey/eol"/>
|
||||
</genClasses>
|
||||
|
@ -35,41 +24,29 @@
|
|||
<genClasses ecoreClass="WML.ecore#//WMLMacroCall">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/point"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/relative"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/name"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/params"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroCall/extraMacros"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLLuaCode">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLLuaCode/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLArrayCall">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLArrayCall/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLMacroDefine">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroDefine/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Keys"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Textdomains"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroDefine/Values"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/IfDefs"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Expressions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroDefine/endName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLPreprocIF">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Keys"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Textdomains"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/Values"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/IfDefs"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Expressions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/Elses"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/endName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLTextdomain">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTextdomain/name"/>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLRootExpression"/>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLExpression">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLExpression/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLValuedExpression"/>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLTextdomain"/>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLLuaCode">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLLuaCode/value"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="ASCII"?>
|
||||
<xtext:Grammar xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext" name="org.wesnoth.WML" definesHiddenTokens="true" hiddenTokens="//@rules.25 //@rules.26 //@rules.28">
|
||||
<xtext:Grammar xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext" name="org.wesnoth.WML" definesHiddenTokens="true" hiddenTokens="//@rules.28 //@rules.29 //@rules.31">
|
||||
<metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="wml">
|
||||
<ePackage href="http://www.wesnoth.org/WML#/"/>
|
||||
</metamodelDeclarations>
|
||||
|
@ -13,22 +13,8 @@
|
|||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLRoot"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
<alternatives xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLTag">
|
||||
|
@ -41,60 +27,43 @@
|
|||
<terminal xsi:type="xtext:Keyword" value="+"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Keys" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="[/"/>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLKey" definesHiddenTokens="true" hiddenTokens="//@rules.26">
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLKey" definesHiddenTokens="true" hiddenTokens="//@rules.29">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKey"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="value" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="*">
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.25"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.28"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.25"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.28"/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="value" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="eol" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.25"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.31"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
</alternatives>
|
||||
|
@ -110,11 +79,11 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKeyValue"/>
|
||||
</type>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.5"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroCall">
|
||||
|
@ -130,11 +99,11 @@
|
|||
<terminal xsi:type="xtext:Keyword" value="~"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="params" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.13"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="extraMacros" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
|
@ -143,14 +112,6 @@
|
|||
<elements xsi:type="xtext:Keyword" value="}"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLLuaCode">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLLuaCode"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.13"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLArrayCall">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLArrayCall"/>
|
||||
|
@ -158,7 +119,7 @@
|
|||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="["/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="value" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
</alternatives>
|
||||
|
@ -169,33 +130,13 @@
|
|||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.20"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Keys" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.21"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
|
@ -206,40 +147,59 @@
|
|||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.19"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.20"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.17"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.18"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Keys" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
<elements xsi:type="xtext:Assignment" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Elses" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.18"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.21"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.19"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.22"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLRootExpression">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLRootExpression"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLExpression">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLExpression"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLValuedExpression">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLValuedExpression"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
<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.14"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
|
@ -248,7 +208,15 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLTextdomain"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.22"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.25"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLLuaCode">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLLuaCode"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroParameter">
|
||||
|
@ -256,8 +224,8 @@
|
|||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLValue">
|
||||
|
@ -265,8 +233,8 @@
|
|||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.26"/>
|
||||
<elements xsi:type="xtext:Keyword" value="_"/>
|
||||
<elements xsi:type="xtext:Keyword" value="~"/>
|
||||
<elements xsi:type="xtext:Keyword" value="."/>
|
||||
|
@ -275,7 +243,7 @@
|
|||
<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.27"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.30"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="MacroTokens">
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -89,12 +89,12 @@ ruleWMLRoot returns [EObject current=null]
|
|||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
((
|
||||
(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootAccess().getTagsWMLTagParserRuleCall_0_0(), currentNode);
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootAccess().getExpressionsWMLRootExpressionParserRuleCall_0(), currentNode);
|
||||
}
|
||||
lv_Tags_0_0=ruleWMLTag {
|
||||
lv_Expressions_0_0=ruleWMLRootExpression {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLRootRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
|
@ -102,9 +102,9 @@ ruleWMLRoot returns [EObject current=null]
|
|||
try {
|
||||
add(
|
||||
$current,
|
||||
"Tags",
|
||||
lv_Tags_0_0,
|
||||
"WMLTag",
|
||||
"Expressions",
|
||||
lv_Expressions_0_0,
|
||||
"WMLRootExpression",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
|
@ -113,107 +113,7 @@ ruleWMLRoot returns [EObject current=null]
|
|||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootAccess().getMacroCallsWMLMacroCallParserRuleCall_1_0(), currentNode);
|
||||
}
|
||||
lv_MacroCalls_1_0=ruleWMLMacroCall {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLRootRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroCalls",
|
||||
lv_MacroCalls_1_0,
|
||||
"WMLMacroCall",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootAccess().getMacroDefinesWMLMacroDefineParserRuleCall_2_0(), currentNode);
|
||||
}
|
||||
lv_MacroDefines_2_0=ruleWMLMacroDefine {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLRootRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroDefines",
|
||||
lv_MacroDefines_2_0,
|
||||
"WMLMacroDefine",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootAccess().getTextdomainsWMLTextdomainParserRuleCall_3_0(), currentNode);
|
||||
}
|
||||
lv_Textdomains_3_0=ruleWMLTextdomain {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLRootRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Textdomains",
|
||||
lv_Textdomains_3_0,
|
||||
"WMLTextdomain",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootAccess().getIfDefsWMLPreprocIFParserRuleCall_4_0(), currentNode);
|
||||
}
|
||||
lv_IfDefs_4_0=ruleWMLPreprocIF {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLRootRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"IfDefs",
|
||||
lv_IfDefs_4_0,
|
||||
"WMLPreprocIF",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
))*
|
||||
)*
|
||||
;
|
||||
|
||||
|
||||
|
@ -289,12 +189,12 @@ ruleWMLTag returns [EObject current=null]
|
|||
{
|
||||
createLeafNode(grammarAccess.getWMLTagAccess().getRightSquareBracketKeyword_3(), null);
|
||||
}
|
||||
((
|
||||
(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getTagsWMLTagParserRuleCall_4_0_0(), currentNode);
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getExpressionsWMLExpressionParserRuleCall_4_0(), currentNode);
|
||||
}
|
||||
lv_Tags_4_0=ruleWMLTag {
|
||||
lv_Expressions_4_0=ruleWMLExpression {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLTagRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
|
@ -302,9 +202,9 @@ ruleWMLTag returns [EObject current=null]
|
|||
try {
|
||||
add(
|
||||
$current,
|
||||
"Tags",
|
||||
lv_Tags_4_0,
|
||||
"WMLTag",
|
||||
"Expressions",
|
||||
lv_Expressions_4_0,
|
||||
"WMLExpression",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
|
@ -313,138 +213,13 @@ ruleWMLTag returns [EObject current=null]
|
|||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getKeysWMLKeyParserRuleCall_4_1_0(), currentNode);
|
||||
}
|
||||
lv_Keys_5_0=ruleWMLKey {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLTagRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Keys",
|
||||
lv_Keys_5_0,
|
||||
"WMLKey",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getMacroCallsWMLMacroCallParserRuleCall_4_2_0(), currentNode);
|
||||
}
|
||||
lv_MacroCalls_6_0=ruleWMLMacroCall {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLTagRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroCalls",
|
||||
lv_MacroCalls_6_0,
|
||||
"WMLMacroCall",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getMacroDefinesWMLMacroDefineParserRuleCall_4_3_0(), currentNode);
|
||||
}
|
||||
lv_MacroDefines_7_0=ruleWMLMacroDefine {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLTagRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroDefines",
|
||||
lv_MacroDefines_7_0,
|
||||
"WMLMacroDefine",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getTextdomainsWMLTextdomainParserRuleCall_4_4_0(), currentNode);
|
||||
}
|
||||
lv_Textdomains_8_0=ruleWMLTextdomain {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLTagRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Textdomains",
|
||||
lv_Textdomains_8_0,
|
||||
"WMLTextdomain",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLTagAccess().getIfDefsWMLPreprocIFParserRuleCall_4_5_0(), currentNode);
|
||||
}
|
||||
lv_IfDefs_9_0=ruleWMLPreprocIF {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLTagRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"IfDefs",
|
||||
lv_IfDefs_9_0,
|
||||
"WMLPreprocIF",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
))* '[/'
|
||||
)* '[/'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLTagAccess().getLeftSquareBracketSolidusKeyword_5(), null);
|
||||
}
|
||||
(
|
||||
(
|
||||
lv_endName_11_0=RULE_ID
|
||||
lv_endName_6_0=RULE_ID
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLTagAccess().getEndNameIDTerminalRuleCall_6_0(), "endName");
|
||||
}
|
||||
|
@ -457,7 +232,7 @@ ruleWMLTag returns [EObject current=null]
|
|||
set(
|
||||
$current,
|
||||
"endName",
|
||||
lv_endName_11_0,
|
||||
lv_endName_6_0,
|
||||
"ID",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -864,53 +639,6 @@ ruleWMLMacroCall returns [EObject current=null]
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLLuaCode
|
||||
entryRuleWMLLuaCode returns [EObject current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getWMLLuaCodeRule(), currentNode); }
|
||||
iv_ruleWMLLuaCode=ruleWMLLuaCode
|
||||
{ $current=$iv_ruleWMLLuaCode.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLLuaCode
|
||||
ruleWMLLuaCode returns [EObject current=null]
|
||||
@init { EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
(
|
||||
(
|
||||
lv_value_0_0=RULE_LUA_CODE
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLLuaCodeAccess().getValueLUA_CODETerminalRuleCall_0(), "value");
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLLuaCodeRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, $current);
|
||||
}
|
||||
try {
|
||||
set(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_0,
|
||||
"LUA_CODE",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLArrayCall
|
||||
entryRuleWMLArrayCall returns [EObject current=null]
|
||||
:
|
||||
|
@ -1006,12 +734,12 @@ ruleWMLMacroDefine returns [EObject current=null]
|
|||
}
|
||||
|
||||
)
|
||||
)((
|
||||
)(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getTagsWMLTagParserRuleCall_1_0_0(), currentNode);
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getExpressionsWMLValuedExpressionParserRuleCall_1_0(), currentNode);
|
||||
}
|
||||
lv_Tags_1_0=ruleWMLTag {
|
||||
lv_Expressions_1_0=ruleWMLValuedExpression {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
|
@ -1019,9 +747,9 @@ ruleWMLMacroDefine returns [EObject current=null]
|
|||
try {
|
||||
add(
|
||||
$current,
|
||||
"Tags",
|
||||
lv_Tags_1_0,
|
||||
"WMLTag",
|
||||
"Expressions",
|
||||
lv_Expressions_1_0,
|
||||
"WMLValuedExpression",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
|
@ -1030,159 +758,9 @@ ruleWMLMacroDefine returns [EObject current=null]
|
|||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
)*(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getKeysWMLKeyParserRuleCall_1_1_0(), currentNode);
|
||||
}
|
||||
lv_Keys_2_0=ruleWMLKey {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Keys",
|
||||
lv_Keys_2_0,
|
||||
"WMLKey",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getMacroCallsWMLMacroCallParserRuleCall_1_2_0(), currentNode);
|
||||
}
|
||||
lv_MacroCalls_3_0=ruleWMLMacroCall {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroCalls",
|
||||
lv_MacroCalls_3_0,
|
||||
"WMLMacroCall",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0(), currentNode);
|
||||
}
|
||||
lv_MacroDefines_4_0=ruleWMLMacroDefine {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroDefines",
|
||||
lv_MacroDefines_4_0,
|
||||
"WMLMacroDefine",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getTextdomainsWMLTextdomainParserRuleCall_1_4_0(), currentNode);
|
||||
}
|
||||
lv_Textdomains_5_0=ruleWMLTextdomain {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Textdomains",
|
||||
lv_Textdomains_5_0,
|
||||
"WMLTextdomain",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getValuesWMLValueParserRuleCall_1_5_0(), currentNode);
|
||||
}
|
||||
lv_Values_6_0=ruleWMLValue {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Values",
|
||||
lv_Values_6_0,
|
||||
"WMLValue",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLMacroDefineAccess().getIfDefsWMLPreprocIFParserRuleCall_1_6_0(), currentNode);
|
||||
}
|
||||
lv_IfDefs_7_0=ruleWMLPreprocIF {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLMacroDefineRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"IfDefs",
|
||||
lv_IfDefs_7_0,
|
||||
"WMLPreprocIF",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
))*(
|
||||
(
|
||||
lv_endName_8_0=RULE_ENDDEF
|
||||
lv_endName_2_0=RULE_ENDDEF
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLMacroDefineAccess().getEndNameENDDEFTerminalRuleCall_2_0(), "endName");
|
||||
}
|
||||
|
@ -1195,7 +773,7 @@ ruleWMLMacroDefine returns [EObject current=null]
|
|||
set(
|
||||
$current,
|
||||
"endName",
|
||||
lv_endName_8_0,
|
||||
lv_endName_2_0,
|
||||
"ENDDEF",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -1320,9 +898,9 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
)((
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getTagsWMLTagParserRuleCall_1_0_0(), currentNode);
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getExpressionsWMLValuedExpressionParserRuleCall_1_0_0(), currentNode);
|
||||
}
|
||||
lv_Tags_1_0=ruleWMLTag {
|
||||
lv_Expressions_1_0=ruleWMLValuedExpression {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
|
@ -1330,9 +908,9 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
try {
|
||||
add(
|
||||
$current,
|
||||
"Tags",
|
||||
lv_Tags_1_0,
|
||||
"WMLTag",
|
||||
"Expressions",
|
||||
lv_Expressions_1_0,
|
||||
"WMLValuedExpression",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
|
@ -1344,159 +922,9 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getKeysWMLKeyParserRuleCall_1_1_0(), currentNode);
|
||||
}
|
||||
lv_Keys_2_0=ruleWMLKey {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Keys",
|
||||
lv_Keys_2_0,
|
||||
"WMLKey",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getMacroCallsWMLMacroCallParserRuleCall_1_2_0(), currentNode);
|
||||
}
|
||||
lv_MacroCalls_3_0=ruleWMLMacroCall {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroCalls",
|
||||
lv_MacroCalls_3_0,
|
||||
"WMLMacroCall",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0(), currentNode);
|
||||
}
|
||||
lv_MacroDefines_4_0=ruleWMLMacroDefine {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"MacroDefines",
|
||||
lv_MacroDefines_4_0,
|
||||
"WMLMacroDefine",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getTextdomainsWMLTextdomainParserRuleCall_1_4_0(), currentNode);
|
||||
}
|
||||
lv_Textdomains_5_0=ruleWMLTextdomain {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Textdomains",
|
||||
lv_Textdomains_5_0,
|
||||
"WMLTextdomain",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getValuesWMLValueParserRuleCall_1_5_0(), currentNode);
|
||||
}
|
||||
lv_Values_6_0=ruleWMLValue {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"Values",
|
||||
lv_Values_6_0,
|
||||
"WMLValue",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLPreprocIFAccess().getIfDefsWMLPreprocIFParserRuleCall_1_6_0(), currentNode);
|
||||
}
|
||||
lv_IfDefs_7_0=ruleWMLPreprocIF {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLPreprocIFRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
add(
|
||||
$current,
|
||||
"IfDefs",
|
||||
lv_IfDefs_7_0,
|
||||
"WMLPreprocIF",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
|(
|
||||
(
|
||||
lv_Elses_8_0=RULE_ELSE
|
||||
lv_Elses_2_0=RULE_ELSE
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLPreprocIFAccess().getElsesELSETerminalRuleCall_1_7_0(), "Elses");
|
||||
createLeafNode(grammarAccess.getWMLPreprocIFAccess().getElsesELSETerminalRuleCall_1_1_0(), "Elses");
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
|
@ -1507,7 +935,7 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
add(
|
||||
$current,
|
||||
"Elses",
|
||||
lv_Elses_8_0,
|
||||
lv_Elses_2_0,
|
||||
"ELSE",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -1518,7 +946,7 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
)
|
||||
))*(
|
||||
(
|
||||
lv_endName_9_0=RULE_ENDIF
|
||||
lv_endName_3_0=RULE_ENDIF
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLPreprocIFAccess().getEndNameENDIFTerminalRuleCall_2_0(), "endName");
|
||||
}
|
||||
|
@ -1531,7 +959,7 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
set(
|
||||
$current,
|
||||
"endName",
|
||||
lv_endName_9_0,
|
||||
lv_endName_3_0,
|
||||
"ENDIF",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -1547,6 +975,172 @@ ruleWMLPreprocIF returns [EObject current=null]
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLRootExpression
|
||||
entryRuleWMLRootExpression returns [EObject current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getWMLRootExpressionRule(), currentNode); }
|
||||
iv_ruleWMLRootExpression=ruleWMLRootExpression
|
||||
{ $current=$iv_ruleWMLRootExpression.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLRootExpression
|
||||
ruleWMLRootExpression returns [EObject current=null]
|
||||
@init { EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootExpressionAccess().getWMLTagParserRuleCall_0(), currentNode);
|
||||
}
|
||||
this_WMLTag_0=ruleWMLTag
|
||||
{
|
||||
$current = $this_WMLTag_0.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
|
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootExpressionAccess().getWMLMacroCallParserRuleCall_1(), currentNode);
|
||||
}
|
||||
this_WMLMacroCall_1=ruleWMLMacroCall
|
||||
{
|
||||
$current = $this_WMLMacroCall_1.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
|
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootExpressionAccess().getWMLMacroDefineParserRuleCall_2(), currentNode);
|
||||
}
|
||||
this_WMLMacroDefine_2=ruleWMLMacroDefine
|
||||
{
|
||||
$current = $this_WMLMacroDefine_2.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
|
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootExpressionAccess().getWMLTextdomainParserRuleCall_3(), currentNode);
|
||||
}
|
||||
this_WMLTextdomain_3=ruleWMLTextdomain
|
||||
{
|
||||
$current = $this_WMLTextdomain_3.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
|
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLRootExpressionAccess().getWMLPreprocIFParserRuleCall_4(), currentNode);
|
||||
}
|
||||
this_WMLPreprocIF_4=ruleWMLPreprocIF
|
||||
{
|
||||
$current = $this_WMLPreprocIF_4.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLExpression
|
||||
entryRuleWMLExpression returns [EObject current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getWMLExpressionRule(), currentNode); }
|
||||
iv_ruleWMLExpression=ruleWMLExpression
|
||||
{ $current=$iv_ruleWMLExpression.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLExpression
|
||||
ruleWMLExpression returns [EObject current=null]
|
||||
@init { EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLExpressionAccess().getWMLRootExpressionParserRuleCall_0(), currentNode);
|
||||
}
|
||||
this_WMLRootExpression_0=ruleWMLRootExpression
|
||||
{
|
||||
$current = $this_WMLRootExpression_0.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
|
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLExpressionAccess().getWMLKeyParserRuleCall_1(), currentNode);
|
||||
}
|
||||
this_WMLKey_1=ruleWMLKey
|
||||
{
|
||||
$current = $this_WMLKey_1.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLValuedExpression
|
||||
entryRuleWMLValuedExpression returns [EObject current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getWMLValuedExpressionRule(), currentNode); }
|
||||
iv_ruleWMLValuedExpression=ruleWMLValuedExpression
|
||||
{ $current=$iv_ruleWMLValuedExpression.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLValuedExpression
|
||||
ruleWMLValuedExpression returns [EObject current=null]
|
||||
@init { EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
(
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLValuedExpressionAccess().getWMLExpressionParserRuleCall_0(), currentNode);
|
||||
}
|
||||
this_WMLExpression_0=ruleWMLExpression
|
||||
{
|
||||
$current = $this_WMLExpression_0.current;
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
|((
|
||||
{
|
||||
temp=factory.create(grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0().getType().getClassifier());
|
||||
$current = temp;
|
||||
temp = null;
|
||||
CompositeNode newNode = createCompositeNode(grammarAccess.getWMLValuedExpressionAccess().getWMLValuedExpressionAction_1_0(), currentNode.getParent());
|
||||
newNode.getChildren().add(currentNode);
|
||||
moveLookaheadInfo(currentNode, newNode);
|
||||
currentNode = newNode;
|
||||
associateNodeWithAstElement(currentNode, $current);
|
||||
}
|
||||
)
|
||||
{
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLValuedExpressionAccess().getWMLValueParserRuleCall_1_1(), currentNode);
|
||||
}
|
||||
ruleWMLValue
|
||||
{
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
))
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLTextdomain
|
||||
entryRuleWMLTextdomain returns [EObject current=null]
|
||||
:
|
||||
|
@ -1594,6 +1188,53 @@ ruleWMLTextdomain returns [EObject current=null]
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLLuaCode
|
||||
entryRuleWMLLuaCode returns [EObject current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getWMLLuaCodeRule(), currentNode); }
|
||||
iv_ruleWMLLuaCode=ruleWMLLuaCode
|
||||
{ $current=$iv_ruleWMLLuaCode.current; }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule WMLLuaCode
|
||||
ruleWMLLuaCode returns [EObject current=null]
|
||||
@init { EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
(
|
||||
(
|
||||
lv_value_0_0=RULE_LUA_CODE
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLLuaCodeAccess().getValueLUA_CODETerminalRuleCall_0(), "value");
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLLuaCodeRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, $current);
|
||||
}
|
||||
try {
|
||||
set(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_0,
|
||||
"LUA_CODE",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
}
|
||||
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLMacroParameter
|
||||
entryRuleWMLMacroParameter returns [String current=null]
|
||||
:
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
RULE_LUA_CODE=7
|
||||
RULE_LUA_CODE=16
|
||||
RULE_ID=4
|
||||
RULE_IFDEF=10
|
||||
RULE_IFDEF=9
|
||||
RULE_ANY_OTHER=18
|
||||
RULE_IFNDEF=11
|
||||
RULE_IFNDEF=10
|
||||
RULE_EOL=5
|
||||
RULE_TEXTDOMAIN=16
|
||||
RULE_IFNHAVE=13
|
||||
RULE_TEXTDOMAIN=15
|
||||
RULE_IFNHAVE=12
|
||||
RULE_SL_COMMENT=6
|
||||
RULE_STRING=17
|
||||
RULE_ENDIF=15
|
||||
RULE_DEFINE=8
|
||||
RULE_ENDDEF=9
|
||||
RULE_IFHAVE=12
|
||||
RULE_ENDIF=14
|
||||
RULE_DEFINE=7
|
||||
RULE_ENDDEF=8
|
||||
RULE_IFHAVE=11
|
||||
RULE_WS=19
|
||||
RULE_ELSE=14
|
||||
RULE_ELSE=13
|
||||
'$'=31
|
||||
'}'=28
|
||||
'~'=27
|
||||
|
|
|
@ -12,17 +12,17 @@ import java.util.ArrayList;
|
|||
|
||||
@SuppressWarnings("all")
|
||||
public class InternalWMLLexer extends Lexer {
|
||||
public static final int RULE_LUA_CODE=7;
|
||||
public static final int RULE_IFDEF=10;
|
||||
public static final int RULE_LUA_CODE=16;
|
||||
public static final int RULE_IFDEF=9;
|
||||
public static final int RULE_ID=4;
|
||||
public static final int RULE_ANY_OTHER=18;
|
||||
public static final int RULE_IFNDEF=11;
|
||||
public static final int RULE_IFNDEF=10;
|
||||
public static final int RULE_EOL=5;
|
||||
public static final int T29=29;
|
||||
public static final int T28=28;
|
||||
public static final int RULE_TEXTDOMAIN=16;
|
||||
public static final int RULE_TEXTDOMAIN=15;
|
||||
public static final int T27=27;
|
||||
public static final int RULE_IFNHAVE=13;
|
||||
public static final int RULE_IFNHAVE=12;
|
||||
public static final int T26=26;
|
||||
public static final int T25=25;
|
||||
public static final int Tokens=35;
|
||||
|
@ -34,15 +34,15 @@ public class InternalWMLLexer extends Lexer {
|
|||
public static final int T21=21;
|
||||
public static final int T20=20;
|
||||
public static final int RULE_STRING=17;
|
||||
public static final int RULE_ENDIF=15;
|
||||
public static final int RULE_DEFINE=8;
|
||||
public static final int RULE_ENDDEF=9;
|
||||
public static final int RULE_IFHAVE=12;
|
||||
public static final int RULE_ENDIF=14;
|
||||
public static final int RULE_DEFINE=7;
|
||||
public static final int RULE_ENDDEF=8;
|
||||
public static final int RULE_IFHAVE=11;
|
||||
public static final int T34=34;
|
||||
public static final int RULE_WS=19;
|
||||
public static final int T33=33;
|
||||
public static final int T30=30;
|
||||
public static final int RULE_ELSE=14;
|
||||
public static final int RULE_ELSE=13;
|
||||
public static final int T32=32;
|
||||
public static final int T31=31;
|
||||
public InternalWMLLexer() {;}
|
||||
|
@ -327,12 +327,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_LUA_CODE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_LUA_CODE;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1802:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1802:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1443:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1443:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
{
|
||||
match("<<");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1802:22: ( options {greedy=false; } : . )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1443:22: ( options {greedy=false; } : . )*
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
|
@ -357,7 +357,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1802:50: .
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1443:50: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -385,12 +385,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFHAVE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFHAVE;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifhave");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -403,7 +403,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -424,7 +424,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
|
@ -433,9 +433,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:42: ( '\\r' )?
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
|
@ -444,7 +444,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1445:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -474,12 +474,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFNHAVE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFNHAVE;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifnhave");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=2;
|
||||
|
@ -492,7 +492,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -513,7 +513,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:43: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:43: ( ( '\\r' )? '\\n' )?
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
|
@ -522,9 +522,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:44: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:44: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:44: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:44: ( '\\r' )?
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -533,7 +533,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1806:44: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1447:44: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -563,12 +563,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFDEF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFDEF;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifdef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -581,7 +581,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -602,7 +602,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -611,9 +611,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:40: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -622,7 +622,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1808:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1449:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -652,12 +652,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_IFNDEF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_IFNDEF;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifndef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
|
@ -670,7 +670,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -691,7 +691,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
|
@ -700,9 +700,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt13) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:42: ( '\\r' )?
|
||||
int alt12=2;
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
|
@ -711,7 +711,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1810:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1451:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -741,12 +741,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ELSE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ELSE;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#else");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop14:
|
||||
do {
|
||||
int alt14=2;
|
||||
|
@ -759,7 +759,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt14) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -780,7 +780,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:37: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:37: ( ( '\\r' )? '\\n' )?
|
||||
int alt16=2;
|
||||
int LA16_0 = input.LA(1);
|
||||
|
||||
|
@ -789,9 +789,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt16) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:38: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:38: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:38: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:38: ( '\\r' )?
|
||||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
|
@ -800,7 +800,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt15) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1812:38: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1453:38: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -830,12 +830,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ENDIF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ENDIF;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#endif");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop17:
|
||||
do {
|
||||
int alt17=2;
|
||||
|
@ -848,7 +848,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt17) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -869,7 +869,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt19=2;
|
||||
int LA19_0 = input.LA(1);
|
||||
|
||||
|
@ -878,9 +878,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt19) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:40: ( '\\r' )?
|
||||
int alt18=2;
|
||||
int LA18_0 = input.LA(1);
|
||||
|
||||
|
@ -889,7 +889,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt18) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1814:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1455:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -919,12 +919,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_DEFINE() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_DEFINE;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#define");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop20:
|
||||
do {
|
||||
int alt20=2;
|
||||
|
@ -937,7 +937,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -958,7 +958,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt22=2;
|
||||
int LA22_0 = input.LA(1);
|
||||
|
||||
|
@ -967,9 +967,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt22) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:42: ( '\\r' )?
|
||||
int alt21=2;
|
||||
int LA21_0 = input.LA(1);
|
||||
|
||||
|
@ -978,7 +978,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt21) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1457:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1008,12 +1008,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ENDDEF() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ENDDEF;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#enddef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop23:
|
||||
do {
|
||||
int alt23=2;
|
||||
|
@ -1026,7 +1026,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt23) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1047,7 +1047,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt25=2;
|
||||
int LA25_0 = input.LA(1);
|
||||
|
||||
|
@ -1056,9 +1056,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt25) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:42: ( '\\r' )?
|
||||
int alt24=2;
|
||||
int LA24_0 = input.LA(1);
|
||||
|
||||
|
@ -1067,7 +1067,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt24) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1818:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1459:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1097,12 +1097,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_TEXTDOMAIN() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_TEXTDOMAIN;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#textdomain");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop26:
|
||||
do {
|
||||
int alt26=2;
|
||||
|
@ -1115,7 +1115,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt26) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1136,7 +1136,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:49: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:49: ( ( '\\r' )? '\\n' )?
|
||||
int alt28=2;
|
||||
int LA28_0 = input.LA(1);
|
||||
|
||||
|
@ -1145,9 +1145,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt28) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:50: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:50: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:50: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:50: ( '\\r' )?
|
||||
int alt27=2;
|
||||
int LA27_0 = input.LA(1);
|
||||
|
||||
|
@ -1156,7 +1156,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt27) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1820:50: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1461:50: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1186,11 +1186,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_STRING() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_STRING;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1822:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1822:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1463:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1463:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1822:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1463:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop29:
|
||||
do {
|
||||
int alt29=3;
|
||||
|
@ -1206,7 +1206,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt29) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1822:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1463: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' ) {
|
||||
|
@ -1223,7 +1223,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1822:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1463:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1259,10 +1259,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ID() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ID;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1824:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1824:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1465:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1465:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1824:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1465:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
int cnt30=0;
|
||||
loop30:
|
||||
do {
|
||||
|
@ -1315,8 +1315,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_EOL() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_EOL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1826:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1826:12: ( '\\r' | '\\n' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1467:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1467:12: ( '\\r' | '\\n' )
|
||||
{
|
||||
if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
|
||||
input.consume();
|
||||
|
@ -1342,10 +1342,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_WS() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_WS;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1828:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1828:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1469:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1469:11: ( ' ' | '\\t' )+
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1828:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1469:11: ( ' ' | '\\t' )+
|
||||
int cnt31=0;
|
||||
loop31:
|
||||
do {
|
||||
|
@ -1398,8 +1398,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_ANY_OTHER() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1830:16: ( . )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1830:18: .
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1471:16: ( . )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1471:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1416,11 +1416,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
public final void mRULE_SL_COMMENT() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match('#');
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop32:
|
||||
do {
|
||||
int alt32=2;
|
||||
|
@ -1433,7 +1433,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt32) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473: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)<='\uFFFE') ) {
|
||||
input.consume();
|
||||
|
@ -1454,7 +1454,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt34=2;
|
||||
int LA34_0 = input.LA(1);
|
||||
|
||||
|
@ -1463,9 +1463,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt34) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:40: ( '\\r' )?
|
||||
int alt33=2;
|
||||
int LA33_0 = input.LA(1);
|
||||
|
||||
|
@ -1474,7 +1474,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt33) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1832:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1473:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -23,52 +23,52 @@ T32 : '/' ;
|
|||
T33 : '(' ;
|
||||
T34 : ')' ;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1802
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1443
|
||||
RULE_LUA_CODE : '<<' ( options {greedy=false;} : . )*'>>';
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1804
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1445
|
||||
RULE_IFHAVE : '#ifhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1806
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1447
|
||||
RULE_IFNHAVE : '#ifnhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1808
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1449
|
||||
RULE_IFDEF : '#ifdef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1810
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1451
|
||||
RULE_IFNDEF : '#ifndef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1812
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1453
|
||||
RULE_ELSE : '#else' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1814
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1455
|
||||
RULE_ENDIF : '#endif' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1816
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1457
|
||||
RULE_DEFINE : '#define' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1818
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1459
|
||||
RULE_ENDDEF : '#enddef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1820
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1461
|
||||
RULE_TEXTDOMAIN : '#textdomain' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1822
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1463
|
||||
RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1824
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1465
|
||||
RULE_ID : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-'|',')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1826
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1467
|
||||
RULE_EOL : ('\r'|'\n');
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1828
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1469
|
||||
RULE_WS : (' '|'\t')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1830
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1471
|
||||
RULE_ANY_OTHER : .;
|
||||
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1832
|
||||
// $ANTLR src "../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1473
|
||||
RULE_SL_COMMENT : '#' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
|
||||
|
|
|
@ -18,56 +18,18 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
|
||||
public class WMLRootElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLRoot");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final Assignment cTagsAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_0_0 = (RuleCall)cTagsAssignment_0.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_1_0 = (RuleCall)cMacroCallsAssignment_1.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_2 = (Assignment)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_2_0 = (RuleCall)cMacroDefinesAssignment_2.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_3 = (Assignment)cAlternatives.eContents().get(3);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_3_0 = (RuleCall)cTextdomainsAssignment_3.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_4 = (Assignment)cAlternatives.eContents().get(4);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_4_0 = (RuleCall)cIfDefsAssignment_4.eContents().get(0);
|
||||
private final Assignment cExpressionsAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final RuleCall cExpressionsWMLRootExpressionParserRuleCall_0 = (RuleCall)cExpressionsAssignment.eContents().get(0);
|
||||
|
||||
//WMLRoot:
|
||||
// (Tags+=WMLTag | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
// IfDefs+=WMLPreprocIF)*;
|
||||
// Expressions+=WMLRootExpression*;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//(Tags+=WMLTag | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//IfDefs+=WMLPreprocIF)*
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
//Expressions+=WMLRootExpression*
|
||||
public Assignment getExpressionsAssignment() { return cExpressionsAssignment; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_0() { return cTagsAssignment_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_0_0() { return cTagsWMLTagParserRuleCall_0_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_1() { return cMacroCallsAssignment_1; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_1_0() { return cMacroCallsWMLMacroCallParserRuleCall_1_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_2() { return cMacroDefinesAssignment_2; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_2_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_2_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_3() { return cTextdomainsAssignment_3; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_3_0() { return cTextdomainsWMLTextdomainParserRuleCall_3_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_4() { return cIfDefsAssignment_4; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_4_0() { return cIfDefsWMLPreprocIFParserRuleCall_4_0; }
|
||||
//WMLRootExpression
|
||||
public RuleCall getExpressionsWMLRootExpressionParserRuleCall_0() { return cExpressionsWMLRootExpressionParserRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLTagElements extends AbstractParserRuleElementFinder {
|
||||
|
@ -79,31 +41,18 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
|
||||
private final Keyword cRightSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
|
||||
private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4);
|
||||
private final Assignment cTagsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_4_0_0 = (RuleCall)cTagsAssignment_4_0.eContents().get(0);
|
||||
private final Assignment cKeysAssignment_4_1 = (Assignment)cAlternatives_4.eContents().get(1);
|
||||
private final RuleCall cKeysWMLKeyParserRuleCall_4_1_0 = (RuleCall)cKeysAssignment_4_1.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_4_2 = (Assignment)cAlternatives_4.eContents().get(2);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_4_2_0 = (RuleCall)cMacroCallsAssignment_4_2.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_4_3 = (Assignment)cAlternatives_4.eContents().get(3);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_4_3_0 = (RuleCall)cMacroDefinesAssignment_4_3.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_4_4 = (Assignment)cAlternatives_4.eContents().get(4);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_4_4_0 = (RuleCall)cTextdomainsAssignment_4_4.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_4_5 = (Assignment)cAlternatives_4.eContents().get(5);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_4_5_0 = (RuleCall)cIfDefsAssignment_4_5.eContents().get(0);
|
||||
private final Assignment cExpressionsAssignment_4 = (Assignment)cGroup.eContents().get(4);
|
||||
private final RuleCall cExpressionsWMLExpressionParserRuleCall_4_0 = (RuleCall)cExpressionsAssignment_4.eContents().get(0);
|
||||
private final Keyword cLeftSquareBracketSolidusKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
||||
private final Assignment cEndNameAssignment_6 = (Assignment)cGroup.eContents().get(6);
|
||||
private final RuleCall cEndNameIDTerminalRuleCall_6_0 = (RuleCall)cEndNameAssignment_6.eContents().get(0);
|
||||
private final Keyword cRightSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
|
||||
|
||||
//WMLTag:
|
||||
// "[" plus?="+"? name=ID "]" (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | IfDefs+=WMLPreprocIF)* "[/" endName=ID "]";
|
||||
// "[" plus?="+"? name=ID "]" Expressions+=WMLExpression* "[/" endName=ID "]";
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//"[" plus?="+"? name=ID "]" (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
//Textdomains+=WMLTextdomain | IfDefs+=WMLPreprocIF)* "[/" endName=ID "]"
|
||||
//"[" plus?="+"? name=ID "]" Expressions+=WMLExpression* "[/" endName=ID "]"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//"["
|
||||
|
@ -124,45 +73,11 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
//"]"
|
||||
public Keyword getRightSquareBracketKeyword_3() { return cRightSquareBracketKeyword_3; }
|
||||
|
||||
//(Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//IfDefs+=WMLPreprocIF)*
|
||||
public Alternatives getAlternatives_4() { return cAlternatives_4; }
|
||||
//Expressions+=WMLExpression*
|
||||
public Assignment getExpressionsAssignment_4() { return cExpressionsAssignment_4; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_4_0() { return cTagsAssignment_4_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_4_0_0() { return cTagsWMLTagParserRuleCall_4_0_0; }
|
||||
|
||||
//Keys+=WMLKey
|
||||
public Assignment getKeysAssignment_4_1() { return cKeysAssignment_4_1; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getKeysWMLKeyParserRuleCall_4_1_0() { return cKeysWMLKeyParserRuleCall_4_1_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_4_2() { return cMacroCallsAssignment_4_2; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_4_2_0() { return cMacroCallsWMLMacroCallParserRuleCall_4_2_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_4_3() { return cMacroDefinesAssignment_4_3; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_4_3_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_4_3_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_4_4() { return cTextdomainsAssignment_4_4; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_4_4_0() { return cTextdomainsWMLTextdomainParserRuleCall_4_4_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_4_5() { return cIfDefsAssignment_4_5; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_4_5_0() { return cIfDefsWMLPreprocIFParserRuleCall_4_5_0; }
|
||||
//WMLExpression
|
||||
public RuleCall getExpressionsWMLExpressionParserRuleCall_4_0() { return cExpressionsWMLExpressionParserRuleCall_4_0; }
|
||||
|
||||
//"[/"
|
||||
public Keyword getLeftSquareBracketSolidusKeyword_5() { return cLeftSquareBracketSolidusKeyword_5; }
|
||||
|
@ -349,22 +264,6 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; }
|
||||
}
|
||||
|
||||
public class WMLLuaCodeElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLLuaCode");
|
||||
private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final RuleCall cValueLUA_CODETerminalRuleCall_0 = (RuleCall)cValueAssignment.eContents().get(0);
|
||||
|
||||
//WMLLuaCode:
|
||||
// value=LUA_CODE;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=LUA_CODE
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//LUA_CODE
|
||||
public RuleCall getValueLUA_CODETerminalRuleCall_0() { return cValueLUA_CODETerminalRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLArrayCallElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLArrayCall");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
|
@ -398,31 +297,16 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
||||
private final RuleCall cNameDEFINETerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
|
||||
private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
|
||||
private final Assignment cTagsAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_1_0_0 = (RuleCall)cTagsAssignment_1_0.eContents().get(0);
|
||||
private final Assignment cKeysAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
|
||||
private final RuleCall cKeysWMLKeyParserRuleCall_1_1_0 = (RuleCall)cKeysAssignment_1_1.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_1_2 = (Assignment)cAlternatives_1.eContents().get(2);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_1_2_0 = (RuleCall)cMacroCallsAssignment_1_2.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_1_3 = (Assignment)cAlternatives_1.eContents().get(3);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0 = (RuleCall)cMacroDefinesAssignment_1_3.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_1_4 = (Assignment)cAlternatives_1.eContents().get(4);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_1_4_0 = (RuleCall)cTextdomainsAssignment_1_4.eContents().get(0);
|
||||
private final Assignment cValuesAssignment_1_5 = (Assignment)cAlternatives_1.eContents().get(5);
|
||||
private final RuleCall cValuesWMLValueParserRuleCall_1_5_0 = (RuleCall)cValuesAssignment_1_5.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_1_6 = (Assignment)cAlternatives_1.eContents().get(6);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_1_6_0 = (RuleCall)cIfDefsAssignment_1_6.eContents().get(0);
|
||||
private final Assignment cExpressionsAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cExpressionsWMLValuedExpressionParserRuleCall_1_0 = (RuleCall)cExpressionsAssignment_1.eContents().get(0);
|
||||
private final Assignment cEndNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cEndNameENDDEFTerminalRuleCall_2_0 = (RuleCall)cEndNameAssignment_2.eContents().get(0);
|
||||
|
||||
//WMLMacroDefine:
|
||||
// name=DEFINE (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF)* endName=ENDDEF;
|
||||
// name=DEFINE Expressions+=WMLValuedExpression* endName=ENDDEF;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=DEFINE (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
//Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF)* endName=ENDDEF
|
||||
//name=DEFINE Expressions+=WMLValuedExpression* endName=ENDDEF
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=DEFINE
|
||||
|
@ -431,51 +315,11 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
//DEFINE
|
||||
public RuleCall getNameDEFINETerminalRuleCall_0_0() { return cNameDEFINETerminalRuleCall_0_0; }
|
||||
|
||||
//(Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//Values+=WMLValue | IfDefs+=WMLPreprocIF)*
|
||||
public Alternatives getAlternatives_1() { return cAlternatives_1; }
|
||||
//Expressions+=WMLValuedExpression*
|
||||
public Assignment getExpressionsAssignment_1() { return cExpressionsAssignment_1; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_1_0() { return cTagsAssignment_1_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_1_0_0() { return cTagsWMLTagParserRuleCall_1_0_0; }
|
||||
|
||||
//Keys+=WMLKey
|
||||
public Assignment getKeysAssignment_1_1() { return cKeysAssignment_1_1; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getKeysWMLKeyParserRuleCall_1_1_0() { return cKeysWMLKeyParserRuleCall_1_1_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_1_2() { return cMacroCallsAssignment_1_2; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_1_2_0() { return cMacroCallsWMLMacroCallParserRuleCall_1_2_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_1_3() { return cMacroDefinesAssignment_1_3; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_1_4() { return cTextdomainsAssignment_1_4; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_1_4_0() { return cTextdomainsWMLTextdomainParserRuleCall_1_4_0; }
|
||||
|
||||
//Values+=WMLValue
|
||||
public Assignment getValuesAssignment_1_5() { return cValuesAssignment_1_5; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getValuesWMLValueParserRuleCall_1_5_0() { return cValuesWMLValueParserRuleCall_1_5_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_1_6() { return cIfDefsAssignment_1_6; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_1_6_0() { return cIfDefsWMLPreprocIFParserRuleCall_1_6_0; }
|
||||
//WMLValuedExpression
|
||||
public RuleCall getExpressionsWMLValuedExpressionParserRuleCall_1_0() { return cExpressionsWMLValuedExpressionParserRuleCall_1_0; }
|
||||
|
||||
//endName=ENDDEF
|
||||
public Assignment getEndNameAssignment_2() { return cEndNameAssignment_2; }
|
||||
|
@ -494,34 +338,18 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final RuleCall cNameIFHAVETerminalRuleCall_0_0_2 = (RuleCall)cNameAlternatives_0_0.eContents().get(2);
|
||||
private final RuleCall cNameIFNHAVETerminalRuleCall_0_0_3 = (RuleCall)cNameAlternatives_0_0.eContents().get(3);
|
||||
private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
|
||||
private final Assignment cTagsAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_1_0_0 = (RuleCall)cTagsAssignment_1_0.eContents().get(0);
|
||||
private final Assignment cKeysAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
|
||||
private final RuleCall cKeysWMLKeyParserRuleCall_1_1_0 = (RuleCall)cKeysAssignment_1_1.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_1_2 = (Assignment)cAlternatives_1.eContents().get(2);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_1_2_0 = (RuleCall)cMacroCallsAssignment_1_2.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_1_3 = (Assignment)cAlternatives_1.eContents().get(3);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0 = (RuleCall)cMacroDefinesAssignment_1_3.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_1_4 = (Assignment)cAlternatives_1.eContents().get(4);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_1_4_0 = (RuleCall)cTextdomainsAssignment_1_4.eContents().get(0);
|
||||
private final Assignment cValuesAssignment_1_5 = (Assignment)cAlternatives_1.eContents().get(5);
|
||||
private final RuleCall cValuesWMLValueParserRuleCall_1_5_0 = (RuleCall)cValuesAssignment_1_5.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_1_6 = (Assignment)cAlternatives_1.eContents().get(6);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_1_6_0 = (RuleCall)cIfDefsAssignment_1_6.eContents().get(0);
|
||||
private final Assignment cElsesAssignment_1_7 = (Assignment)cAlternatives_1.eContents().get(7);
|
||||
private final RuleCall cElsesELSETerminalRuleCall_1_7_0 = (RuleCall)cElsesAssignment_1_7.eContents().get(0);
|
||||
private final Assignment cExpressionsAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
|
||||
private final RuleCall cExpressionsWMLValuedExpressionParserRuleCall_1_0_0 = (RuleCall)cExpressionsAssignment_1_0.eContents().get(0);
|
||||
private final Assignment cElsesAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
|
||||
private final RuleCall cElsesELSETerminalRuleCall_1_1_0 = (RuleCall)cElsesAssignment_1_1.eContents().get(0);
|
||||
private final Assignment cEndNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cEndNameENDIFTerminalRuleCall_2_0 = (RuleCall)cEndNameAssignment_2.eContents().get(0);
|
||||
|
||||
//WMLPreprocIF:
|
||||
// name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall |
|
||||
// MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
// endName=ENDIF;
|
||||
// name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Expressions+=WMLValuedExpression | Elses+=ELSE)* endName=ENDIF;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall |
|
||||
//MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
//endName=ENDIF
|
||||
//name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Expressions+=WMLValuedExpression | Elses+=ELSE)* endName=ENDIF
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE)
|
||||
|
@ -542,57 +370,20 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
//IFNHAVE
|
||||
public RuleCall getNameIFNHAVETerminalRuleCall_0_0_3() { return cNameIFNHAVETerminalRuleCall_0_0_3; }
|
||||
|
||||
//(Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
//(Expressions+=WMLValuedExpression | Elses+=ELSE)*
|
||||
public Alternatives getAlternatives_1() { return cAlternatives_1; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_1_0() { return cTagsAssignment_1_0; }
|
||||
//Expressions+=WMLValuedExpression
|
||||
public Assignment getExpressionsAssignment_1_0() { return cExpressionsAssignment_1_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_1_0_0() { return cTagsWMLTagParserRuleCall_1_0_0; }
|
||||
|
||||
//Keys+=WMLKey
|
||||
public Assignment getKeysAssignment_1_1() { return cKeysAssignment_1_1; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getKeysWMLKeyParserRuleCall_1_1_0() { return cKeysWMLKeyParserRuleCall_1_1_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_1_2() { return cMacroCallsAssignment_1_2; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_1_2_0() { return cMacroCallsWMLMacroCallParserRuleCall_1_2_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_1_3() { return cMacroDefinesAssignment_1_3; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_1_4() { return cTextdomainsAssignment_1_4; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_1_4_0() { return cTextdomainsWMLTextdomainParserRuleCall_1_4_0; }
|
||||
|
||||
//Values+=WMLValue
|
||||
public Assignment getValuesAssignment_1_5() { return cValuesAssignment_1_5; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getValuesWMLValueParserRuleCall_1_5_0() { return cValuesWMLValueParserRuleCall_1_5_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_1_6() { return cIfDefsAssignment_1_6; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_1_6_0() { return cIfDefsWMLPreprocIFParserRuleCall_1_6_0; }
|
||||
//WMLValuedExpression
|
||||
public RuleCall getExpressionsWMLValuedExpressionParserRuleCall_1_0_0() { return cExpressionsWMLValuedExpressionParserRuleCall_1_0_0; }
|
||||
|
||||
//Elses+=ELSE
|
||||
public Assignment getElsesAssignment_1_7() { return cElsesAssignment_1_7; }
|
||||
public Assignment getElsesAssignment_1_1() { return cElsesAssignment_1_1; }
|
||||
|
||||
//ELSE
|
||||
public RuleCall getElsesELSETerminalRuleCall_1_7_0() { return cElsesELSETerminalRuleCall_1_7_0; }
|
||||
public RuleCall getElsesELSETerminalRuleCall_1_1_0() { return cElsesELSETerminalRuleCall_1_1_0; }
|
||||
|
||||
//endName=ENDIF
|
||||
public Assignment getEndNameAssignment_2() { return cEndNameAssignment_2; }
|
||||
|
@ -601,6 +392,86 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
public RuleCall getEndNameENDIFTerminalRuleCall_2_0() { return cEndNameENDIFTerminalRuleCall_2_0; }
|
||||
}
|
||||
|
||||
public class WMLRootExpressionElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLRootExpression");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cWMLTagParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cWMLMacroCallParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cWMLMacroDefineParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cWMLTextdomainParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
|
||||
private final RuleCall cWMLPreprocIFParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
|
||||
|
||||
//WMLRootExpression:
|
||||
// WMLTag | WMLMacroCall | WMLMacroDefine | WMLTextdomain | WMLPreprocIF;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//WMLTag | WMLMacroCall | WMLMacroDefine | WMLTextdomain | WMLPreprocIF
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getWMLTagParserRuleCall_0() { return cWMLTagParserRuleCall_0; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getWMLMacroCallParserRuleCall_1() { return cWMLMacroCallParserRuleCall_1; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getWMLMacroDefineParserRuleCall_2() { return cWMLMacroDefineParserRuleCall_2; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getWMLTextdomainParserRuleCall_3() { return cWMLTextdomainParserRuleCall_3; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getWMLPreprocIFParserRuleCall_4() { return cWMLPreprocIFParserRuleCall_4; }
|
||||
}
|
||||
|
||||
public class WMLExpressionElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLExpression");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cWMLRootExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cWMLKeyParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
|
||||
//WMLExpression:
|
||||
// WMLRootExpression | WMLKey;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//WMLRootExpression | WMLKey
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//WMLRootExpression
|
||||
public RuleCall getWMLRootExpressionParserRuleCall_0() { return cWMLRootExpressionParserRuleCall_0; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getWMLKeyParserRuleCall_1() { return cWMLKeyParserRuleCall_1; }
|
||||
}
|
||||
|
||||
public class WMLValuedExpressionElements extends AbstractParserRuleElementFinder {
|
||||
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);
|
||||
|
||||
//WMLValuedExpression:
|
||||
// WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//WMLExpression | {WMLValuedExpression} 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 class WMLTextdomainElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLTextdomain");
|
||||
private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
|
||||
|
@ -617,6 +488,22 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
public RuleCall getNameTEXTDOMAINTerminalRuleCall_0() { return cNameTEXTDOMAINTerminalRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLLuaCodeElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLLuaCode");
|
||||
private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final RuleCall cValueLUA_CODETerminalRuleCall_0 = (RuleCall)cValueAssignment.eContents().get(0);
|
||||
|
||||
//WMLLuaCode:
|
||||
// value=LUA_CODE;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=LUA_CODE
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//LUA_CODE
|
||||
public RuleCall getValueLUA_CODETerminalRuleCall_0() { return cValueLUA_CODETerminalRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLMacroParameterElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLMacroParameter");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
|
@ -733,11 +620,14 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private WMLKeyElements pWMLKey;
|
||||
private WMLKeyValueElements pWMLKeyValue;
|
||||
private WMLMacroCallElements pWMLMacroCall;
|
||||
private WMLLuaCodeElements pWMLLuaCode;
|
||||
private WMLArrayCallElements pWMLArrayCall;
|
||||
private WMLMacroDefineElements pWMLMacroDefine;
|
||||
private WMLPreprocIFElements pWMLPreprocIF;
|
||||
private WMLRootExpressionElements pWMLRootExpression;
|
||||
private WMLExpressionElements pWMLExpression;
|
||||
private WMLValuedExpressionElements pWMLValuedExpression;
|
||||
private WMLTextdomainElements pWMLTextdomain;
|
||||
private WMLLuaCodeElements pWMLLuaCode;
|
||||
private WMLMacroParameterElements pWMLMacroParameter;
|
||||
private WMLValueElements pWMLValue;
|
||||
private MacroTokensElements pMacroTokens;
|
||||
|
@ -772,8 +662,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
|
||||
|
||||
//WMLRoot:
|
||||
// (Tags+=WMLTag | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
// IfDefs+=WMLPreprocIF)*;
|
||||
// Expressions+=WMLRootExpression*;
|
||||
public WMLRootElements getWMLRootAccess() {
|
||||
return (pWMLRoot != null) ? pWMLRoot : (pWMLRoot = new WMLRootElements());
|
||||
}
|
||||
|
@ -783,8 +672,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLTag:
|
||||
// "[" plus?="+"? name=ID "]" (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | IfDefs+=WMLPreprocIF)* "[/" endName=ID "]";
|
||||
// "[" plus?="+"? name=ID "]" Expressions+=WMLExpression* "[/" endName=ID "]";
|
||||
public WMLTagElements getWMLTagAccess() {
|
||||
return (pWMLTag != null) ? pWMLTag : (pWMLTag = new WMLTagElements());
|
||||
}
|
||||
|
@ -823,16 +711,6 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLMacroCallAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLLuaCode:
|
||||
// value=LUA_CODE;
|
||||
public WMLLuaCodeElements getWMLLuaCodeAccess() {
|
||||
return (pWMLLuaCode != null) ? pWMLLuaCode : (pWMLLuaCode = new WMLLuaCodeElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLLuaCodeRule() {
|
||||
return getWMLLuaCodeAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLArrayCall:
|
||||
// "[" value+=WMLValue+ "]";
|
||||
public WMLArrayCallElements getWMLArrayCallAccess() {
|
||||
|
@ -844,8 +722,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLMacroDefine:
|
||||
// name=DEFINE (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF)* endName=ENDDEF;
|
||||
// name=DEFINE Expressions+=WMLValuedExpression* endName=ENDDEF;
|
||||
public WMLMacroDefineElements getWMLMacroDefineAccess() {
|
||||
return (pWMLMacroDefine != null) ? pWMLMacroDefine : (pWMLMacroDefine = new WMLMacroDefineElements());
|
||||
}
|
||||
|
@ -855,9 +732,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLPreprocIF:
|
||||
// name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall |
|
||||
// MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
// endName=ENDIF;
|
||||
// name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Expressions+=WMLValuedExpression | Elses+=ELSE)* endName=ENDIF;
|
||||
public WMLPreprocIFElements getWMLPreprocIFAccess() {
|
||||
return (pWMLPreprocIF != null) ? pWMLPreprocIF : (pWMLPreprocIF = new WMLPreprocIFElements());
|
||||
}
|
||||
|
@ -866,6 +741,36 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLPreprocIFAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLRootExpression:
|
||||
// WMLTag | WMLMacroCall | WMLMacroDefine | WMLTextdomain | WMLPreprocIF;
|
||||
public WMLRootExpressionElements getWMLRootExpressionAccess() {
|
||||
return (pWMLRootExpression != null) ? pWMLRootExpression : (pWMLRootExpression = new WMLRootExpressionElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLRootExpressionRule() {
|
||||
return getWMLRootExpressionAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLExpression:
|
||||
// WMLRootExpression | WMLKey;
|
||||
public WMLExpressionElements getWMLExpressionAccess() {
|
||||
return (pWMLExpression != null) ? pWMLExpression : (pWMLExpression = new WMLExpressionElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLExpressionRule() {
|
||||
return getWMLExpressionAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLValuedExpression:
|
||||
// WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
public WMLValuedExpressionElements getWMLValuedExpressionAccess() {
|
||||
return (pWMLValuedExpression != null) ? pWMLValuedExpression : (pWMLValuedExpression = new WMLValuedExpressionElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLValuedExpressionRule() {
|
||||
return getWMLValuedExpressionAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLTextdomain:
|
||||
// name=TEXTDOMAIN;
|
||||
public WMLTextdomainElements getWMLTextdomainAccess() {
|
||||
|
@ -876,6 +781,16 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLTextdomainAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLLuaCode:
|
||||
// value=LUA_CODE;
|
||||
public WMLLuaCodeElements getWMLLuaCodeAccess() {
|
||||
return (pWMLLuaCode != null) ? pWMLLuaCode : (pWMLLuaCode = new WMLLuaCodeElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLLuaCodeRule() {
|
||||
return getWMLLuaCodeAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLMacroParameter returns ecore::EString:
|
||||
// WMLValue | MacroTokens;
|
||||
public WMLMacroParameterElements getWMLMacroParameterAccess() {
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLExpression extends WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // WMLExpression
|
|
@ -8,8 +8,6 @@ package org.wesnoth.wml;
|
|||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key</b></em>'.
|
||||
|
@ -18,7 +16,6 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getValue <em>Value</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</em>}</li>
|
||||
* </ul>
|
||||
|
@ -28,34 +25,8 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKey extends EObject
|
||||
public interface WMLKey extends WMLExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKeyValue}.
|
||||
|
|
|
@ -18,7 +18,6 @@ import org.eclipse.emf.common.util.EList;
|
|||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#isPoint <em>Point</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#isRelative <em>Relative</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getParams <em>Params</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getExtraMacros <em>Extra Macros</em>}</li>
|
||||
* </ul>
|
||||
|
@ -28,7 +27,7 @@ import org.eclipse.emf.common.util.EList;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCall extends WMLKeyValue
|
||||
public interface WMLMacroCall extends WMLKeyValue, WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Point</b></em>' attribute.
|
||||
|
@ -82,32 +81,6 @@ public interface WMLMacroCall extends WMLKeyValue
|
|||
*/
|
||||
void setRelative(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Params</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
|
|
|
@ -8,8 +8,6 @@ package org.wesnoth.wml;
|
|||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
|
@ -18,14 +16,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
|
@ -34,145 +25,23 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroDefine extends EObject
|
||||
public interface WMLMacroDefine extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* If the meaning of the '<em>Expressions</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>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroDefine#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Tags()
|
||||
* @return the value of the '<em>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Keys</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKey}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Keys</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>Keys</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Keys()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getKeys();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Values</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Values</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Values</em>' attribute list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Values()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
EList<WMLValuedExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
|
|
|
@ -8,8 +8,6 @@ package org.wesnoth.wml;
|
|||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
|
@ -18,14 +16,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
|
@ -35,145 +26,23 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLPreprocIF extends EObject
|
||||
public interface WMLPreprocIF extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* If the meaning of the '<em>Expressions</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>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Tags()
|
||||
* @return the value of the '<em>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Keys</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKey}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Keys</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>Keys</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Keys()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getKeys();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Values</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Values</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Values</em>' attribute list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Values()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
EList<WMLValuedExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Elses</b></em>' attribute list.
|
||||
|
|
|
@ -18,11 +18,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getExpressions <em>Expressions</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
|
@ -33,83 +29,19 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface WMLRoot extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLRootExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</em>' containment reference list isn't clear,
|
||||
* If the meaning of the '<em>Expressions</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Tags()
|
||||
* @return the value of the '<em>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
EList<WMLRootExpression> getExpressions();
|
||||
|
||||
} // WMLRoot
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Root Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRootExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRootExpression extends WMLExpression
|
||||
{
|
||||
} // WMLRootExpression
|
|
@ -8,8 +8,6 @@ package org.wesnoth.wml;
|
|||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Tag</b></em>'.
|
||||
|
@ -19,13 +17,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#isPlus <em>Plus</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
|
@ -34,7 +26,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTag extends EObject
|
||||
public interface WMLTag extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Plus</b></em>' attribute.
|
||||
|
@ -63,126 +55,20 @@ public interface WMLTag extends EObject
|
|||
void setPlus(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* If the meaning of the '<em>Expressions</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>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Tags()
|
||||
* @return the value of the '<em>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Keys</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKey}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Keys</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>Keys</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Keys()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getKeys();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
EList<WMLExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
|
|
|
@ -6,50 +6,17 @@
|
|||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLTextdomain#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTextdomain()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTextdomain extends EObject
|
||||
public interface WMLTextdomain extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTextdomain_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTextdomain#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // WMLTextdomain
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Valued Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLValuedExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValuedExpression extends EObject
|
||||
{
|
||||
} // WMLValuedExpression
|
|
@ -71,15 +71,6 @@ public interface WmlFactory extends EFactory
|
|||
*/
|
||||
WMLMacroCall createWMLMacroCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -107,6 +98,33 @@ public interface WmlFactory extends EFactory
|
|||
*/
|
||||
WMLPreprocIF createWMLPreprocIF();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Root Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Root Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRootExpression createWMLRootExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLExpression createWMLExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Valued Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Valued Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValuedExpression createWMLValuedExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -116,6 +134,15 @@ public interface WmlFactory extends EFactory
|
|||
*/
|
||||
WMLTextdomain createWMLTextdomain();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,180 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLExpressionImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExpression
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_EXPRESSION__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_EXPRESSION__NAME:
|
||||
return getName();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_EXPRESSION__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_EXPRESSION__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_EXPRESSION__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
}
|
||||
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(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLExpressionImpl
|
|
@ -17,7 +17,6 @@ import org.eclipse.emf.ecore.EClass;
|
|||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
@ -33,7 +32,6 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValue <em>Value</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getEol <em>Eol</em>}</li>
|
||||
* </ul>
|
||||
|
@ -41,28 +39,8 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
||||
public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -114,29 +92,6 @@ public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
|||
return WmlPackage.Literals.WML_KEY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -200,8 +155,6 @@ public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return getValue();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
|
@ -221,9 +174,6 @@ public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends WMLKeyValue>)newValue);
|
||||
|
@ -245,9 +195,6 @@ public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
getValue().clear();
|
||||
return;
|
||||
|
@ -268,8 +215,6 @@ public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return value != null && !value.isEmpty();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
|
@ -289,9 +234,7 @@ public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
|||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(", eol: ");
|
||||
result.append(" (eol: ");
|
||||
result.append(eol);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
|
|
|
@ -22,7 +22,10 @@ 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.WMLExpression;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
|
@ -32,9 +35,9 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#isPoint <em>Point</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#isRelative <em>Relative</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getParams <em>Params</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getExtraMacros <em>Extra Macros</em>}</li>
|
||||
* </ul>
|
||||
|
@ -44,6 +47,26 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #isPoint() <em>Point</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -84,26 +107,6 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
*/
|
||||
protected boolean relative = RELATIVE_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getParams() <em>Params</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -145,6 +148,29 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
return WmlPackage.Literals.WML_MACRO_CALL;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -191,29 +217,6 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__RELATIVE, oldRelative, relative));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -268,12 +271,12 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_MACRO_CALL__POINT:
|
||||
return isPoint();
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
return isRelative();
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
return getParams();
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
|
@ -293,15 +296,15 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__POINT:
|
||||
setPoint((Boolean)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
setRelative((Boolean)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
getParams().clear();
|
||||
getParams().addAll((Collection<? extends String>)newValue);
|
||||
|
@ -324,15 +327,15 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__POINT:
|
||||
setPoint(POINT_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
setRelative(RELATIVE_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
getParams().clear();
|
||||
return;
|
||||
|
@ -353,12 +356,12 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_MACRO_CALL__POINT:
|
||||
return point != POINT_EDEFAULT;
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
return relative != RELATIVE_EDEFAULT;
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
return params != null && !params.isEmpty();
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
|
@ -367,6 +370,72 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
|
||||
{
|
||||
if (baseClass == WMLValuedExpression.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLExpression.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__NAME: return WmlPackage.WML_EXPRESSION__NAME;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLRootExpression.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
|
||||
{
|
||||
if (baseClass == WMLValuedExpression.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLExpression.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
case WmlPackage.WML_EXPRESSION__NAME: return WmlPackage.WML_MACRO_CALL__NAME;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLRootExpression.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -378,12 +447,12 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
|||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (point: ");
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(", point: ");
|
||||
result.append(point);
|
||||
result.append(", relative: ");
|
||||
result.append(relative);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(", params: ");
|
||||
result.append(params);
|
||||
result.append(')');
|
||||
|
|
|
@ -17,18 +17,12 @@ import org.eclipse.emf.ecore.EClass;
|
|||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
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.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
|
@ -38,111 +32,24 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements WMLMacroDefine
|
||||
public class WMLMacroDefineImpl extends WMLRootExpressionImpl implements WMLMacroDefine
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getKeys() <em>Keys</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getKeys()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKey> keys;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValues() <em>Values</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValues()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> values;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
protected EList<WMLValuedExpression> expressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
|
@ -190,120 +97,13 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
public EList<WMLValuedExpression> getExpressions()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_DEFINE__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
if (expressions == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_MACRO_DEFINE__TAGS);
|
||||
expressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKey> getKeys()
|
||||
{
|
||||
if (keys == null)
|
||||
{
|
||||
keys = new EObjectContainmentEList<WMLKey>(WMLKey.class, this, WmlPackage.WML_MACRO_DEFINE__KEYS);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getValues()
|
||||
{
|
||||
if (values == null)
|
||||
{
|
||||
values = new EDataTypeEList<String>(String.class, this, WmlPackage.WML_MACRO_DEFINE__VALUES);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_MACRO_DEFINE__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -339,18 +139,8 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
return ((InternalEList<?>)getKeys()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -365,22 +155,8 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
return getKeys();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
|
@ -398,36 +174,9 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
getKeys().clear();
|
||||
getKeys().addAll((Collection<? extends WMLKey>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
|
@ -446,29 +195,8 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
getKeys().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
|
@ -487,22 +215,8 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
return keys != null && !keys.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
|
@ -520,11 +234,7 @@ public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements
|
|||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(", Values: ");
|
||||
result.append(values);
|
||||
result.append(", endName: ");
|
||||
result.append(" (endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
|
|
|
@ -17,18 +17,13 @@ import org.eclipse.emf.ecore.EClass;
|
|||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
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.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
|
@ -38,14 +33,7 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
|
@ -53,97 +41,17 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WMLPreprocIF
|
||||
public class WMLPreprocIFImpl extends WMLRootExpressionImpl implements WMLPreprocIF
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getKeys() <em>Keys</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getKeys()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKey> keys;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValues() <em>Values</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValues()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> values;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
protected EList<WMLValuedExpression> expressions;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElses() <em>Elses</em>}' attribute list.
|
||||
|
@ -201,120 +109,13 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
public EList<WMLValuedExpression> getExpressions()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_PREPROC_IF__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
if (expressions == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_PREPROC_IF__TAGS);
|
||||
expressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_PREPROC_IF__EXPRESSIONS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKey> getKeys()
|
||||
{
|
||||
if (keys == null)
|
||||
{
|
||||
keys = new EObjectContainmentEList<WMLKey>(WMLKey.class, this, WmlPackage.WML_PREPROC_IF__KEYS);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_PREPROC_IF__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_PREPROC_IF__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_PREPROC_IF__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getValues()
|
||||
{
|
||||
if (values == null)
|
||||
{
|
||||
values = new EDataTypeEList<String>(String.class, this, WmlPackage.WML_PREPROC_IF__VALUES);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_PREPROC_IF__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -364,18 +165,8 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
return ((InternalEList<?>)getKeys()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -390,22 +181,8 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
return getKeys();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return getElses();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
|
@ -425,36 +202,9 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
getKeys().clear();
|
||||
getKeys().addAll((Collection<? extends WMLKey>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
getElses().clear();
|
||||
|
@ -477,29 +227,8 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
getKeys().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
getElses().clear();
|
||||
|
@ -521,22 +250,8 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
return keys != null && !keys.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return elses != null && !elses.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
|
@ -556,11 +271,7 @@ public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WM
|
|||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(", Values: ");
|
||||
result.append(values);
|
||||
result.append(", Elses: ");
|
||||
result.append(" (Elses: ");
|
||||
result.append(elses);
|
||||
result.append(", endName: ");
|
||||
result.append(endName);
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Root Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootExpressionImpl extends WMLExpressionImpl implements WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLRootExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ROOT_EXPRESSION;
|
||||
}
|
||||
|
||||
} //WMLRootExpressionImpl
|
|
@ -20,12 +20,8 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
|||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLRoot;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
|
@ -35,11 +31,7 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
|
@ -48,54 +40,14 @@ import org.wesnoth.wml.WmlPackage;
|
|||
public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
protected EList<WMLRootExpression> expressions;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -123,69 +75,13 @@ public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
public EList<WMLRootExpression> getExpressions()
|
||||
{
|
||||
if (tags == null)
|
||||
if (expressions == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_ROOT__TAGS);
|
||||
expressions = new EObjectContainmentEList<WMLRootExpression>(WMLRootExpression.class, this, WmlPackage.WML_ROOT__EXPRESSIONS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_ROOT__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_ROOT__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_ROOT__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_ROOT__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -198,16 +94,8 @@ public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -222,16 +110,8 @@ public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
@ -247,25 +127,9 @@ public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLRootExpression>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -281,20 +145,8 @@ public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
|
@ -310,16 +162,8 @@ public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
|
|
@ -17,17 +17,12 @@ import org.eclipse.emf.ecore.EClass;
|
|||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLExpression;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
|
@ -38,20 +33,14 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#isPlus <em>Plus</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
||||
public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #isPlus() <em>Plus</em>}' attribute.
|
||||
|
@ -74,84 +63,14 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
protected boolean plus = PLUS_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getKeys() <em>Keys</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getKeys()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKey> keys;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
protected EList<WMLExpression> expressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
|
@ -222,106 +141,13 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
public EList<WMLExpression> getExpressions()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
if (expressions == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_TAG__TAGS);
|
||||
expressions = new EObjectContainmentEList<WMLExpression>(WMLExpression.class, this, WmlPackage.WML_TAG__EXPRESSIONS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKey> getKeys()
|
||||
{
|
||||
if (keys == null)
|
||||
{
|
||||
keys = new EObjectContainmentEList<WMLKey>(WMLKey.class, this, WmlPackage.WML_TAG__KEYS);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_TAG__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_TAG__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_TAG__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_TAG__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -357,18 +183,8 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
return ((InternalEList<?>)getKeys()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -385,20 +201,8 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
{
|
||||
case WmlPackage.WML_TAG__PLUS:
|
||||
return isPlus();
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
return getKeys();
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_TAG__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
|
@ -419,32 +223,9 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
case WmlPackage.WML_TAG__PLUS:
|
||||
setPlus((Boolean)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
getKeys().clear();
|
||||
getKeys().addAll((Collection<? extends WMLKey>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
case WmlPackage.WML_TAG__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
|
@ -466,26 +247,8 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
case WmlPackage.WML_TAG__PLUS:
|
||||
setPlus(PLUS_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
getKeys().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
case WmlPackage.WML_TAG__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
|
@ -506,20 +269,8 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
{
|
||||
case WmlPackage.WML_TAG__PLUS:
|
||||
return plus != PLUS_EDEFAULT;
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
return keys != null && !keys.isEmpty();
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_TAG__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
|
@ -539,8 +290,6 @@ public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
|||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (plus: ");
|
||||
result.append(plus);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(", endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
|
|
|
@ -6,13 +6,8 @@
|
|||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
|
@ -21,36 +16,12 @@ import org.wesnoth.wml.WmlPackage;
|
|||
* An implementation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTextdomainImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLTextdomainImpl extends MinimalEObjectImpl.Container implements WMLTextdomain
|
||||
public class WMLTextdomainImpl extends WMLRootExpressionImpl implements WMLTextdomain
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -72,110 +43,4 @@ public class WMLTextdomainImpl extends MinimalEObjectImpl.Container implements W
|
|||
return WmlPackage.Literals.WML_TEXTDOMAIN;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TEXTDOMAIN__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TEXTDOMAIN__NAME:
|
||||
return getName();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TEXTDOMAIN__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TEXTDOMAIN__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TEXTDOMAIN__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
}
|
||||
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(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLTextdomainImpl
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Valued Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValuedExpressionImpl extends MinimalEObjectImpl.Container implements WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLValuedExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_VALUED_EXPRESSION;
|
||||
}
|
||||
|
||||
} //WMLValuedExpressionImpl
|
|
@ -73,11 +73,14 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
case WmlPackage.WML_KEY: return createWMLKey();
|
||||
case WmlPackage.WML_KEY_VALUE: return createWMLKeyValue();
|
||||
case WmlPackage.WML_MACRO_CALL: return createWMLMacroCall();
|
||||
case WmlPackage.WML_LUA_CODE: return createWMLLuaCode();
|
||||
case WmlPackage.WML_ARRAY_CALL: return createWMLArrayCall();
|
||||
case WmlPackage.WML_MACRO_DEFINE: return createWMLMacroDefine();
|
||||
case WmlPackage.WML_PREPROC_IF: return createWMLPreprocIF();
|
||||
case WmlPackage.WML_ROOT_EXPRESSION: return createWMLRootExpression();
|
||||
case WmlPackage.WML_EXPRESSION: return createWMLExpression();
|
||||
case WmlPackage.WML_VALUED_EXPRESSION: return createWMLValuedExpression();
|
||||
case WmlPackage.WML_TEXTDOMAIN: return createWMLTextdomain();
|
||||
case WmlPackage.WML_LUA_CODE: return createWMLLuaCode();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
|
@ -138,17 +141,6 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
return wmlMacroCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLLuaCode createWMLLuaCode()
|
||||
{
|
||||
WMLLuaCodeImpl wmlLuaCode = new WMLLuaCodeImpl();
|
||||
return wmlLuaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -182,6 +174,39 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
return wmlPreprocIF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLRootExpression createWMLRootExpression()
|
||||
{
|
||||
WMLRootExpressionImpl wmlRootExpression = new WMLRootExpressionImpl();
|
||||
return wmlRootExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLExpression createWMLExpression()
|
||||
{
|
||||
WMLExpressionImpl wmlExpression = new WMLExpressionImpl();
|
||||
return wmlExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValuedExpression createWMLValuedExpression()
|
||||
{
|
||||
WMLValuedExpressionImpl wmlValuedExpression = new WMLValuedExpressionImpl();
|
||||
return wmlValuedExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -193,6 +218,17 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
return wmlTextdomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLLuaCode createWMLLuaCode()
|
||||
{
|
||||
WMLLuaCodeImpl wmlLuaCode = new WMLLuaCodeImpl();
|
||||
return wmlLuaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -14,6 +14,7 @@ import org.eclipse.emf.ecore.EReference;
|
|||
import org.eclipse.emf.ecore.impl.EPackageImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLExpression;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WMLLuaCode;
|
||||
|
@ -21,8 +22,10 @@ import org.wesnoth.wml.WMLMacroCall;
|
|||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
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.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlFactory;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
|
@ -69,13 +72,6 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
private EClass wmlMacroCallEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlLuaCodeEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -97,6 +93,27 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
private EClass wmlPreprocIFEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlRootExpressionEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlExpressionEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlValuedExpressionEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -104,6 +121,13 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
private EClass wmlTextdomainEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlLuaCodeEClass = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
|
@ -182,51 +206,11 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_Tags()
|
||||
public EReference getWMLRoot_Expressions()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_Textdomains()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_IfDefs()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -252,69 +236,9 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLTag_Name()
|
||||
public EReference getWMLTag_Expressions()
|
||||
{
|
||||
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_Tags()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_Keys()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_Textdomains()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_IfDefs()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(7);
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -324,7 +248,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EAttribute getWMLTag_EndName()
|
||||
{
|
||||
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(8);
|
||||
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -337,16 +261,6 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
return wmlKeyEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLKey_Name()
|
||||
{
|
||||
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -354,7 +268,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EReference getWMLKey_Value()
|
||||
{
|
||||
return (EReference)wmlKeyEClass.getEStructuralFeatures().get(1);
|
||||
return (EReference)wmlKeyEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -364,7 +278,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EAttribute getWMLKey_Eol()
|
||||
{
|
||||
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(2);
|
||||
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -412,21 +326,11 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroCall_Name()
|
||||
public EAttribute getWMLMacroCall_Params()
|
||||
{
|
||||
return (EAttribute)wmlMacroCallEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroCall_Params()
|
||||
{
|
||||
return (EAttribute)wmlMacroCallEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -434,27 +338,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EReference getWMLMacroCall_ExtraMacros()
|
||||
{
|
||||
return (EReference)wmlMacroCallEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLLuaCode()
|
||||
{
|
||||
return wmlLuaCodeEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLLuaCode_Value()
|
||||
{
|
||||
return (EAttribute)wmlLuaCodeEClass.getEStructuralFeatures().get(0);
|
||||
return (EReference)wmlMacroCallEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -492,79 +376,9 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroDefine_Name()
|
||||
public EReference getWMLMacroDefine_Expressions()
|
||||
{
|
||||
return (EAttribute)wmlMacroDefineEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Tags()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Keys()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Textdomains()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroDefine_Values()
|
||||
{
|
||||
return (EAttribute)wmlMacroDefineEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_IfDefs()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(7);
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -574,7 +388,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EAttribute getWMLMacroDefine_EndName()
|
||||
{
|
||||
return (EAttribute)wmlMacroDefineEClass.getEStructuralFeatures().get(8);
|
||||
return (EAttribute)wmlMacroDefineEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -592,79 +406,9 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLPreprocIF_Name()
|
||||
public EReference getWMLPreprocIF_Expressions()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Tags()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Keys()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Textdomains()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLPreprocIF_Values()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_IfDefs()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(7);
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -674,7 +418,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EAttribute getWMLPreprocIF_Elses()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(8);
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -684,7 +428,47 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
public EAttribute getWMLPreprocIF_EndName()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(9);
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLRootExpression()
|
||||
{
|
||||
return wmlRootExpressionEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLExpression()
|
||||
{
|
||||
return wmlExpressionEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLExpression_Name()
|
||||
{
|
||||
return (EAttribute)wmlExpressionEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLValuedExpression()
|
||||
{
|
||||
return wmlValuedExpressionEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -702,9 +486,19 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLTextdomain_Name()
|
||||
public EClass getWMLLuaCode()
|
||||
{
|
||||
return (EAttribute)wmlTextdomainEClass.getEStructuralFeatures().get(0);
|
||||
return wmlLuaCodeEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLLuaCode_Value()
|
||||
{
|
||||
return (EAttribute)wmlLuaCodeEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -738,25 +532,14 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
|
||||
// Create classes and their features
|
||||
wmlRootEClass = createEClass(WML_ROOT);
|
||||
createEReference(wmlRootEClass, WML_ROOT__TAGS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__MACRO_CALLS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__MACRO_DEFINES);
|
||||
createEReference(wmlRootEClass, WML_ROOT__TEXTDOMAINS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__IF_DEFS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__EXPRESSIONS);
|
||||
|
||||
wmlTagEClass = createEClass(WML_TAG);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__PLUS);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__NAME);
|
||||
createEReference(wmlTagEClass, WML_TAG__TAGS);
|
||||
createEReference(wmlTagEClass, WML_TAG__KEYS);
|
||||
createEReference(wmlTagEClass, WML_TAG__MACRO_CALLS);
|
||||
createEReference(wmlTagEClass, WML_TAG__MACRO_DEFINES);
|
||||
createEReference(wmlTagEClass, WML_TAG__TEXTDOMAINS);
|
||||
createEReference(wmlTagEClass, WML_TAG__IF_DEFS);
|
||||
createEReference(wmlTagEClass, WML_TAG__EXPRESSIONS);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__END_NAME);
|
||||
|
||||
wmlKeyEClass = createEClass(WML_KEY);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__NAME);
|
||||
createEReference(wmlKeyEClass, WML_KEY__VALUE);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__EOL);
|
||||
|
||||
|
@ -765,41 +548,32 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
wmlMacroCallEClass = createEClass(WML_MACRO_CALL);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__POINT);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__RELATIVE);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__NAME);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__PARAMS);
|
||||
createEReference(wmlMacroCallEClass, WML_MACRO_CALL__EXTRA_MACROS);
|
||||
|
||||
wmlLuaCodeEClass = createEClass(WML_LUA_CODE);
|
||||
createEAttribute(wmlLuaCodeEClass, WML_LUA_CODE__VALUE);
|
||||
|
||||
wmlArrayCallEClass = createEClass(WML_ARRAY_CALL);
|
||||
createEAttribute(wmlArrayCallEClass, WML_ARRAY_CALL__VALUE);
|
||||
|
||||
wmlMacroDefineEClass = createEClass(WML_MACRO_DEFINE);
|
||||
createEAttribute(wmlMacroDefineEClass, WML_MACRO_DEFINE__NAME);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__TAGS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__KEYS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__MACRO_CALLS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__MACRO_DEFINES);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__TEXTDOMAINS);
|
||||
createEAttribute(wmlMacroDefineEClass, WML_MACRO_DEFINE__VALUES);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__IF_DEFS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__EXPRESSIONS);
|
||||
createEAttribute(wmlMacroDefineEClass, WML_MACRO_DEFINE__END_NAME);
|
||||
|
||||
wmlPreprocIFEClass = createEClass(WML_PREPROC_IF);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__NAME);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__TAGS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__KEYS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__MACRO_CALLS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__MACRO_DEFINES);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__TEXTDOMAINS);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__VALUES);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__IF_DEFS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__EXPRESSIONS);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__ELSES);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__END_NAME);
|
||||
|
||||
wmlRootExpressionEClass = createEClass(WML_ROOT_EXPRESSION);
|
||||
|
||||
wmlExpressionEClass = createEClass(WML_EXPRESSION);
|
||||
createEAttribute(wmlExpressionEClass, WML_EXPRESSION__NAME);
|
||||
|
||||
wmlValuedExpressionEClass = createEClass(WML_VALUED_EXPRESSION);
|
||||
|
||||
wmlTextdomainEClass = createEClass(WML_TEXTDOMAIN);
|
||||
createEAttribute(wmlTextdomainEClass, WML_TEXTDOMAIN__NAME);
|
||||
|
||||
wmlLuaCodeEClass = createEClass(WML_LUA_CODE);
|
||||
createEAttribute(wmlLuaCodeEClass, WML_LUA_CODE__VALUE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -831,31 +605,28 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
// Set bounds for type parameters
|
||||
|
||||
// Add supertypes to classes
|
||||
wmlTagEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlKeyEClass.getESuperTypes().add(this.getWMLExpression());
|
||||
wmlMacroCallEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlLuaCodeEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlMacroCallEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlArrayCallEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlMacroDefineEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlPreprocIFEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlRootExpressionEClass.getESuperTypes().add(this.getWMLExpression());
|
||||
wmlExpressionEClass.getESuperTypes().add(this.getWMLValuedExpression());
|
||||
wmlTextdomainEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlLuaCodeEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
|
||||
// Initialize classes and features; add operations and parameters
|
||||
initEClass(wmlRootEClass, WMLRoot.class, "WMLRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getWMLRoot_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_Expressions(), this.getWMLRootExpression(), null, "Expressions", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlTagEClass, WMLTag.class, "WMLTag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLTag_Plus(), ecorePackage.getEBoolean(), "plus", null, 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLTag_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Keys(), this.getWMLKey(), null, "Keys", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Expressions(), this.getWMLExpression(), null, "Expressions", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLTag_EndName(), ecorePackage.getEString(), "endName", null, 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);
|
||||
initEAttribute(getWMLKey_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
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);
|
||||
initEAttribute(getWMLKey_Eol(), ecorePackage.getEString(), "eol", null, 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
|
@ -864,41 +635,32 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
initEClass(wmlMacroCallEClass, WMLMacroCall.class, "WMLMacroCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLMacroCall_Point(), ecorePackage.getEBoolean(), "point", null, 0, 1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroCall_Relative(), ecorePackage.getEBoolean(), "relative", null, 0, 1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroCall_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroCall_Params(), ecorePackage.getEString(), "params", null, 0, -1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroCall_ExtraMacros(), this.getWMLMacroCall(), null, "extraMacros", null, 0, -1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlLuaCodeEClass, WMLLuaCode.class, "WMLLuaCode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLLuaCode_Value(), ecorePackage.getEString(), "value", null, 0, 1, WMLLuaCode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlArrayCallEClass, WMLArrayCall.class, "WMLArrayCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLArrayCall_Value(), ecorePackage.getEString(), "value", null, 0, -1, WMLArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlMacroDefineEClass, WMLMacroDefine.class, "WMLMacroDefine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLMacroDefine_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Keys(), this.getWMLKey(), null, "Keys", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroDefine_Values(), ecorePackage.getEString(), "Values", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
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);
|
||||
initEAttribute(getWMLMacroDefine_EndName(), ecorePackage.getEString(), "endName", null, 0, 1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlPreprocIFEClass, WMLPreprocIF.class, "WMLPreprocIF", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLPreprocIF_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Keys(), this.getWMLKey(), null, "Keys", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLPreprocIF_Values(), ecorePackage.getEString(), "Values", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Expressions(), this.getWMLValuedExpression(), null, "Expressions", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLPreprocIF_Elses(), ecorePackage.getEString(), "Elses", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLPreprocIF_EndName(), ecorePackage.getEString(), "endName", null, 0, 1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlRootExpressionEClass, WMLRootExpression.class, "WMLRootExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(wmlExpressionEClass, WMLExpression.class, "WMLExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLExpression_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlValuedExpressionEClass, WMLValuedExpression.class, "WMLValuedExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(wmlTextdomainEClass, WMLTextdomain.class, "WMLTextdomain", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLTextdomain_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLTextdomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlLuaCodeEClass, WMLLuaCode.class, "WMLLuaCode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLLuaCode_Value(), ecorePackage.getEString(), "value", null, 0, 1, WMLLuaCode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
// Create resource
|
||||
createResource(eNS_URI);
|
||||
|
|
|
@ -104,11 +104,6 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return createWMLMacroCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return createWMLLuaCodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLArrayCall(WMLArrayCall object)
|
||||
{
|
||||
return createWMLArrayCallAdapter();
|
||||
|
@ -124,11 +119,31 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return createWMLPreprocIFAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLRootExpression(WMLRootExpression object)
|
||||
{
|
||||
return createWMLRootExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLExpression(WMLExpression object)
|
||||
{
|
||||
return createWMLExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValuedExpression(WMLValuedExpression object)
|
||||
{
|
||||
return createWMLValuedExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTextdomain(WMLTextdomain object)
|
||||
{
|
||||
return createWMLTextdomainAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return createWMLLuaCodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter defaultCase(EObject object)
|
||||
{
|
||||
return createEObjectAdapter();
|
||||
|
@ -225,21 +240,6 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLLuaCode <em>WML Lua Code</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.WMLLuaCode
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLLuaCodeAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLArrayCall <em>WML Array Call</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -285,6 +285,51 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLRootExpression <em>WML Root Expression</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.WMLRootExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLRootExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLExpression <em>WML Expression</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.WMLExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValuedExpression <em>WML Valued Expression</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.WMLValuedExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValuedExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTextdomain <em>WML Textdomain</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -300,6 +345,21 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLLuaCode <em>WML Lua Code</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.WMLLuaCode
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLLuaCodeAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for the default case.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -107,6 +107,9 @@ public class WmlSwitch<T>
|
|||
{
|
||||
WMLTag wmlTag = (WMLTag)theEObject;
|
||||
T result = caseWMLTag(wmlTag);
|
||||
if (result == null) result = caseWMLRootExpression(wmlTag);
|
||||
if (result == null) result = caseWMLExpression(wmlTag);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlTag);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -114,6 +117,8 @@ public class WmlSwitch<T>
|
|||
{
|
||||
WMLKey wmlKey = (WMLKey)theEObject;
|
||||
T result = caseWMLKey(wmlKey);
|
||||
if (result == null) result = caseWMLExpression(wmlKey);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlKey);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -129,14 +134,9 @@ public class WmlSwitch<T>
|
|||
WMLMacroCall wmlMacroCall = (WMLMacroCall)theEObject;
|
||||
T result = caseWMLMacroCall(wmlMacroCall);
|
||||
if (result == null) result = caseWMLKeyValue(wmlMacroCall);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_LUA_CODE:
|
||||
{
|
||||
WMLLuaCode wmlLuaCode = (WMLLuaCode)theEObject;
|
||||
T result = caseWMLLuaCode(wmlLuaCode);
|
||||
if (result == null) result = caseWMLKeyValue(wmlLuaCode);
|
||||
if (result == null) result = caseWMLRootExpression(wmlMacroCall);
|
||||
if (result == null) result = caseWMLExpression(wmlMacroCall);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlMacroCall);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -152,6 +152,9 @@ public class WmlSwitch<T>
|
|||
{
|
||||
WMLMacroDefine wmlMacroDefine = (WMLMacroDefine)theEObject;
|
||||
T result = caseWMLMacroDefine(wmlMacroDefine);
|
||||
if (result == null) result = caseWMLRootExpression(wmlMacroDefine);
|
||||
if (result == null) result = caseWMLExpression(wmlMacroDefine);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlMacroDefine);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -159,6 +162,33 @@ public class WmlSwitch<T>
|
|||
{
|
||||
WMLPreprocIF wmlPreprocIF = (WMLPreprocIF)theEObject;
|
||||
T result = caseWMLPreprocIF(wmlPreprocIF);
|
||||
if (result == null) result = caseWMLRootExpression(wmlPreprocIF);
|
||||
if (result == null) result = caseWMLExpression(wmlPreprocIF);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlPreprocIF);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_ROOT_EXPRESSION:
|
||||
{
|
||||
WMLRootExpression wmlRootExpression = (WMLRootExpression)theEObject;
|
||||
T result = caseWMLRootExpression(wmlRootExpression);
|
||||
if (result == null) result = caseWMLExpression(wmlRootExpression);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlRootExpression);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_EXPRESSION:
|
||||
{
|
||||
WMLExpression wmlExpression = (WMLExpression)theEObject;
|
||||
T result = caseWMLExpression(wmlExpression);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlExpression);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_VALUED_EXPRESSION:
|
||||
{
|
||||
WMLValuedExpression wmlValuedExpression = (WMLValuedExpression)theEObject;
|
||||
T result = caseWMLValuedExpression(wmlValuedExpression);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -166,6 +196,17 @@ public class WmlSwitch<T>
|
|||
{
|
||||
WMLTextdomain wmlTextdomain = (WMLTextdomain)theEObject;
|
||||
T result = caseWMLTextdomain(wmlTextdomain);
|
||||
if (result == null) result = caseWMLRootExpression(wmlTextdomain);
|
||||
if (result == null) result = caseWMLExpression(wmlTextdomain);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlTextdomain);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_LUA_CODE:
|
||||
{
|
||||
WMLLuaCode wmlLuaCode = (WMLLuaCode)theEObject;
|
||||
T result = caseWMLLuaCode(wmlLuaCode);
|
||||
if (result == null) result = caseWMLKeyValue(wmlLuaCode);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -253,22 +294,6 @@ public class WmlSwitch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Lua Code</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 Lua Code</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -317,6 +342,54 @@ public class WmlSwitch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Root Expression</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 Root Expression</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLRootExpression(WMLRootExpression object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Expression</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 Expression</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLExpression(WMLExpression object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Valued Expression</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 Valued Expression</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLValuedExpression(WMLValuedExpression object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -333,6 +406,22 @@ public class WmlSwitch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Lua Code</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 Lua Code</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -8,31 +8,19 @@ import "http://www.eclipse.org/emf/2002/Ecore" as ecore
|
|||
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as jvmTypes
|
||||
|
||||
WMLRoot:
|
||||
( Tags += WMLTag
|
||||
| MacroCalls += WMLMacroCall
|
||||
| MacroDefines += WMLMacroDefine
|
||||
| Textdomains += WMLTextdomain
|
||||
| IfDefs += WMLPreprocIF
|
||||
)*
|
||||
;
|
||||
( Expressions += WMLRootExpression )*;
|
||||
|
||||
WMLTag:
|
||||
'[' (plus?='+')? name=ID ']'
|
||||
( Tags += WMLTag
|
||||
| Keys += WMLKey
|
||||
| MacroCalls += WMLMacroCall
|
||||
| MacroDefines += WMLMacroDefine
|
||||
| Textdomains += WMLTextdomain
|
||||
| IfDefs += WMLPreprocIF
|
||||
)*
|
||||
( Expressions += WMLExpression )*
|
||||
'[/' endName = ID ']'
|
||||
;
|
||||
|
||||
|
||||
WMLKey hidden(WS):
|
||||
name = ID '=' value += WMLKeyValue* (EOL? '+' EOL? value+=WMLKeyValue+)* eol=(EOL|SL_COMMENT);
|
||||
|
||||
WMLKeyValue: {WMLKeyValue}
|
||||
WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
WMLKeyValue:
|
||||
{WMLKeyValue} WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
|
||||
WMLMacroCall:
|
||||
'{' (point?='./')? (relative?='~')? name=ID
|
||||
|
@ -41,38 +29,36 @@ WMLMacroCall:
|
|||
)*
|
||||
'}';
|
||||
|
||||
WMLLuaCode:
|
||||
value = LUA_CODE;
|
||||
WMLArrayCall:
|
||||
'[' value += WMLValue+ ']' ;
|
||||
|
||||
WMLMacroDefine:
|
||||
name = DEFINE
|
||||
( Tags += WMLTag
|
||||
| Keys += WMLKey
|
||||
| MacroCalls += WMLMacroCall
|
||||
| MacroDefines += WMLMacroDefine
|
||||
| Textdomains += WMLTextdomain
|
||||
| Values += WMLValue
|
||||
| IfDefs += WMLPreprocIF
|
||||
)*
|
||||
( Expressions += WMLValuedExpression )*
|
||||
endName = ENDDEF;
|
||||
|
||||
WMLPreprocIF:
|
||||
name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE)
|
||||
( Tags += WMLTag
|
||||
| Keys += WMLKey
|
||||
| MacroCalls += WMLMacroCall
|
||||
| MacroDefines += WMLMacroDefine
|
||||
| Textdomains += WMLTextdomain
|
||||
| Values += WMLValue
|
||||
| IfDefs += WMLPreprocIF
|
||||
( Expressions += WMLValuedExpression
|
||||
| Elses += ELSE
|
||||
)*
|
||||
endName = ENDIF;
|
||||
|
||||
WMLRootExpression:
|
||||
WMLTag | WMLMacroCall | WMLMacroDefine | WMLTextdomain | WMLPreprocIF;
|
||||
|
||||
WMLExpression:
|
||||
WMLRootExpression | WMLKey ;
|
||||
|
||||
WMLValuedExpression:
|
||||
WMLExpression | {WMLValuedExpression} WMLValue;
|
||||
|
||||
WMLTextdomain:
|
||||
name = TEXTDOMAIN;
|
||||
|
||||
WMLLuaCode:
|
||||
value = LUA_CODE;
|
||||
|
||||
WMLMacroParameter returns ecore::EString:
|
||||
WMLValue | MacroTokens;
|
||||
|
||||
|
|
|
@ -47,10 +47,7 @@ public class WMLFormatter extends AbstractDeclarativeFormatter
|
|||
c.setNoSpace().around(f.getWMLKeyAccess().getEqualsSignKeyword_1());
|
||||
|
||||
// one indentation after tag ...
|
||||
c.setIndentationIncrement().before(f.getWMLTagAccess().getTagsAssignment_4_0());
|
||||
// c.setIndentationIncrement().before(f.getWMLTagAccess().getTextdomainsAssignment_4_4());
|
||||
// c.setIndentationIncrement().before(f.getWMLTagAccess().getMacroCallsAssignment_4_2());
|
||||
c.setIndentationIncrement().before(f.getWMLTagAccess().getKeysAssignment_4_1());
|
||||
c.setIndentationIncrement().before(f.getWMLTagAccess().getExpressionsAssignment_4( ));
|
||||
|
||||
// but get back the [/<tagname>]
|
||||
c.setIndentationDecrement().before(f.getWMLTagAccess().getLeftSquareBracketSolidusKeyword_5());
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2011 by Timotei Dolean <timotei21@gmail.com>
|
||||
*
|
||||
* This program and the accompanying materials are made available
|
||||
* under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.wesnoth.utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.wesnoth.wml.WMLExpression;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
|
||||
public class WMLGrammarUtils
|
||||
{
|
||||
public static List<WMLKey> getTagKeys( WMLTag tag )
|
||||
{
|
||||
List<WMLKey> result = new ArrayList<WMLKey>();
|
||||
for ( WMLExpression expression : tag.getExpressions( ) ) {
|
||||
if ( expression instanceof WMLKey )
|
||||
result.add( ( WMLKey ) expression );
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static List<WMLTag> getTagTags( WMLTag tag )
|
||||
{
|
||||
List<WMLTag> result = new ArrayList<WMLTag>();
|
||||
for ( WMLExpression expression : tag.getExpressions( ) ) {
|
||||
if ( expression instanceof WMLTag )
|
||||
result.add( ( WMLTag ) expression );
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue