| package org.eclipse.ocl.examples.xtext.idioms.parser.antlr.internal; |
| |
| // Hack: Use our own Lexer superclass by means of import. |
| // Currently there is no other way to specify the superclass for the lexer. |
| import org.eclipse.xtext.parser.antlr.Lexer; |
| |
| |
| import org.antlr.runtime.*; |
| import java.util.Stack; |
| import java.util.List; |
| import java.util.ArrayList; |
| |
| @SuppressWarnings("all") |
| public class InternalIdiomsLexer extends Lexer { |
| public static final int T__50=50; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int T__11=11; |
| public static final int T__12=12; |
| public static final int T__13=13; |
| public static final int T__14=14; |
| public static final int T__51=51; |
| public static final int T__52=52; |
| public static final int RULE_ID=4; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int T__28=28; |
| public static final int RULE_INT=6; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int RULE_ML_COMMENT=7; |
| public static final int T__23=23; |
| public static final int T__24=24; |
| public static final int T__25=25; |
| public static final int T__20=20; |
| public static final int T__21=21; |
| public static final int RULE_STRING=5; |
| public static final int RULE_SL_COMMENT=8; |
| public static final int T__37=37; |
| public static final int T__38=38; |
| public static final int T__39=39; |
| public static final int T__33=33; |
| public static final int T__34=34; |
| public static final int T__35=35; |
| public static final int T__36=36; |
| public static final int EOF=-1; |
| public static final int T__30=30; |
| public static final int T__31=31; |
| public static final int T__32=32; |
| public static final int RULE_WS=9; |
| public static final int RULE_ANY_OTHER=10; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int T__44=44; |
| public static final int T__45=45; |
| public static final int T__46=46; |
| public static final int T__47=47; |
| public static final int T__40=40; |
| public static final int T__41=41; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| |
| // delegates |
| // delegators |
| |
| public InternalIdiomsLexer() {;} |
| public InternalIdiomsLexer(CharStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalIdiomsLexer(CharStream input, RecognizerSharedState state) { |
| super(input,state); |
| |
| } |
| public String getGrammarFileName() { return "InternalIdioms.g"; } |
| |
| // $ANTLR start "T__11" |
| public final void mT__11() throws RecognitionException { |
| try { |
| int _type = T__11; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:11:7: ( 'model' ) |
| // InternalIdioms.g:11:9: 'model' |
| { |
| match("model"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__11" |
| |
| // $ANTLR start "T__12" |
| public final void mT__12() throws RecognitionException { |
| try { |
| int _type = T__12; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:12:7: ( '.' ) |
| // InternalIdioms.g:12: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; |
| // InternalIdioms.g:13:7: ( 'import' ) |
| // InternalIdioms.g:13:9: 'import' |
| { |
| match("import"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__13" |
| |
| // $ANTLR start "T__14" |
| public final void mT__14() throws RecognitionException { |
| try { |
| int _type = T__14; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:14:7: ( 'as' ) |
| // InternalIdioms.g:14:9: 'as' |
| { |
| match("as"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__14" |
| |
| // $ANTLR start "T__15" |
| public final void mT__15() throws RecognitionException { |
| try { |
| int _type = T__15; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:15:7: ( ';' ) |
| // InternalIdioms.g:15:9: ';' |
| { |
| match(';'); |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__15" |
| |
| // $ANTLR start "T__16" |
| public final void mT__16() throws RecognitionException { |
| try { |
| int _type = T__16; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:16:7: ( 'with' ) |
| // InternalIdioms.g:16:9: 'with' |
| { |
| match("with"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__16" |
| |
| // $ANTLR start "T__17" |
| public final void mT__17() throws RecognitionException { |
| try { |
| int _type = T__17; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:17:7: ( 'locator' ) |
| // InternalIdioms.g:17:9: 'locator' |
| { |
| match("locator"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__17" |
| |
| // $ANTLR start "T__18" |
| public final void mT__18() throws RecognitionException { |
| try { |
| int _type = T__18; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:18:7: ( 'any-assignment' ) |
| // InternalIdioms.g:18:9: 'any-assignment' |
| { |
| match("any-assignment"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__18" |
| |
| // $ANTLR start "T__19" |
| public final void mT__19() throws RecognitionException { |
| try { |
| int _type = T__19; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:19:7: ( 'any-element' ) |
| // InternalIdioms.g:19:9: 'any-element' |
| { |
| match("any-element"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__19" |
| |
| // $ANTLR start "T__20" |
| public final void mT__20() throws RecognitionException { |
| try { |
| int _type = T__20; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:20:7: ( 'assignment' ) |
| // InternalIdioms.g:20:9: 'assignment' |
| { |
| match("assignment"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__20" |
| |
| // $ANTLR start "T__21" |
| public final void mT__21() throws RecognitionException { |
| try { |
| int _type = T__21; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:21:7: ( '::' ) |
| // InternalIdioms.g:21:9: '::' |
| { |
| match("::"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__21" |
| |
| // $ANTLR start "T__22" |
| public final void mT__22() throws RecognitionException { |
| try { |
| int _type = T__22; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:22:7: ( 'final' ) |
| // InternalIdioms.g:22:9: 'final' |
| { |
| match("final"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__22" |
| |
| // $ANTLR start "T__23" |
| public final void mT__23() throws RecognitionException { |
| try { |
| int _type = T__23; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:23:7: ( 'returns' ) |
| // InternalIdioms.g:23:9: 'returns' |
| { |
| match("returns"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__23" |
| |
| // $ANTLR start "T__24" |
| public final void mT__24() throws RecognitionException { |
| try { |
| int _type = T__24; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:24:7: ( 'segment' ) |
| // InternalIdioms.g:24:9: 'segment' |
| { |
| match("segment"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__24" |
| |
| // $ANTLR start "T__25" |
| public final void mT__25() throws RecognitionException { |
| try { |
| int _type = T__25; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:25:7: ( 'custom' ) |
| // InternalIdioms.g:25:9: 'custom' |
| { |
| match("custom"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__25" |
| |
| // $ANTLR start "T__26" |
| public final void mT__26() throws RecognitionException { |
| try { |
| int _type = T__26; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:26:7: ( 'half-new-line' ) |
| // InternalIdioms.g:26:9: 'half-new-line' |
| { |
| match("half-new-line"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__26" |
| |
| // $ANTLR start "T__27" |
| public final void mT__27() throws RecognitionException { |
| try { |
| int _type = T__27; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:27:7: ( 'new-line' ) |
| // InternalIdioms.g:27:9: 'new-line' |
| { |
| match("new-line"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__27" |
| |
| // $ANTLR start "T__28" |
| public final void mT__28() throws RecognitionException { |
| try { |
| int _type = T__28; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:28:7: ( 'no-space' ) |
| // InternalIdioms.g:28:9: 'no-space' |
| { |
| match("no-space"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__28" |
| |
| // $ANTLR start "T__29" |
| public final void mT__29() throws RecognitionException { |
| try { |
| int _type = T__29; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:29:7: ( 'pop' ) |
| // InternalIdioms.g:29:9: 'pop' |
| { |
| match("pop"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__29" |
| |
| // $ANTLR start "T__30" |
| public final void mT__30() throws RecognitionException { |
| try { |
| int _type = T__30; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:30:7: ( 'post-comment' ) |
| // InternalIdioms.g:30:9: 'post-comment' |
| { |
| match("post-comment"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__30" |
| |
| // $ANTLR start "T__31" |
| public final void mT__31() throws RecognitionException { |
| try { |
| int _type = T__31; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:31:7: ( 'pre-comment' ) |
| // InternalIdioms.g:31:9: 'pre-comment' |
| { |
| match("pre-comment"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__31" |
| |
| // $ANTLR start "T__32" |
| public final void mT__32() throws RecognitionException { |
| try { |
| int _type = T__32; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:32:7: ( 'push' ) |
| // InternalIdioms.g:32:9: 'push' |
| { |
| match("push"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__32" |
| |
| // $ANTLR start "T__33" |
| public final void mT__33() throws RecognitionException { |
| try { |
| int _type = T__33; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:33:7: ( 'soft-new-line' ) |
| // InternalIdioms.g:33:9: 'soft-new-line' |
| { |
| match("soft-new-line"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__33" |
| |
| // $ANTLR start "T__34" |
| public final void mT__34() throws RecognitionException { |
| try { |
| int _type = T__34; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:34:7: ( 'soft-space' ) |
| // InternalIdioms.g:34:9: 'soft-space' |
| { |
| match("soft-space"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__34" |
| |
| // $ANTLR start "T__35" |
| public final void mT__35() throws RecognitionException { |
| try { |
| int _type = T__35; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:35:7: ( 'string' ) |
| // InternalIdioms.g:35:9: 'string' |
| { |
| match("string"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__35" |
| |
| // $ANTLR start "T__36" |
| public final void mT__36() throws RecognitionException { |
| try { |
| int _type = T__36; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:36:7: ( 'printable' ) |
| // InternalIdioms.g:36:9: 'printable' |
| { |
| match("printable"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__36" |
| |
| // $ANTLR start "T__37" |
| public final void mT__37() throws RecognitionException { |
| try { |
| int _type = T__37; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:37:7: ( 'value' ) |
| // InternalIdioms.g:37:9: 'value' |
| { |
| match("value"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__37" |
| |
| // $ANTLR start "T__38" |
| public final void mT__38() throws RecognitionException { |
| try { |
| int _type = T__38; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:38:7: ( 'wrap-anchor' ) |
| // InternalIdioms.g:38:9: 'wrap-anchor' |
| { |
| match("wrap-anchor"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__38" |
| |
| // $ANTLR start "T__39" |
| public final void mT__39() throws RecognitionException { |
| try { |
| int _type = T__39; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:39:7: ( 'wrap-begin-all' ) |
| // InternalIdioms.g:39:9: 'wrap-begin-all' |
| { |
| match("wrap-begin-all"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__39" |
| |
| // $ANTLR start "T__40" |
| public final void mT__40() throws RecognitionException { |
| try { |
| int _type = T__40; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:40:7: ( 'wrap-begin-some' ) |
| // InternalIdioms.g:40:9: 'wrap-begin-some' |
| { |
| match("wrap-begin-some"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__40" |
| |
| // $ANTLR start "T__41" |
| public final void mT__41() throws RecognitionException { |
| try { |
| int _type = T__41; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:41:7: ( 'wrap-end' ) |
| // InternalIdioms.g:41:9: 'wrap-end' |
| { |
| match("wrap-end"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__41" |
| |
| // $ANTLR start "T__42" |
| public final void mT__42() throws RecognitionException { |
| try { |
| int _type = T__42; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:42:7: ( 'wrap-here' ) |
| // InternalIdioms.g:42:9: 'wrap-here' |
| { |
| match("wrap-here"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__42" |
| |
| // $ANTLR start "T__43" |
| public final void mT__43() throws RecognitionException { |
| try { |
| int _type = T__43; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:43:7: ( 'mixin' ) |
| // InternalIdioms.g:43:9: 'mixin' |
| { |
| match("mixin"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__43" |
| |
| // $ANTLR start "T__44" |
| public final void mT__44() throws RecognitionException { |
| try { |
| int _type = T__44; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:44:7: ( 'idiom' ) |
| // InternalIdioms.g:44:9: 'idiom' |
| { |
| match("idiom"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__44" |
| |
| // $ANTLR start "T__45" |
| public final void mT__45() throws RecognitionException { |
| try { |
| int _type = T__45; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:45:7: ( 'for' ) |
| // InternalIdioms.g:45:9: 'for' |
| { |
| match("for"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__45" |
| |
| // $ANTLR start "T__46" |
| public final void mT__46() throws RecognitionException { |
| try { |
| int _type = T__46; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:46:7: ( 'in' ) |
| // InternalIdioms.g:46:9: 'in' |
| { |
| match("in"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__46" |
| |
| // $ANTLR start "T__47" |
| public final void mT__47() throws RecognitionException { |
| try { |
| int _type = T__47; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:47:7: ( '{' ) |
| // InternalIdioms.g:47:9: '{' |
| { |
| match('{'); |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__47" |
| |
| // $ANTLR start "T__48" |
| public final void mT__48() throws RecognitionException { |
| try { |
| int _type = T__48; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:48:7: ( '}' ) |
| // InternalIdioms.g:48:9: '}' |
| { |
| match('}'); |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__48" |
| |
| // $ANTLR start "T__49" |
| public final void mT__49() throws RecognitionException { |
| try { |
| int _type = T__49; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:49:7: ( 'at' ) |
| // InternalIdioms.g:49:9: 'at' |
| { |
| match("at"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__49" |
| |
| // $ANTLR start "T__50" |
| public final void mT__50() throws RecognitionException { |
| try { |
| int _type = T__50; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:50:7: ( 'all' ) |
| // InternalIdioms.g:50:9: 'all' |
| { |
| match("all"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__50" |
| |
| // $ANTLR start "T__51" |
| public final void mT__51() throws RecognitionException { |
| try { |
| int _type = T__51; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:51:7: ( 'each' ) |
| // InternalIdioms.g:51:9: 'each' |
| { |
| match("each"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__51" |
| |
| // $ANTLR start "T__52" |
| public final void mT__52() throws RecognitionException { |
| try { |
| int _type = T__52; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:52:7: ( 'do' ) |
| // InternalIdioms.g:52:9: 'do' |
| { |
| match("do"); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "T__52" |
| |
| // $ANTLR start "RULE_ID" |
| public final void mRULE_ID() throws RecognitionException { |
| try { |
| int _type = RULE_ID; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:2099:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) |
| // InternalIdioms.g:2099:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
| { |
| // InternalIdioms.g:2099:11: ( '^' )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0=='^') ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalIdioms.g:2099:11: '^' |
| { |
| match('^'); |
| |
| } |
| break; |
| |
| } |
| |
| 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;} |
| |
| // InternalIdioms.g:2099:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalIdioms.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 loop2; |
| } |
| } while (true); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "RULE_ID" |
| |
| // $ANTLR start "RULE_INT" |
| public final void mRULE_INT() throws RecognitionException { |
| try { |
| int _type = RULE_INT; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:2101:10: ( ( '0' .. '9' )+ ) |
| // InternalIdioms.g:2101:12: ( '0' .. '9' )+ |
| { |
| // InternalIdioms.g:2101:12: ( '0' .. '9' )+ |
| int cnt3=0; |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( ((LA3_0>='0' && LA3_0<='9')) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalIdioms.g:2101:13: '0' .. '9' |
| { |
| matchRange('0','9'); |
| |
| } |
| break; |
| |
| default : |
| if ( cnt3 >= 1 ) break loop3; |
| EarlyExitException eee = |
| new EarlyExitException(3, input); |
| throw eee; |
| } |
| cnt3++; |
| } while (true); |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "RULE_INT" |
| |
| // $ANTLR start "RULE_STRING" |
| public final void mRULE_STRING() throws RecognitionException { |
| try { |
| int _type = RULE_STRING; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:2103:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) |
| // InternalIdioms.g:2103:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
| { |
| // InternalIdioms.g:2103:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
| int alt6=2; |
| int LA6_0 = input.LA(1); |
| |
| if ( (LA6_0=='\"') ) { |
| alt6=1; |
| } |
| else if ( (LA6_0=='\'') ) { |
| alt6=2; |
| } |
| else { |
| NoViableAltException nvae = |
| new NoViableAltException("", 6, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt6) { |
| case 1 : |
| // InternalIdioms.g:2103:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' |
| { |
| match('\"'); |
| // InternalIdioms.g:2103:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* |
| 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 : |
| // InternalIdioms.g:2103:21: '\\\\' . |
| { |
| match('\\'); |
| matchAny(); |
| |
| } |
| break; |
| case 2 : |
| // InternalIdioms.g:2103:28: ~ ( ( '\\\\' | '\"' ) ) |
| { |
| 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('\"'); |
| |
| } |
| break; |
| case 2 : |
| // InternalIdioms.g:2103:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' |
| { |
| match('\''); |
| // InternalIdioms.g:2103:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* |
| loop5: |
| do { |
| int alt5=3; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0=='\\') ) { |
| alt5=1; |
| } |
| else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { |
| alt5=2; |
| } |
| |
| |
| switch (alt5) { |
| case 1 : |
| // InternalIdioms.g:2103:54: '\\\\' . |
| { |
| match('\\'); |
| matchAny(); |
| |
| } |
| break; |
| case 2 : |
| // InternalIdioms.g:2103: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 loop5; |
| } |
| } while (true); |
| |
| match('\''); |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| 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; |
| // InternalIdioms.g:2105:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) |
| // InternalIdioms.g:2105:19: '/*' ( options {greedy=false; } : . )* '*/' |
| { |
| match("/*"); |
| |
| // InternalIdioms.g:2105:24: ( options {greedy=false; } : . )* |
| loop7: |
| do { |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0=='*') ) { |
| int LA7_1 = input.LA(2); |
| |
| if ( (LA7_1=='/') ) { |
| alt7=2; |
| } |
| else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { |
| alt7=1; |
| } |
| |
| |
| } |
| else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { |
| alt7=1; |
| } |
| |
| |
| switch (alt7) { |
| case 1 : |
| // InternalIdioms.g:2105:52: . |
| { |
| matchAny(); |
| |
| } |
| break; |
| |
| default : |
| break loop7; |
| } |
| } 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; |
| // InternalIdioms.g:2107:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) |
| // InternalIdioms.g:2107:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? |
| { |
| match("//"); |
| |
| // InternalIdioms.g:2107:24: (~ ( ( '\\n' | '\\r' ) ) )* |
| loop8: |
| do { |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { |
| alt8=1; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalIdioms.g:2107: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)<='\uFFFF') ) { |
| input.consume(); |
| |
| } |
| else { |
| MismatchedSetException mse = new MismatchedSetException(null,input); |
| recover(mse); |
| throw mse;} |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| // InternalIdioms.g:2107:40: ( ( '\\r' )? '\\n' )? |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0=='\n'||LA10_0=='\r') ) { |
| alt10=1; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalIdioms.g:2107:41: ( '\\r' )? '\\n' |
| { |
| // InternalIdioms.g:2107:41: ( '\\r' )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0=='\r') ) { |
| alt9=1; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalIdioms.g:2107:41: '\\r' |
| { |
| match('\r'); |
| |
| } |
| break; |
| |
| } |
| |
| match('\n'); |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "RULE_SL_COMMENT" |
| |
| // $ANTLR start "RULE_WS" |
| public final void mRULE_WS() throws RecognitionException { |
| try { |
| int _type = RULE_WS; |
| int _channel = DEFAULT_TOKEN_CHANNEL; |
| // InternalIdioms.g:2109:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) |
| // InternalIdioms.g:2109:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
| { |
| // InternalIdioms.g:2109:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
| int cnt11=0; |
| loop11: |
| do { |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { |
| alt11=1; |
| } |
| |
| |
| switch (alt11) { |
| case 1 : |
| // InternalIdioms.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 ( cnt11 >= 1 ) break loop11; |
| EarlyExitException eee = |
| new EarlyExitException(11, input); |
| throw eee; |
| } |
| cnt11++; |
| } 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; |
| // InternalIdioms.g:2111:16: ( . ) |
| // InternalIdioms.g:2111:18: . |
| { |
| matchAny(); |
| |
| } |
| |
| state.type = _type; |
| state.channel = _channel; |
| } |
| finally { |
| } |
| } |
| // $ANTLR end "RULE_ANY_OTHER" |
| |
| public void mTokens() throws RecognitionException { |
| // InternalIdioms.g:1:8: ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) |
| int alt12=49; |
| alt12 = dfa12.predict(input); |
| switch (alt12) { |
| case 1 : |
| // InternalIdioms.g:1:10: T__11 |
| { |
| mT__11(); |
| |
| } |
| break; |
| case 2 : |
| // InternalIdioms.g:1:16: T__12 |
| { |
| mT__12(); |
| |
| } |
| break; |
| case 3 : |
| // InternalIdioms.g:1:22: T__13 |
| { |
| mT__13(); |
| |
| } |
| break; |
| case 4 : |
| // InternalIdioms.g:1:28: T__14 |
| { |
| mT__14(); |
| |
| } |
| break; |
| case 5 : |
| // InternalIdioms.g:1:34: T__15 |
| { |
| mT__15(); |
| |
| } |
| break; |
| case 6 : |
| // InternalIdioms.g:1:40: T__16 |
| { |
| mT__16(); |
| |
| } |
| break; |
| case 7 : |
| // InternalIdioms.g:1:46: T__17 |
| { |
| mT__17(); |
| |
| } |
| break; |
| case 8 : |
| // InternalIdioms.g:1:52: T__18 |
| { |
| mT__18(); |
| |
| } |
| break; |
| case 9 : |
| // InternalIdioms.g:1:58: T__19 |
| { |
| mT__19(); |
| |
| } |
| break; |
| case 10 : |
| // InternalIdioms.g:1:64: T__20 |
| { |
| mT__20(); |
| |
| } |
| break; |
| case 11 : |
| // InternalIdioms.g:1:70: T__21 |
| { |
| mT__21(); |
| |
| } |
| break; |
| case 12 : |
| // InternalIdioms.g:1:76: T__22 |
| { |
| mT__22(); |
| |
| } |
| break; |
| case 13 : |
| // InternalIdioms.g:1:82: T__23 |
| { |
| mT__23(); |
| |
| } |
| break; |
| case 14 : |
| // InternalIdioms.g:1:88: T__24 |
| { |
| mT__24(); |
| |
| } |
| break; |
| case 15 : |
| // InternalIdioms.g:1:94: T__25 |
| { |
| mT__25(); |
| |
| } |
| break; |
| case 16 : |
| // InternalIdioms.g:1:100: T__26 |
| { |
| mT__26(); |
| |
| } |
| break; |
| case 17 : |
| // InternalIdioms.g:1:106: T__27 |
| { |
| mT__27(); |
| |
| } |
| break; |
| case 18 : |
| // InternalIdioms.g:1:112: T__28 |
| { |
| mT__28(); |
| |
| } |
| break; |
| case 19 : |
| // InternalIdioms.g:1:118: T__29 |
| { |
| mT__29(); |
| |
| } |
| break; |
| case 20 : |
| // InternalIdioms.g:1:124: T__30 |
| { |
| mT__30(); |
| |
| } |
| break; |
| case 21 : |
| // InternalIdioms.g:1:130: T__31 |
| { |
| mT__31(); |
| |
| } |
| break; |
| case 22 : |
| // InternalIdioms.g:1:136: T__32 |
| { |
| mT__32(); |
| |
| } |
| break; |
| case 23 : |
| // InternalIdioms.g:1:142: T__33 |
| { |
| mT__33(); |
| |
| } |
| break; |
| case 24 : |
| // InternalIdioms.g:1:148: T__34 |
| { |
| mT__34(); |
| |
| } |
| break; |
| case 25 : |
| // InternalIdioms.g:1:154: T__35 |
| { |
| mT__35(); |
| |
| } |
| break; |
| case 26 : |
| // InternalIdioms.g:1:160: T__36 |
| { |
| mT__36(); |
| |
| } |
| break; |
| case 27 : |
| // InternalIdioms.g:1:166: T__37 |
| { |
| mT__37(); |
| |
| } |
| break; |
| case 28 : |
| // InternalIdioms.g:1:172: T__38 |
| { |
| mT__38(); |
| |
| } |
| break; |
| case 29 : |
| // InternalIdioms.g:1:178: T__39 |
| { |
| mT__39(); |
| |
| } |
| break; |
| case 30 : |
| // InternalIdioms.g:1:184: T__40 |
| { |
| mT__40(); |
| |
| } |
| break; |
| case 31 : |
| // InternalIdioms.g:1:190: T__41 |
| { |
| mT__41(); |
| |
| } |
| break; |
| case 32 : |
| // InternalIdioms.g:1:196: T__42 |
| { |
| mT__42(); |
| |
| } |
| break; |
| case 33 : |
| // InternalIdioms.g:1:202: T__43 |
| { |
| mT__43(); |
| |
| } |
| break; |
| case 34 : |
| // InternalIdioms.g:1:208: T__44 |
| { |
| mT__44(); |
| |
| } |
| break; |
| case 35 : |
| // InternalIdioms.g:1:214: T__45 |
| { |
| mT__45(); |
| |
| } |
| break; |
| case 36 : |
| // InternalIdioms.g:1:220: T__46 |
| { |
| mT__46(); |
| |
| } |
| break; |
| case 37 : |
| // InternalIdioms.g:1:226: T__47 |
| { |
| mT__47(); |
| |
| } |
| break; |
| case 38 : |
| // InternalIdioms.g:1:232: T__48 |
| { |
| mT__48(); |
| |
| } |
| break; |
| case 39 : |
| // InternalIdioms.g:1:238: T__49 |
| { |
| mT__49(); |
| |
| } |
| break; |
| case 40 : |
| // InternalIdioms.g:1:244: T__50 |
| { |
| mT__50(); |
| |
| } |
| break; |
| case 41 : |
| // InternalIdioms.g:1:250: T__51 |
| { |
| mT__51(); |
| |
| } |
| break; |
| case 42 : |
| // InternalIdioms.g:1:256: T__52 |
| { |
| mT__52(); |
| |
| } |
| break; |
| case 43 : |
| // InternalIdioms.g:1:262: RULE_ID |
| { |
| mRULE_ID(); |
| |
| } |
| break; |
| case 44 : |
| // InternalIdioms.g:1:270: RULE_INT |
| { |
| mRULE_INT(); |
| |
| } |
| break; |
| case 45 : |
| // InternalIdioms.g:1:279: RULE_STRING |
| { |
| mRULE_STRING(); |
| |
| } |
| break; |
| case 46 : |
| // InternalIdioms.g:1:291: RULE_ML_COMMENT |
| { |
| mRULE_ML_COMMENT(); |
| |
| } |
| break; |
| case 47 : |
| // InternalIdioms.g:1:307: RULE_SL_COMMENT |
| { |
| mRULE_SL_COMMENT(); |
| |
| } |
| break; |
| case 48 : |
| // InternalIdioms.g:1:323: RULE_WS |
| { |
| mRULE_WS(); |
| |
| } |
| break; |
| case 49 : |
| // InternalIdioms.g:1:331: RULE_ANY_OTHER |
| { |
| mRULE_ANY_OTHER(); |
| |
| } |
| break; |
| |
| } |
| |
| } |
| |
| |
| protected DFA12 dfa12 = new DFA12(this); |
| static final String DFA12_eotS = |
| "\1\uffff\1\37\1\uffff\2\37\1\uffff\2\37\1\34\10\37\2\uffff\2\37\1\34\2\uffff\3\34\2\uffff\2\37\2\uffff\2\37\1\110\1\112\1\37\1\114\1\37\1\uffff\3\37\1\uffff\16\37\2\uffff\1\37\1\142\5\uffff\4\37\1\uffff\1\37\1\uffff\1\37\1\uffff\1\151\4\37\1\156\7\37\1\uffff\1\166\6\37\1\uffff\5\37\2\uffff\1\u0084\3\37\1\uffff\6\37\2\uffff\1\37\1\uffff\1\37\1\u0090\1\37\1\u0092\1\u0093\1\u0094\1\37\1\u0096\1\37\4\uffff\1\37\1\u009d\2\37\1\uffff\2\37\2\uffff\1\37\1\uffff\1\u00a5\3\uffff\1\u00a6\1\uffff\1\37\4\uffff\1\37\1\uffff\2\37\2\uffff\1\u00ac\1\u00ad\1\37\2\uffff\1\37\1\uffff\1\u00b1\1\u00b2\1\u00b3\2\uffff\2\37\4\uffff\2\37\1\uffff\1\u00ba\1\u00bb\6\uffff"; |
| static final String DFA12_eofS = |
| "\u00bf\uffff"; |
| static final String DFA12_minS = |
| "\1\0\1\151\1\uffff\1\144\1\154\1\uffff\1\151\1\157\1\72\1\151\2\145\1\165\1\141\1\145\1\157\1\141\2\uffff\1\141\1\157\1\101\2\uffff\2\0\1\52\2\uffff\1\144\1\170\2\uffff\1\160\1\151\2\60\1\171\1\60\1\154\1\uffff\1\164\1\141\1\143\1\uffff\1\156\1\162\1\164\1\147\1\146\1\162\1\163\1\154\1\167\1\55\1\160\1\145\1\163\1\154\2\uffff\1\143\1\60\5\uffff\1\145\1\151\2\157\1\uffff\1\151\1\uffff\1\55\1\uffff\1\60\1\150\1\160\2\141\1\60\1\165\1\155\1\164\1\151\1\164\1\146\1\55\1\uffff\1\60\1\164\1\55\1\156\1\150\1\165\1\150\1\uffff\1\154\1\156\1\162\1\155\1\147\1\141\1\uffff\1\60\1\55\1\164\1\154\1\uffff\1\162\1\145\1\55\1\156\1\157\1\55\2\uffff\1\55\1\uffff\1\164\1\60\1\145\3\60\1\164\1\60\1\156\3\uffff\1\141\1\157\1\60\3\156\1\147\1\155\2\uffff\1\141\1\uffff\1\60\3\uffff\1\60\1\uffff\1\155\1\uffff\1\145\2\uffff\1\162\1\uffff\1\163\1\164\2\uffff\2\60\1\142\2\uffff\1\145\1\147\3\60\2\uffff\1\154\1\156\1\151\3\uffff\1\145\1\164\1\156\2\60\1\55\2\uffff\1\141\2\uffff"; |
| static final String DFA12_maxS = |
| "\1\uffff\1\157\1\uffff\1\156\1\164\1\uffff\1\162\1\157\1\72\1\157\1\145\1\164\1\165\1\141\1\157\1\165\1\141\2\uffff\1\141\1\157\1\172\2\uffff\2\uffff\1\57\2\uffff\1\144\1\170\2\uffff\1\160\1\151\2\172\1\171\1\172\1\154\1\uffff\1\164\1\141\1\143\1\uffff\1\156\1\162\1\164\1\147\1\146\1\162\1\163\1\154\1\167\1\55\1\163\1\151\1\163\1\154\2\uffff\1\143\1\172\5\uffff\1\145\1\151\2\157\1\uffff\1\151\1\uffff\1\55\1\uffff\1\172\1\150\1\160\2\141\1\172\1\165\1\155\1\164\1\151\1\164\1\146\1\55\1\uffff\1\172\1\164\1\55\1\156\1\150\1\165\1\150\1\uffff\1\154\1\156\1\162\1\155\1\147\1\145\1\uffff\1\172\1\55\1\164\1\154\1\uffff\1\162\1\145\1\55\1\156\1\157\1\55\2\uffff\1\55\1\uffff\1\164\1\172\1\145\3\172\1\164\1\172\1\156\3\uffff\1\150\1\157\1\172\2\156\1\163\1\147\1\155\2\uffff\1\141\1\uffff\1\172\3\uffff\1\172\1\uffff\1\155\1\uffff\1\145\2\uffff\1\162\1\uffff\1\163\1\164\2\uffff\2\172\1\142\2\uffff\1\145\1\147\3\172\2\uffff\1\154\1\156\1\151\3\uffff\1\145\1\164\1\156\2\172\1\55\2\uffff\1\163\2\uffff"; |
| static final String DFA12_acceptS = |
| "\2\uffff\1\2\2\uffff\1\5\13\uffff\1\45\1\46\3\uffff\1\53\1\54\3\uffff\1\60\1\61\2\uffff\1\53\1\2\7\uffff\1\5\3\uffff\1\13\16\uffff\1\45\1\46\2\uffff\1\54\1\55\1\56\1\57\1\60\4\uffff\1\44\1\uffff\1\4\1\uffff\1\47\15\uffff\1\22\7\uffff\1\52\6\uffff\1\50\4\uffff\1\43\6\uffff\1\21\1\23\1\uffff\1\25\11\uffff\1\10\1\11\1\6\10\uffff\1\20\1\24\1\uffff\1\26\1\uffff\1\51\1\1\1\41\1\uffff\1\42\1\uffff\1\34\1\uffff\1\37\1\40\1\uffff\1\14\2\uffff\1\27\1\30\3\uffff\1\33\1\3\5\uffff\1\31\1\17\3\uffff\1\7\1\15\1\16\6\uffff\1\32\1\12\1\uffff\1\35\1\36"; |
| static final String DFA12_specialS = |
| "\1\1\27\uffff\1\2\1\0\u00a5\uffff}>"; |
| static final String[] DFA12_transitionS = DFA12_transitionS_.DFA12_transitionS; |
| private static final class DFA12_transitionS_ { |
| static final String[] DFA12_transitionS = { |
| "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\6\34\1\2\1\32\12\27\1\10\1\5\5\34\32\26\3\34\1\25\1\26\1\34\1\4\1\26\1\14\1\24\1\23\1\11\1\26\1\15\1\3\2\26\1\7\1\1\1\16\1\26\1\17\1\26\1\12\1\13\2\26\1\20\1\6\3\26\1\21\1\34\1\22\uff82\34", |
| "\1\36\5\uffff\1\35", |
| "", |
| "\1\42\10\uffff\1\41\1\43", |
| "\1\47\1\uffff\1\45\4\uffff\1\44\1\46", |
| "", |
| "\1\51\10\uffff\1\52", |
| "\1\53", |
| "\1\54", |
| "\1\55\5\uffff\1\56", |
| "\1\57", |
| "\1\60\11\uffff\1\61\4\uffff\1\62", |
| "\1\63", |
| "\1\64", |
| "\1\65\11\uffff\1\66", |
| "\1\67\2\uffff\1\70\2\uffff\1\71", |
| "\1\72", |
| "", |
| "", |
| "\1\75", |
| "\1\76", |
| "\32\37\4\uffff\1\37\1\uffff\32\37", |
| "", |
| "", |
| "\0\100", |
| "\0\100", |
| "\1\101\4\uffff\1\102", |
| "", |
| "", |
| "\1\104", |
| "\1\105", |
| "", |
| "", |
| "\1\106", |
| "\1\107", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\22\37\1\111\7\37", |
| "\1\113", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\115", |
| "", |
| "\1\116", |
| "\1\117", |
| "\1\120", |
| "", |
| "\1\121", |
| "\1\122", |
| "\1\123", |
| "\1\124", |
| "\1\125", |
| "\1\126", |
| "\1\127", |
| "\1\130", |
| "\1\131", |
| "\1\132", |
| "\1\133\2\uffff\1\134", |
| "\1\135\3\uffff\1\136", |
| "\1\137", |
| "\1\140", |
| "", |
| "", |
| "\1\141", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\143", |
| "\1\144", |
| "\1\145", |
| "\1\146", |
| "", |
| "\1\147", |
| "", |
| "\1\150", |
| "", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\152", |
| "\1\153", |
| "\1\154", |
| "\1\155", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\157", |
| "\1\160", |
| "\1\161", |
| "\1\162", |
| "\1\163", |
| "\1\164", |
| "\1\165", |
| "", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\167", |
| "\1\170", |
| "\1\171", |
| "\1\172", |
| "\1\173", |
| "\1\174", |
| "", |
| "\1\175", |
| "\1\176", |
| "\1\177", |
| "\1\u0080", |
| "\1\u0081", |
| "\1\u0082\3\uffff\1\u0083", |
| "", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u0085", |
| "\1\u0086", |
| "\1\u0087", |
| "", |
| "\1\u0088", |
| "\1\u0089", |
| "\1\u008a", |
| "\1\u008b", |
| "\1\u008c", |
| "\1\u008d", |
| "", |
| "", |
| "\1\u008e", |
| "", |
| "\1\u008f", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u0091", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u0095", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u0097", |
| "", |
| "", |
| "", |
| "\1\u0098\1\u0099\2\uffff\1\u009a\2\uffff\1\u009b", |
| "\1\u009c", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u009e", |
| "\1\u009f", |
| "\1\u00a0\4\uffff\1\u00a1", |
| "\1\u00a2", |
| "\1\u00a3", |
| "", |
| "", |
| "\1\u00a4", |
| "", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "", |
| "", |
| "", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "", |
| "\1\u00a7", |
| "", |
| "\1\u00a8", |
| "", |
| "", |
| "\1\u00a9", |
| "", |
| "\1\u00aa", |
| "\1\u00ab", |
| "", |
| "", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u00ae", |
| "", |
| "", |
| "\1\u00af", |
| "\1\u00b0", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "", |
| "", |
| "\1\u00b4", |
| "\1\u00b5", |
| "\1\u00b6", |
| "", |
| "", |
| "", |
| "\1\u00b7", |
| "\1\u00b8", |
| "\1\u00b9", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
| "\1\u00bc", |
| "", |
| "", |
| "\1\u00bd\21\uffff\1\u00be", |
| "", |
| "" |
| }; |
| } |
| |
| static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); |
| static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); |
| static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); |
| static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); |
| static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); |
| static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); |
| static final short[][] DFA12_transition; |
| |
| static { |
| int numStates = DFA12_transitionS.length; |
| DFA12_transition = new short[numStates][]; |
| for (int i=0; i<numStates; i++) { |
| DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]); |
| } |
| } |
| |
| static class DFA12 extends DFA { |
| |
| public DFA12(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 12; |
| this.eot = DFA12_eot; |
| this.eof = DFA12_eof; |
| this.min = DFA12_min; |
| this.max = DFA12_max; |
| this.accept = DFA12_accept; |
| this.special = DFA12_special; |
| this.transition = DFA12_transition; |
| } |
| public String getDescription() { |
| return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | 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 LA12_25 = input.LA(1); |
| |
| s = -1; |
| if ( ((LA12_25>='\u0000' && LA12_25<='\uFFFF')) ) {s = 64;} |
| |
| else s = 28; |
| |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA12_0 = input.LA(1); |
| |
| s = -1; |
| if ( (LA12_0=='m') ) {s = 1;} |
| |
| else if ( (LA12_0=='.') ) {s = 2;} |
| |
| else if ( (LA12_0=='i') ) {s = 3;} |
| |
| else if ( (LA12_0=='a') ) {s = 4;} |
| |
| else if ( (LA12_0==';') ) {s = 5;} |
| |
| else if ( (LA12_0=='w') ) {s = 6;} |
| |
| else if ( (LA12_0=='l') ) {s = 7;} |
| |
| else if ( (LA12_0==':') ) {s = 8;} |
| |
| else if ( (LA12_0=='f') ) {s = 9;} |
| |
| else if ( (LA12_0=='r') ) {s = 10;} |
| |
| else if ( (LA12_0=='s') ) {s = 11;} |
| |
| else if ( (LA12_0=='c') ) {s = 12;} |
| |
| else if ( (LA12_0=='h') ) {s = 13;} |
| |
| else if ( (LA12_0=='n') ) {s = 14;} |
| |
| else if ( (LA12_0=='p') ) {s = 15;} |
| |
| else if ( (LA12_0=='v') ) {s = 16;} |
| |
| else if ( (LA12_0=='{') ) {s = 17;} |
| |
| else if ( (LA12_0=='}') ) {s = 18;} |
| |
| else if ( (LA12_0=='e') ) {s = 19;} |
| |
| else if ( (LA12_0=='d') ) {s = 20;} |
| |
| else if ( (LA12_0=='^') ) {s = 21;} |
| |
| else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||LA12_0=='b'||LA12_0=='g'||(LA12_0>='j' && LA12_0<='k')||LA12_0=='o'||LA12_0=='q'||(LA12_0>='t' && LA12_0<='u')||(LA12_0>='x' && LA12_0<='z')) ) {s = 22;} |
| |
| else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 23;} |
| |
| else if ( (LA12_0=='\"') ) {s = 24;} |
| |
| else if ( (LA12_0=='\'') ) {s = 25;} |
| |
| else if ( (LA12_0=='/') ) {s = 26;} |
| |
| else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 27;} |
| |
| else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='#' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='-')||(LA12_0>='<' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||LA12_0=='|'||(LA12_0>='~' && LA12_0<='\uFFFF')) ) {s = 28;} |
| |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA12_24 = input.LA(1); |
| |
| s = -1; |
| if ( ((LA12_24>='\u0000' && LA12_24<='\uFFFF')) ) {s = 64;} |
| |
| else s = 28; |
| |
| if ( s>=0 ) return s; |
| break; |
| } |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 12, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| } |