123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433 |
- // $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<numStates; i++) {
- DFA1_transition[i] = DFA.unpackEncodedString(DFA1_transitionS[i]);
- }
- }
- class DFA1 extends DFA {
- public DFA1(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 1;
- this.eot = DFA1_eot;
- this.eof = DFA1_eof;
- this.min = DFA1_min;
- this.max = DFA1_max;
- this.accept = DFA1_accept;
- this.special = DFA1_special;
- this.transition = DFA1_transition;
- }
- public String getDescription() {
- return "159:6: ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' )";
- }
- }
- static final String DFA2_eotS =
- "\22\uffff\1\27\1\31\1\33\1\35\10\uffff";
- static final String DFA2_eofS =
- "\36\uffff";
- static final String DFA2_minS =
- "\1\141\1\142\1\145\2\uffff\1\157\1\151\1\141\5\uffff\1\163\1\147"+
- "\1\156\1\uffff\1\156\1\150\1\61\2\150\10\uffff";
- static final String DFA2_maxS =
- "\2\164\1\157\2\uffff\1\157\1\161\1\141\5\uffff\1\163\1\147\1\156"+
- "\1\uffff\1\156\1\150\1\61\2\150\10\uffff";
- static final String DFA2_acceptS =
- "\3\uffff\1\10\1\11\3\uffff\1\1\1\2\1\3\1\4\1\5\3\uffff\1\16\5\uffff"+
- "\1\7\1\6\1\13\1\12\1\15\1\14\1\20\1\17";
- static final String DFA2_specialS =
- "\36\uffff}>";
- static final String[] DFA2_transitionS = {
- "\1\1\1\uffff\1\2\1\uffff\1\3\1\4\5\uffff\1\5\6\uffff\1\6\1"+
- "\7",
- "\1\10\1\11\17\uffff\1\12\1\13",
- "\1\14\11\uffff\1\15",
- "",
- "",
- "\1\16",
- "\1\17\7\uffff\1\20",
- "\1\21",
- "",
- "",
- "",
- "",
- "",
- "\1\22",
- "\1\23",
- "\1\24",
- "",
- "\1\25",
- "\1\26",
- "\1\30",
- "\1\32",
- "\1\34",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
- static final short[] DFA2_eot = DFA.unpackEncodedString(DFA2_eotS);
- static final short[] DFA2_eof = DFA.unpackEncodedString(DFA2_eofS);
- static final char[] DFA2_min = DFA.unpackEncodedStringToUnsignedChars(DFA2_minS);
- static final char[] DFA2_max = DFA.unpackEncodedStringToUnsignedChars(DFA2_maxS);
- static final short[] DFA2_accept = DFA.unpackEncodedString(DFA2_acceptS);
- static final short[] DFA2_special = DFA.unpackEncodedString(DFA2_specialS);
- static final short[][] DFA2_transition;
- static {
- int numStates = DFA2_transitionS.length;
- DFA2_transition = new short[numStates][];
- for (int i=0; i<numStates; i++) {
- DFA2_transition[i] = DFA.unpackEncodedString(DFA2_transitionS[i]);
- }
- }
- class DFA2 extends DFA {
- public DFA2(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 2;
- this.eot = DFA2_eot;
- this.eof = DFA2_eof;
- this.min = DFA2_min;
- this.max = DFA2_max;
- this.accept = DFA2_accept;
- this.special = DFA2_special;
- this.transition = DFA2_transition;
- }
- public String getDescription() {
- return "160:6: ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' )";
- }
- }
- static final String DFA14_eotS =
- "\13\uffff\1\46\2\uffff\1\46\2\uffff\1\56\1\uffff\1\60\1\62\15\46"+
- "\1\114\1\46\2\116\4\uffff\1\121\2\46\6\uffff\30\46\1\114\1\uffff"+
- "\1\46\2\uffff\1\116\1\uffff\1\46\1\157\2\46\2\163\1\165\2\46\1\157"+
- "\4\46\1\157\2\46\1\157\4\46\1\157\2\46\1\157\1\163\1\46\1\u008a"+
- "\1\uffff\1\165\2\46\1\uffff\1\46\1\uffff\1\165\1\46\2\157\3\46\1"+
- "\157\2\46\5\157\1\46\1\163\1\46\1\u0097\1\46\1\uffff\1\165\10\46"+
- "\1\163\2\157\1\uffff\1\u00a2\1\165\2\46\1\165\4\46\1\165\1\uffff"+
- "\11\46\1\u00b2\2\46\2\165\1\u00b6\1\uffff\1\u00b2\2\46\1\uffff\1"+
- "\46\1\u00ba\1\165\1\uffff";
- static final String DFA14_eofS =
- "\u00bb\uffff";
- static final String DFA14_minS =
- "\1\11\12\uffff\1\146\2\uffff\1\154\2\uffff\1\75\1\uffff\2\75\1"+
- "\145\2\141\1\157\1\145\2\141\1\142\1\145\1\154\2\157\1\111\1\60"+
- "\1\165\2\56\4\uffff\1\60\1\163\1\160\6\uffff\1\141\2\156\1\170\1"+
- "\171\1\165\1\143\1\156\1\162\1\142\1\162\1\164\1\151\1\156\1\163"+
- "\1\157\1\151\1\141\1\151\1\163\2\157\1\147\1\167\1\60\1\uffff\1"+
- "\154\2\uffff\1\56\1\uffff\1\145\1\60\1\162\1\164\3\60\1\162\1\157"+
- "\1\60\1\164\1\163\1\151\1\141\1\60\1\154\1\144\1\60\1\163\2\156"+
- "\1\154\1\60\1\157\1\144\2\60\1\154\1\60\1\uffff\1\60\1\150\1\164"+
- "\1\uffff\1\146\1\uffff\1\60\1\156\2\60\1\164\1\156\1\154\1\60\1"+
- "\163\1\157\5\60\1\162\3\60\1\146\1\uffff\1\60\1\145\1\167\1\144"+
- "\1\162\1\147\1\163\1\164\1\155\3\60\1\uffff\2\60\2\145\1\60\1\151"+
- "\1\137\1\145\1\162\1\60\1\uffff\1\145\1\141\1\156\1\101\1\143\1"+
- "\151\1\153\1\162\1\147\1\60\1\157\1\156\3\60\1\uffff\1\60\1\156"+
- "\1\147\1\uffff\1\144\2\60\1\uffff";
- static final String DFA14_maxS =
- "\1\175\12\uffff\1\146\2\uffff\1\170\2\uffff\1\75\1\uffff\2\75\1"+
- "\145\1\157\1\141\1\157\1\165\1\157\1\141\1\164\1\157\1\155\2\157"+
- "\1\111\1\172\1\165\1\56\1\71\4\uffff\1\172\1\163\1\160\6\uffff\1"+
- "\141\2\156\1\170\1\171\1\165\1\143\1\156\1\162\1\142\1\162\1\164"+
- "\2\156\1\163\1\157\1\151\1\141\1\151\1\163\2\157\1\147\1\167\1\172"+
- "\1\uffff\1\154\2\uffff\1\71\1\uffff\1\145\1\172\1\162\1\164\3\172"+
- "\1\162\1\157\1\172\1\164\1\163\1\151\1\141\1\172\1\154\1\144\1\172"+
- "\1\163\2\156\1\154\1\172\1\157\1\144\2\172\1\154\1\172\1\uffff\1"+
- "\172\1\150\1\164\1\uffff\1\146\1\uffff\1\172\1\156\2\172\1\164\1"+
- "\156\1\154\1\172\1\163\1\157\5\172\1\162\1\172\1\60\1\172\1\146"+
- "\1\uffff\1\172\1\145\1\171\1\144\1\162\1\147\1\163\1\164\1\155\3"+
- "\172\1\uffff\2\172\2\145\1\172\1\151\1\137\1\145\1\162\1\172\1\uffff"+
- "\1\145\1\141\1\156\1\172\1\143\1\151\1\153\1\162\1\147\1\172\1\157"+
- "\1\156\3\172\1\uffff\1\172\1\156\1\147\1\uffff\1\144\2\172\1\uffff";
- static final String DFA14_acceptS =
- "\1\uffff\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\uffff\1\14"+
- "\1\15\1\uffff\1\20\1\21\1\uffff\1\23\23\uffff\1\43\1\44\1\45\1\46"+
- "\3\uffff\1\24\1\22\1\26\1\25\1\30\1\27\31\uffff\1\34\1\uffff\1\37"+
- "\1\36\1\uffff\1\13\35\uffff\1\32\3\uffff\1\33\1\uffff\1\31\24\uffff"+
- "\1\17\14\uffff\1\35\12\uffff\1\16\17\uffff\1\42\3\uffff\1\40\3\uffff"+
- "\1\41";
- static final String DFA14_specialS =
- "\u00bb\uffff}>";
- static final String[] DFA14_transitionS = {
- "\2\51\2\uffff\1\51\22\uffff\1\51\1\21\1\47\1\uffff\1\50\1\5"+
- "\1\20\1\uffff\1\6\1\7\1\3\1\1\1\10\1\2\1\uffff\1\4\1\44\11\45"+
- "\2\uffff\1\23\1\22\1\24\2\uffff\4\46\1\42\12\46\1\41\12\46\1"+
- "\11\1\uffff\1\12\1\uffff\1\46\1\uffff\1\34\1\46\1\35\1\27\1"+
- "\16\1\36\1\46\1\30\1\13\2\46\1\37\1\26\1\43\1\46\1\40\1\46\1"+
- "\33\1\31\1\32\4\46\1\25\1\46\1\14\1\17\1\15",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\52",
- "",
- "",
- "\1\53\13\uffff\1\54",
- "",
- "",
- "\1\55",
- "",
- "\1\57",
- "\1\61",
- "\1\63",
- "\1\66\7\uffff\1\65\5\uffff\1\64",
- "\1\67",
- "\1\70",
- "\1\71\3\uffff\1\72\7\uffff\1\73\2\uffff\1\75\1\74",
- "\1\77\15\uffff\1\76",
- "\1\100",
- "\1\101\1\102\17\uffff\1\103\1\104",
- "\1\105\11\uffff\1\106",
- "\1\107\1\110",
- "\1\111",
- "\1\112",
- "\1\113",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\115",
- "\1\117",
- "\1\117\1\uffff\12\120",
- "",
- "",
- "",
- "",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\122",
- "\1\123",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\124",
- "\1\125",
- "\1\126",
- "\1\127",
- "\1\130",
- "\1\131",
- "\1\132",
- "\1\133",
- "\1\134",
- "\1\135",
- "\1\136",
- "\1\137",
- "\1\141\4\uffff\1\140",
- "\1\142",
- "\1\143",
- "\1\144",
- "\1\145",
- "\1\146",
- "\1\147",
- "\1\150",
- "\1\151",
- "\1\152",
- "\1\153",
- "\1\154",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "",
- "\1\155",
- "",
- "",
- "\1\117\1\uffff\12\120",
- "",
- "\1\156",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\160",
- "\1\161",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\24\46\1\162\5\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\16\46\1\164\13\46",
- "\1\166",
- "\1\167",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\7\46\1\170\22\46",
- "\1\171",
- "\1\172",
- "\1\173",
- "\1\174",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\7\46\1\175\22\46",
- "\1\176",
- "\1\177",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0080",
- "\1\u0081",
- "\1\u0082",
- "\1\u0083",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\7\46\1\u0084\22"+
- "\46",
- "\1\u0085",
- "\1\u0086",
- "\1\46\1\u0087\10\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32"+
- "\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0088",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\10\46\1\u0089\21"+
- "\46",
- "",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u008b",
- "\1\u008c",
- "",
- "\1\u008d",
- "",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u008e",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u008f",
- "\1\u0090",
- "\1\u0091",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0092",
- "\1\u0093",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\2\46\1\u0094\7\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0095",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0096",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0098",
- "",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u0099",
- "\1\u009a\1\uffff\1\u009b",
- "\1\u009c",
- "\1\u009d",
- "\1\u009e",
- "\1\u009f",
- "\1\u00a0",
- "\1\u00a1",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u00a3",
- "\1\u00a4",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\1\u00a5",
- "\1\u00a6",
- "\1\u00a7",
- "\1\u00a8",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "",
- "\1\u00a9",
- "\1\u00aa",
- "\1\u00ab",
- "\32\u00ac\4\uffff\1\u00ac\1\uffff\32\u00ac",
- "\1\u00ad",
- "\1\u00ae",
- "\1\u00af",
- "\1\u00b0",
- "\1\u00b1",
- "\12\u00b3\7\uffff\32\u00b3\4\uffff\1\u00b3\1\uffff\32\u00b3",
- "\1\u00b4",
- "\1\u00b5",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "",
- "\12\u00b3\7\uffff\32\u00b3\4\uffff\1\u00b3\1\uffff\32\u00b3",
- "\1\u00b7",
- "\1\u00b8",
- "",
- "\1\u00b9",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
- ""
- };
- static final short[] DFA14_eot = DFA.unpackEncodedString(DFA14_eotS);
- static final short[] DFA14_eof = DFA.unpackEncodedString(DFA14_eofS);
- static final char[] DFA14_min = DFA.unpackEncodedStringToUnsignedChars(DFA14_minS);
- static final char[] DFA14_max = DFA.unpackEncodedStringToUnsignedChars(DFA14_maxS);
- static final short[] DFA14_accept = DFA.unpackEncodedString(DFA14_acceptS);
- static final short[] DFA14_special = DFA.unpackEncodedString(DFA14_specialS);
- static final short[][] DFA14_transition;
- static {
- int numStates = DFA14_transitionS.length;
- DFA14_transition = new short[numStates][];
- for (int i=0; i<numStates; i++) {
- DFA14_transition[i] = DFA.unpackEncodedString(DFA14_transitionS[i]);
- }
- }
- class DFA14 extends DFA {
- public DFA14(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 14;
- this.eot = DFA14_eot;
- this.eof = DFA14_eof;
- this.min = DFA14_min;
- this.max = DFA14_max;
- this.accept = DFA14_accept;
- this.special = DFA14_special;
- this.transition = DFA14_transition;
- }
- public String getDescription() {
- return "1:1: Tokens : ( 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 );";
- }
- }
-
- }
|