// $ANTLR 3.1 AdvancedExpression.g 2021-06-15 14:44:27 package com.sagacloud.advanced.expression; import org.antlr.runtime.*; import java.util.Stack; import java.util.List; import java.util.ArrayList; public class AdvancedExpressionLexer extends Lexer { public static final int T__29=29; public static final int T__28=28; public static final int T__27=27; public static final int T__26=26; public static final int T__25=25; public static final int T__24=24; public static final int T__23=23; public static final int T__22=22; public static final int T__21=21; public static final int T__20=20; public static final int ID=11; public static final int EOF=-1; public static final int STRINGID=15; public static final int STRINGWRAPPER=5; public static final int F1=17; public static final int F0=16; public static final int DOUBLE=8; public static final int TAILSTRING=13; public static final int F2=18; public static final int T__42=42; public static final int INTEGER=9; public static final int T__43=43; public static final int T__40=40; public static final int T__41=41; public static final int NULL=7; public static final int SUBSTRING=12; public static final int STRINGVALUE=14; 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 T__33=33; public static final int WS=19; public static final int T__34=34; public static final int T__35=35; public static final int NEWLINE=6; public static final int T__36=36; 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 CONSTANT=10; public static final int IFWRAPPER=4; public Object recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow) throws RecognitionException { throw new MismatchedTokenException(ttype, input); } public Object recoverFromMismatchedSet(IntStream input,RecognitionException e,BitSet follow) throws RecognitionException { throw e; } public void displayRecognitionError(String[] tokenNames, RecognitionException e) { String hdr = getErrorHeader(e); String msg = getErrorMessage(e, tokenNames); throw new RuntimeException(hdr + ":" + msg); } // delegates // delegators public AdvancedExpressionLexer() {;} public AdvancedExpressionLexer(CharStream input) { this(input, new RecognizerSharedState()); } public AdvancedExpressionLexer(CharStream input, RecognizerSharedState state) { super(input,state); } public String getGrammarFileName() { return "AdvancedExpression.g"; } // $ANTLR start "T__20" public final void mT__20() throws RecognitionException { try { int _type = T__20; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:29:7: ( '+' ) // AdvancedExpression.g:29:9: '+' { match('+'); } 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; // AdvancedExpression.g:30:7: ( '-' ) // AdvancedExpression.g:30: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; // AdvancedExpression.g:31:7: ( '*' ) // AdvancedExpression.g:31:9: '*' { match('*'); } 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; // AdvancedExpression.g:32:7: ( '/' ) // AdvancedExpression.g:32:9: '/' { match('/'); } 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; // AdvancedExpression.g:33:7: ( '%' ) // AdvancedExpression.g:33:9: '%' { match('%'); } 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; // AdvancedExpression.g:34:7: ( '(' ) // AdvancedExpression.g:34:9: '(' { match('('); } 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; // AdvancedExpression.g:35:7: ( ')' ) // AdvancedExpression.g:35:9: ')' { match(')'); } 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; // AdvancedExpression.g:36:7: ( ',' ) // AdvancedExpression.g:36:9: ',' { match(','); } 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; // AdvancedExpression.g:37:7: ( '[' ) // AdvancedExpression.g:37:9: '[' { match('['); } 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; // AdvancedExpression.g:38:7: ( ']' ) // AdvancedExpression.g:38:9: ']' { match(']'); } 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; // AdvancedExpression.g:39:7: ( 'if' ) // AdvancedExpression.g:39:9: 'if' { match("if"); } 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; // AdvancedExpression.g:40:7: ( '{' ) // AdvancedExpression.g:40:9: '{' { match('{'); } 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; // AdvancedExpression.g:41:7: ( '}' ) // AdvancedExpression.g:41:9: '}' { match('}'); } 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; // AdvancedExpression.g:42:7: ( 'elseif' ) // AdvancedExpression.g:42:9: 'elseif' { match("elseif"); } 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; // AdvancedExpression.g:43:7: ( 'else' ) // AdvancedExpression.g:43:9: 'else' { match("else"); } 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; // AdvancedExpression.g:44:7: ( '||' ) // AdvancedExpression.g:44:9: '||' { match("||"); } 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; // AdvancedExpression.g:45:7: ( '&&' ) // AdvancedExpression.g:45:9: '&&' { match("&&"); } 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; // AdvancedExpression.g:46:7: ( '!' ) // AdvancedExpression.g:46:9: '!' { match('!'); } 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; // AdvancedExpression.g:47:7: ( '==' ) // AdvancedExpression.g:47:9: '==' { match("=="); } 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; // AdvancedExpression.g:48:7: ( '!=' ) // AdvancedExpression.g:48:9: '!=' { match("!="); } 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; // AdvancedExpression.g:49:7: ( '<' ) // AdvancedExpression.g:49:9: '<' { match('<'); } 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; // AdvancedExpression.g:50:7: ( '<=' ) // AdvancedExpression.g:50:9: '<=' { match("<="); } 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; // AdvancedExpression.g:51:7: ( '>' ) // AdvancedExpression.g:51:9: '>' { match('>'); } 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; // AdvancedExpression.g:52:7: ( '>=' ) // AdvancedExpression.g:52:9: '>=' { match(">="); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "T__43" // $ANTLR start "F0" public final void mF0() throws RecognitionException { try { int _type = F0; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:159:4: ( ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' ) ) // AdvancedExpression.g:159:6: ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' ) { // AdvancedExpression.g:159:6: ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' ) int alt1=10; alt1 = dfa1.predict(input); switch (alt1) { case 1 : // AdvancedExpression.g:159:7: 'year' { match("year"); } break; case 2 : // AdvancedExpression.g:159:14: 'month' { match("month"); } break; case 3 : // AdvancedExpression.g:159:22: 'day' { match("day"); } break; case 4 : // AdvancedExpression.g:159:28: 'hour' { match("hour"); } break; case 5 : // AdvancedExpression.g:159:35: 'minute' { match("minute"); } break; case 6 : // AdvancedExpression.g:159:44: 'second' { match("second"); } break; case 7 : // AdvancedExpression.g:159:53: 'dayofweek' { match("dayofweek"); } break; case 8 : // AdvancedExpression.g:159:65: 'dayofyear' { match("dayofyear"); } break; case 9 : // AdvancedExpression.g:159:77: 'totalsecond' { match("totalsecond"); } break; case 10 : // AdvancedExpression.g:159:91: 'random' { match("random"); } break; } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "F0" // $ANTLR start "F1" public final void mF1() throws RecognitionException { try { int _type = F1; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:160:4: ( ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' ) ) // AdvancedExpression.g:160:6: ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' ) { // AdvancedExpression.g:160:6: ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' ) int alt2=16; alt2 = dfa2.predict(input); switch (alt2) { case 1 : // AdvancedExpression.g:160:7: 'abs' { match("abs"); } break; case 2 : // AdvancedExpression.g:160:13: 'acos' { match("acos"); } break; case 3 : // AdvancedExpression.g:160:20: 'asin' { match("asin"); } break; case 4 : // AdvancedExpression.g:160:27: 'atan' { match("atan"); } break; case 5 : // AdvancedExpression.g:160:34: 'ceil' { match("ceil"); } break; case 6 : // AdvancedExpression.g:160:41: 'cos' { match("cos"); } break; case 7 : // AdvancedExpression.g:160:47: 'cosh' { match("cosh"); } break; case 8 : // AdvancedExpression.g:160:54: 'exp' { match("exp"); } break; case 9 : // AdvancedExpression.g:160:60: 'floor' { match("floor"); } break; case 10 : // AdvancedExpression.g:160:68: 'log' { match("log"); } break; case 11 : // AdvancedExpression.g:160:74: 'log10' { match("log10"); } break; case 12 : // AdvancedExpression.g:160:82: 'sin' { match("sin"); } break; case 13 : // AdvancedExpression.g:160:88: 'sinh' { match("sinh"); } break; case 14 : // AdvancedExpression.g:160:95: 'sqrt' { match("sqrt"); } break; case 15 : // AdvancedExpression.g:160:102: 'tan' { match("tan"); } break; case 16 : // AdvancedExpression.g:160:108: 'tanh' { match("tanh"); } break; } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "F1" // $ANTLR start "F2" public final void mF2() throws RecognitionException { try { int _type = F2; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:161:4: ( ( 'atan2' | 'fmod' | 'pow' | 'max' | 'min' ) ) // AdvancedExpression.g:161:6: ( 'atan2' | 'fmod' | 'pow' | 'max' | 'min' ) { // AdvancedExpression.g:161:6: ( 'atan2' | 'fmod' | 'pow' | 'max' | 'min' ) int alt3=5; switch ( input.LA(1) ) { case 'a': { alt3=1; } break; case 'f': { alt3=2; } break; case 'p': { alt3=3; } break; case 'm': { int LA3_4 = input.LA(2); if ( (LA3_4=='a') ) { alt3=4; } else if ( (LA3_4=='i') ) { alt3=5; } else { NoViableAltException nvae = new NoViableAltException("", 3, 4, input); throw nvae; } } break; default: NoViableAltException nvae = new NoViableAltException("", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // AdvancedExpression.g:161:7: 'atan2' { match("atan2"); } break; case 2 : // AdvancedExpression.g:161:15: 'fmod' { match("fmod"); } break; case 3 : // AdvancedExpression.g:161:22: 'pow' { match("pow"); } break; case 4 : // AdvancedExpression.g:161:28: 'max' { match("max"); } break; case 5 : // AdvancedExpression.g:161:34: 'min' { match("min"); } break; } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "F2" // $ANTLR start "CONSTANT" public final void mCONSTANT() throws RecognitionException { try { int _type = CONSTANT; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:162:10: ( ( 'PI' | 'E' ) ) // AdvancedExpression.g:162:12: ( 'PI' | 'E' ) { // AdvancedExpression.g:162:12: ( 'PI' | 'E' ) int alt4=2; int LA4_0 = input.LA(1); if ( (LA4_0=='P') ) { alt4=1; } else if ( (LA4_0=='E') ) { alt4=2; } else { NoViableAltException nvae = new NoViableAltException("", 4, 0, input); throw nvae; } switch (alt4) { case 1 : // AdvancedExpression.g:162:13: 'PI' { match("PI"); } break; case 2 : // AdvancedExpression.g:162:18: 'E' { match('E'); } break; } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "CONSTANT" // $ANTLR start "NULL" public final void mNULL() throws RecognitionException { try { int _type = NULL; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:163:6: ( 'null' ) // AdvancedExpression.g:163:8: 'null' { match("null"); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "NULL" // $ANTLR start "DOUBLE" public final void mDOUBLE() throws RecognitionException { try { int _type = DOUBLE; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:164:8: ( ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) ( '.' ( ( '0' .. '9' )* ) ) ) // AdvancedExpression.g:164:10: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) ( '.' ( ( '0' .. '9' )* ) ) { // AdvancedExpression.g:164:10: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) int alt6=2; int LA6_0 = input.LA(1); if ( (LA6_0=='0') ) { alt6=1; } else if ( ((LA6_0>='1' && LA6_0<='9')) ) { alt6=2; } else { NoViableAltException nvae = new NoViableAltException("", 6, 0, input); throw nvae; } switch (alt6) { case 1 : // AdvancedExpression.g:164:11: '0' { match('0'); } break; case 2 : // AdvancedExpression.g:164:15: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) { // AdvancedExpression.g:164:15: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) // AdvancedExpression.g:164:16: ( '1' .. '9' ) ( ( '0' .. '9' )* ) { // AdvancedExpression.g:164:16: ( '1' .. '9' ) // AdvancedExpression.g:164:17: '1' .. '9' { matchRange('1','9'); } // AdvancedExpression.g:164:26: ( ( '0' .. '9' )* ) // AdvancedExpression.g:164:27: ( '0' .. '9' )* { // AdvancedExpression.g:164:27: ( '0' .. '9' )* loop5: do { int alt5=2; int LA5_0 = input.LA(1); if ( ((LA5_0>='0' && LA5_0<='9')) ) { alt5=1; } switch (alt5) { case 1 : // AdvancedExpression.g:164:27: '0' .. '9' { matchRange('0','9'); } break; default : break loop5; } } while (true); } } } break; } // AdvancedExpression.g:164:39: ( '.' ( ( '0' .. '9' )* ) ) // AdvancedExpression.g:164:40: '.' ( ( '0' .. '9' )* ) { match('.'); // AdvancedExpression.g:164:43: ( ( '0' .. '9' )* ) // AdvancedExpression.g:164:44: ( '0' .. '9' )* { // AdvancedExpression.g:164:44: ( '0' .. '9' )* loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( ((LA7_0>='0' && LA7_0<='9')) ) { alt7=1; } switch (alt7) { case 1 : // AdvancedExpression.g:164:44: '0' .. '9' { matchRange('0','9'); } break; default : break loop7; } } while (true); } } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "DOUBLE" // $ANTLR start "INTEGER" public final void mINTEGER() throws RecognitionException { try { int _type = INTEGER; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:165:9: ( ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) ) // AdvancedExpression.g:165:11: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) { // AdvancedExpression.g:165:11: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) int alt9=2; int LA9_0 = input.LA(1); if ( (LA9_0=='0') ) { alt9=1; } else if ( ((LA9_0>='1' && LA9_0<='9')) ) { alt9=2; } else { NoViableAltException nvae = new NoViableAltException("", 9, 0, input); throw nvae; } switch (alt9) { case 1 : // AdvancedExpression.g:165:12: '0' { match('0'); } break; case 2 : // AdvancedExpression.g:165:16: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) { // AdvancedExpression.g:165:16: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) // AdvancedExpression.g:165:17: ( '1' .. '9' ) ( ( '0' .. '9' )* ) { // AdvancedExpression.g:165:17: ( '1' .. '9' ) // AdvancedExpression.g:165:18: '1' .. '9' { matchRange('1','9'); } // AdvancedExpression.g:165:27: ( ( '0' .. '9' )* ) // AdvancedExpression.g:165:28: ( '0' .. '9' )* { // AdvancedExpression.g:165:28: ( '0' .. '9' )* loop8: do { int alt8=2; int LA8_0 = input.LA(1); if ( ((LA8_0>='0' && LA8_0<='9')) ) { alt8=1; } switch (alt8) { case 1 : // AdvancedExpression.g:165:28: '0' .. '9' { matchRange('0','9'); } break; default : break loop8; } } while (true); } } } break; } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "INTEGER" // $ANTLR start "SUBSTRING" public final void mSUBSTRING() throws RecognitionException { try { int _type = SUBSTRING; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:166:11: ( ( 's' ) ( 'u' ) ( 'b' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) ) // AdvancedExpression.g:166:13: ( 's' ) ( 'u' ) ( 'b' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) { // AdvancedExpression.g:166:13: ( 's' ) // AdvancedExpression.g:166:14: 's' { match('s'); } // AdvancedExpression.g:166:18: ( 'u' ) // AdvancedExpression.g:166:19: 'u' { match('u'); } // AdvancedExpression.g:166:23: ( 'b' ) // AdvancedExpression.g:166:24: 'b' { match('b'); } // AdvancedExpression.g:166:28: ( 's' ) // AdvancedExpression.g:166:29: 's' { match('s'); } // AdvancedExpression.g:166:33: ( 't' ) // AdvancedExpression.g:166:34: 't' { match('t'); } // AdvancedExpression.g:166:38: ( 'r' ) // AdvancedExpression.g:166:39: 'r' { match('r'); } // AdvancedExpression.g:166:43: ( 'i' ) // AdvancedExpression.g:166:44: 'i' { match('i'); } // AdvancedExpression.g:166:48: ( 'n' ) // AdvancedExpression.g:166:49: 'n' { match('n'); } // AdvancedExpression.g:166:53: ( 'g' ) // AdvancedExpression.g:166:54: 'g' { match('g'); } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "SUBSTRING" // $ANTLR start "TAILSTRING" public final void mTAILSTRING() throws RecognitionException { try { int _type = TAILSTRING; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:167:12: ( ( 't' ) ( 'a' ) ( 'i' ) ( 'l' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) ) // AdvancedExpression.g:167:14: ( 't' ) ( 'a' ) ( 'i' ) ( 'l' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) { // AdvancedExpression.g:167:14: ( 't' ) // AdvancedExpression.g:167:15: 't' { match('t'); } // AdvancedExpression.g:167:19: ( 'a' ) // AdvancedExpression.g:167:20: 'a' { match('a'); } // AdvancedExpression.g:167:24: ( 'i' ) // AdvancedExpression.g:167:25: 'i' { match('i'); } // AdvancedExpression.g:167:29: ( 'l' ) // AdvancedExpression.g:167:30: 'l' { match('l'); } // AdvancedExpression.g:167:34: ( 's' ) // AdvancedExpression.g:167:35: 's' { match('s'); } // AdvancedExpression.g:167:39: ( 't' ) // AdvancedExpression.g:167:40: 't' { match('t'); } // AdvancedExpression.g:167:44: ( 'r' ) // AdvancedExpression.g:167:45: 'r' { match('r'); } // AdvancedExpression.g:167:49: ( 'i' ) // AdvancedExpression.g:167:50: 'i' { match('i'); } // AdvancedExpression.g:167:54: ( 'n' ) // AdvancedExpression.g:167:55: 'n' { match('n'); } // AdvancedExpression.g:167:59: ( 'g' ) // AdvancedExpression.g:167:60: 'g' { match('g'); } } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "TAILSTRING" // $ANTLR start "STRINGID" public final void mSTRINGID() throws RecognitionException { try { int _type = STRINGID; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:168:10: ( ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) ( '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) // AdvancedExpression.g:168:12: ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) ( '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* { // AdvancedExpression.g:168:12: ( 's' ) // AdvancedExpression.g:168:13: 's' { match('s'); } // AdvancedExpression.g:168:17: ( 't' ) // AdvancedExpression.g:168:18: 't' { match('t'); } // AdvancedExpression.g:168:22: ( 'r' ) // AdvancedExpression.g:168:23: 'r' { match('r'); } // AdvancedExpression.g:168:27: ( 'i' ) // AdvancedExpression.g:168:28: 'i' { match('i'); } // AdvancedExpression.g:168:32: ( 'n' ) // AdvancedExpression.g:168:33: 'n' { match('n'); } // AdvancedExpression.g:168:37: ( 'g' ) // AdvancedExpression.g:168:38: 'g' { match('g'); } // AdvancedExpression.g:168:42: ( '_' ) // AdvancedExpression.g:168:43: '_' { match('_'); } 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;} // AdvancedExpression.g:168:70: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* loop10: do { int alt10=2; int LA10_0 = input.LA(1); if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { alt10=1; } switch (alt10) { case 1 : // AdvancedExpression.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 loop10; } } while (true); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "STRINGID" // $ANTLR start "ID" public final void mID() throws RecognitionException { try { int _type = ID; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:169:4: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) // AdvancedExpression.g:169:6: ( '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;} // AdvancedExpression.g:169:29: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* loop11: do { int alt11=2; int LA11_0 = input.LA(1); if ( ((LA11_0>='0' && LA11_0<='9')||(LA11_0>='A' && LA11_0<='Z')||LA11_0=='_'||(LA11_0>='a' && LA11_0<='z')) ) { alt11=1; } switch (alt11) { case 1 : // AdvancedExpression.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 loop11; } } while (true); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "ID" // $ANTLR start "STRINGVALUE" public final void mSTRINGVALUE() throws RecognitionException { try { int _type = STRINGVALUE; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:170:13: ( '\"' ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '-' )* '\"' ) // AdvancedExpression.g:170:15: '\"' ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '-' )* '\"' { match('\"'); // AdvancedExpression.g:170:19: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '-' )* loop12: do { int alt12=2; int LA12_0 = input.LA(1); if ( (LA12_0=='-'||(LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='z')) ) { alt12=1; } switch (alt12) { case 1 : // AdvancedExpression.g: { if ( input.LA(1)=='-'||(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 loop12; } } while (true); match('\"'); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "STRINGVALUE" // $ANTLR start "NEWLINE" public final void mNEWLINE() throws RecognitionException { try { int _type = NEWLINE; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:171:9: ( '$' ) // AdvancedExpression.g:171:11: '$' { match('$'); } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "NEWLINE" // $ANTLR start "WS" public final void mWS() throws RecognitionException { try { int _type = WS; int _channel = DEFAULT_TOKEN_CHANNEL; // AdvancedExpression.g:172:4: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) // AdvancedExpression.g:172:6: ( ' ' | '\\t' | '\\r' | '\\n' )+ { // AdvancedExpression.g:172:6: ( ' ' | '\\t' | '\\r' | '\\n' )+ int cnt13=0; loop13: do { int alt13=2; int LA13_0 = input.LA(1); if ( ((LA13_0>='\t' && LA13_0<='\n')||LA13_0=='\r'||LA13_0==' ') ) { alt13=1; } switch (alt13) { case 1 : // AdvancedExpression.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 ( cnt13 >= 1 ) break loop13; EarlyExitException eee = new EarlyExitException(13, input); throw eee; } cnt13++; } while (true); _channel = HIDDEN; } state.type = _type; state.channel = _channel; } finally { } } // $ANTLR end "WS" public void mTokens() throws RecognitionException { // AdvancedExpression.g:1:8: ( 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 | F0 | F1 | F2 | CONSTANT | NULL | DOUBLE | INTEGER | SUBSTRING | TAILSTRING | STRINGID | ID | STRINGVALUE | NEWLINE | WS ) int alt14=38; alt14 = dfa14.predict(input); switch (alt14) { case 1 : // AdvancedExpression.g:1:10: T__20 { mT__20(); } break; case 2 : // AdvancedExpression.g:1:16: T__21 { mT__21(); } break; case 3 : // AdvancedExpression.g:1:22: T__22 { mT__22(); } break; case 4 : // AdvancedExpression.g:1:28: T__23 { mT__23(); } break; case 5 : // AdvancedExpression.g:1:34: T__24 { mT__24(); } break; case 6 : // AdvancedExpression.g:1:40: T__25 { mT__25(); } break; case 7 : // AdvancedExpression.g:1:46: T__26 { mT__26(); } break; case 8 : // AdvancedExpression.g:1:52: T__27 { mT__27(); } break; case 9 : // AdvancedExpression.g:1:58: T__28 { mT__28(); } break; case 10 : // AdvancedExpression.g:1:64: T__29 { mT__29(); } break; case 11 : // AdvancedExpression.g:1:70: T__30 { mT__30(); } break; case 12 : // AdvancedExpression.g:1:76: T__31 { mT__31(); } break; case 13 : // AdvancedExpression.g:1:82: T__32 { mT__32(); } break; case 14 : // AdvancedExpression.g:1:88: T__33 { mT__33(); } break; case 15 : // AdvancedExpression.g:1:94: T__34 { mT__34(); } break; case 16 : // AdvancedExpression.g:1:100: T__35 { mT__35(); } break; case 17 : // AdvancedExpression.g:1:106: T__36 { mT__36(); } break; case 18 : // AdvancedExpression.g:1:112: T__37 { mT__37(); } break; case 19 : // AdvancedExpression.g:1:118: T__38 { mT__38(); } break; case 20 : // AdvancedExpression.g:1:124: T__39 { mT__39(); } break; case 21 : // AdvancedExpression.g:1:130: T__40 { mT__40(); } break; case 22 : // AdvancedExpression.g:1:136: T__41 { mT__41(); } break; case 23 : // AdvancedExpression.g:1:142: T__42 { mT__42(); } break; case 24 : // AdvancedExpression.g:1:148: T__43 { mT__43(); } break; case 25 : // AdvancedExpression.g:1:154: F0 { mF0(); } break; case 26 : // AdvancedExpression.g:1:157: F1 { mF1(); } break; case 27 : // AdvancedExpression.g:1:160: F2 { mF2(); } break; case 28 : // AdvancedExpression.g:1:163: CONSTANT { mCONSTANT(); } break; case 29 : // AdvancedExpression.g:1:172: NULL { mNULL(); } break; case 30 : // AdvancedExpression.g:1:177: DOUBLE { mDOUBLE(); } break; case 31 : // AdvancedExpression.g:1:184: INTEGER { mINTEGER(); } break; case 32 : // AdvancedExpression.g:1:192: SUBSTRING { mSUBSTRING(); } break; case 33 : // AdvancedExpression.g:1:202: TAILSTRING { mTAILSTRING(); } break; case 34 : // AdvancedExpression.g:1:213: STRINGID { mSTRINGID(); } break; case 35 : // AdvancedExpression.g:1:222: ID { mID(); } break; case 36 : // AdvancedExpression.g:1:225: STRINGVALUE { mSTRINGVALUE(); } break; case 37 : // AdvancedExpression.g:1:237: NEWLINE { mNEWLINE(); } break; case 38 : // AdvancedExpression.g:1:245: WS { mWS(); } break; } } protected DFA1 dfa1 = new DFA1(this); protected DFA2 dfa2 = new DFA2(this); protected DFA14 dfa14 = new DFA14(this); static final String DFA1_eotS = "\13\uffff\1\15\5\uffff"; static final String DFA1_eofS = "\21\uffff"; static final String DFA1_minS = "\1\144\1\uffff\1\151\1\141\6\uffff\1\171\1\157\1\146\1\uffff\1"+ "\167\2\uffff"; static final String DFA1_maxS = "\1\171\1\uffff\1\157\1\141\6\uffff\1\171\1\157\1\146\1\uffff\1"+ "\171\2\uffff"; static final String DFA1_acceptS = "\1\uffff\1\1\2\uffff\1\4\1\6\1\11\1\12\1\2\1\5\3\uffff\1\3\1\uffff"+ "\1\7\1\10"; static final String DFA1_specialS = "\21\uffff}>"; static final String[] DFA1_transitionS = { "\1\3\3\uffff\1\4\4\uffff\1\2\4\uffff\1\7\1\5\1\6\4\uffff\1"+ "\1", "", "\1\11\5\uffff\1\10", "\1\12", "", "", "", "", "", "", "\1\13", "\1\14", "\1\16", "", "\1\17\1\uffff\1\20", "", "" }; static final short[] DFA1_eot = DFA.unpackEncodedString(DFA1_eotS); static final short[] DFA1_eof = DFA.unpackEncodedString(DFA1_eofS); static final char[] DFA1_min = DFA.unpackEncodedStringToUnsignedChars(DFA1_minS); static final char[] DFA1_max = DFA.unpackEncodedStringToUnsignedChars(DFA1_maxS); static final short[] DFA1_accept = DFA.unpackEncodedString(DFA1_acceptS); static final short[] DFA1_special = DFA.unpackEncodedString(DFA1_specialS); static final short[][] DFA1_transition; static { int numStates = DFA1_transitionS.length; DFA1_transition = new short[numStates][]; for (int i=0; i