diff options
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java')
-rw-r--r-- | plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java | 2432 |
1 files changed, 1186 insertions, 1246 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java index 2a51ad94cd4..5dc75d0984b 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java @@ -1,7 +1,5 @@ package org.eclipse.papyrus.uml.textedit.common.xtext.parser.antlr.internal; -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. import org.antlr.runtime.BaseRecognizer; import org.antlr.runtime.CharStream; import org.antlr.runtime.DFA; @@ -11,1253 +9,1195 @@ import org.antlr.runtime.MismatchedSetException; import org.antlr.runtime.NoViableAltException; import org.antlr.runtime.RecognitionException; import org.antlr.runtime.RecognizerSharedState; +// Hack: Use our own Lexer superclass by means of import. +// Currently there is no other way to specify the superclass for the lexer. import org.eclipse.xtext.parser.antlr.Lexer; @SuppressWarnings("all") public class InternalUmlCommonLexer extends Lexer { - public static final int RULE_ID = 4; - public static final int RULE_STRING = 7; - public static final int T__12 = 12; - public static final int T__13 = 13; - public static final int RULE_ANY_OTHER = 11; - public static final int RULE_INT = 5; - public static final int RULE_INTEGER_VALUE = 6; - public static final int RULE_WS = 10; - public static final int RULE_SL_COMMENT = 9; - public static final int EOF = -1; - public static final int RULE_ML_COMMENT = 8; - - // delegates - // delegators - - public InternalUmlCommonLexer() { - ; - } - - public InternalUmlCommonLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - - public InternalUmlCommonLexer(CharStream input, RecognizerSharedState state) { - super(input, state); - - } - - @Override - public String getGrammarFileName() { - return "../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g"; - } - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:11:7: ( '::' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:11:9: '::' - { - match("::"); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "T__12" - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:12:7: ( '*' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:12:9: '*' - { - match('*'); - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "T__13" - - // $ANTLR start "RULE_INTEGER_VALUE" - public final void mRULE_INTEGER_VALUE() throws RecognitionException { - try { - int _type = RULE_INTEGER_VALUE; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? - // '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' - // .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? - // '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) - int alt13 = 4; - int LA13_0 = input.LA(1); - - if ((LA13_0 == '0')) { - switch (input.LA(2)) { - case 'B': - case 'b': { - alt13 = 2; - } - break; - case 'X': - case 'x': { - alt13 = 3; - } - break; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '_': { - alt13 = 4; - } - break; - default: - alt13 = 1; - } - - } - else if (((LA13_0 >= '1' && LA13_0 <= '9'))) { - alt13 = 1; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 13, 0, input); - - throw nvae; - } - switch (alt13) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) - int alt3 = 2; - int LA3_0 = input.LA(1); - - if ((LA3_0 == '0')) { - alt3 = 1; - } - else if (((LA3_0 >= '1' && LA3_0 <= '9'))) { - alt3 = 2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:24: '0' - { - match('0'); - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:28: '1' .. '9' ( ( '_' )? '0' .. '9' )* - { - matchRange('1', '9'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:37: ( ( '_' )? '0' .. '9' )* - loop2: do { - int alt2 = 2; - int LA2_0 = input.LA(1); - - if (((LA2_0 >= '0' && LA2_0 <= '9') || LA2_0 == '_')) { - alt2 = 1; - } - - - switch (alt2) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:38: ( '_' )? '0' .. '9' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:38: ( '_' )? - int alt1 = 2; - int LA1_0 = input.LA(1); - - if ((LA1_0 == '_')) { - alt1 = 1; - } - switch (alt1) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:38: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '9'); - - } - break; - - default: - break loop2; - } - } while (true); - - - } - break; - - } - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:55: ( '0b' | '0B' ) - int alt4 = 2; - int LA4_0 = input.LA(1); - - if ((LA4_0 == '0')) { - int LA4_1 = input.LA(2); - - if ((LA4_1 == 'b')) { - alt4 = 1; - } - else if ((LA4_1 == 'B')) { - alt4 = 2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 4, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 4, 0, input); - - throw nvae; - } - switch (alt4) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:56: '0b' - { - match("0b"); - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:61: '0B' - { - match("0B"); - - - } - break; - - } - - matchRange('0', '1'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:76: ( ( '_' )? '0' .. '1' )* - loop6: do { - int alt6 = 2; - int LA6_0 = input.LA(1); - - if (((LA6_0 >= '0' && LA6_0 <= '1') || LA6_0 == '_')) { - alt6 = 1; - } - - - switch (alt6) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:77: ( '_' )? '0' .. '1' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:77: ( '_' )? - int alt5 = 2; - int LA5_0 = input.LA(1); - - if ((LA5_0 == '_')) { - alt5 = 1; - } - switch (alt5) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:77: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '1'); - - } - break; - - default: - break loop6; - } - } while (true); - - - } - break; - case 3: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' - // .. 'f' | 'A' .. 'F' ) )* - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:93: ( '0x' | '0X' ) - int alt7 = 2; - int LA7_0 = input.LA(1); - - if ((LA7_0 == '0')) { - int LA7_1 = input.LA(2); - - if ((LA7_1 == 'x')) { - alt7 = 1; - } - else if ((LA7_1 == 'X')) { - alt7 = 2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 7, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 7, 0, input); - - throw nvae; - } - switch (alt7) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:94: '0x' - { - match("0x"); - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:99: '0X' - { - match("0X"); - - - } - break; - - } - - if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* - loop9: do { - int alt9 = 2; - int LA9_0 = input.LA(1); - - if (((LA9_0 >= '0' && LA9_0 <= '9') || (LA9_0 >= 'A' && LA9_0 <= 'F') || LA9_0 == '_' || (LA9_0 >= 'a' && LA9_0 <= 'f'))) { - alt9 = 1; - } - - - switch (alt9) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:135: ( '_' )? - int alt8 = 2; - int LA8_0 = input.LA(1); - - if ((LA8_0 == '_')) { - alt8 = 1; - } - switch (alt8) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:135: '_' - { - match('_'); - - } - break; - - } - - if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop9; - } - } while (true); - - - } - break; - case 4: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* - { - match('0'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:175: ( '_' )? - int alt10 = 2; - int LA10_0 = input.LA(1); - - if ((LA10_0 == '_')) { - alt10 = 1; - } - switch (alt10) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:175: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '7'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:189: ( ( '_' )? '0' .. '7' )* - loop12: do { - int alt12 = 2; - int LA12_0 = input.LA(1); - - if (((LA12_0 >= '0' && LA12_0 <= '7') || LA12_0 == '_')) { - alt12 = 1; - } - - - switch (alt12) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:190: ( '_' )? '0' .. '7' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:190: ( '_' )? - int alt11 = 2; - int LA11_0 = input.LA(1); - - if ((LA11_0 == '_')) { - alt11 = 1; - } - switch (alt11) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:190: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '7'); - - } - break; - - default: - break loop12; - } - } while (true); - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_INTEGER_VALUE" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' - // ( options {greedy=false; } : . )* '\\'' ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' - // ( options {greedy=false; } : . )* '\\'' ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | - // '\\'' ( options {greedy=false; } : . )* '\\'' ) - int alt16 = 2; - int LA16_0 = input.LA(1); - - if (((LA16_0 >= 'A' && LA16_0 <= 'Z') || LA16_0 == '_' || (LA16_0 >= 'a' && LA16_0 <= 'z'))) { - alt16 = 1; - } - else if ((LA16_0 == '\'')) { - alt16 = 2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 16, 0, input); - - throw nvae; - } - switch (alt16) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop14: do { - int alt14 = 2; - int LA14_0 = input.LA(1); - - if (((LA14_0 >= '0' && LA14_0 <= '9') || (LA14_0 >= 'A' && LA14_0 <= 'Z') || LA14_0 == '_' || (LA14_0 >= 'a' && LA14_0 <= 'z'))) { - alt14 = 1; - } - - - switch (alt14) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g: - { - if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop14; - } - } while (true); - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:70: '\\'' ( options {greedy=false; } : . )* '\\'' - { - match('\''); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:75: ( options {greedy=false; } : . )* - loop15: do { - int alt15 = 2; - int LA15_0 = input.LA(1); - - if ((LA15_0 == '\'')) { - alt15 = 2; - } - else if (((LA15_0 >= '\u0000' && LA15_0 <= '&') || (LA15_0 >= '(' && LA15_0 <= '\uFFFF'))) { - alt15 = 1; - } - - - switch (alt15) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:103: . - { - matchAny(); - - } - break; - - default: - break loop15; - } - } while (true); - - match('\''); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | - // '\"' ) ) )* '\"' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' - // ) ) )* '\"' - { - match('\"'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) - // ) )* - loop17: do { - int alt17 = 3; - int LA17_0 = input.LA(1); - - if ((LA17_0 == '\\')) { - alt17 = 1; - } - else if (((LA17_0 >= '\u0000' && LA17_0 <= '!') || (LA17_0 >= '#' && LA17_0 <= '[') || (LA17_0 >= ']' && LA17_0 <= '\uFFFF'))) { - alt17 = 2; - } - - - switch (alt17) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209: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') { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209:61: ~ ( ( '\\\\' | '\"' ) ) - { - if ((input.LA(1) >= '\u0000' && input.LA(1) <= '!') || (input.LA(1) >= '#' && input.LA(1) <= '[') || (input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop17; - } - } while (true); - - match('\"'); - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - if ((input.LA(1) >= '\u0000' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:31: ( options {greedy=false; } : . )* - loop18: do { - int alt18 = 2; - int LA18_0 = input.LA(1); - - if ((LA18_0 == '*')) { - int LA18_1 = input.LA(2); - - if ((LA18_1 == '/')) { - alt18 = 2; - } - else if (((LA18_1 >= '\u0000' && LA18_1 <= '.') || (LA18_1 >= '0' && LA18_1 <= '\uFFFF'))) { - alt18 = 1; - } - - - } - else if (((LA18_0 >= '\u0000' && LA18_0 <= ')') || (LA18_0 >= '+' && LA18_0 <= '\uFFFF'))) { - alt18 = 1; - } - - - switch (alt18) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:59: . - { - matchAny(); - - } - break; - - default: - break loop18; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )* - loop19: do { - int alt19 = 2; - int LA19_0 = input.LA(1); - - if (((LA19_0 >= '\u0000' && LA19_0 <= '\t') || (LA19_0 >= '\u000B' && LA19_0 <= '\f') || (LA19_0 >= '\u000E' && LA19_0 <= '?') || (LA19_0 >= 'A' && LA19_0 <= '\uFFFF'))) { - alt19 = 1; - } - - - switch (alt19) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:24: ~ ( ( '\\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) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop19; - } - } while (true); - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:44: ( ( '\\r' )? '\\n' )? - int alt21 = 2; - int LA21_0 = input.LA(1); - - if ((LA21_0 == '\n' || LA21_0 == '\r')) { - alt21 = 1; - } - switch (alt21) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:45: ( '\\r' )? '\\n' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:45: ( '\\r' )? - int alt20 = 2; - int LA20_0 = input.LA(1); - - if ((LA20_0 == '\r')) { - alt20 = 1; - } - switch (alt20) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:45: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215:10: ( ( '0' .. '9' )+ ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215:12: ( '0' .. '9' )+ - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215:12: ( '0' .. '9' )+ - int cnt22 = 0; - loop22: do { - int alt22 = 2; - int LA22_0 = input.LA(1); - - if (((LA22_0 >= '0' && LA22_0 <= '9'))) { - alt22 = 1; - } - - - switch (alt22) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215:13: '0' .. '9' - { - matchRange('0', '9'); - - } - break; - - default: - if (cnt22 >= 1) { - break loop22; - } - EarlyExitException eee = - new EarlyExitException(22, input); - throw eee; - } - cnt22++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:217:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt23 = 0; - loop23: do { - int alt23 = 2; - int LA23_0 = input.LA(1); - - if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) { - alt23 = 1; - } - - - switch (alt23) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g: - { - if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - if (cnt23 >= 1) { - break loop23; - } - EarlyExitException eee = - new EarlyExitException(23, input); - throw eee; - } - cnt23++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:219:16: ( . ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:219:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_ANY_OTHER" - - @Override - public void mTokens() throws RecognitionException { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:8: ( T__12 | T__13 | RULE_INTEGER_VALUE | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | - // RULE_INT | RULE_WS | RULE_ANY_OTHER ) - int alt24 = 10; - alt24 = dfa24.predict(input); - switch (alt24) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:10: T__12 - { - mT__12(); - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:16: T__13 - { - mT__13(); - - } - break; - case 3: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:22: RULE_INTEGER_VALUE - { - mRULE_INTEGER_VALUE(); - - } - break; - case 4: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:41: RULE_ID - { - mRULE_ID(); - - } - break; - case 5: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:49: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 6: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:61: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 7: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:77: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 8: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:93: RULE_INT - { - mRULE_INT(); - - } - break; - case 9: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:102: RULE_WS - { - mRULE_WS(); - - } - break; - case 10: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:110: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA24 dfa24 = new DFA24(this); - static final String DFA24_eotS = - "\1\uffff\1\12\1\uffff\2\15\1\uffff\3\12\5\uffff\1\15\1\uffff\1" + - "\15\5\uffff\1\15"; - static final String DFA24_eofS = - "\27\uffff"; - static final String DFA24_minS = - "\1\0\1\72\1\uffff\2\60\1\uffff\2\0\1\52\5\uffff\1\60\1\uffff\1" + - "\60\5\uffff\1\60"; - static final String DFA24_maxS = - "\1\uffff\1\72\1\uffff\2\71\1\uffff\2\uffff\1\57\5\uffff\1\71\1" + - "\uffff\1\71\5\uffff\1\71"; - static final String DFA24_acceptS = - "\2\uffff\1\2\2\uffff\1\4\3\uffff\1\11\1\12\1\1\1\2\1\3\1\uffff" + - "\1\10\1\uffff\1\4\1\5\1\6\1\7\1\11\1\uffff"; - static final String DFA24_specialS = - "\1\2\5\uffff\1\0\1\1\17\uffff}>"; - static final String[] DFA24_transitionS = { - "\11\12\2\11\2\12\1\11\22\12\1\11\1\12\1\7\4\12\1\6\2\12\1\2" + - "\4\12\1\10\1\3\11\4\1\1\6\12\32\5\4\12\1\5\1\12\32\5\uff85\12", - "\1\13", - "", - "\10\16\2\17", - "\12\20", - "", - "\0\21", - "\0\22", - "\1\23\4\uffff\1\24", - "", - "", - "", - "", - "", - "\10\26\2\17", - "", - "\12\20", - "", - "", - "", - "", - "", - "\10\26\2\17" - }; - - static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS); - static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS); - static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS); - static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS); - static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS); - static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS); - static final short[][] DFA24_transition; - - static { - int numStates = DFA24_transitionS.length; - DFA24_transition = new short[numStates][]; - for (int i = 0; i < numStates; i++) { - DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]); - } - } - - class DFA24 extends DFA { - - public DFA24(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 24; - this.eot = DFA24_eot; - this.eof = DFA24_eof; - this.min = DFA24_min; - this.max = DFA24_max; - this.accept = DFA24_accept; - this.special = DFA24_special; - this.transition = DFA24_transition; - } - - @Override - public String getDescription() { - return "1:1: Tokens : ( T__12 | T__13 | RULE_INTEGER_VALUE | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_WS | RULE_ANY_OTHER );"; - } - - @Override - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - IntStream input = _input; - int _s = s; - switch (s) { - case 0: - int LA24_6 = input.LA(1); - - s = -1; - if (((LA24_6 >= '\u0000' && LA24_6 <= '\uFFFF'))) { - s = 17; - } else { - s = 10; - } - - if (s >= 0) { - return s; - } - break; - case 1: - int LA24_7 = input.LA(1); - - s = -1; - if (((LA24_7 >= '\u0000' && LA24_7 <= '\uFFFF'))) { - s = 18; - } else { - s = 10; - } - - if (s >= 0) { - return s; - } - break; - case 2: - int LA24_0 = input.LA(1); - - s = -1; - if ((LA24_0 == ':')) { - s = 1; - } - - else if ((LA24_0 == '*')) { - s = 2; - } - - else if ((LA24_0 == '0')) { - s = 3; - } - - else if (((LA24_0 >= '1' && LA24_0 <= '9'))) { - s = 4; - } - - else if (((LA24_0 >= 'A' && LA24_0 <= 'Z') || LA24_0 == '_' || (LA24_0 >= 'a' && LA24_0 <= 'z'))) { - s = 5; - } - - else if ((LA24_0 == '\'')) { - s = 6; - } - - else if ((LA24_0 == '\"')) { - s = 7; - } - - else if ((LA24_0 == '/')) { - s = 8; - } - - else if (((LA24_0 >= '\t' && LA24_0 <= '\n') || LA24_0 == '\r' || LA24_0 == ' ')) { - s = 9; - } - - else if (((LA24_0 >= '\u0000' && LA24_0 <= '\b') || (LA24_0 >= '\u000B' && LA24_0 <= '\f') || (LA24_0 >= '\u000E' && LA24_0 <= '\u001F') || LA24_0 == '!' || (LA24_0 >= '#' && LA24_0 <= '&') || (LA24_0 >= '(' && LA24_0 <= ')') - || (LA24_0 >= '+' && LA24_0 <= '.') || (LA24_0 >= ';' && LA24_0 <= '@') || (LA24_0 >= '[' && LA24_0 <= '^') || LA24_0 == '`' || (LA24_0 >= '{' && LA24_0 <= '\uFFFF'))) { - s = 10; - } - - if (s >= 0) { - return s; - } - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 24, _s, input); - error(nvae); - throw nvae; - } - } - + public static final int RULE_ID=4; + public static final int RULE_WS=10; + public static final int RULE_STRING=6; + public static final int RULE_ANY_OTHER=11; + public static final int RULE_SL_COMMENT=8; + public static final int RULE_INT=5; + public static final int RULE_ML_COMMENT=7; + public static final int RULE_INTEGER_VALUE=9; + public static final int T__12=12; + public static final int T__13=13; + public static final int EOF=-1; + + // delegates + // delegators + + public InternalUmlCommonLexer() {;} + public InternalUmlCommonLexer(CharStream input) { + this(input, new RecognizerSharedState()); + } + public InternalUmlCommonLexer(CharStream input, RecognizerSharedState state) { + super(input,state); + + } + public String getGrammarFileName() { return "InternalUmlCommon.g"; } + + // $ANTLR start "T__12" + public final void mT__12() throws RecognitionException { + try { + int _type = T__12; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:11:7: ( '::' ) + // InternalUmlCommon.g:11:9: '::' + { + match("::"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__12" + + // $ANTLR start "T__13" + public final void mT__13() throws RecognitionException { + try { + int _type = T__13; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:12:7: ( '*' ) + // InternalUmlCommon.g:12:9: '*' + { + match('*'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__13" + + // $ANTLR start "RULE_ID" + public final void mRULE_ID() throws RecognitionException { + try { + int _type = RULE_ID; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:205:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) ) + // InternalUmlCommon.g:205:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) + { + // InternalUmlCommon.g:205:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) + int alt3=2; + int LA3_0 = input.LA(1); + + if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) { + alt3=1; + } + else if ( (LA3_0=='\'') ) { + alt3=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 3, 0, input); + + throw nvae; + } + switch (alt3) { + case 1 : + // InternalUmlCommon.g:205:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + { + if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + // InternalUmlCommon.g:205:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + loop1: + do { + int alt1=2; + int LA1_0 = input.LA(1); + + if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) { + alt1=1; + } + + + switch (alt1) { + case 1 : + // InternalUmlCommon.g: + { + if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop1; + } + } while (true); + + + } + break; + case 2 : + // InternalUmlCommon.g:205:70: '\\'' ( options {greedy=false; } : . )* '\\'' + { + match('\''); + // InternalUmlCommon.g:205:75: ( options {greedy=false; } : . )* + loop2: + do { + int alt2=2; + int LA2_0 = input.LA(1); + + if ( (LA2_0=='\'') ) { + alt2=2; + } + else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) { + alt2=1; + } + + + switch (alt2) { + case 1 : + // InternalUmlCommon.g:205:103: . + { + matchAny(); + + } + break; + + default : + break loop2; + } + } while (true); + + match('\''); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ID" + + // $ANTLR start "RULE_STRING" + public final void mRULE_STRING() throws RecognitionException { + try { + int _type = RULE_STRING; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:207:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) + // InternalUmlCommon.g:207:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + { + match('\"'); + // InternalUmlCommon.g:207:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* + loop4: + do { + int alt4=3; + int LA4_0 = input.LA(1); + + if ( (LA4_0=='\\') ) { + alt4=1; + } + else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { + alt4=2; + } + + + switch (alt4) { + case 1 : + // InternalUmlCommon.g:207: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' ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + case 2 : + // InternalUmlCommon.g:207:61: ~ ( ( '\\\\' | '\"' ) ) + { + if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop4; + } + } while (true); + + match('\"'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_STRING" + + // $ANTLR start "RULE_ML_COMMENT" + public final void mRULE_ML_COMMENT() throws RecognitionException { + try { + int _type = RULE_ML_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:209:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' ) + // InternalUmlCommon.g:209:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' + { + match("/*"); + + if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + // InternalUmlCommon.g:209:31: ( options {greedy=false; } : . )* + loop5: + do { + int alt5=2; + int LA5_0 = input.LA(1); + + if ( (LA5_0=='*') ) { + int LA5_1 = input.LA(2); + + if ( (LA5_1=='/') ) { + alt5=2; + } + else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) { + alt5=1; + } + + + } + else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) { + alt5=1; + } + + + switch (alt5) { + case 1 : + // InternalUmlCommon.g:209:59: . + { + matchAny(); + + } + break; + + default : + break loop5; + } + } while (true); + + match("*/"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ML_COMMENT" + + // $ANTLR start "RULE_SL_COMMENT" + public final void mRULE_SL_COMMENT() throws RecognitionException { + try { + int _type = RULE_SL_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:211:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? ) + // InternalUmlCommon.g:211:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? + { + match("//"); + + // InternalUmlCommon.g:211:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )* + loop6: + do { + int alt6=2; + int LA6_0 = input.LA(1); + + if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) { + alt6=1; + } + + + switch (alt6) { + case 1 : + // InternalUmlCommon.g:211:24: ~ ( ( '\\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)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop6; + } + } while (true); + + // InternalUmlCommon.g:211:44: ( ( '\\r' )? '\\n' )? + int alt8=2; + int LA8_0 = input.LA(1); + + if ( (LA8_0=='\n'||LA8_0=='\r') ) { + alt8=1; + } + switch (alt8) { + case 1 : + // InternalUmlCommon.g:211:45: ( '\\r' )? '\\n' + { + // InternalUmlCommon.g:211:45: ( '\\r' )? + int alt7=2; + int LA7_0 = input.LA(1); + + if ( (LA7_0=='\r') ) { + alt7=1; + } + switch (alt7) { + case 1 : + // InternalUmlCommon.g:211:45: '\\r' + { + match('\r'); + + } + break; + + } + + match('\n'); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_SL_COMMENT" + + // $ANTLR start "RULE_INT" + public final void mRULE_INT() throws RecognitionException { + try { + int _type = RULE_INT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:213:10: ( ( '0' .. '9' )+ ) + // InternalUmlCommon.g:213:12: ( '0' .. '9' )+ + { + // InternalUmlCommon.g:213:12: ( '0' .. '9' )+ + int cnt9=0; + loop9: + do { + int alt9=2; + int LA9_0 = input.LA(1); + + if ( ((LA9_0>='0' && LA9_0<='9')) ) { + alt9=1; + } + + + switch (alt9) { + case 1 : + // InternalUmlCommon.g:213:13: '0' .. '9' + { + matchRange('0','9'); + + } + break; + + default : + if ( cnt9 >= 1 ) break loop9; + EarlyExitException eee = + new EarlyExitException(9, input); + throw eee; + } + cnt9++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_INT" + + // $ANTLR start "RULE_INTEGER_VALUE" + public final void mRULE_INTEGER_VALUE() throws RecognitionException { + try { + int _type = RULE_INTEGER_VALUE; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:215:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) ) + // InternalUmlCommon.g:215:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) + { + // InternalUmlCommon.g:215:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) + int alt22=4; + int LA22_0 = input.LA(1); + + if ( (LA22_0=='0') ) { + switch ( input.LA(2) ) { + case 'B': + case 'b': + { + alt22=2; + } + break; + case 'X': + case 'x': + { + alt22=3; + } + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '_': + { + alt22=4; + } + break; + default: + alt22=1;} + + } + else if ( ((LA22_0>='1' && LA22_0<='9')) ) { + alt22=1; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 22, 0, input); + + throw nvae; + } + switch (alt22) { + case 1 : + // InternalUmlCommon.g:215:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) + { + // InternalUmlCommon.g:215:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) + int alt12=2; + int LA12_0 = input.LA(1); + + if ( (LA12_0=='0') ) { + alt12=1; + } + else if ( ((LA12_0>='1' && LA12_0<='9')) ) { + alt12=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 12, 0, input); + + throw nvae; + } + switch (alt12) { + case 1 : + // InternalUmlCommon.g:215:24: '0' + { + match('0'); + + } + break; + case 2 : + // InternalUmlCommon.g:215:28: '1' .. '9' ( ( '_' )? '0' .. '9' )* + { + matchRange('1','9'); + // InternalUmlCommon.g:215:37: ( ( '_' )? '0' .. '9' )* + loop11: + do { + int alt11=2; + int LA11_0 = input.LA(1); + + if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) { + alt11=1; + } + + + switch (alt11) { + case 1 : + // InternalUmlCommon.g:215:38: ( '_' )? '0' .. '9' + { + // InternalUmlCommon.g:215:38: ( '_' )? + int alt10=2; + int LA10_0 = input.LA(1); + + if ( (LA10_0=='_') ) { + alt10=1; + } + switch (alt10) { + case 1 : + // InternalUmlCommon.g:215:38: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','9'); + + } + break; + + default : + break loop11; + } + } while (true); + + + } + break; + + } + + + } + break; + case 2 : + // InternalUmlCommon.g:215:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* + { + // InternalUmlCommon.g:215:55: ( '0b' | '0B' ) + int alt13=2; + int LA13_0 = input.LA(1); + + if ( (LA13_0=='0') ) { + int LA13_1 = input.LA(2); + + if ( (LA13_1=='b') ) { + alt13=1; + } + else if ( (LA13_1=='B') ) { + alt13=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 13, 1, input); + + throw nvae; + } + } + else { + NoViableAltException nvae = + new NoViableAltException("", 13, 0, input); + + throw nvae; + } + switch (alt13) { + case 1 : + // InternalUmlCommon.g:215:56: '0b' + { + match("0b"); + + + } + break; + case 2 : + // InternalUmlCommon.g:215:61: '0B' + { + match("0B"); + + + } + break; + + } + + matchRange('0','1'); + // InternalUmlCommon.g:215:76: ( ( '_' )? '0' .. '1' )* + loop15: + do { + int alt15=2; + int LA15_0 = input.LA(1); + + if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) { + alt15=1; + } + + + switch (alt15) { + case 1 : + // InternalUmlCommon.g:215:77: ( '_' )? '0' .. '1' + { + // InternalUmlCommon.g:215:77: ( '_' )? + int alt14=2; + int LA14_0 = input.LA(1); + + if ( (LA14_0=='_') ) { + alt14=1; + } + switch (alt14) { + case 1 : + // InternalUmlCommon.g:215:77: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','1'); + + } + break; + + default : + break loop15; + } + } while (true); + + + } + break; + case 3 : + // InternalUmlCommon.g:215:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* + { + // InternalUmlCommon.g:215:93: ( '0x' | '0X' ) + int alt16=2; + int LA16_0 = input.LA(1); + + if ( (LA16_0=='0') ) { + int LA16_1 = input.LA(2); + + if ( (LA16_1=='x') ) { + alt16=1; + } + else if ( (LA16_1=='X') ) { + alt16=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 16, 1, input); + + throw nvae; + } + } + else { + NoViableAltException nvae = + new NoViableAltException("", 16, 0, input); + + throw nvae; + } + switch (alt16) { + case 1 : + // InternalUmlCommon.g:215:94: '0x' + { + match("0x"); + + + } + break; + case 2 : + // InternalUmlCommon.g:215:99: '0X' + { + match("0X"); + + + } + break; + + } + + if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + // InternalUmlCommon.g:215:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* + loop18: + do { + int alt18=2; + int LA18_0 = input.LA(1); + + if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) { + alt18=1; + } + + + switch (alt18) { + case 1 : + // InternalUmlCommon.g:215:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) + { + // InternalUmlCommon.g:215:135: ( '_' )? + int alt17=2; + int LA17_0 = input.LA(1); + + if ( (LA17_0=='_') ) { + alt17=1; + } + switch (alt17) { + case 1 : + // InternalUmlCommon.g:215:135: '_' + { + match('_'); + + } + break; + + } + + if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop18; + } + } while (true); + + + } + break; + case 4 : + // InternalUmlCommon.g:215:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* + { + match('0'); + // InternalUmlCommon.g:215:175: ( '_' )? + int alt19=2; + int LA19_0 = input.LA(1); + + if ( (LA19_0=='_') ) { + alt19=1; + } + switch (alt19) { + case 1 : + // InternalUmlCommon.g:215:175: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','7'); + // InternalUmlCommon.g:215:189: ( ( '_' )? '0' .. '7' )* + loop21: + do { + int alt21=2; + int LA21_0 = input.LA(1); + + if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) { + alt21=1; + } + + + switch (alt21) { + case 1 : + // InternalUmlCommon.g:215:190: ( '_' )? '0' .. '7' + { + // InternalUmlCommon.g:215:190: ( '_' )? + int alt20=2; + int LA20_0 = input.LA(1); + + if ( (LA20_0=='_') ) { + alt20=1; + } + switch (alt20) { + case 1 : + // InternalUmlCommon.g:215:190: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','7'); + + } + break; + + default : + break loop21; + } + } while (true); + + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_INTEGER_VALUE" + + // $ANTLR start "RULE_WS" + public final void mRULE_WS() throws RecognitionException { + try { + int _type = RULE_WS; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:217:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + { + // InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + int cnt23=0; + loop23: + do { + int alt23=2; + int LA23_0 = input.LA(1); + + if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) { + alt23=1; + } + + + switch (alt23) { + case 1 : + // InternalUmlCommon.g: + { + if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + if ( cnt23 >= 1 ) break loop23; + EarlyExitException eee = + new EarlyExitException(23, input); + throw eee; + } + cnt23++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_WS" + + // $ANTLR start "RULE_ANY_OTHER" + public final void mRULE_ANY_OTHER() throws RecognitionException { + try { + int _type = RULE_ANY_OTHER; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:219:16: ( . ) + // InternalUmlCommon.g:219:18: . + { + matchAny(); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ANY_OTHER" + + public void mTokens() throws RecognitionException { + // InternalUmlCommon.g:1:8: ( T__12 | T__13 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER ) + int alt24=10; + alt24 = dfa24.predict(input); + switch (alt24) { + case 1 : + // InternalUmlCommon.g:1:10: T__12 + { + mT__12(); + + } + break; + case 2 : + // InternalUmlCommon.g:1:16: T__13 + { + mT__13(); + + } + break; + case 3 : + // InternalUmlCommon.g:1:22: RULE_ID + { + mRULE_ID(); + + } + break; + case 4 : + // InternalUmlCommon.g:1:30: RULE_STRING + { + mRULE_STRING(); + + } + break; + case 5 : + // InternalUmlCommon.g:1:42: RULE_ML_COMMENT + { + mRULE_ML_COMMENT(); + + } + break; + case 6 : + // InternalUmlCommon.g:1:58: RULE_SL_COMMENT + { + mRULE_SL_COMMENT(); + + } + break; + case 7 : + // InternalUmlCommon.g:1:74: RULE_INT + { + mRULE_INT(); + + } + break; + case 8 : + // InternalUmlCommon.g:1:83: RULE_INTEGER_VALUE + { + mRULE_INTEGER_VALUE(); + + } + break; + case 9 : + // InternalUmlCommon.g:1:102: RULE_WS + { + mRULE_WS(); + + } + break; + case 10 : + // InternalUmlCommon.g:1:110: RULE_ANY_OTHER + { + mRULE_ANY_OTHER(); + + } + break; + + } + + } + + + protected DFA24 dfa24 = new DFA24(this); + static final String DFA24_eotS = + "\1\uffff\1\12\2\uffff\3\12\2\23\11\uffff\1\23\1\uffff\1\23\1\uffff\1\23"; + static final String DFA24_eofS = + "\27\uffff"; + static final String DFA24_minS = + "\1\0\1\72\2\uffff\2\0\1\52\2\60\11\uffff\1\60\1\uffff\1\60\1\uffff\1\60"; + static final String DFA24_maxS = + "\1\uffff\1\72\2\uffff\2\uffff\1\57\1\170\1\137\11\uffff\1\137\1\uffff\1\137\1\uffff\1\137"; + static final String DFA24_acceptS = + "\2\uffff\1\2\1\3\5\uffff\1\11\1\12\1\1\1\2\1\3\1\4\1\5\1\6\1\10\1\uffff\1\7\1\uffff\1\11\1\uffff"; + static final String DFA24_specialS = + "\1\2\3\uffff\1\0\1\1\21\uffff}>"; + static final String[] DFA24_transitionS = { + "\11\12\2\11\2\12\1\11\22\12\1\11\1\12\1\5\4\12\1\4\2\12\1\2\4\12\1\6\1\7\11\10\1\1\6\12\32\3\4\12\1\3\1\12\32\3\uff85\12", + "\1\13", + "", + "", + "\0\15", + "\0\16", + "\1\17\4\uffff\1\20", + "\10\22\12\uffff\1\21\25\uffff\1\21\6\uffff\1\21\2\uffff\1\21\25\uffff\1\21", + "\12\24\45\uffff\1\21", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "\10\26\47\uffff\1\21", + "", + "\12\24\45\uffff\1\21", + "", + "\10\26\47\uffff\1\21" + }; + + static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS); + static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS); + static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS); + static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS); + static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS); + static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS); + static final short[][] DFA24_transition; + + static { + int numStates = DFA24_transitionS.length; + DFA24_transition = new short[numStates][]; + for (int i=0; i<numStates; i++) { + DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]); + } + } + + class DFA24 extends DFA { + + public DFA24(BaseRecognizer recognizer) { + this.recognizer = recognizer; + this.decisionNumber = 24; + this.eot = DFA24_eot; + this.eof = DFA24_eof; + this.min = DFA24_min; + this.max = DFA24_max; + this.accept = DFA24_accept; + this.special = DFA24_special; + this.transition = DFA24_transition; + } + public String getDescription() { + return "1:1: Tokens : ( T__12 | T__13 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );"; + } + public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { + IntStream input = _input; + int _s = s; + switch ( s ) { + case 0 : + int LA24_4 = input.LA(1); + + s = -1; + if ( ((LA24_4>='\u0000' && LA24_4<='\uFFFF')) ) {s = 13;} + + else s = 10; + + if ( s>=0 ) return s; + break; + case 1 : + int LA24_5 = input.LA(1); + + s = -1; + if ( ((LA24_5>='\u0000' && LA24_5<='\uFFFF')) ) {s = 14;} + + else s = 10; + + if ( s>=0 ) return s; + break; + case 2 : + int LA24_0 = input.LA(1); + + s = -1; + if ( (LA24_0==':') ) {s = 1;} + + else if ( (LA24_0=='*') ) {s = 2;} + + else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='z')) ) {s = 3;} + + else if ( (LA24_0=='\'') ) {s = 4;} + + else if ( (LA24_0=='\"') ) {s = 5;} + + else if ( (LA24_0=='/') ) {s = 6;} + + else if ( (LA24_0=='0') ) {s = 7;} + + else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 8;} + + else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 9;} + + else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='#' && LA24_0<='&')||(LA24_0>='(' && LA24_0<=')')||(LA24_0>='+' && LA24_0<='.')||(LA24_0>=';' && LA24_0<='@')||(LA24_0>='[' && LA24_0<='^')||LA24_0=='`'||(LA24_0>='{' && LA24_0<='\uFFFF')) ) {s = 10;} + + if ( s>=0 ) return s; + break; + } + NoViableAltException nvae = + new NoViableAltException(getDescription(), 24, _s, input); + error(nvae); + throw nvae; + } + } + }
\ No newline at end of file |