eclipse plugin: Make the whole WML Grammar implement java.io.Serializable
This commit is contained in:
parent
62665dbc37
commit
19791b6850
45 changed files with 2746 additions and 1997 deletions
|
@ -114,6 +114,9 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void complete_WMLRoot(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLGrammarElement(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WMLTag(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
nameMappings = new HashMap<AbstractElement, String>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
{
|
||||
put(grammarAccess.getWMLGrammarElementAccess().getAlternatives(), "rule__WMLGrammarElement__Alternatives");
|
||||
put(grammarAccess.getWMLKeyAccess().getEolAlternatives_4_0(), "rule__WMLKey__EolAlternatives_4_0");
|
||||
put(grammarAccess.getWMLKeyValueAccess().getAlternatives(), "rule__WMLKeyValue__Alternatives");
|
||||
put(grammarAccess.getWMLMacroCallParameterAccess().getAlternatives(), "rule__WMLMacroCallParameter__Alternatives");
|
||||
|
|
|
@ -85,6 +85,8 @@ finally {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLTag
|
||||
entryRuleWMLTag
|
||||
:
|
||||
|
@ -542,6 +544,7 @@ finally {
|
|||
|
||||
|
||||
|
||||
|
||||
rule__WMLKey__EolAlternatives_4_0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
|
|
|
@ -365,12 +365,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_LUA_CODE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
{
|
||||
match("<<");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:22: ( options {greedy=false; } : . )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:22: ( options {greedy=false; } : . )*
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
|
@ -395,7 +395,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2445:50: .
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2448:50: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -425,12 +425,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifhave");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -443,7 +443,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447: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)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -463,7 +463,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
|
@ -472,9 +472,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447: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:2447:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:42: ( '\\r' )?
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
|
@ -483,7 +483,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2447:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2450:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -515,12 +515,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifnhave");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=2;
|
||||
|
@ -533,7 +533,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -553,7 +553,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:43: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:43: ( ( '\\r' )? '\\n' )?
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
|
@ -562,9 +562,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:44: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:44: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:44: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:44: ( '\\r' )?
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -573,7 +573,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2449:44: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2452:44: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -605,12 +605,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifdef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -623,7 +623,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -643,7 +643,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -652,9 +652,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:40: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -663,7 +663,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2451:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2454:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -695,12 +695,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifndef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
|
@ -713,7 +713,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -733,7 +733,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
|
@ -742,9 +742,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt13) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:42: ( '\\r' )?
|
||||
int alt12=2;
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
|
@ -753,7 +753,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2453:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2456:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -785,12 +785,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ELSE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#else");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop14:
|
||||
do {
|
||||
int alt14=2;
|
||||
|
@ -803,7 +803,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt14) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -823,7 +823,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:37: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:37: ( ( '\\r' )? '\\n' )?
|
||||
int alt16=2;
|
||||
int LA16_0 = input.LA(1);
|
||||
|
||||
|
@ -832,9 +832,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt16) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:38: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:38: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:38: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:38: ( '\\r' )?
|
||||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
|
@ -843,7 +843,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt15) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2455:38: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2458:38: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -875,12 +875,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDIF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#endif");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop17:
|
||||
do {
|
||||
int alt17=2;
|
||||
|
@ -893,7 +893,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt17) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -913,7 +913,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt19=2;
|
||||
int LA19_0 = input.LA(1);
|
||||
|
||||
|
@ -922,9 +922,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt19) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:40: ( '\\r' )?
|
||||
int alt18=2;
|
||||
int LA18_0 = input.LA(1);
|
||||
|
||||
|
@ -933,7 +933,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt18) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2457:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2460:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -965,12 +965,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_DEFINE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#define");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop20:
|
||||
do {
|
||||
int alt20=2;
|
||||
|
@ -983,7 +983,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1003,7 +1003,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt22=2;
|
||||
int LA22_0 = input.LA(1);
|
||||
|
||||
|
@ -1012,9 +1012,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt22) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:42: ( '\\r' )?
|
||||
int alt21=2;
|
||||
int LA21_0 = input.LA(1);
|
||||
|
||||
|
@ -1023,7 +1023,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt21) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2459:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2462:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1055,12 +1055,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#enddef");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop23:
|
||||
do {
|
||||
int alt23=2;
|
||||
|
@ -1073,7 +1073,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt23) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1093,7 +1093,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt25=2;
|
||||
int LA25_0 = input.LA(1);
|
||||
|
||||
|
@ -1102,9 +1102,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt25) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:42: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:42: ( '\\r' )?
|
||||
int alt24=2;
|
||||
int LA24_0 = input.LA(1);
|
||||
|
||||
|
@ -1113,7 +1113,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt24) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2461:42: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2464:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1145,12 +1145,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_TEXTDOMAIN;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#textdomain");
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop26:
|
||||
do {
|
||||
int alt26=2;
|
||||
|
@ -1163,7 +1163,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt26) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1183,7 +1183,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:49: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:49: ( ( '\\r' )? '\\n' )?
|
||||
int alt28=2;
|
||||
int LA28_0 = input.LA(1);
|
||||
|
||||
|
@ -1192,9 +1192,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt28) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:50: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:50: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:50: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:50: ( '\\r' )?
|
||||
int alt27=2;
|
||||
int LA27_0 = input.LA(1);
|
||||
|
||||
|
@ -1203,7 +1203,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt27) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2463:50: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2466:50: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1235,11 +1235,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2468:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2468:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2468:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop29:
|
||||
do {
|
||||
int alt29=3;
|
||||
|
@ -1255,7 +1255,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt29) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2468:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
{
|
||||
match('\\');
|
||||
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
|
||||
|
@ -1271,7 +1271,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2465:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2468:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1308,10 +1308,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2467:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2467:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2470:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2470:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2467:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2470:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
int cnt30=0;
|
||||
loop30:
|
||||
do {
|
||||
|
@ -1365,8 +1365,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_EOL;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2469:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2469:12: ( '\\r' | '\\n' )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2472:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2472:12: ( '\\r' | '\\n' )
|
||||
{
|
||||
if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
|
||||
input.consume();
|
||||
|
@ -1393,10 +1393,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_WS;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2471:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2471:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2474:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2474:11: ( ' ' | '\\t' )+
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2471:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2474:11: ( ' ' | '\\t' )+
|
||||
int cnt31=0;
|
||||
loop31:
|
||||
do {
|
||||
|
@ -1450,8 +1450,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2473:16: ( . )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2473:18: .
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2476:16: ( . )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2476:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1470,11 +1470,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match('#');
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop32:
|
||||
do {
|
||||
int alt32=2;
|
||||
|
@ -1487,7 +1487,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt32) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1507,7 +1507,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt34=2;
|
||||
int LA34_0 = input.LA(1);
|
||||
|
||||
|
@ -1516,9 +1516,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt34) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:40: ( '\\r' )?
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:40: ( '\\r' )?
|
||||
int alt33=2;
|
||||
int LA33_0 = input.LA(1);
|
||||
|
||||
|
@ -1527,7 +1527,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt33) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2475:40: '\\r'
|
||||
// ../org.wesnoth.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g:2478:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -3,11 +3,12 @@
|
|||
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" name="wml"
|
||||
nsURI="http://www.wesnoth.org/WML" nsPrefix="wml">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLRoot">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLRoot" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLGrammarElement">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Expressions" upperBound="-1"
|
||||
eType="ecore:EClass platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLGrammarElement" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//ESerializable"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTag" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression">
|
||||
<eOperations name="getWMLTags">
|
||||
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
|
||||
|
@ -52,7 +53,7 @@
|
|||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_DataType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
|
||||
defaultValueLiteral=""/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKeyValue"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKeyValue" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLGrammarElement"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCall" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroCallParameter platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="point" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
|
||||
defaultValueLiteral=""/>
|
||||
|
@ -62,7 +63,7 @@
|
|||
eType="ecore:EClass platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroCallParameter"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCallParameter"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCallParameter" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLGrammarElement"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLArrayCall" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
|
||||
eType="ecore:EClass platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValue"
|
||||
|
@ -134,7 +135,7 @@
|
|||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_Cardinality" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EChar"
|
||||
defaultValueLiteral=" "/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLValuedExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLValuedExpression" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLGrammarElement"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTextdomain" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLLuaCode" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
|
||||
|
@ -146,4 +147,6 @@
|
|||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLValue" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValuedExpression platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroParameter"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="MacroTokens" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroParameter"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ESerializable" instanceClassName="java.io.Serializable"
|
||||
abstract="true" interface="true"/>
|
||||
</ecore:EPackage>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRoot">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRoot/Expressions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLGrammarElement"/>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/plus"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/Expressions"/>
|
||||
|
@ -71,5 +72,6 @@
|
|||
</genClasses>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValue"/>
|
||||
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//MacroTokens"/>
|
||||
<genClasses image="false" ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//ESerializable"/>
|
||||
</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.29 //@rules.30 //@rules.32">
|
||||
<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.30 //@rules.31 //@rules.33">
|
||||
<metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="wml">
|
||||
<ePackage href="http://www.wesnoth.org/WML#/"/>
|
||||
</metamodelDeclarations>
|
||||
|
@ -11,7 +11,18 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLRoot"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLGrammarElement">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLGrammarElement"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.0"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLTag">
|
||||
|
@ -24,43 +35,43 @@
|
|||
<terminal xsi:type="xtext:Keyword" value="+"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.29"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="[/"/>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.29"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLKey" definesHiddenTokens="true" hiddenTokens="//@rules.30">
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLKey" definesHiddenTokens="true" hiddenTokens="//@rules.31">
|
||||
<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.28"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.29"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="*">
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.29"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.30"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.29"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.30"/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="eol" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.29"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.32"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.30"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.33"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
</alternatives>
|
||||
|
@ -70,10 +81,10 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKeyValue"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.13"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.5"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroCall">
|
||||
|
@ -89,10 +100,10 @@
|
|||
<terminal xsi:type="xtext:Keyword" value="~"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.29"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="Parameters" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.5"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="}"/>
|
||||
</alternatives>
|
||||
|
@ -102,8 +113,8 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroCallParameter"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.5"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLArrayCall">
|
||||
|
@ -113,7 +124,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.15"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
</alternatives>
|
||||
|
@ -124,13 +135,13 @@
|
|||
</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.25"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.25"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.26"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
|
@ -141,25 +152,25 @@
|
|||
<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.20"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.21"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.18"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.22"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.19"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.20"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="Expressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Assignment" feature="Elses" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.22"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="ElseExpressions" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
|
@ -168,11 +179,11 @@
|
|||
<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.7"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.5"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.13"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLExpression">
|
||||
|
@ -180,8 +191,8 @@
|
|||
<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.9"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLValuedExpression">
|
||||
|
@ -189,8 +200,8 @@
|
|||
<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.10"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLTextdomain">
|
||||
|
@ -198,7 +209,7 @@
|
|||
<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.26"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLLuaCode">
|
||||
|
@ -206,7 +217,7 @@
|
|||
<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.17"/>
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.18"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroParameter">
|
||||
|
@ -214,8 +225,8 @@
|
|||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroParameter"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.17"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLValue">
|
||||
|
@ -224,8 +235,8 @@
|
|||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.29"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.28"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
<elements xsi:type="xtext:Keyword" value="_"/>
|
||||
<elements xsi:type="xtext:Keyword" value="~"/>
|
||||
<elements xsi:type="xtext:Keyword" value="."/>
|
||||
|
@ -234,7 +245,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.31"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.32"/>
|
||||
</terminal>
|
||||
</alternatives>
|
||||
</rules>
|
||||
|
|
|
@ -32,22 +32,23 @@ protected class ThisRootNode extends RootToken {
|
|||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLRoot_ExpressionsAssignment(this, this, 0, inst);
|
||||
case 1: return new WMLTag_Group(this, this, 1, inst);
|
||||
case 2: return new WMLKey_Group(this, this, 2, inst);
|
||||
case 3: return new WMLKeyValue_Alternatives(this, this, 3, inst);
|
||||
case 4: return new WMLMacroCall_Group(this, this, 4, inst);
|
||||
case 5: return new WMLMacroCallParameter_Alternatives(this, this, 5, inst);
|
||||
case 6: return new WMLArrayCall_Group(this, this, 6, inst);
|
||||
case 7: return new WMLMacroDefine_Group(this, this, 7, inst);
|
||||
case 8: return new WMLPreprocIF_Group(this, this, 8, inst);
|
||||
case 9: return new WMLRootExpression_Alternatives(this, this, 9, inst);
|
||||
case 10: return new WMLExpression_Alternatives(this, this, 10, inst);
|
||||
case 11: return new WMLValuedExpression_Alternatives(this, this, 11, inst);
|
||||
case 12: return new WMLTextdomain_NameAssignment(this, this, 12, inst);
|
||||
case 13: return new WMLLuaCode_ValueAssignment(this, this, 13, inst);
|
||||
case 14: return new WMLMacroParameter_Alternatives(this, this, 14, inst);
|
||||
case 15: return new WMLValue_ValueAssignment(this, this, 15, inst);
|
||||
case 16: return new MacroTokens_ValueAssignment(this, this, 16, inst);
|
||||
case 1: return new WMLGrammarElement_Alternatives(this, this, 1, inst);
|
||||
case 2: return new WMLTag_Group(this, this, 2, inst);
|
||||
case 3: return new WMLKey_Group(this, this, 3, inst);
|
||||
case 4: return new WMLKeyValue_Alternatives(this, this, 4, inst);
|
||||
case 5: return new WMLMacroCall_Group(this, this, 5, inst);
|
||||
case 6: return new WMLMacroCallParameter_Alternatives(this, this, 6, inst);
|
||||
case 7: return new WMLArrayCall_Group(this, this, 7, inst);
|
||||
case 8: return new WMLMacroDefine_Group(this, this, 8, inst);
|
||||
case 9: return new WMLPreprocIF_Group(this, this, 9, inst);
|
||||
case 10: return new WMLRootExpression_Alternatives(this, this, 10, inst);
|
||||
case 11: return new WMLExpression_Alternatives(this, this, 11, inst);
|
||||
case 12: return new WMLValuedExpression_Alternatives(this, this, 12, inst);
|
||||
case 13: return new WMLTextdomain_NameAssignment(this, this, 13, inst);
|
||||
case 14: return new WMLLuaCode_ValueAssignment(this, this, 14, inst);
|
||||
case 15: return new WMLMacroParameter_Alternatives(this, this, 15, inst);
|
||||
case 16: return new WMLValue_ValueAssignment(this, this, 16, inst);
|
||||
case 17: return new MacroTokens_ValueAssignment(this, this, 17, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
@ -110,6 +111,215 @@ protected class WMLRoot_ExpressionsAssignment extends AssignmentToken {
|
|||
/************ end Rule WMLRoot ****************/
|
||||
|
||||
|
||||
/************ begin Rule WMLGrammarElement ****************
|
||||
*
|
||||
* // Dummy grammar element to act as the super of all WML grammar elements
|
||||
* WMLGrammarElement:
|
||||
* WMLRoot | WMLValuedExpression | WMLKeyValue | WMLMacroCallParameter;
|
||||
*
|
||||
**/
|
||||
|
||||
// WMLRoot | WMLValuedExpression | WMLKeyValue | WMLMacroCallParameter
|
||||
protected class WMLGrammarElement_Alternatives extends AlternativesToken {
|
||||
|
||||
public WMLGrammarElement_Alternatives(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Alternatives getGrammarElement() {
|
||||
return grammarAccess.getWMLGrammarElementAccess().getAlternatives();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLGrammarElement_WMLRootParserRuleCall_0(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLGrammarElement_WMLValuedExpressionParserRuleCall_1(lastRuleCallOrigin, this, 1, inst);
|
||||
case 2: return new WMLGrammarElement_WMLKeyValueParserRuleCall_2(lastRuleCallOrigin, this, 2, inst);
|
||||
case 3: return new WMLGrammarElement_WMLMacroCallParameterParserRuleCall_3(lastRuleCallOrigin, this, 3, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLArrayCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLKeyRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLLuaCodeRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroDefineRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLPreprocIFRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLRootRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLTagRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLTextdomainRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// WMLRoot
|
||||
protected class WMLGrammarElement_WMLRootParserRuleCall_0 extends RuleCallToken {
|
||||
|
||||
public WMLGrammarElement_WMLRootParserRuleCall_0(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLGrammarElementAccess().getWMLRootParserRuleCall_0();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLRoot_ExpressionsAssignment(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLRootRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLRoot_ExpressionsAssignment.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// WMLValuedExpression
|
||||
protected class WMLGrammarElement_WMLValuedExpressionParserRuleCall_1 extends RuleCallToken {
|
||||
|
||||
public WMLGrammarElement_WMLValuedExpressionParserRuleCall_1(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLGrammarElementAccess().getWMLValuedExpressionParserRuleCall_1();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLValuedExpression_Alternatives(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLKeyRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroDefineRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLPreprocIFRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLTagRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLTextdomainRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLValuedExpression_Alternatives.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// WMLKeyValue
|
||||
protected class WMLGrammarElement_WMLKeyValueParserRuleCall_2 extends RuleCallToken {
|
||||
|
||||
public WMLGrammarElement_WMLKeyValueParserRuleCall_2(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLGrammarElementAccess().getWMLKeyValueParserRuleCall_2();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKeyValue_Alternatives(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getWMLArrayCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLLuaCodeRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLKeyValue_Alternatives.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// WMLMacroCallParameter
|
||||
protected class WMLGrammarElement_WMLMacroCallParameterParserRuleCall_3 extends RuleCallToken {
|
||||
|
||||
public WMLGrammarElement_WMLMacroCallParameterParserRuleCall_3(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
super(lastRuleCallOrigin, next, transitionIndex, eObjectConsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuleCall getGrammarElement() {
|
||||
return grammarAccess.getWMLGrammarElementAccess().getWMLMacroCallParameterParserRuleCall_3();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLMacroCallParameter_Alternatives(this, this, 0, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IEObjectConsumer tryConsume() {
|
||||
if(getEObject().eClass() != grammarAccess.getMacroTokensRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLMacroCallRule().getType().getClassifier() &&
|
||||
getEObject().eClass() != grammarAccess.getWMLValueRule().getType().getClassifier())
|
||||
return null;
|
||||
if(checkForRecursion(WMLMacroCallParameter_Alternatives.class, eObjectConsumer)) return null;
|
||||
return eObjectConsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractToken createFollowerAfterReturn(AbstractToken next, int actIndex, int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex , index, inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/************ end Rule WMLGrammarElement ****************/
|
||||
|
||||
|
||||
/************ begin Rule WMLTag ****************
|
||||
*
|
||||
* WMLTag:
|
||||
|
|
|
@ -102,6 +102,8 @@ ruleWMLRoot returns [EObject current=null]
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleWMLTag
|
||||
entryRuleWMLTag returns [EObject current=null]
|
||||
:
|
||||
|
|
|
@ -365,12 +365,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_LUA_CODE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:15: ( '<<' ( options {greedy=false; } : . )* '>>' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:17: '<<' ( options {greedy=false; } : . )* '>>'
|
||||
{
|
||||
match("<<");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:22: ( options {greedy=false; } : . )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:22: ( options {greedy=false; } : . )*
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
|
@ -395,7 +395,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1347:50: .
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:50: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -425,12 +425,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:13: ( '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:15: '#ifhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifhave");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
|
@ -443,7 +443,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -463,7 +463,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
|
@ -472,9 +472,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:42: ( '\\r' )?
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
|
@ -483,7 +483,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1349:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -515,12 +515,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNHAVE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:14: ( '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:16: '#ifnhave' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifnhave");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:27: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=2;
|
||||
|
@ -533,7 +533,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:27: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -553,7 +553,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:43: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:43: ( ( '\\r' )? '\\n' )?
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
|
@ -562,9 +562,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:44: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:44: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:44: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:44: ( '\\r' )?
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
|
@ -573,7 +573,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1351:44: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:44: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -605,12 +605,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:12: ( '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:14: '#ifdef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifdef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
|
@ -623,7 +623,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -643,7 +643,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
|
@ -652,9 +652,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:40: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
|
@ -663,7 +663,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1353:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -695,12 +695,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_IFNDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:13: ( '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:15: '#ifndef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#ifndef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
|
@ -713,7 +713,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -733,7 +733,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
|
@ -742,9 +742,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt13) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:42: ( '\\r' )?
|
||||
int alt12=2;
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
|
@ -753,7 +753,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1355:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -785,12 +785,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ELSE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:11: ( '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:13: '#else' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#else");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:21: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop14:
|
||||
do {
|
||||
int alt14=2;
|
||||
|
@ -803,7 +803,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt14) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:21: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -823,7 +823,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:37: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:37: ( ( '\\r' )? '\\n' )?
|
||||
int alt16=2;
|
||||
int LA16_0 = input.LA(1);
|
||||
|
||||
|
@ -832,9 +832,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt16) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:38: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:38: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:38: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:38: ( '\\r' )?
|
||||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
|
@ -843,7 +843,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt15) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1357:38: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:38: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -875,12 +875,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDIF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:12: ( '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:14: '#endif' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#endif");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop17:
|
||||
do {
|
||||
int alt17=2;
|
||||
|
@ -893,7 +893,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt17) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -913,7 +913,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt19=2;
|
||||
int LA19_0 = input.LA(1);
|
||||
|
||||
|
@ -922,9 +922,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt19) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:40: ( '\\r' )?
|
||||
int alt18=2;
|
||||
int LA18_0 = input.LA(1);
|
||||
|
||||
|
@ -933,7 +933,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt18) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1359:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -965,12 +965,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_DEFINE;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:13: ( '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:15: '#define' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#define");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop20:
|
||||
do {
|
||||
int alt20=2;
|
||||
|
@ -983,7 +983,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1003,7 +1003,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt22=2;
|
||||
int LA22_0 = input.LA(1);
|
||||
|
||||
|
@ -1012,9 +1012,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt22) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: ( '\\r' )?
|
||||
int alt21=2;
|
||||
int LA21_0 = input.LA(1);
|
||||
|
||||
|
@ -1023,7 +1023,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt21) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1361:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1055,12 +1055,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ENDDEF;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:13: ( '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:15: '#enddef' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#enddef");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:25: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop23:
|
||||
do {
|
||||
int alt23=2;
|
||||
|
@ -1073,7 +1073,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt23) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:25: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1093,7 +1093,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:41: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:41: ( ( '\\r' )? '\\n' )?
|
||||
int alt25=2;
|
||||
int LA25_0 = input.LA(1);
|
||||
|
||||
|
@ -1102,9 +1102,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt25) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:42: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:42: ( '\\r' )?
|
||||
int alt24=2;
|
||||
int LA24_0 = input.LA(1);
|
||||
|
||||
|
@ -1113,7 +1113,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt24) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1363:42: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:42: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1145,12 +1145,12 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_TEXTDOMAIN;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:17: ( '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:19: '#textdomain' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("#textdomain");
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:33: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop26:
|
||||
do {
|
||||
int alt26=2;
|
||||
|
@ -1163,7 +1163,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt26) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:33: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1183,7 +1183,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:49: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:49: ( ( '\\r' )? '\\n' )?
|
||||
int alt28=2;
|
||||
int LA28_0 = input.LA(1);
|
||||
|
||||
|
@ -1192,9 +1192,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt28) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:50: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:50: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:50: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:50: ( '\\r' )?
|
||||
int alt27=2;
|
||||
int LA27_0 = input.LA(1);
|
||||
|
||||
|
@ -1203,7 +1203,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt27) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1365:50: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:50: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
@ -1235,11 +1235,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop29:
|
||||
do {
|
||||
int alt29=3;
|
||||
|
@ -1255,7 +1255,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt29) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
|
||||
{
|
||||
match('\\');
|
||||
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
|
||||
|
@ -1271,7 +1271,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1367:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:61: ~ ( ( '\\\\' | '\"' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1308,10 +1308,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1369:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:11: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ',' )+
|
||||
int cnt30=0;
|
||||
loop30:
|
||||
do {
|
||||
|
@ -1365,8 +1365,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_EOL;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1371:12: ( '\\r' | '\\n' )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:10: ( ( '\\r' | '\\n' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:12: ( '\\r' | '\\n' )
|
||||
{
|
||||
if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
|
||||
input.consume();
|
||||
|
@ -1393,10 +1393,10 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_WS;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:9: ( ( ' ' | '\\t' )+ )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:11: ( ' ' | '\\t' )+
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1373:11: ( ' ' | '\\t' )+
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:11: ( ' ' | '\\t' )+
|
||||
int cnt31=0;
|
||||
loop31:
|
||||
do {
|
||||
|
@ -1450,8 +1450,8 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_ANY_OTHER;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:16: ( . )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1375:18: .
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:16: ( . )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
|
@ -1470,11 +1470,11 @@ public class InternalWMLLexer extends Lexer {
|
|||
try {
|
||||
int _type = RULE_SL_COMMENT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:17: ( '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:19: '#' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match('#');
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:23: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop32:
|
||||
do {
|
||||
int alt32=2;
|
||||
|
@ -1487,7 +1487,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
|
||||
switch (alt32) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:23: ~ ( ( '\\n' | '\\r' ) )
|
||||
{
|
||||
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
|
||||
input.consume();
|
||||
|
@ -1507,7 +1507,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
} while (true);
|
||||
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:39: ( ( '\\r' )? '\\n' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:39: ( ( '\\r' )? '\\n' )?
|
||||
int alt34=2;
|
||||
int LA34_0 = input.LA(1);
|
||||
|
||||
|
@ -1516,9 +1516,9 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt34) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:40: ( '\\r' )? '\\n'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:40: ( '\\r' )? '\\n'
|
||||
{
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:40: ( '\\r' )?
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:40: ( '\\r' )?
|
||||
int alt33=2;
|
||||
int LA33_0 = input.LA(1);
|
||||
|
||||
|
@ -1527,7 +1527,7 @@ public class InternalWMLLexer extends Lexer {
|
|||
}
|
||||
switch (alt33) {
|
||||
case 1 :
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1377:40: '\\r'
|
||||
// ../org.wesnoth/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1379:40: '\\r'
|
||||
{
|
||||
match('\r');
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -32,6 +32,35 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
public RuleCall getExpressionsWMLRootExpressionParserRuleCall_0() { return cExpressionsWMLRootExpressionParserRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLGrammarElementElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLGrammarElement");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cWMLRootParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cWMLValuedExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cWMLKeyValueParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cWMLMacroCallParameterParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
|
||||
|
||||
//// Dummy grammar element to act as the super of all WML grammar elements
|
||||
//WMLGrammarElement:
|
||||
// WMLRoot | WMLValuedExpression | WMLKeyValue | WMLMacroCallParameter;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//WMLRoot | WMLValuedExpression | WMLKeyValue | WMLMacroCallParameter
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//WMLRoot
|
||||
public RuleCall getWMLRootParserRuleCall_0() { return cWMLRootParserRuleCall_0; }
|
||||
|
||||
//WMLValuedExpression
|
||||
public RuleCall getWMLValuedExpressionParserRuleCall_1() { return cWMLValuedExpressionParserRuleCall_1; }
|
||||
|
||||
//WMLKeyValue
|
||||
public RuleCall getWMLKeyValueParserRuleCall_2() { return cWMLKeyValueParserRuleCall_2; }
|
||||
|
||||
//WMLMacroCallParameter
|
||||
public RuleCall getWMLMacroCallParameterParserRuleCall_3() { return cWMLMacroCallParameterParserRuleCall_3; }
|
||||
}
|
||||
|
||||
public class WMLTagElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLTag");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
|
@ -626,6 +655,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
|
||||
|
||||
private WMLRootElements pWMLRoot;
|
||||
private WMLGrammarElementElements pWMLGrammarElement;
|
||||
private WMLTagElements pWMLTag;
|
||||
private WMLKeyElements pWMLKey;
|
||||
private WMLKeyValueElements pWMLKeyValue;
|
||||
|
@ -682,6 +712,17 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLRootAccess().getRule();
|
||||
}
|
||||
|
||||
//// Dummy grammar element to act as the super of all WML grammar elements
|
||||
//WMLGrammarElement:
|
||||
// WMLRoot | WMLValuedExpression | WMLKeyValue | WMLMacroCallParameter;
|
||||
public WMLGrammarElementElements getWMLGrammarElementAccess() {
|
||||
return (pWMLGrammarElement != null) ? pWMLGrammarElement : (pWMLGrammarElement = new WMLGrammarElementElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLGrammarElementRule() {
|
||||
return getWMLGrammarElementAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLTag:
|
||||
// "[" plus="+"? name=ID "]" Expressions+=WMLExpression* "[/" endName=ID "]";
|
||||
public WMLTagElements getWMLTagAccess() {
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Grammar Element</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLGrammarElement()
|
||||
* @model superTypes="org.wesnoth.wml.ESerializable"
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLGrammarElement extends EObject, Serializable
|
||||
{
|
||||
} // WMLGrammarElement
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -18,6 +17,6 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKeyValue extends EObject
|
||||
public interface WMLKeyValue extends WMLGrammarElement
|
||||
{
|
||||
} // WMLKeyValue
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -18,6 +17,6 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCallParameter extends EObject
|
||||
public interface WMLMacroCallParameter extends WMLGrammarElement
|
||||
{
|
||||
} // WMLMacroCallParameter
|
||||
|
|
|
@ -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 Root</b></em>'.
|
||||
|
@ -26,7 +24,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRoot extends EObject
|
||||
public interface WMLRoot extends WMLGrammarElement
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -18,6 +17,6 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValuedExpression extends EObject
|
||||
public interface WMLValuedExpression extends WMLGrammarElement
|
||||
{
|
||||
} // WMLValuedExpression
|
||||
|
|
|
@ -35,6 +35,15 @@ public interface WmlFactory extends EFactory
|
|||
*/
|
||||
WMLRoot createWMLRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Grammar Element</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Grammar Element</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLGrammarElement createWMLGrammarElement();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -60,6 +60,44 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
WmlPackage eINSTANCE = org.wesnoth.wml.impl.WmlPackageImpl.init();
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link java.io.Serializable <em>ESerializable</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see java.io.Serializable
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getESerializable()
|
||||
* @generated
|
||||
*/
|
||||
int ESERIALIZABLE = 18;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>ESerializable</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int ESERIALIZABLE_FEATURE_COUNT = 0;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLGrammarElementImpl <em>WML Grammar Element</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.WMLGrammarElementImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLGrammarElement()
|
||||
* @generated
|
||||
*/
|
||||
int WML_GRAMMAR_ELEMENT = 1;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Grammar Element</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_GRAMMAR_ELEMENT_FEATURE_COUNT = ESERIALIZABLE_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLRootImpl <em>WML Root</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -77,7 +115,7 @@ public interface WmlPackage extends EPackage
|
|||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_ROOT__EXPRESSIONS = 0;
|
||||
int WML_ROOT__EXPRESSIONS = WML_GRAMMAR_ELEMENT_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Root</em>' class.
|
||||
|
@ -86,7 +124,7 @@ public interface WmlPackage extends EPackage
|
|||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_ROOT_FEATURE_COUNT = 1;
|
||||
int WML_ROOT_FEATURE_COUNT = WML_GRAMMAR_ELEMENT_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLValuedExpressionImpl <em>WML Valued Expression</em>}' class.
|
||||
|
@ -96,7 +134,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLValuedExpression()
|
||||
* @generated
|
||||
*/
|
||||
int WML_VALUED_EXPRESSION = 11;
|
||||
int WML_VALUED_EXPRESSION = 12;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Valued Expression</em>' class.
|
||||
|
@ -105,7 +143,7 @@ public interface WmlPackage extends EPackage
|
|||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_VALUED_EXPRESSION_FEATURE_COUNT = 0;
|
||||
int WML_VALUED_EXPRESSION_FEATURE_COUNT = WML_GRAMMAR_ELEMENT_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLExpressionImpl <em>WML Expression</em>}' class.
|
||||
|
@ -115,7 +153,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLExpression()
|
||||
* @generated
|
||||
*/
|
||||
int WML_EXPRESSION = 10;
|
||||
int WML_EXPRESSION = 11;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -152,7 +190,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLRootExpression()
|
||||
* @generated
|
||||
*/
|
||||
int WML_ROOT_EXPRESSION = 9;
|
||||
int WML_ROOT_EXPRESSION = 10;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -189,7 +227,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLTag()
|
||||
* @generated
|
||||
*/
|
||||
int WML_TAG = 1;
|
||||
int WML_TAG = 2;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -280,7 +318,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLKey()
|
||||
* @generated
|
||||
*/
|
||||
int WML_KEY = 2;
|
||||
int WML_KEY = 3;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -362,7 +400,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLKeyValue()
|
||||
* @generated
|
||||
*/
|
||||
int WML_KEY_VALUE = 3;
|
||||
int WML_KEY_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Key Value</em>' class.
|
||||
|
@ -371,7 +409,7 @@ public interface WmlPackage extends EPackage
|
|||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_KEY_VALUE_FEATURE_COUNT = 0;
|
||||
int WML_KEY_VALUE_FEATURE_COUNT = WML_GRAMMAR_ELEMENT_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLMacroCallImpl <em>WML Macro Call</em>}' class.
|
||||
|
@ -381,7 +419,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLMacroCall()
|
||||
* @generated
|
||||
*/
|
||||
int WML_MACRO_CALL = 4;
|
||||
int WML_MACRO_CALL = 5;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -445,7 +483,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLMacroCallParameter()
|
||||
* @generated
|
||||
*/
|
||||
int WML_MACRO_CALL_PARAMETER = 5;
|
||||
int WML_MACRO_CALL_PARAMETER = 6;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>WML Macro Call Parameter</em>' class.
|
||||
|
@ -454,7 +492,7 @@ public interface WmlPackage extends EPackage
|
|||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int WML_MACRO_CALL_PARAMETER_FEATURE_COUNT = 0;
|
||||
int WML_MACRO_CALL_PARAMETER_FEATURE_COUNT = WML_GRAMMAR_ELEMENT_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLArrayCallImpl <em>WML Array Call</em>}' class.
|
||||
|
@ -464,7 +502,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLArrayCall()
|
||||
* @generated
|
||||
*/
|
||||
int WML_ARRAY_CALL = 6;
|
||||
int WML_ARRAY_CALL = 7;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' containment reference list.
|
||||
|
@ -492,7 +530,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLMacroDefine()
|
||||
* @generated
|
||||
*/
|
||||
int WML_MACRO_DEFINE = 7;
|
||||
int WML_MACRO_DEFINE = 8;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -547,7 +585,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLPreprocIF()
|
||||
* @generated
|
||||
*/
|
||||
int WML_PREPROC_IF = 8;
|
||||
int WML_PREPROC_IF = 9;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -620,7 +658,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLTextdomain()
|
||||
* @generated
|
||||
*/
|
||||
int WML_TEXTDOMAIN = 12;
|
||||
int WML_TEXTDOMAIN = 13;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
|
@ -657,7 +695,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLLuaCode()
|
||||
* @generated
|
||||
*/
|
||||
int WML_LUA_CODE = 13;
|
||||
int WML_LUA_CODE = 14;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
|
@ -685,7 +723,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLMacroParameter()
|
||||
* @generated
|
||||
*/
|
||||
int WML_MACRO_PARAMETER = 14;
|
||||
int WML_MACRO_PARAMETER = 15;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
|
@ -713,7 +751,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLValue()
|
||||
* @generated
|
||||
*/
|
||||
int WML_VALUE = 15;
|
||||
int WML_VALUE = 16;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
|
@ -741,7 +779,7 @@ public interface WmlPackage extends EPackage
|
|||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getMacroTokens()
|
||||
* @generated
|
||||
*/
|
||||
int MACRO_TOKENS = 16;
|
||||
int MACRO_TOKENS = 17;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Value</b></em>' attribute.
|
||||
|
@ -783,6 +821,16 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
EReference getWMLRoot_Expressions();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.WMLGrammarElement <em>WML Grammar Element</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>WML Grammar Element</em>'.
|
||||
* @see org.wesnoth.wml.WMLGrammarElement
|
||||
* @generated
|
||||
*/
|
||||
EClass getWMLGrammarElement();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.wesnoth.wml.WMLTag <em>WML Tag</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -1218,6 +1266,17 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
EClass getMacroTokens();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link java.io.Serializable <em>ESerializable</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>ESerializable</em>'.
|
||||
* @see java.io.Serializable
|
||||
* @model instanceClass="java.io.Serializable"
|
||||
* @generated
|
||||
*/
|
||||
EClass getESerializable();
|
||||
|
||||
/**
|
||||
* Returns the factory that creates the instances of the model.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -1259,6 +1318,16 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
EReference WML_ROOT__EXPRESSIONS = eINSTANCE.getWMLRoot_Expressions();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLGrammarElementImpl <em>WML Grammar Element</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.wesnoth.wml.impl.WMLGrammarElementImpl
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getWMLGrammarElement()
|
||||
* @generated
|
||||
*/
|
||||
EClass WML_GRAMMAR_ELEMENT = eINSTANCE.getWMLGrammarElement();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLTagImpl <em>WML Tag</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -1619,6 +1688,16 @@ public interface WmlPackage extends EPackage
|
|||
*/
|
||||
EClass MACRO_TOKENS = eINSTANCE.getMacroTokens();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link java.io.Serializable <em>ESerializable</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see java.io.Serializable
|
||||
* @see org.wesnoth.wml.impl.WmlPackageImpl#getESerializable()
|
||||
* @generated
|
||||
*/
|
||||
EClass ESERIALIZABLE = eINSTANCE.getESerializable();
|
||||
|
||||
}
|
||||
|
||||
} //WmlPackage
|
||||
|
|
|
@ -22,6 +22,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class MacroTokensImpl extends WMLMacroParameterImpl implements MacroTokens
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -37,6 +37,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -33,6 +33,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLGrammarElement;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Grammar Element</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLGrammarElementImpl extends MinimalEObjectImpl.Container implements WMLGrammarElement
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLGrammarElementImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_GRAMMAR_ELEMENT;
|
||||
}
|
||||
|
||||
} //WMLGrammarElementImpl
|
|
@ -44,6 +44,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -8,8 +8,6 @@ package org.wesnoth.wml.impl;
|
|||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
|
@ -22,8 +20,15 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyValueImpl extends MinimalEObjectImpl.Container implements WMLKeyValue
|
||||
public class WMLKeyValueImpl extends WMLGrammarElementImpl implements WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -30,6 +30,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLLuaCodeImpl extends WMLKeyValueImpl implements WMLLuaCode
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -49,6 +49,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -8,8 +8,6 @@ package org.wesnoth.wml.impl;
|
|||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCallParameter;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
|
@ -22,8 +20,15 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroCallParameterImpl extends MinimalEObjectImpl.Container implements WMLMacroCallParameter
|
||||
public class WMLMacroCallParameterImpl extends WMLGrammarElementImpl implements WMLMacroCallParameter
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -41,6 +41,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLMacroDefineImpl extends WMLRootExpressionImpl implements WMLMacroDefine
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -30,6 +30,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLMacroParameterImpl extends WMLMacroCallParameterImpl implements WMLMacroParameter
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -43,6 +43,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLPreprocIFImpl extends WMLRootExpressionImpl implements WMLPreprocIF
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -22,6 +22,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLRootExpressionImpl extends WMLExpressionImpl implements WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -15,8 +15,6 @@ import org.eclipse.emf.common.util.EList;
|
|||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
|
@ -37,8 +35,15 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
||||
public class WMLRootImpl extends WMLGrammarElementImpl implements WMLRoot
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -46,6 +46,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getPlus() <em>Plus</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -22,6 +22,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLTextdomainImpl extends WMLRootExpressionImpl implements WMLTextdomain
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -33,6 +33,13 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*/
|
||||
public class WMLValueImpl extends WMLKeyValueImpl implements WMLValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -8,8 +8,6 @@ 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;
|
||||
|
||||
|
@ -22,8 +20,15 @@ import org.wesnoth.wml.WmlPackage;
|
|||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValuedExpressionImpl extends MinimalEObjectImpl.Container implements WMLValuedExpression
|
||||
public class WMLValuedExpressionImpl extends WMLGrammarElementImpl implements WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -69,6 +69,7 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
switch (eClass.getClassifierID())
|
||||
{
|
||||
case WmlPackage.WML_ROOT: return createWMLRoot();
|
||||
case WmlPackage.WML_GRAMMAR_ELEMENT: return createWMLGrammarElement();
|
||||
case WmlPackage.WML_TAG: return createWMLTag();
|
||||
case WmlPackage.WML_KEY: return createWMLKey();
|
||||
case WmlPackage.WML_KEY_VALUE: return createWMLKeyValue();
|
||||
|
@ -101,6 +102,17 @@ public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
|||
return wmlRoot;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLGrammarElement createWMLGrammarElement()
|
||||
{
|
||||
WMLGrammarElementImpl wmlGrammarElement = new WMLGrammarElementImpl();
|
||||
return wmlGrammarElement;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EGenericType;
|
||||
|
@ -18,6 +20,7 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
|
|||
import org.wesnoth.wml.MacroTokens;
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLExpression;
|
||||
import org.wesnoth.wml.WMLGrammarElement;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WMLLuaCode;
|
||||
|
@ -50,6 +53,13 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
private EClass wmlRootEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlGrammarElementEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -162,6 +172,13 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
*/
|
||||
private EClass macroTokensEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass eSerializableEClass = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
|
@ -245,6 +262,16 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLGrammarElement()
|
||||
{
|
||||
return wmlGrammarElementEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -655,6 +682,16 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
return macroTokensEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getESerializable()
|
||||
{
|
||||
return eSerializableEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -688,6 +725,8 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
wmlRootEClass = createEClass(WML_ROOT);
|
||||
createEReference(wmlRootEClass, WML_ROOT__EXPRESSIONS);
|
||||
|
||||
wmlGrammarElementEClass = createEClass(WML_GRAMMAR_ELEMENT);
|
||||
|
||||
wmlTagEClass = createEClass(WML_TAG);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__PLUS);
|
||||
createEReference(wmlTagEClass, WML_TAG__EXPRESSIONS);
|
||||
|
@ -744,6 +783,8 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
wmlValueEClass = createEClass(WML_VALUE);
|
||||
|
||||
macroTokensEClass = createEClass(MACRO_TOKENS);
|
||||
|
||||
eSerializableEClass = createEClass(ESERIALIZABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -775,16 +816,21 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
// Set bounds for type parameters
|
||||
|
||||
// Add supertypes to classes
|
||||
wmlRootEClass.getESuperTypes().add(this.getWMLGrammarElement());
|
||||
wmlGrammarElementEClass.getESuperTypes().add(this.getESerializable());
|
||||
wmlTagEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlKeyEClass.getESuperTypes().add(this.getWMLExpression());
|
||||
wmlKeyValueEClass.getESuperTypes().add(this.getWMLGrammarElement());
|
||||
wmlMacroCallEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlMacroCallEClass.getESuperTypes().add(this.getWMLMacroCallParameter());
|
||||
wmlMacroCallEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlMacroCallParameterEClass.getESuperTypes().add(this.getWMLGrammarElement());
|
||||
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());
|
||||
wmlValuedExpressionEClass.getESuperTypes().add(this.getWMLGrammarElement());
|
||||
wmlTextdomainEClass.getESuperTypes().add(this.getWMLRootExpression());
|
||||
wmlLuaCodeEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlMacroParameterEClass.getESuperTypes().add(this.getWMLMacroCallParameter());
|
||||
|
@ -797,6 +843,8 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
initEClass(wmlRootEClass, WMLRoot.class, "WMLRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
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(wmlGrammarElementEClass, WMLGrammarElement.class, "WMLGrammarElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(wmlTagEClass, WMLTag.class, "WMLTag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLTag_Plus(), ecorePackage.getEString(), "plus", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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);
|
||||
|
@ -882,6 +930,8 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
|||
|
||||
initEClass(macroTokensEClass, MacroTokens.class, "MacroTokens", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(eSerializableEClass, Serializable.class, "ESerializable", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
// Create resource
|
||||
createResource(eNS_URI);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
*/
|
||||
package org.wesnoth.wml.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclipse.emf.common.notify.Adapter;
|
||||
import org.eclipse.emf.common.notify.Notifier;
|
||||
|
||||
|
@ -84,6 +86,11 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return createWMLRootAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLGrammarElement(WMLGrammarElement object)
|
||||
{
|
||||
return createWMLGrammarElementAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTag(WMLTag object)
|
||||
{
|
||||
return createWMLTagAdapter();
|
||||
|
@ -164,6 +171,11 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return createMacroTokensAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseESerializable(Serializable object)
|
||||
{
|
||||
return createESerializableAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter defaultCase(EObject object)
|
||||
{
|
||||
return createEObjectAdapter();
|
||||
|
@ -200,6 +212,21 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLGrammarElement <em>WML Grammar Element</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.WMLGrammarElement
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLGrammarElementAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTag <em>WML Tag</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -440,6 +467,21 @@ public class WmlAdapterFactory extends AdapterFactoryImpl
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link java.io.Serializable <em>ESerializable</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 java.io.Serializable
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createESerializableAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for the default case.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
*/
|
||||
package org.wesnoth.wml.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
|
||||
|
@ -80,6 +82,16 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
{
|
||||
WMLRoot wmlRoot = (WMLRoot)theEObject;
|
||||
T result = caseWMLRoot(wmlRoot);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlRoot);
|
||||
if (result == null) result = caseESerializable(wmlRoot);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_GRAMMAR_ELEMENT:
|
||||
{
|
||||
WMLGrammarElement wmlGrammarElement = (WMLGrammarElement)theEObject;
|
||||
T result = caseWMLGrammarElement(wmlGrammarElement);
|
||||
if (result == null) result = caseESerializable(wmlGrammarElement);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -90,6 +102,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = caseWMLRootExpression(wmlTag);
|
||||
if (result == null) result = caseWMLExpression(wmlTag);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlTag);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlTag);
|
||||
if (result == null) result = caseESerializable(wmlTag);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -99,6 +113,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
T result = caseWMLKey(wmlKey);
|
||||
if (result == null) result = caseWMLExpression(wmlKey);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlKey);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlKey);
|
||||
if (result == null) result = caseESerializable(wmlKey);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -106,6 +122,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
{
|
||||
WMLKeyValue wmlKeyValue = (WMLKeyValue)theEObject;
|
||||
T result = caseWMLKeyValue(wmlKeyValue);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlKeyValue);
|
||||
if (result == null) result = caseESerializable(wmlKeyValue);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -117,7 +135,9 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = caseWMLMacroCallParameter(wmlMacroCall);
|
||||
if (result == null) result = caseWMLRootExpression(wmlMacroCall);
|
||||
if (result == null) result = caseWMLExpression(wmlMacroCall);
|
||||
if (result == null) result = caseESerializable(wmlMacroCall);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlMacroCall);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlMacroCall);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -125,6 +145,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
{
|
||||
WMLMacroCallParameter wmlMacroCallParameter = (WMLMacroCallParameter)theEObject;
|
||||
T result = caseWMLMacroCallParameter(wmlMacroCallParameter);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlMacroCallParameter);
|
||||
if (result == null) result = caseESerializable(wmlMacroCallParameter);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -133,6 +155,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
WMLArrayCall wmlArrayCall = (WMLArrayCall)theEObject;
|
||||
T result = caseWMLArrayCall(wmlArrayCall);
|
||||
if (result == null) result = caseWMLKeyValue(wmlArrayCall);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlArrayCall);
|
||||
if (result == null) result = caseESerializable(wmlArrayCall);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -143,6 +167,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = caseWMLRootExpression(wmlMacroDefine);
|
||||
if (result == null) result = caseWMLExpression(wmlMacroDefine);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlMacroDefine);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlMacroDefine);
|
||||
if (result == null) result = caseESerializable(wmlMacroDefine);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -153,6 +179,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = caseWMLRootExpression(wmlPreprocIF);
|
||||
if (result == null) result = caseWMLExpression(wmlPreprocIF);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlPreprocIF);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlPreprocIF);
|
||||
if (result == null) result = caseESerializable(wmlPreprocIF);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -162,6 +190,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
T result = caseWMLRootExpression(wmlRootExpression);
|
||||
if (result == null) result = caseWMLExpression(wmlRootExpression);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlRootExpression);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlRootExpression);
|
||||
if (result == null) result = caseESerializable(wmlRootExpression);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -170,6 +200,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
WMLExpression wmlExpression = (WMLExpression)theEObject;
|
||||
T result = caseWMLExpression(wmlExpression);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlExpression);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlExpression);
|
||||
if (result == null) result = caseESerializable(wmlExpression);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -177,6 +209,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
{
|
||||
WMLValuedExpression wmlValuedExpression = (WMLValuedExpression)theEObject;
|
||||
T result = caseWMLValuedExpression(wmlValuedExpression);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlValuedExpression);
|
||||
if (result == null) result = caseESerializable(wmlValuedExpression);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -187,6 +221,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = caseWMLRootExpression(wmlTextdomain);
|
||||
if (result == null) result = caseWMLExpression(wmlTextdomain);
|
||||
if (result == null) result = caseWMLValuedExpression(wmlTextdomain);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlTextdomain);
|
||||
if (result == null) result = caseESerializable(wmlTextdomain);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -195,6 +231,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
WMLLuaCode wmlLuaCode = (WMLLuaCode)theEObject;
|
||||
T result = caseWMLLuaCode(wmlLuaCode);
|
||||
if (result == null) result = caseWMLKeyValue(wmlLuaCode);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlLuaCode);
|
||||
if (result == null) result = caseESerializable(wmlLuaCode);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -203,6 +241,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
WMLMacroParameter wmlMacroParameter = (WMLMacroParameter)theEObject;
|
||||
T result = caseWMLMacroParameter(wmlMacroParameter);
|
||||
if (result == null) result = caseWMLMacroCallParameter(wmlMacroParameter);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlMacroParameter);
|
||||
if (result == null) result = caseESerializable(wmlMacroParameter);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -214,6 +254,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
if (result == null) result = caseWMLValuedExpression(wmlValue);
|
||||
if (result == null) result = caseWMLMacroParameter(wmlValue);
|
||||
if (result == null) result = caseWMLMacroCallParameter(wmlValue);
|
||||
if (result == null) result = caseWMLGrammarElement(wmlValue);
|
||||
if (result == null) result = caseESerializable(wmlValue);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -223,6 +265,8 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
T result = caseMacroTokens(macroTokens);
|
||||
if (result == null) result = caseWMLMacroParameter(macroTokens);
|
||||
if (result == null) result = caseWMLMacroCallParameter(macroTokens);
|
||||
if (result == null) result = caseWMLGrammarElement(macroTokens);
|
||||
if (result == null) result = caseESerializable(macroTokens);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
|
@ -246,6 +290,22 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Grammar Element</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 Grammar Element</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLGrammarElement(WMLGrammarElement object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -502,6 +562,22 @@ public class WmlSwitch<T> extends Switch<T>
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>ESerializable</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>ESerializable</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseESerializable(Serializable object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
|
|
|
@ -8,12 +8,17 @@ import "http://www.eclipse.org/emf/2002/Ecore" as ecore
|
|||
WMLRoot:
|
||||
Expressions += WMLRootExpression*;
|
||||
|
||||
// Dummy grammar element to act as the super of all WML grammar elements
|
||||
WMLGrammarElement:
|
||||
WMLRoot | WMLValuedExpression | WMLKeyValue | WMLMacroCallParameter
|
||||
;
|
||||
|
||||
WMLTag:
|
||||
'[' (plus='+')? name=ID ']'
|
||||
Expressions += WMLExpression*
|
||||
'[/' endName = ID ']'
|
||||
;
|
||||
|
||||
|
||||
WMLKey hidden(WS):
|
||||
name = ID '=' values += WMLKeyValue* (EOL? '+' EOL? values += WMLKeyValue+)* eol=(EOL|SL_COMMENT);
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ process( GeneratedMetamodel this ):
|
|||
process( ePackage );
|
||||
|
||||
process( EPackage this ):
|
||||
eClassifiers.add( ESerializable() ) ->
|
||||
eClassifiers.process();
|
||||
|
||||
process( EClassifier this ):
|
||||
|
@ -12,7 +13,6 @@ process( EClassifier this ):
|
|||
|
||||
process( EClass this ):
|
||||
eStructuralFeatures.process() ->
|
||||
|
||||
// enrich the grammar elements with schema-specific attributes
|
||||
if name == "WMLExpression" then {
|
||||
createAttribute( "_Cardinality", echar() , " " ) ->
|
||||
|
@ -34,6 +34,7 @@ process( EClass this ):
|
|||
wmlType( "WMLKey" ) )
|
||||
|
||||
} else if name == "WMLTag" then {
|
||||
//eSuperTypes.add( ESerializable() )->
|
||||
createAttribute( "_InhertedTagName", estring() , "" ) ->
|
||||
createAttribute( "_NeedingExpansion", eboolean() , "false" ) ->
|
||||
createAttribute( "_Description", estring(), "" ) ->
|
||||
|
@ -48,18 +49,21 @@ process( EClass this ):
|
|||
return result;", ecoreType( "EEList" ),
|
||||
wmlType( "WMLTag" ) ) ->
|
||||
createGenericOperation( "getWMLKeys",
|
||||
"EList<WMLKey> result = new org.eclipse.emf.common.util.BasicEList<WMLKey>();
|
||||
"EList<WMLKey> result = new org.eclipse.emf.common.util.BasicEList<WMLKey>();
|
||||
for ( WMLExpression expression : getExpressions( ) ) {
|
||||
if ( expression.isWMLKey( ) )
|
||||
result.add( expression.asWMLKey( ) );
|
||||
}
|
||||
|
||||
return result;", ecoreType( "EEList" ),
|
||||
wmlType( "WMLKey" ) )
|
||||
wmlType( "WMLKey" ) )
|
||||
} else if name == "WMLKey" then {
|
||||
createAttribute( "_Enum", eboolean(), "false" ) ->
|
||||
createAttribute( "_Translatable", eboolean(), "false" ) ->
|
||||
createAttribute( "_DataType", estring(), "" )
|
||||
} else if name == "WMLGrammarElement" then {
|
||||
// make all WML Grammar inherit from Serializable
|
||||
eSuperTypes.add( ESerializable() )
|
||||
};
|
||||
|
||||
process( EStructuralFeature this ):
|
||||
|
@ -109,12 +113,21 @@ create EAttribute this createAttribute( EClass owner, String name, EDataType typ
|
|||
setDefaultValueLiteral( defValue ) ->
|
||||
// add attribute to class
|
||||
owner.eStructuralFeatures.add( this );
|
||||
|
||||
|
||||
create EClass ESerializable() :
|
||||
setName( "ESerializable" ) ->
|
||||
setInterface( true ) ->
|
||||
setAbstract( true ) ->
|
||||
setInstanceClassName( "java.io.Serializable" ) ->
|
||||
this;
|
||||
|
||||
EDataType estring(): ecoreType( "EString" );
|
||||
EDataType echar(): ecoreType( "EChar" );
|
||||
EDataType eboolean(): ecoreType( "EBoolean" );
|
||||
|
||||
EClass wmlClass( String name ):
|
||||
wmlPackage().getEClassifier( name );
|
||||
|
||||
EClassifier wmlType( String name ):
|
||||
wmlPackage().getEClassifier( name );
|
||||
|
||||
|
|
|
@ -506,6 +506,7 @@ public class WMLTools
|
|||
GUIUtils.showWarnMessageBox( Messages.WMLTools_45 );
|
||||
return false;
|
||||
}
|
||||
|
||||
File wmlToolFile = new File( paths.getWMLToolsDir( ) + wmlTool );
|
||||
|
||||
if (!wmlToolFile.exists())
|
||||
|
|
Loading…
Add table
Reference in a new issue