AdvancedExpressionLexer.java 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433
  1. // $ANTLR 3.1 AdvancedExpression.g 2021-06-15 14:44:27
  2. package com.sagacloud.advanced.expression;
  3. import org.antlr.runtime.*;
  4. import java.util.Stack;
  5. import java.util.List;
  6. import java.util.ArrayList;
  7. public class AdvancedExpressionLexer extends Lexer {
  8. public static final int T__29=29;
  9. public static final int T__28=28;
  10. public static final int T__27=27;
  11. public static final int T__26=26;
  12. public static final int T__25=25;
  13. public static final int T__24=24;
  14. public static final int T__23=23;
  15. public static final int T__22=22;
  16. public static final int T__21=21;
  17. public static final int T__20=20;
  18. public static final int ID=11;
  19. public static final int EOF=-1;
  20. public static final int STRINGID=15;
  21. public static final int STRINGWRAPPER=5;
  22. public static final int F1=17;
  23. public static final int F0=16;
  24. public static final int DOUBLE=8;
  25. public static final int TAILSTRING=13;
  26. public static final int F2=18;
  27. public static final int T__42=42;
  28. public static final int INTEGER=9;
  29. public static final int T__43=43;
  30. public static final int T__40=40;
  31. public static final int T__41=41;
  32. public static final int NULL=7;
  33. public static final int SUBSTRING=12;
  34. public static final int STRINGVALUE=14;
  35. public static final int T__30=30;
  36. public static final int T__31=31;
  37. public static final int T__32=32;
  38. public static final int T__33=33;
  39. public static final int WS=19;
  40. public static final int T__34=34;
  41. public static final int T__35=35;
  42. public static final int NEWLINE=6;
  43. public static final int T__36=36;
  44. public static final int T__37=37;
  45. public static final int T__38=38;
  46. public static final int T__39=39;
  47. public static final int CONSTANT=10;
  48. public static final int IFWRAPPER=4;
  49. public Object recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow) throws RecognitionException
  50. {
  51. throw new MismatchedTokenException(ttype, input);
  52. }
  53. public Object recoverFromMismatchedSet(IntStream input,RecognitionException e,BitSet follow) throws RecognitionException
  54. {
  55. throw e;
  56. }
  57. public void displayRecognitionError(String[] tokenNames, RecognitionException e) {
  58. String hdr = getErrorHeader(e);
  59. String msg = getErrorMessage(e, tokenNames);
  60. throw new RuntimeException(hdr + ":" + msg);
  61. }
  62. // delegates
  63. // delegators
  64. public AdvancedExpressionLexer() {;}
  65. public AdvancedExpressionLexer(CharStream input) {
  66. this(input, new RecognizerSharedState());
  67. }
  68. public AdvancedExpressionLexer(CharStream input, RecognizerSharedState state) {
  69. super(input,state);
  70. }
  71. public String getGrammarFileName() { return "AdvancedExpression.g"; }
  72. // $ANTLR start "T__20"
  73. public final void mT__20() throws RecognitionException {
  74. try {
  75. int _type = T__20;
  76. int _channel = DEFAULT_TOKEN_CHANNEL;
  77. // AdvancedExpression.g:29:7: ( '+' )
  78. // AdvancedExpression.g:29:9: '+'
  79. {
  80. match('+');
  81. }
  82. state.type = _type;
  83. state.channel = _channel;
  84. }
  85. finally {
  86. }
  87. }
  88. // $ANTLR end "T__20"
  89. // $ANTLR start "T__21"
  90. public final void mT__21() throws RecognitionException {
  91. try {
  92. int _type = T__21;
  93. int _channel = DEFAULT_TOKEN_CHANNEL;
  94. // AdvancedExpression.g:30:7: ( '-' )
  95. // AdvancedExpression.g:30:9: '-'
  96. {
  97. match('-');
  98. }
  99. state.type = _type;
  100. state.channel = _channel;
  101. }
  102. finally {
  103. }
  104. }
  105. // $ANTLR end "T__21"
  106. // $ANTLR start "T__22"
  107. public final void mT__22() throws RecognitionException {
  108. try {
  109. int _type = T__22;
  110. int _channel = DEFAULT_TOKEN_CHANNEL;
  111. // AdvancedExpression.g:31:7: ( '*' )
  112. // AdvancedExpression.g:31:9: '*'
  113. {
  114. match('*');
  115. }
  116. state.type = _type;
  117. state.channel = _channel;
  118. }
  119. finally {
  120. }
  121. }
  122. // $ANTLR end "T__22"
  123. // $ANTLR start "T__23"
  124. public final void mT__23() throws RecognitionException {
  125. try {
  126. int _type = T__23;
  127. int _channel = DEFAULT_TOKEN_CHANNEL;
  128. // AdvancedExpression.g:32:7: ( '/' )
  129. // AdvancedExpression.g:32:9: '/'
  130. {
  131. match('/');
  132. }
  133. state.type = _type;
  134. state.channel = _channel;
  135. }
  136. finally {
  137. }
  138. }
  139. // $ANTLR end "T__23"
  140. // $ANTLR start "T__24"
  141. public final void mT__24() throws RecognitionException {
  142. try {
  143. int _type = T__24;
  144. int _channel = DEFAULT_TOKEN_CHANNEL;
  145. // AdvancedExpression.g:33:7: ( '%' )
  146. // AdvancedExpression.g:33:9: '%'
  147. {
  148. match('%');
  149. }
  150. state.type = _type;
  151. state.channel = _channel;
  152. }
  153. finally {
  154. }
  155. }
  156. // $ANTLR end "T__24"
  157. // $ANTLR start "T__25"
  158. public final void mT__25() throws RecognitionException {
  159. try {
  160. int _type = T__25;
  161. int _channel = DEFAULT_TOKEN_CHANNEL;
  162. // AdvancedExpression.g:34:7: ( '(' )
  163. // AdvancedExpression.g:34:9: '('
  164. {
  165. match('(');
  166. }
  167. state.type = _type;
  168. state.channel = _channel;
  169. }
  170. finally {
  171. }
  172. }
  173. // $ANTLR end "T__25"
  174. // $ANTLR start "T__26"
  175. public final void mT__26() throws RecognitionException {
  176. try {
  177. int _type = T__26;
  178. int _channel = DEFAULT_TOKEN_CHANNEL;
  179. // AdvancedExpression.g:35:7: ( ')' )
  180. // AdvancedExpression.g:35:9: ')'
  181. {
  182. match(')');
  183. }
  184. state.type = _type;
  185. state.channel = _channel;
  186. }
  187. finally {
  188. }
  189. }
  190. // $ANTLR end "T__26"
  191. // $ANTLR start "T__27"
  192. public final void mT__27() throws RecognitionException {
  193. try {
  194. int _type = T__27;
  195. int _channel = DEFAULT_TOKEN_CHANNEL;
  196. // AdvancedExpression.g:36:7: ( ',' )
  197. // AdvancedExpression.g:36:9: ','
  198. {
  199. match(',');
  200. }
  201. state.type = _type;
  202. state.channel = _channel;
  203. }
  204. finally {
  205. }
  206. }
  207. // $ANTLR end "T__27"
  208. // $ANTLR start "T__28"
  209. public final void mT__28() throws RecognitionException {
  210. try {
  211. int _type = T__28;
  212. int _channel = DEFAULT_TOKEN_CHANNEL;
  213. // AdvancedExpression.g:37:7: ( '[' )
  214. // AdvancedExpression.g:37:9: '['
  215. {
  216. match('[');
  217. }
  218. state.type = _type;
  219. state.channel = _channel;
  220. }
  221. finally {
  222. }
  223. }
  224. // $ANTLR end "T__28"
  225. // $ANTLR start "T__29"
  226. public final void mT__29() throws RecognitionException {
  227. try {
  228. int _type = T__29;
  229. int _channel = DEFAULT_TOKEN_CHANNEL;
  230. // AdvancedExpression.g:38:7: ( ']' )
  231. // AdvancedExpression.g:38:9: ']'
  232. {
  233. match(']');
  234. }
  235. state.type = _type;
  236. state.channel = _channel;
  237. }
  238. finally {
  239. }
  240. }
  241. // $ANTLR end "T__29"
  242. // $ANTLR start "T__30"
  243. public final void mT__30() throws RecognitionException {
  244. try {
  245. int _type = T__30;
  246. int _channel = DEFAULT_TOKEN_CHANNEL;
  247. // AdvancedExpression.g:39:7: ( 'if' )
  248. // AdvancedExpression.g:39:9: 'if'
  249. {
  250. match("if");
  251. }
  252. state.type = _type;
  253. state.channel = _channel;
  254. }
  255. finally {
  256. }
  257. }
  258. // $ANTLR end "T__30"
  259. // $ANTLR start "T__31"
  260. public final void mT__31() throws RecognitionException {
  261. try {
  262. int _type = T__31;
  263. int _channel = DEFAULT_TOKEN_CHANNEL;
  264. // AdvancedExpression.g:40:7: ( '{' )
  265. // AdvancedExpression.g:40:9: '{'
  266. {
  267. match('{');
  268. }
  269. state.type = _type;
  270. state.channel = _channel;
  271. }
  272. finally {
  273. }
  274. }
  275. // $ANTLR end "T__31"
  276. // $ANTLR start "T__32"
  277. public final void mT__32() throws RecognitionException {
  278. try {
  279. int _type = T__32;
  280. int _channel = DEFAULT_TOKEN_CHANNEL;
  281. // AdvancedExpression.g:41:7: ( '}' )
  282. // AdvancedExpression.g:41:9: '}'
  283. {
  284. match('}');
  285. }
  286. state.type = _type;
  287. state.channel = _channel;
  288. }
  289. finally {
  290. }
  291. }
  292. // $ANTLR end "T__32"
  293. // $ANTLR start "T__33"
  294. public final void mT__33() throws RecognitionException {
  295. try {
  296. int _type = T__33;
  297. int _channel = DEFAULT_TOKEN_CHANNEL;
  298. // AdvancedExpression.g:42:7: ( 'elseif' )
  299. // AdvancedExpression.g:42:9: 'elseif'
  300. {
  301. match("elseif");
  302. }
  303. state.type = _type;
  304. state.channel = _channel;
  305. }
  306. finally {
  307. }
  308. }
  309. // $ANTLR end "T__33"
  310. // $ANTLR start "T__34"
  311. public final void mT__34() throws RecognitionException {
  312. try {
  313. int _type = T__34;
  314. int _channel = DEFAULT_TOKEN_CHANNEL;
  315. // AdvancedExpression.g:43:7: ( 'else' )
  316. // AdvancedExpression.g:43:9: 'else'
  317. {
  318. match("else");
  319. }
  320. state.type = _type;
  321. state.channel = _channel;
  322. }
  323. finally {
  324. }
  325. }
  326. // $ANTLR end "T__34"
  327. // $ANTLR start "T__35"
  328. public final void mT__35() throws RecognitionException {
  329. try {
  330. int _type = T__35;
  331. int _channel = DEFAULT_TOKEN_CHANNEL;
  332. // AdvancedExpression.g:44:7: ( '||' )
  333. // AdvancedExpression.g:44:9: '||'
  334. {
  335. match("||");
  336. }
  337. state.type = _type;
  338. state.channel = _channel;
  339. }
  340. finally {
  341. }
  342. }
  343. // $ANTLR end "T__35"
  344. // $ANTLR start "T__36"
  345. public final void mT__36() throws RecognitionException {
  346. try {
  347. int _type = T__36;
  348. int _channel = DEFAULT_TOKEN_CHANNEL;
  349. // AdvancedExpression.g:45:7: ( '&&' )
  350. // AdvancedExpression.g:45:9: '&&'
  351. {
  352. match("&&");
  353. }
  354. state.type = _type;
  355. state.channel = _channel;
  356. }
  357. finally {
  358. }
  359. }
  360. // $ANTLR end "T__36"
  361. // $ANTLR start "T__37"
  362. public final void mT__37() throws RecognitionException {
  363. try {
  364. int _type = T__37;
  365. int _channel = DEFAULT_TOKEN_CHANNEL;
  366. // AdvancedExpression.g:46:7: ( '!' )
  367. // AdvancedExpression.g:46:9: '!'
  368. {
  369. match('!');
  370. }
  371. state.type = _type;
  372. state.channel = _channel;
  373. }
  374. finally {
  375. }
  376. }
  377. // $ANTLR end "T__37"
  378. // $ANTLR start "T__38"
  379. public final void mT__38() throws RecognitionException {
  380. try {
  381. int _type = T__38;
  382. int _channel = DEFAULT_TOKEN_CHANNEL;
  383. // AdvancedExpression.g:47:7: ( '==' )
  384. // AdvancedExpression.g:47:9: '=='
  385. {
  386. match("==");
  387. }
  388. state.type = _type;
  389. state.channel = _channel;
  390. }
  391. finally {
  392. }
  393. }
  394. // $ANTLR end "T__38"
  395. // $ANTLR start "T__39"
  396. public final void mT__39() throws RecognitionException {
  397. try {
  398. int _type = T__39;
  399. int _channel = DEFAULT_TOKEN_CHANNEL;
  400. // AdvancedExpression.g:48:7: ( '!=' )
  401. // AdvancedExpression.g:48:9: '!='
  402. {
  403. match("!=");
  404. }
  405. state.type = _type;
  406. state.channel = _channel;
  407. }
  408. finally {
  409. }
  410. }
  411. // $ANTLR end "T__39"
  412. // $ANTLR start "T__40"
  413. public final void mT__40() throws RecognitionException {
  414. try {
  415. int _type = T__40;
  416. int _channel = DEFAULT_TOKEN_CHANNEL;
  417. // AdvancedExpression.g:49:7: ( '<' )
  418. // AdvancedExpression.g:49:9: '<'
  419. {
  420. match('<');
  421. }
  422. state.type = _type;
  423. state.channel = _channel;
  424. }
  425. finally {
  426. }
  427. }
  428. // $ANTLR end "T__40"
  429. // $ANTLR start "T__41"
  430. public final void mT__41() throws RecognitionException {
  431. try {
  432. int _type = T__41;
  433. int _channel = DEFAULT_TOKEN_CHANNEL;
  434. // AdvancedExpression.g:50:7: ( '<=' )
  435. // AdvancedExpression.g:50:9: '<='
  436. {
  437. match("<=");
  438. }
  439. state.type = _type;
  440. state.channel = _channel;
  441. }
  442. finally {
  443. }
  444. }
  445. // $ANTLR end "T__41"
  446. // $ANTLR start "T__42"
  447. public final void mT__42() throws RecognitionException {
  448. try {
  449. int _type = T__42;
  450. int _channel = DEFAULT_TOKEN_CHANNEL;
  451. // AdvancedExpression.g:51:7: ( '>' )
  452. // AdvancedExpression.g:51:9: '>'
  453. {
  454. match('>');
  455. }
  456. state.type = _type;
  457. state.channel = _channel;
  458. }
  459. finally {
  460. }
  461. }
  462. // $ANTLR end "T__42"
  463. // $ANTLR start "T__43"
  464. public final void mT__43() throws RecognitionException {
  465. try {
  466. int _type = T__43;
  467. int _channel = DEFAULT_TOKEN_CHANNEL;
  468. // AdvancedExpression.g:52:7: ( '>=' )
  469. // AdvancedExpression.g:52:9: '>='
  470. {
  471. match(">=");
  472. }
  473. state.type = _type;
  474. state.channel = _channel;
  475. }
  476. finally {
  477. }
  478. }
  479. // $ANTLR end "T__43"
  480. // $ANTLR start "F0"
  481. public final void mF0() throws RecognitionException {
  482. try {
  483. int _type = F0;
  484. int _channel = DEFAULT_TOKEN_CHANNEL;
  485. // AdvancedExpression.g:159:4: ( ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' ) )
  486. // AdvancedExpression.g:159:6: ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' )
  487. {
  488. // AdvancedExpression.g:159:6: ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' )
  489. int alt1=10;
  490. alt1 = dfa1.predict(input);
  491. switch (alt1) {
  492. case 1 :
  493. // AdvancedExpression.g:159:7: 'year'
  494. {
  495. match("year");
  496. }
  497. break;
  498. case 2 :
  499. // AdvancedExpression.g:159:14: 'month'
  500. {
  501. match("month");
  502. }
  503. break;
  504. case 3 :
  505. // AdvancedExpression.g:159:22: 'day'
  506. {
  507. match("day");
  508. }
  509. break;
  510. case 4 :
  511. // AdvancedExpression.g:159:28: 'hour'
  512. {
  513. match("hour");
  514. }
  515. break;
  516. case 5 :
  517. // AdvancedExpression.g:159:35: 'minute'
  518. {
  519. match("minute");
  520. }
  521. break;
  522. case 6 :
  523. // AdvancedExpression.g:159:44: 'second'
  524. {
  525. match("second");
  526. }
  527. break;
  528. case 7 :
  529. // AdvancedExpression.g:159:53: 'dayofweek'
  530. {
  531. match("dayofweek");
  532. }
  533. break;
  534. case 8 :
  535. // AdvancedExpression.g:159:65: 'dayofyear'
  536. {
  537. match("dayofyear");
  538. }
  539. break;
  540. case 9 :
  541. // AdvancedExpression.g:159:77: 'totalsecond'
  542. {
  543. match("totalsecond");
  544. }
  545. break;
  546. case 10 :
  547. // AdvancedExpression.g:159:91: 'random'
  548. {
  549. match("random");
  550. }
  551. break;
  552. }
  553. }
  554. state.type = _type;
  555. state.channel = _channel;
  556. }
  557. finally {
  558. }
  559. }
  560. // $ANTLR end "F0"
  561. // $ANTLR start "F1"
  562. public final void mF1() throws RecognitionException {
  563. try {
  564. int _type = F1;
  565. int _channel = DEFAULT_TOKEN_CHANNEL;
  566. // AdvancedExpression.g:160:4: ( ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' ) )
  567. // AdvancedExpression.g:160:6: ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' )
  568. {
  569. // AdvancedExpression.g:160:6: ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' )
  570. int alt2=16;
  571. alt2 = dfa2.predict(input);
  572. switch (alt2) {
  573. case 1 :
  574. // AdvancedExpression.g:160:7: 'abs'
  575. {
  576. match("abs");
  577. }
  578. break;
  579. case 2 :
  580. // AdvancedExpression.g:160:13: 'acos'
  581. {
  582. match("acos");
  583. }
  584. break;
  585. case 3 :
  586. // AdvancedExpression.g:160:20: 'asin'
  587. {
  588. match("asin");
  589. }
  590. break;
  591. case 4 :
  592. // AdvancedExpression.g:160:27: 'atan'
  593. {
  594. match("atan");
  595. }
  596. break;
  597. case 5 :
  598. // AdvancedExpression.g:160:34: 'ceil'
  599. {
  600. match("ceil");
  601. }
  602. break;
  603. case 6 :
  604. // AdvancedExpression.g:160:41: 'cos'
  605. {
  606. match("cos");
  607. }
  608. break;
  609. case 7 :
  610. // AdvancedExpression.g:160:47: 'cosh'
  611. {
  612. match("cosh");
  613. }
  614. break;
  615. case 8 :
  616. // AdvancedExpression.g:160:54: 'exp'
  617. {
  618. match("exp");
  619. }
  620. break;
  621. case 9 :
  622. // AdvancedExpression.g:160:60: 'floor'
  623. {
  624. match("floor");
  625. }
  626. break;
  627. case 10 :
  628. // AdvancedExpression.g:160:68: 'log'
  629. {
  630. match("log");
  631. }
  632. break;
  633. case 11 :
  634. // AdvancedExpression.g:160:74: 'log10'
  635. {
  636. match("log10");
  637. }
  638. break;
  639. case 12 :
  640. // AdvancedExpression.g:160:82: 'sin'
  641. {
  642. match("sin");
  643. }
  644. break;
  645. case 13 :
  646. // AdvancedExpression.g:160:88: 'sinh'
  647. {
  648. match("sinh");
  649. }
  650. break;
  651. case 14 :
  652. // AdvancedExpression.g:160:95: 'sqrt'
  653. {
  654. match("sqrt");
  655. }
  656. break;
  657. case 15 :
  658. // AdvancedExpression.g:160:102: 'tan'
  659. {
  660. match("tan");
  661. }
  662. break;
  663. case 16 :
  664. // AdvancedExpression.g:160:108: 'tanh'
  665. {
  666. match("tanh");
  667. }
  668. break;
  669. }
  670. }
  671. state.type = _type;
  672. state.channel = _channel;
  673. }
  674. finally {
  675. }
  676. }
  677. // $ANTLR end "F1"
  678. // $ANTLR start "F2"
  679. public final void mF2() throws RecognitionException {
  680. try {
  681. int _type = F2;
  682. int _channel = DEFAULT_TOKEN_CHANNEL;
  683. // AdvancedExpression.g:161:4: ( ( 'atan2' | 'fmod' | 'pow' | 'max' | 'min' ) )
  684. // AdvancedExpression.g:161:6: ( 'atan2' | 'fmod' | 'pow' | 'max' | 'min' )
  685. {
  686. // AdvancedExpression.g:161:6: ( 'atan2' | 'fmod' | 'pow' | 'max' | 'min' )
  687. int alt3=5;
  688. switch ( input.LA(1) ) {
  689. case 'a':
  690. {
  691. alt3=1;
  692. }
  693. break;
  694. case 'f':
  695. {
  696. alt3=2;
  697. }
  698. break;
  699. case 'p':
  700. {
  701. alt3=3;
  702. }
  703. break;
  704. case 'm':
  705. {
  706. int LA3_4 = input.LA(2);
  707. if ( (LA3_4=='a') ) {
  708. alt3=4;
  709. }
  710. else if ( (LA3_4=='i') ) {
  711. alt3=5;
  712. }
  713. else {
  714. NoViableAltException nvae =
  715. new NoViableAltException("", 3, 4, input);
  716. throw nvae;
  717. }
  718. }
  719. break;
  720. default:
  721. NoViableAltException nvae =
  722. new NoViableAltException("", 3, 0, input);
  723. throw nvae;
  724. }
  725. switch (alt3) {
  726. case 1 :
  727. // AdvancedExpression.g:161:7: 'atan2'
  728. {
  729. match("atan2");
  730. }
  731. break;
  732. case 2 :
  733. // AdvancedExpression.g:161:15: 'fmod'
  734. {
  735. match("fmod");
  736. }
  737. break;
  738. case 3 :
  739. // AdvancedExpression.g:161:22: 'pow'
  740. {
  741. match("pow");
  742. }
  743. break;
  744. case 4 :
  745. // AdvancedExpression.g:161:28: 'max'
  746. {
  747. match("max");
  748. }
  749. break;
  750. case 5 :
  751. // AdvancedExpression.g:161:34: 'min'
  752. {
  753. match("min");
  754. }
  755. break;
  756. }
  757. }
  758. state.type = _type;
  759. state.channel = _channel;
  760. }
  761. finally {
  762. }
  763. }
  764. // $ANTLR end "F2"
  765. // $ANTLR start "CONSTANT"
  766. public final void mCONSTANT() throws RecognitionException {
  767. try {
  768. int _type = CONSTANT;
  769. int _channel = DEFAULT_TOKEN_CHANNEL;
  770. // AdvancedExpression.g:162:10: ( ( 'PI' | 'E' ) )
  771. // AdvancedExpression.g:162:12: ( 'PI' | 'E' )
  772. {
  773. // AdvancedExpression.g:162:12: ( 'PI' | 'E' )
  774. int alt4=2;
  775. int LA4_0 = input.LA(1);
  776. if ( (LA4_0=='P') ) {
  777. alt4=1;
  778. }
  779. else if ( (LA4_0=='E') ) {
  780. alt4=2;
  781. }
  782. else {
  783. NoViableAltException nvae =
  784. new NoViableAltException("", 4, 0, input);
  785. throw nvae;
  786. }
  787. switch (alt4) {
  788. case 1 :
  789. // AdvancedExpression.g:162:13: 'PI'
  790. {
  791. match("PI");
  792. }
  793. break;
  794. case 2 :
  795. // AdvancedExpression.g:162:18: 'E'
  796. {
  797. match('E');
  798. }
  799. break;
  800. }
  801. }
  802. state.type = _type;
  803. state.channel = _channel;
  804. }
  805. finally {
  806. }
  807. }
  808. // $ANTLR end "CONSTANT"
  809. // $ANTLR start "NULL"
  810. public final void mNULL() throws RecognitionException {
  811. try {
  812. int _type = NULL;
  813. int _channel = DEFAULT_TOKEN_CHANNEL;
  814. // AdvancedExpression.g:163:6: ( 'null' )
  815. // AdvancedExpression.g:163:8: 'null'
  816. {
  817. match("null");
  818. }
  819. state.type = _type;
  820. state.channel = _channel;
  821. }
  822. finally {
  823. }
  824. }
  825. // $ANTLR end "NULL"
  826. // $ANTLR start "DOUBLE"
  827. public final void mDOUBLE() throws RecognitionException {
  828. try {
  829. int _type = DOUBLE;
  830. int _channel = DEFAULT_TOKEN_CHANNEL;
  831. // AdvancedExpression.g:164:8: ( ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) ( '.' ( ( '0' .. '9' )* ) ) )
  832. // AdvancedExpression.g:164:10: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) ( '.' ( ( '0' .. '9' )* ) )
  833. {
  834. // AdvancedExpression.g:164:10: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) )
  835. int alt6=2;
  836. int LA6_0 = input.LA(1);
  837. if ( (LA6_0=='0') ) {
  838. alt6=1;
  839. }
  840. else if ( ((LA6_0>='1' && LA6_0<='9')) ) {
  841. alt6=2;
  842. }
  843. else {
  844. NoViableAltException nvae =
  845. new NoViableAltException("", 6, 0, input);
  846. throw nvae;
  847. }
  848. switch (alt6) {
  849. case 1 :
  850. // AdvancedExpression.g:164:11: '0'
  851. {
  852. match('0');
  853. }
  854. break;
  855. case 2 :
  856. // AdvancedExpression.g:164:15: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) )
  857. {
  858. // AdvancedExpression.g:164:15: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) )
  859. // AdvancedExpression.g:164:16: ( '1' .. '9' ) ( ( '0' .. '9' )* )
  860. {
  861. // AdvancedExpression.g:164:16: ( '1' .. '9' )
  862. // AdvancedExpression.g:164:17: '1' .. '9'
  863. {
  864. matchRange('1','9');
  865. }
  866. // AdvancedExpression.g:164:26: ( ( '0' .. '9' )* )
  867. // AdvancedExpression.g:164:27: ( '0' .. '9' )*
  868. {
  869. // AdvancedExpression.g:164:27: ( '0' .. '9' )*
  870. loop5:
  871. do {
  872. int alt5=2;
  873. int LA5_0 = input.LA(1);
  874. if ( ((LA5_0>='0' && LA5_0<='9')) ) {
  875. alt5=1;
  876. }
  877. switch (alt5) {
  878. case 1 :
  879. // AdvancedExpression.g:164:27: '0' .. '9'
  880. {
  881. matchRange('0','9');
  882. }
  883. break;
  884. default :
  885. break loop5;
  886. }
  887. } while (true);
  888. }
  889. }
  890. }
  891. break;
  892. }
  893. // AdvancedExpression.g:164:39: ( '.' ( ( '0' .. '9' )* ) )
  894. // AdvancedExpression.g:164:40: '.' ( ( '0' .. '9' )* )
  895. {
  896. match('.');
  897. // AdvancedExpression.g:164:43: ( ( '0' .. '9' )* )
  898. // AdvancedExpression.g:164:44: ( '0' .. '9' )*
  899. {
  900. // AdvancedExpression.g:164:44: ( '0' .. '9' )*
  901. loop7:
  902. do {
  903. int alt7=2;
  904. int LA7_0 = input.LA(1);
  905. if ( ((LA7_0>='0' && LA7_0<='9')) ) {
  906. alt7=1;
  907. }
  908. switch (alt7) {
  909. case 1 :
  910. // AdvancedExpression.g:164:44: '0' .. '9'
  911. {
  912. matchRange('0','9');
  913. }
  914. break;
  915. default :
  916. break loop7;
  917. }
  918. } while (true);
  919. }
  920. }
  921. }
  922. state.type = _type;
  923. state.channel = _channel;
  924. }
  925. finally {
  926. }
  927. }
  928. // $ANTLR end "DOUBLE"
  929. // $ANTLR start "INTEGER"
  930. public final void mINTEGER() throws RecognitionException {
  931. try {
  932. int _type = INTEGER;
  933. int _channel = DEFAULT_TOKEN_CHANNEL;
  934. // AdvancedExpression.g:165:9: ( ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) ) )
  935. // AdvancedExpression.g:165:11: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) )
  936. {
  937. // AdvancedExpression.g:165:11: ( '0' | ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) ) )
  938. int alt9=2;
  939. int LA9_0 = input.LA(1);
  940. if ( (LA9_0=='0') ) {
  941. alt9=1;
  942. }
  943. else if ( ((LA9_0>='1' && LA9_0<='9')) ) {
  944. alt9=2;
  945. }
  946. else {
  947. NoViableAltException nvae =
  948. new NoViableAltException("", 9, 0, input);
  949. throw nvae;
  950. }
  951. switch (alt9) {
  952. case 1 :
  953. // AdvancedExpression.g:165:12: '0'
  954. {
  955. match('0');
  956. }
  957. break;
  958. case 2 :
  959. // AdvancedExpression.g:165:16: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) )
  960. {
  961. // AdvancedExpression.g:165:16: ( ( '1' .. '9' ) ( ( '0' .. '9' )* ) )
  962. // AdvancedExpression.g:165:17: ( '1' .. '9' ) ( ( '0' .. '9' )* )
  963. {
  964. // AdvancedExpression.g:165:17: ( '1' .. '9' )
  965. // AdvancedExpression.g:165:18: '1' .. '9'
  966. {
  967. matchRange('1','9');
  968. }
  969. // AdvancedExpression.g:165:27: ( ( '0' .. '9' )* )
  970. // AdvancedExpression.g:165:28: ( '0' .. '9' )*
  971. {
  972. // AdvancedExpression.g:165:28: ( '0' .. '9' )*
  973. loop8:
  974. do {
  975. int alt8=2;
  976. int LA8_0 = input.LA(1);
  977. if ( ((LA8_0>='0' && LA8_0<='9')) ) {
  978. alt8=1;
  979. }
  980. switch (alt8) {
  981. case 1 :
  982. // AdvancedExpression.g:165:28: '0' .. '9'
  983. {
  984. matchRange('0','9');
  985. }
  986. break;
  987. default :
  988. break loop8;
  989. }
  990. } while (true);
  991. }
  992. }
  993. }
  994. break;
  995. }
  996. }
  997. state.type = _type;
  998. state.channel = _channel;
  999. }
  1000. finally {
  1001. }
  1002. }
  1003. // $ANTLR end "INTEGER"
  1004. // $ANTLR start "SUBSTRING"
  1005. public final void mSUBSTRING() throws RecognitionException {
  1006. try {
  1007. int _type = SUBSTRING;
  1008. int _channel = DEFAULT_TOKEN_CHANNEL;
  1009. // AdvancedExpression.g:166:11: ( ( 's' ) ( 'u' ) ( 'b' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) )
  1010. // AdvancedExpression.g:166:13: ( 's' ) ( 'u' ) ( 'b' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' )
  1011. {
  1012. // AdvancedExpression.g:166:13: ( 's' )
  1013. // AdvancedExpression.g:166:14: 's'
  1014. {
  1015. match('s');
  1016. }
  1017. // AdvancedExpression.g:166:18: ( 'u' )
  1018. // AdvancedExpression.g:166:19: 'u'
  1019. {
  1020. match('u');
  1021. }
  1022. // AdvancedExpression.g:166:23: ( 'b' )
  1023. // AdvancedExpression.g:166:24: 'b'
  1024. {
  1025. match('b');
  1026. }
  1027. // AdvancedExpression.g:166:28: ( 's' )
  1028. // AdvancedExpression.g:166:29: 's'
  1029. {
  1030. match('s');
  1031. }
  1032. // AdvancedExpression.g:166:33: ( 't' )
  1033. // AdvancedExpression.g:166:34: 't'
  1034. {
  1035. match('t');
  1036. }
  1037. // AdvancedExpression.g:166:38: ( 'r' )
  1038. // AdvancedExpression.g:166:39: 'r'
  1039. {
  1040. match('r');
  1041. }
  1042. // AdvancedExpression.g:166:43: ( 'i' )
  1043. // AdvancedExpression.g:166:44: 'i'
  1044. {
  1045. match('i');
  1046. }
  1047. // AdvancedExpression.g:166:48: ( 'n' )
  1048. // AdvancedExpression.g:166:49: 'n'
  1049. {
  1050. match('n');
  1051. }
  1052. // AdvancedExpression.g:166:53: ( 'g' )
  1053. // AdvancedExpression.g:166:54: 'g'
  1054. {
  1055. match('g');
  1056. }
  1057. }
  1058. state.type = _type;
  1059. state.channel = _channel;
  1060. }
  1061. finally {
  1062. }
  1063. }
  1064. // $ANTLR end "SUBSTRING"
  1065. // $ANTLR start "TAILSTRING"
  1066. public final void mTAILSTRING() throws RecognitionException {
  1067. try {
  1068. int _type = TAILSTRING;
  1069. int _channel = DEFAULT_TOKEN_CHANNEL;
  1070. // AdvancedExpression.g:167:12: ( ( 't' ) ( 'a' ) ( 'i' ) ( 'l' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) )
  1071. // AdvancedExpression.g:167:14: ( 't' ) ( 'a' ) ( 'i' ) ( 'l' ) ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' )
  1072. {
  1073. // AdvancedExpression.g:167:14: ( 't' )
  1074. // AdvancedExpression.g:167:15: 't'
  1075. {
  1076. match('t');
  1077. }
  1078. // AdvancedExpression.g:167:19: ( 'a' )
  1079. // AdvancedExpression.g:167:20: 'a'
  1080. {
  1081. match('a');
  1082. }
  1083. // AdvancedExpression.g:167:24: ( 'i' )
  1084. // AdvancedExpression.g:167:25: 'i'
  1085. {
  1086. match('i');
  1087. }
  1088. // AdvancedExpression.g:167:29: ( 'l' )
  1089. // AdvancedExpression.g:167:30: 'l'
  1090. {
  1091. match('l');
  1092. }
  1093. // AdvancedExpression.g:167:34: ( 's' )
  1094. // AdvancedExpression.g:167:35: 's'
  1095. {
  1096. match('s');
  1097. }
  1098. // AdvancedExpression.g:167:39: ( 't' )
  1099. // AdvancedExpression.g:167:40: 't'
  1100. {
  1101. match('t');
  1102. }
  1103. // AdvancedExpression.g:167:44: ( 'r' )
  1104. // AdvancedExpression.g:167:45: 'r'
  1105. {
  1106. match('r');
  1107. }
  1108. // AdvancedExpression.g:167:49: ( 'i' )
  1109. // AdvancedExpression.g:167:50: 'i'
  1110. {
  1111. match('i');
  1112. }
  1113. // AdvancedExpression.g:167:54: ( 'n' )
  1114. // AdvancedExpression.g:167:55: 'n'
  1115. {
  1116. match('n');
  1117. }
  1118. // AdvancedExpression.g:167:59: ( 'g' )
  1119. // AdvancedExpression.g:167:60: 'g'
  1120. {
  1121. match('g');
  1122. }
  1123. }
  1124. state.type = _type;
  1125. state.channel = _channel;
  1126. }
  1127. finally {
  1128. }
  1129. }
  1130. // $ANTLR end "TAILSTRING"
  1131. // $ANTLR start "STRINGID"
  1132. public final void mSTRINGID() throws RecognitionException {
  1133. try {
  1134. int _type = STRINGID;
  1135. int _channel = DEFAULT_TOKEN_CHANNEL;
  1136. // AdvancedExpression.g:168:10: ( ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) ( '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
  1137. // AdvancedExpression.g:168:12: ( 's' ) ( 't' ) ( 'r' ) ( 'i' ) ( 'n' ) ( 'g' ) ( '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
  1138. {
  1139. // AdvancedExpression.g:168:12: ( 's' )
  1140. // AdvancedExpression.g:168:13: 's'
  1141. {
  1142. match('s');
  1143. }
  1144. // AdvancedExpression.g:168:17: ( 't' )
  1145. // AdvancedExpression.g:168:18: 't'
  1146. {
  1147. match('t');
  1148. }
  1149. // AdvancedExpression.g:168:22: ( 'r' )
  1150. // AdvancedExpression.g:168:23: 'r'
  1151. {
  1152. match('r');
  1153. }
  1154. // AdvancedExpression.g:168:27: ( 'i' )
  1155. // AdvancedExpression.g:168:28: 'i'
  1156. {
  1157. match('i');
  1158. }
  1159. // AdvancedExpression.g:168:32: ( 'n' )
  1160. // AdvancedExpression.g:168:33: 'n'
  1161. {
  1162. match('n');
  1163. }
  1164. // AdvancedExpression.g:168:37: ( 'g' )
  1165. // AdvancedExpression.g:168:38: 'g'
  1166. {
  1167. match('g');
  1168. }
  1169. // AdvancedExpression.g:168:42: ( '_' )
  1170. // AdvancedExpression.g:168:43: '_'
  1171. {
  1172. match('_');
  1173. }
  1174. if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
  1175. input.consume();
  1176. }
  1177. else {
  1178. MismatchedSetException mse = new MismatchedSetException(null,input);
  1179. recover(mse);
  1180. throw mse;}
  1181. // AdvancedExpression.g:168:70: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
  1182. loop10:
  1183. do {
  1184. int alt10=2;
  1185. int LA10_0 = input.LA(1);
  1186. if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) {
  1187. alt10=1;
  1188. }
  1189. switch (alt10) {
  1190. case 1 :
  1191. // AdvancedExpression.g:
  1192. {
  1193. 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') ) {
  1194. input.consume();
  1195. }
  1196. else {
  1197. MismatchedSetException mse = new MismatchedSetException(null,input);
  1198. recover(mse);
  1199. throw mse;}
  1200. }
  1201. break;
  1202. default :
  1203. break loop10;
  1204. }
  1205. } while (true);
  1206. }
  1207. state.type = _type;
  1208. state.channel = _channel;
  1209. }
  1210. finally {
  1211. }
  1212. }
  1213. // $ANTLR end "STRINGID"
  1214. // $ANTLR start "ID"
  1215. public final void mID() throws RecognitionException {
  1216. try {
  1217. int _type = ID;
  1218. int _channel = DEFAULT_TOKEN_CHANNEL;
  1219. // AdvancedExpression.g:169:4: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
  1220. // AdvancedExpression.g:169:6: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
  1221. {
  1222. if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
  1223. input.consume();
  1224. }
  1225. else {
  1226. MismatchedSetException mse = new MismatchedSetException(null,input);
  1227. recover(mse);
  1228. throw mse;}
  1229. // AdvancedExpression.g:169:29: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
  1230. loop11:
  1231. do {
  1232. int alt11=2;
  1233. int LA11_0 = input.LA(1);
  1234. if ( ((LA11_0>='0' && LA11_0<='9')||(LA11_0>='A' && LA11_0<='Z')||LA11_0=='_'||(LA11_0>='a' && LA11_0<='z')) ) {
  1235. alt11=1;
  1236. }
  1237. switch (alt11) {
  1238. case 1 :
  1239. // AdvancedExpression.g:
  1240. {
  1241. 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') ) {
  1242. input.consume();
  1243. }
  1244. else {
  1245. MismatchedSetException mse = new MismatchedSetException(null,input);
  1246. recover(mse);
  1247. throw mse;}
  1248. }
  1249. break;
  1250. default :
  1251. break loop11;
  1252. }
  1253. } while (true);
  1254. }
  1255. state.type = _type;
  1256. state.channel = _channel;
  1257. }
  1258. finally {
  1259. }
  1260. }
  1261. // $ANTLR end "ID"
  1262. // $ANTLR start "STRINGVALUE"
  1263. public final void mSTRINGVALUE() throws RecognitionException {
  1264. try {
  1265. int _type = STRINGVALUE;
  1266. int _channel = DEFAULT_TOKEN_CHANNEL;
  1267. // AdvancedExpression.g:170:13: ( '\"' ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '-' )* '\"' )
  1268. // AdvancedExpression.g:170:15: '\"' ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '-' )* '\"'
  1269. {
  1270. match('\"');
  1271. // AdvancedExpression.g:170:19: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '-' )*
  1272. loop12:
  1273. do {
  1274. int alt12=2;
  1275. int LA12_0 = input.LA(1);
  1276. if ( (LA12_0=='-'||(LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='z')) ) {
  1277. alt12=1;
  1278. }
  1279. switch (alt12) {
  1280. case 1 :
  1281. // AdvancedExpression.g:
  1282. {
  1283. if ( input.LA(1)=='-'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
  1284. input.consume();
  1285. }
  1286. else {
  1287. MismatchedSetException mse = new MismatchedSetException(null,input);
  1288. recover(mse);
  1289. throw mse;}
  1290. }
  1291. break;
  1292. default :
  1293. break loop12;
  1294. }
  1295. } while (true);
  1296. match('\"');
  1297. }
  1298. state.type = _type;
  1299. state.channel = _channel;
  1300. }
  1301. finally {
  1302. }
  1303. }
  1304. // $ANTLR end "STRINGVALUE"
  1305. // $ANTLR start "NEWLINE"
  1306. public final void mNEWLINE() throws RecognitionException {
  1307. try {
  1308. int _type = NEWLINE;
  1309. int _channel = DEFAULT_TOKEN_CHANNEL;
  1310. // AdvancedExpression.g:171:9: ( '$' )
  1311. // AdvancedExpression.g:171:11: '$'
  1312. {
  1313. match('$');
  1314. }
  1315. state.type = _type;
  1316. state.channel = _channel;
  1317. }
  1318. finally {
  1319. }
  1320. }
  1321. // $ANTLR end "NEWLINE"
  1322. // $ANTLR start "WS"
  1323. public final void mWS() throws RecognitionException {
  1324. try {
  1325. int _type = WS;
  1326. int _channel = DEFAULT_TOKEN_CHANNEL;
  1327. // AdvancedExpression.g:172:4: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
  1328. // AdvancedExpression.g:172:6: ( ' ' | '\\t' | '\\r' | '\\n' )+
  1329. {
  1330. // AdvancedExpression.g:172:6: ( ' ' | '\\t' | '\\r' | '\\n' )+
  1331. int cnt13=0;
  1332. loop13:
  1333. do {
  1334. int alt13=2;
  1335. int LA13_0 = input.LA(1);
  1336. if ( ((LA13_0>='\t' && LA13_0<='\n')||LA13_0=='\r'||LA13_0==' ') ) {
  1337. alt13=1;
  1338. }
  1339. switch (alt13) {
  1340. case 1 :
  1341. // AdvancedExpression.g:
  1342. {
  1343. if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
  1344. input.consume();
  1345. }
  1346. else {
  1347. MismatchedSetException mse = new MismatchedSetException(null,input);
  1348. recover(mse);
  1349. throw mse;}
  1350. }
  1351. break;
  1352. default :
  1353. if ( cnt13 >= 1 ) break loop13;
  1354. EarlyExitException eee =
  1355. new EarlyExitException(13, input);
  1356. throw eee;
  1357. }
  1358. cnt13++;
  1359. } while (true);
  1360. _channel = HIDDEN;
  1361. }
  1362. state.type = _type;
  1363. state.channel = _channel;
  1364. }
  1365. finally {
  1366. }
  1367. }
  1368. // $ANTLR end "WS"
  1369. public void mTokens() throws RecognitionException {
  1370. // 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 )
  1371. int alt14=38;
  1372. alt14 = dfa14.predict(input);
  1373. switch (alt14) {
  1374. case 1 :
  1375. // AdvancedExpression.g:1:10: T__20
  1376. {
  1377. mT__20();
  1378. }
  1379. break;
  1380. case 2 :
  1381. // AdvancedExpression.g:1:16: T__21
  1382. {
  1383. mT__21();
  1384. }
  1385. break;
  1386. case 3 :
  1387. // AdvancedExpression.g:1:22: T__22
  1388. {
  1389. mT__22();
  1390. }
  1391. break;
  1392. case 4 :
  1393. // AdvancedExpression.g:1:28: T__23
  1394. {
  1395. mT__23();
  1396. }
  1397. break;
  1398. case 5 :
  1399. // AdvancedExpression.g:1:34: T__24
  1400. {
  1401. mT__24();
  1402. }
  1403. break;
  1404. case 6 :
  1405. // AdvancedExpression.g:1:40: T__25
  1406. {
  1407. mT__25();
  1408. }
  1409. break;
  1410. case 7 :
  1411. // AdvancedExpression.g:1:46: T__26
  1412. {
  1413. mT__26();
  1414. }
  1415. break;
  1416. case 8 :
  1417. // AdvancedExpression.g:1:52: T__27
  1418. {
  1419. mT__27();
  1420. }
  1421. break;
  1422. case 9 :
  1423. // AdvancedExpression.g:1:58: T__28
  1424. {
  1425. mT__28();
  1426. }
  1427. break;
  1428. case 10 :
  1429. // AdvancedExpression.g:1:64: T__29
  1430. {
  1431. mT__29();
  1432. }
  1433. break;
  1434. case 11 :
  1435. // AdvancedExpression.g:1:70: T__30
  1436. {
  1437. mT__30();
  1438. }
  1439. break;
  1440. case 12 :
  1441. // AdvancedExpression.g:1:76: T__31
  1442. {
  1443. mT__31();
  1444. }
  1445. break;
  1446. case 13 :
  1447. // AdvancedExpression.g:1:82: T__32
  1448. {
  1449. mT__32();
  1450. }
  1451. break;
  1452. case 14 :
  1453. // AdvancedExpression.g:1:88: T__33
  1454. {
  1455. mT__33();
  1456. }
  1457. break;
  1458. case 15 :
  1459. // AdvancedExpression.g:1:94: T__34
  1460. {
  1461. mT__34();
  1462. }
  1463. break;
  1464. case 16 :
  1465. // AdvancedExpression.g:1:100: T__35
  1466. {
  1467. mT__35();
  1468. }
  1469. break;
  1470. case 17 :
  1471. // AdvancedExpression.g:1:106: T__36
  1472. {
  1473. mT__36();
  1474. }
  1475. break;
  1476. case 18 :
  1477. // AdvancedExpression.g:1:112: T__37
  1478. {
  1479. mT__37();
  1480. }
  1481. break;
  1482. case 19 :
  1483. // AdvancedExpression.g:1:118: T__38
  1484. {
  1485. mT__38();
  1486. }
  1487. break;
  1488. case 20 :
  1489. // AdvancedExpression.g:1:124: T__39
  1490. {
  1491. mT__39();
  1492. }
  1493. break;
  1494. case 21 :
  1495. // AdvancedExpression.g:1:130: T__40
  1496. {
  1497. mT__40();
  1498. }
  1499. break;
  1500. case 22 :
  1501. // AdvancedExpression.g:1:136: T__41
  1502. {
  1503. mT__41();
  1504. }
  1505. break;
  1506. case 23 :
  1507. // AdvancedExpression.g:1:142: T__42
  1508. {
  1509. mT__42();
  1510. }
  1511. break;
  1512. case 24 :
  1513. // AdvancedExpression.g:1:148: T__43
  1514. {
  1515. mT__43();
  1516. }
  1517. break;
  1518. case 25 :
  1519. // AdvancedExpression.g:1:154: F0
  1520. {
  1521. mF0();
  1522. }
  1523. break;
  1524. case 26 :
  1525. // AdvancedExpression.g:1:157: F1
  1526. {
  1527. mF1();
  1528. }
  1529. break;
  1530. case 27 :
  1531. // AdvancedExpression.g:1:160: F2
  1532. {
  1533. mF2();
  1534. }
  1535. break;
  1536. case 28 :
  1537. // AdvancedExpression.g:1:163: CONSTANT
  1538. {
  1539. mCONSTANT();
  1540. }
  1541. break;
  1542. case 29 :
  1543. // AdvancedExpression.g:1:172: NULL
  1544. {
  1545. mNULL();
  1546. }
  1547. break;
  1548. case 30 :
  1549. // AdvancedExpression.g:1:177: DOUBLE
  1550. {
  1551. mDOUBLE();
  1552. }
  1553. break;
  1554. case 31 :
  1555. // AdvancedExpression.g:1:184: INTEGER
  1556. {
  1557. mINTEGER();
  1558. }
  1559. break;
  1560. case 32 :
  1561. // AdvancedExpression.g:1:192: SUBSTRING
  1562. {
  1563. mSUBSTRING();
  1564. }
  1565. break;
  1566. case 33 :
  1567. // AdvancedExpression.g:1:202: TAILSTRING
  1568. {
  1569. mTAILSTRING();
  1570. }
  1571. break;
  1572. case 34 :
  1573. // AdvancedExpression.g:1:213: STRINGID
  1574. {
  1575. mSTRINGID();
  1576. }
  1577. break;
  1578. case 35 :
  1579. // AdvancedExpression.g:1:222: ID
  1580. {
  1581. mID();
  1582. }
  1583. break;
  1584. case 36 :
  1585. // AdvancedExpression.g:1:225: STRINGVALUE
  1586. {
  1587. mSTRINGVALUE();
  1588. }
  1589. break;
  1590. case 37 :
  1591. // AdvancedExpression.g:1:237: NEWLINE
  1592. {
  1593. mNEWLINE();
  1594. }
  1595. break;
  1596. case 38 :
  1597. // AdvancedExpression.g:1:245: WS
  1598. {
  1599. mWS();
  1600. }
  1601. break;
  1602. }
  1603. }
  1604. protected DFA1 dfa1 = new DFA1(this);
  1605. protected DFA2 dfa2 = new DFA2(this);
  1606. protected DFA14 dfa14 = new DFA14(this);
  1607. static final String DFA1_eotS =
  1608. "\13\uffff\1\15\5\uffff";
  1609. static final String DFA1_eofS =
  1610. "\21\uffff";
  1611. static final String DFA1_minS =
  1612. "\1\144\1\uffff\1\151\1\141\6\uffff\1\171\1\157\1\146\1\uffff\1"+
  1613. "\167\2\uffff";
  1614. static final String DFA1_maxS =
  1615. "\1\171\1\uffff\1\157\1\141\6\uffff\1\171\1\157\1\146\1\uffff\1"+
  1616. "\171\2\uffff";
  1617. static final String DFA1_acceptS =
  1618. "\1\uffff\1\1\2\uffff\1\4\1\6\1\11\1\12\1\2\1\5\3\uffff\1\3\1\uffff"+
  1619. "\1\7\1\10";
  1620. static final String DFA1_specialS =
  1621. "\21\uffff}>";
  1622. static final String[] DFA1_transitionS = {
  1623. "\1\3\3\uffff\1\4\4\uffff\1\2\4\uffff\1\7\1\5\1\6\4\uffff\1"+
  1624. "\1",
  1625. "",
  1626. "\1\11\5\uffff\1\10",
  1627. "\1\12",
  1628. "",
  1629. "",
  1630. "",
  1631. "",
  1632. "",
  1633. "",
  1634. "\1\13",
  1635. "\1\14",
  1636. "\1\16",
  1637. "",
  1638. "\1\17\1\uffff\1\20",
  1639. "",
  1640. ""
  1641. };
  1642. static final short[] DFA1_eot = DFA.unpackEncodedString(DFA1_eotS);
  1643. static final short[] DFA1_eof = DFA.unpackEncodedString(DFA1_eofS);
  1644. static final char[] DFA1_min = DFA.unpackEncodedStringToUnsignedChars(DFA1_minS);
  1645. static final char[] DFA1_max = DFA.unpackEncodedStringToUnsignedChars(DFA1_maxS);
  1646. static final short[] DFA1_accept = DFA.unpackEncodedString(DFA1_acceptS);
  1647. static final short[] DFA1_special = DFA.unpackEncodedString(DFA1_specialS);
  1648. static final short[][] DFA1_transition;
  1649. static {
  1650. int numStates = DFA1_transitionS.length;
  1651. DFA1_transition = new short[numStates][];
  1652. for (int i=0; i<numStates; i++) {
  1653. DFA1_transition[i] = DFA.unpackEncodedString(DFA1_transitionS[i]);
  1654. }
  1655. }
  1656. class DFA1 extends DFA {
  1657. public DFA1(BaseRecognizer recognizer) {
  1658. this.recognizer = recognizer;
  1659. this.decisionNumber = 1;
  1660. this.eot = DFA1_eot;
  1661. this.eof = DFA1_eof;
  1662. this.min = DFA1_min;
  1663. this.max = DFA1_max;
  1664. this.accept = DFA1_accept;
  1665. this.special = DFA1_special;
  1666. this.transition = DFA1_transition;
  1667. }
  1668. public String getDescription() {
  1669. return "159:6: ( 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayofweek' | 'dayofyear' | 'totalsecond' | 'random' )";
  1670. }
  1671. }
  1672. static final String DFA2_eotS =
  1673. "\22\uffff\1\27\1\31\1\33\1\35\10\uffff";
  1674. static final String DFA2_eofS =
  1675. "\36\uffff";
  1676. static final String DFA2_minS =
  1677. "\1\141\1\142\1\145\2\uffff\1\157\1\151\1\141\5\uffff\1\163\1\147"+
  1678. "\1\156\1\uffff\1\156\1\150\1\61\2\150\10\uffff";
  1679. static final String DFA2_maxS =
  1680. "\2\164\1\157\2\uffff\1\157\1\161\1\141\5\uffff\1\163\1\147\1\156"+
  1681. "\1\uffff\1\156\1\150\1\61\2\150\10\uffff";
  1682. static final String DFA2_acceptS =
  1683. "\3\uffff\1\10\1\11\3\uffff\1\1\1\2\1\3\1\4\1\5\3\uffff\1\16\5\uffff"+
  1684. "\1\7\1\6\1\13\1\12\1\15\1\14\1\20\1\17";
  1685. static final String DFA2_specialS =
  1686. "\36\uffff}>";
  1687. static final String[] DFA2_transitionS = {
  1688. "\1\1\1\uffff\1\2\1\uffff\1\3\1\4\5\uffff\1\5\6\uffff\1\6\1"+
  1689. "\7",
  1690. "\1\10\1\11\17\uffff\1\12\1\13",
  1691. "\1\14\11\uffff\1\15",
  1692. "",
  1693. "",
  1694. "\1\16",
  1695. "\1\17\7\uffff\1\20",
  1696. "\1\21",
  1697. "",
  1698. "",
  1699. "",
  1700. "",
  1701. "",
  1702. "\1\22",
  1703. "\1\23",
  1704. "\1\24",
  1705. "",
  1706. "\1\25",
  1707. "\1\26",
  1708. "\1\30",
  1709. "\1\32",
  1710. "\1\34",
  1711. "",
  1712. "",
  1713. "",
  1714. "",
  1715. "",
  1716. "",
  1717. "",
  1718. ""
  1719. };
  1720. static final short[] DFA2_eot = DFA.unpackEncodedString(DFA2_eotS);
  1721. static final short[] DFA2_eof = DFA.unpackEncodedString(DFA2_eofS);
  1722. static final char[] DFA2_min = DFA.unpackEncodedStringToUnsignedChars(DFA2_minS);
  1723. static final char[] DFA2_max = DFA.unpackEncodedStringToUnsignedChars(DFA2_maxS);
  1724. static final short[] DFA2_accept = DFA.unpackEncodedString(DFA2_acceptS);
  1725. static final short[] DFA2_special = DFA.unpackEncodedString(DFA2_specialS);
  1726. static final short[][] DFA2_transition;
  1727. static {
  1728. int numStates = DFA2_transitionS.length;
  1729. DFA2_transition = new short[numStates][];
  1730. for (int i=0; i<numStates; i++) {
  1731. DFA2_transition[i] = DFA.unpackEncodedString(DFA2_transitionS[i]);
  1732. }
  1733. }
  1734. class DFA2 extends DFA {
  1735. public DFA2(BaseRecognizer recognizer) {
  1736. this.recognizer = recognizer;
  1737. this.decisionNumber = 2;
  1738. this.eot = DFA2_eot;
  1739. this.eof = DFA2_eof;
  1740. this.min = DFA2_min;
  1741. this.max = DFA2_max;
  1742. this.accept = DFA2_accept;
  1743. this.special = DFA2_special;
  1744. this.transition = DFA2_transition;
  1745. }
  1746. public String getDescription() {
  1747. return "160:6: ( 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'cosh' | 'exp' | 'floor' | 'log' | 'log10' | 'sin' | 'sinh' | 'sqrt' | 'tan' | 'tanh' )";
  1748. }
  1749. }
  1750. static final String DFA14_eotS =
  1751. "\13\uffff\1\46\2\uffff\1\46\2\uffff\1\56\1\uffff\1\60\1\62\15\46"+
  1752. "\1\114\1\46\2\116\4\uffff\1\121\2\46\6\uffff\30\46\1\114\1\uffff"+
  1753. "\1\46\2\uffff\1\116\1\uffff\1\46\1\157\2\46\2\163\1\165\2\46\1\157"+
  1754. "\4\46\1\157\2\46\1\157\4\46\1\157\2\46\1\157\1\163\1\46\1\u008a"+
  1755. "\1\uffff\1\165\2\46\1\uffff\1\46\1\uffff\1\165\1\46\2\157\3\46\1"+
  1756. "\157\2\46\5\157\1\46\1\163\1\46\1\u0097\1\46\1\uffff\1\165\10\46"+
  1757. "\1\163\2\157\1\uffff\1\u00a2\1\165\2\46\1\165\4\46\1\165\1\uffff"+
  1758. "\11\46\1\u00b2\2\46\2\165\1\u00b6\1\uffff\1\u00b2\2\46\1\uffff\1"+
  1759. "\46\1\u00ba\1\165\1\uffff";
  1760. static final String DFA14_eofS =
  1761. "\u00bb\uffff";
  1762. static final String DFA14_minS =
  1763. "\1\11\12\uffff\1\146\2\uffff\1\154\2\uffff\1\75\1\uffff\2\75\1"+
  1764. "\145\2\141\1\157\1\145\2\141\1\142\1\145\1\154\2\157\1\111\1\60"+
  1765. "\1\165\2\56\4\uffff\1\60\1\163\1\160\6\uffff\1\141\2\156\1\170\1"+
  1766. "\171\1\165\1\143\1\156\1\162\1\142\1\162\1\164\1\151\1\156\1\163"+
  1767. "\1\157\1\151\1\141\1\151\1\163\2\157\1\147\1\167\1\60\1\uffff\1"+
  1768. "\154\2\uffff\1\56\1\uffff\1\145\1\60\1\162\1\164\3\60\1\162\1\157"+
  1769. "\1\60\1\164\1\163\1\151\1\141\1\60\1\154\1\144\1\60\1\163\2\156"+
  1770. "\1\154\1\60\1\157\1\144\2\60\1\154\1\60\1\uffff\1\60\1\150\1\164"+
  1771. "\1\uffff\1\146\1\uffff\1\60\1\156\2\60\1\164\1\156\1\154\1\60\1"+
  1772. "\163\1\157\5\60\1\162\3\60\1\146\1\uffff\1\60\1\145\1\167\1\144"+
  1773. "\1\162\1\147\1\163\1\164\1\155\3\60\1\uffff\2\60\2\145\1\60\1\151"+
  1774. "\1\137\1\145\1\162\1\60\1\uffff\1\145\1\141\1\156\1\101\1\143\1"+
  1775. "\151\1\153\1\162\1\147\1\60\1\157\1\156\3\60\1\uffff\1\60\1\156"+
  1776. "\1\147\1\uffff\1\144\2\60\1\uffff";
  1777. static final String DFA14_maxS =
  1778. "\1\175\12\uffff\1\146\2\uffff\1\170\2\uffff\1\75\1\uffff\2\75\1"+
  1779. "\145\1\157\1\141\1\157\1\165\1\157\1\141\1\164\1\157\1\155\2\157"+
  1780. "\1\111\1\172\1\165\1\56\1\71\4\uffff\1\172\1\163\1\160\6\uffff\1"+
  1781. "\141\2\156\1\170\1\171\1\165\1\143\1\156\1\162\1\142\1\162\1\164"+
  1782. "\2\156\1\163\1\157\1\151\1\141\1\151\1\163\2\157\1\147\1\167\1\172"+
  1783. "\1\uffff\1\154\2\uffff\1\71\1\uffff\1\145\1\172\1\162\1\164\3\172"+
  1784. "\1\162\1\157\1\172\1\164\1\163\1\151\1\141\1\172\1\154\1\144\1\172"+
  1785. "\1\163\2\156\1\154\1\172\1\157\1\144\2\172\1\154\1\172\1\uffff\1"+
  1786. "\172\1\150\1\164\1\uffff\1\146\1\uffff\1\172\1\156\2\172\1\164\1"+
  1787. "\156\1\154\1\172\1\163\1\157\5\172\1\162\1\172\1\60\1\172\1\146"+
  1788. "\1\uffff\1\172\1\145\1\171\1\144\1\162\1\147\1\163\1\164\1\155\3"+
  1789. "\172\1\uffff\2\172\2\145\1\172\1\151\1\137\1\145\1\162\1\172\1\uffff"+
  1790. "\1\145\1\141\1\156\1\172\1\143\1\151\1\153\1\162\1\147\1\172\1\157"+
  1791. "\1\156\3\172\1\uffff\1\172\1\156\1\147\1\uffff\1\144\2\172\1\uffff";
  1792. static final String DFA14_acceptS =
  1793. "\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"+
  1794. "\1\15\1\uffff\1\20\1\21\1\uffff\1\23\23\uffff\1\43\1\44\1\45\1\46"+
  1795. "\3\uffff\1\24\1\22\1\26\1\25\1\30\1\27\31\uffff\1\34\1\uffff\1\37"+
  1796. "\1\36\1\uffff\1\13\35\uffff\1\32\3\uffff\1\33\1\uffff\1\31\24\uffff"+
  1797. "\1\17\14\uffff\1\35\12\uffff\1\16\17\uffff\1\42\3\uffff\1\40\3\uffff"+
  1798. "\1\41";
  1799. static final String DFA14_specialS =
  1800. "\u00bb\uffff}>";
  1801. static final String[] DFA14_transitionS = {
  1802. "\2\51\2\uffff\1\51\22\uffff\1\51\1\21\1\47\1\uffff\1\50\1\5"+
  1803. "\1\20\1\uffff\1\6\1\7\1\3\1\1\1\10\1\2\1\uffff\1\4\1\44\11\45"+
  1804. "\2\uffff\1\23\1\22\1\24\2\uffff\4\46\1\42\12\46\1\41\12\46\1"+
  1805. "\11\1\uffff\1\12\1\uffff\1\46\1\uffff\1\34\1\46\1\35\1\27\1"+
  1806. "\16\1\36\1\46\1\30\1\13\2\46\1\37\1\26\1\43\1\46\1\40\1\46\1"+
  1807. "\33\1\31\1\32\4\46\1\25\1\46\1\14\1\17\1\15",
  1808. "",
  1809. "",
  1810. "",
  1811. "",
  1812. "",
  1813. "",
  1814. "",
  1815. "",
  1816. "",
  1817. "",
  1818. "\1\52",
  1819. "",
  1820. "",
  1821. "\1\53\13\uffff\1\54",
  1822. "",
  1823. "",
  1824. "\1\55",
  1825. "",
  1826. "\1\57",
  1827. "\1\61",
  1828. "\1\63",
  1829. "\1\66\7\uffff\1\65\5\uffff\1\64",
  1830. "\1\67",
  1831. "\1\70",
  1832. "\1\71\3\uffff\1\72\7\uffff\1\73\2\uffff\1\75\1\74",
  1833. "\1\77\15\uffff\1\76",
  1834. "\1\100",
  1835. "\1\101\1\102\17\uffff\1\103\1\104",
  1836. "\1\105\11\uffff\1\106",
  1837. "\1\107\1\110",
  1838. "\1\111",
  1839. "\1\112",
  1840. "\1\113",
  1841. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1842. "\1\115",
  1843. "\1\117",
  1844. "\1\117\1\uffff\12\120",
  1845. "",
  1846. "",
  1847. "",
  1848. "",
  1849. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1850. "\1\122",
  1851. "\1\123",
  1852. "",
  1853. "",
  1854. "",
  1855. "",
  1856. "",
  1857. "",
  1858. "\1\124",
  1859. "\1\125",
  1860. "\1\126",
  1861. "\1\127",
  1862. "\1\130",
  1863. "\1\131",
  1864. "\1\132",
  1865. "\1\133",
  1866. "\1\134",
  1867. "\1\135",
  1868. "\1\136",
  1869. "\1\137",
  1870. "\1\141\4\uffff\1\140",
  1871. "\1\142",
  1872. "\1\143",
  1873. "\1\144",
  1874. "\1\145",
  1875. "\1\146",
  1876. "\1\147",
  1877. "\1\150",
  1878. "\1\151",
  1879. "\1\152",
  1880. "\1\153",
  1881. "\1\154",
  1882. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1883. "",
  1884. "\1\155",
  1885. "",
  1886. "",
  1887. "\1\117\1\uffff\12\120",
  1888. "",
  1889. "\1\156",
  1890. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1891. "\1\160",
  1892. "\1\161",
  1893. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\24\46\1\162\5\46",
  1894. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1895. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\16\46\1\164\13\46",
  1896. "\1\166",
  1897. "\1\167",
  1898. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\7\46\1\170\22\46",
  1899. "\1\171",
  1900. "\1\172",
  1901. "\1\173",
  1902. "\1\174",
  1903. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\7\46\1\175\22\46",
  1904. "\1\176",
  1905. "\1\177",
  1906. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1907. "\1\u0080",
  1908. "\1\u0081",
  1909. "\1\u0082",
  1910. "\1\u0083",
  1911. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\7\46\1\u0084\22"+
  1912. "\46",
  1913. "\1\u0085",
  1914. "\1\u0086",
  1915. "\1\46\1\u0087\10\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32"+
  1916. "\46",
  1917. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1918. "\1\u0088",
  1919. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\10\46\1\u0089\21"+
  1920. "\46",
  1921. "",
  1922. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1923. "\1\u008b",
  1924. "\1\u008c",
  1925. "",
  1926. "\1\u008d",
  1927. "",
  1928. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1929. "\1\u008e",
  1930. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1931. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1932. "\1\u008f",
  1933. "\1\u0090",
  1934. "\1\u0091",
  1935. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1936. "\1\u0092",
  1937. "\1\u0093",
  1938. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1939. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1940. "\2\46\1\u0094\7\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1941. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1942. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1943. "\1\u0095",
  1944. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1945. "\1\u0096",
  1946. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1947. "\1\u0098",
  1948. "",
  1949. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1950. "\1\u0099",
  1951. "\1\u009a\1\uffff\1\u009b",
  1952. "\1\u009c",
  1953. "\1\u009d",
  1954. "\1\u009e",
  1955. "\1\u009f",
  1956. "\1\u00a0",
  1957. "\1\u00a1",
  1958. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1959. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1960. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1961. "",
  1962. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1963. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1964. "\1\u00a3",
  1965. "\1\u00a4",
  1966. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1967. "\1\u00a5",
  1968. "\1\u00a6",
  1969. "\1\u00a7",
  1970. "\1\u00a8",
  1971. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1972. "",
  1973. "\1\u00a9",
  1974. "\1\u00aa",
  1975. "\1\u00ab",
  1976. "\32\u00ac\4\uffff\1\u00ac\1\uffff\32\u00ac",
  1977. "\1\u00ad",
  1978. "\1\u00ae",
  1979. "\1\u00af",
  1980. "\1\u00b0",
  1981. "\1\u00b1",
  1982. "\12\u00b3\7\uffff\32\u00b3\4\uffff\1\u00b3\1\uffff\32\u00b3",
  1983. "\1\u00b4",
  1984. "\1\u00b5",
  1985. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1986. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1987. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1988. "",
  1989. "\12\u00b3\7\uffff\32\u00b3\4\uffff\1\u00b3\1\uffff\32\u00b3",
  1990. "\1\u00b7",
  1991. "\1\u00b8",
  1992. "",
  1993. "\1\u00b9",
  1994. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1995. "\12\46\7\uffff\32\46\4\uffff\1\46\1\uffff\32\46",
  1996. ""
  1997. };
  1998. static final short[] DFA14_eot = DFA.unpackEncodedString(DFA14_eotS);
  1999. static final short[] DFA14_eof = DFA.unpackEncodedString(DFA14_eofS);
  2000. static final char[] DFA14_min = DFA.unpackEncodedStringToUnsignedChars(DFA14_minS);
  2001. static final char[] DFA14_max = DFA.unpackEncodedStringToUnsignedChars(DFA14_maxS);
  2002. static final short[] DFA14_accept = DFA.unpackEncodedString(DFA14_acceptS);
  2003. static final short[] DFA14_special = DFA.unpackEncodedString(DFA14_specialS);
  2004. static final short[][] DFA14_transition;
  2005. static {
  2006. int numStates = DFA14_transitionS.length;
  2007. DFA14_transition = new short[numStates][];
  2008. for (int i=0; i<numStates; i++) {
  2009. DFA14_transition[i] = DFA.unpackEncodedString(DFA14_transitionS[i]);
  2010. }
  2011. }
  2012. class DFA14 extends DFA {
  2013. public DFA14(BaseRecognizer recognizer) {
  2014. this.recognizer = recognizer;
  2015. this.decisionNumber = 14;
  2016. this.eot = DFA14_eot;
  2017. this.eof = DFA14_eof;
  2018. this.min = DFA14_min;
  2019. this.max = DFA14_max;
  2020. this.accept = DFA14_accept;
  2021. this.special = DFA14_special;
  2022. this.transition = DFA14_transition;
  2023. }
  2024. public String getDescription() {
  2025. 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 );";
  2026. }
  2027. }
  2028. }