PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/__include/fshl_cache/SQL_lang.php

https://gitlab.com/error414/fileshit
PHP | 225 lines | 190 code | 13 blank | 22 comment | 35 complexity | 0d2160527a80d2f39a2872db478eea7b MD5 | raw file
  1. <?php
  2. /* --------------------------------------------------------------- *
  3. * WARNING: ALL CHANGES IN THIS FILE WILL BE LOST
  4. *
  5. * Source language file: C:\Web\WebData\scripts\fshl\fshl-0.4.13\fshl/lang/SQL_lang.php
  6. * Language version: 1.0 (Sign:SHL)
  7. *
  8. * Target file: C:\Web\WebData\scripts\fshl\fshl-0.4.13\fshl/fshl_cache/SQL_lang.php
  9. * Build date: Sat 14.5.2005 01:51:54
  10. *
  11. * Generator version: 0.4.7
  12. * --------------------------------------------------------------- */
  13. class SQL_lang
  14. {
  15. var $trans,$flags,$data,$delim,$class,$keywords;
  16. var $version,$signature,$initial_state,$ret,$quit;
  17. var $pt,$pti,$generator_version;
  18. var $names;
  19. function SQL_lang () {
  20. $this->version=1.0;
  21. $this->signature='SHL';
  22. $this->generator_version='0.4.7';
  23. $this->initial_state=0;
  24. $this->trans=array(0=>array(0=>array(0=>2,1=>0),1=>array(0=>3,1=>0),2=>array(0=>3,1=>0),3=>array(0=>3,1=>0),4=>array(0=>4,1=>0),5=>array(0=>5,1=>0),6=>array(0=>6,1=>0),7=>array(0=>1,1=>-1),8=>array(0=>7,1=>0),9=>array(0=>0,1=>0)),1=>array(0=>array(0=>11,1=>1)),2=>array(0=>array(0=>11,1=>0),1=>array(0=>2,1=>0)),3=>array(0=>array(0=>11,1=>0),1=>array(0=>3,1=>0)),4=>array(0=>array(0=>4,1=>0),1=>array(0=>11,1=>0),2=>array(0=>4,1=>0)),5=>array(0=>array(0=>5,1=>0),1=>array(0=>11,1=>0),2=>array(0=>5,1=>0)),6=>array(0=>array(0=>6,1=>0),1=>array(0=>11,1=>0),2=>array(0=>6,1=>0)),7=>array(0=>array(0=>9,1=>0),1=>array(0=>8,1=>0),2=>array(0=>11,1=>1)),8=>array(0=>array(0=>11,1=>1)),9=>array(0=>array(0=>11,1=>1)),10=>array(0=>array(0=>10,1=>0),1=>array(0=>10,1=>0),2=>array(0=>10,1=>0),3=>array(0=>10,1=>0),4=>array(0=>10,1=>0)));
  25. $this->flags=array(0=>1,1=>5,2=>4,3=>4,4=>4,5=>4,6=>4,7=>4,8=>0,9=>0,10=>4);
  26. $this->delim=array(0=>array(0=>'/*',1=>'//',2=>'#',3=>'--',4=>'"',5=>'\'',6=>'`',7=>'ALPHA',8=>'NUMBER',9=>'_COUNTAB'),1=>array(0=>'!SAFECHAR'),2=>array(0=>'*/',1=>'_COUNTAB'),3=>array(0=>'
  27. ',1=>'_COUNTAB'),4=>array(0=>'\\"',1=>'"',2=>'_COUNTAB'),5=>array(0=>'\\\'',1=>'\'',2=>'_COUNTAB'),6=>array(0=>'\\`',1=>'`',2=>'_COUNTAB'),7=>array(0=>'x',1=>'NUMBER',2=>'!NUMBER'),8=>array(0=>'!NUMBER'),9=>array(0=>'!HEXNUM'),10=>array(0=>'BLOB',1=>'TEXT',2=>'INTEGER',3=>'CHAR',4=>'DATE'));
  28. $this->ret=11;
  29. $this->quit=12;
  30. $this->names=array(0=>'OUT',1=>'FUNCTION',2=>'COMMENT',3=>'COMMENT1',4=>'QUOTE',5=>'QUOTE1',6=>'QUOTE3',7=>'NUM',8=>'DEC_NUM',9=>'HEX_NUM',10=>'OPTION',11=>'_RET',12=>'_QUIT');
  31. $this->data=array(0=>null,1=>null,2=>null,3=>null,4=>null,5=>null,6=>null,7=>null,8=>null,9=>null,10=>null);
  32. $this->class=array(0=>null,1=>null,2=>'sql-comment',3=>'sql-comment',4=>'sql-value',5=>'sql-value',6=>'sql-value',7=>'sql-num',8=>'sql-num',9=>'sql-num',10=>'sql-option');
  33. $this->keywords=array(0=>'sql-keyword',1=>array('a'=>1,'abs'=>2,'acos'=>2,'add'=>1,'add_months'=>1,'after'=>1,'all'=>1,'alter'=>1,'an'=>1,'and'=>1,'any'=>1,'array'=>1,'as'=>1,'asc'=>1,'ascii'=>2,'asin'=>2,'atan'=>2,'atan2'=>2,'avg'=>2,'before'=>1,'begin'=>1,'between'=>1,'bigint'=>3,'binary'=>1,'bind'=>1,'binding'=>1,'bit'=>1,'by'=>1,'call'=>1,'cascade'=>1,'case'=>1,'cast'=>1,'ceiling'=>2,'char'=>3,'char_length'=>2,'character'=>2,'character_length'=>2,'chartorowid'=>1,'check'=>1,'chr'=>1,'cleanup'=>1,'close'=>1,'clustered'=>1,'coalesce'=>1,'colgroup'=>1,'collate'=>1,'commit'=>1,'complex'=>1,'compress'=>1,'concat'=>2,'connect'=>1,'constraint'=>1,'contains'=>1,'continue'=>1,'convert'=>1,'cos'=>2,'count'=>2,'create'=>1,'cross'=>1,'curdate'=>2,'current'=>1,'cursor'=>1,'curtime'=>2,'cvar'=>1,'database'=>1,'datapages'=>1,'date'=>2,'dayname'=>2,'dayofmonth'=>2,'dayofweek'=>2,'dayofyear'=>2,'db_name'=>1,'dba'=>1,'dec'=>3,'decimal'=>3,'declaration'=>1,'declare'=>1,'decode'=>2,'default'=>1,'definition'=>1,'degrees'=>1,'delete'=>1,'desc'=>1,'describe'=>1,'descriptor'=>1,'dhtype'=>1,'difference'=>1,'distinct'=>1,'double'=>3,'drop'=>1,'each'=>1,'else'=>1,'end'=>1,'escape'=>1,'exclusive'=>1,'exec'=>1,'execute'=>1,'exists'=>1,'exit'=>1,'exp'=>2,'explicit'=>1,'extent'=>1,'fetch'=>1,'field file'=>1,'float'=>3,'floor'=>2,'for'=>1,'foreign'=>1,'found'=>1,'from'=>1,'full'=>1,'go'=>1,'goto'=>1,'grant'=>1,'greatest'=>2,'group'=>1,'hash'=>1,'having'=>1,'hour'=>1,'identified'=>1,'ifnull'=>2,'immediate'=>1,'in'=>1,'index'=>1,'indexpages'=>1,'indicator'=>1,'initcap'=>1,'inner'=>1,'inout'=>1,'input'=>1,'insert'=>1,'instr'=>1,'int'=>3,'integer'=>3,'interface'=>1,'intersect'=>1,'into'=>1,'is'=>1,'isnull'=>2,'join'=>1,'key'=>1,'last_day'=>2,'lcase'=>2,'least'=>2,'left'=>2,'length'=>2,'like'=>1,'link'=>1,'list'=>1,'locate'=>1,'lock'=>1,'log'=>2,'log10'=>2,'long'=>1,'longblob'=>3,'longtext'=>3,'lower'=>1,'lpad'=>1,'ltrim'=>2,'lvarbinary'=>1,'lvarchar'=>1,'main'=>1,'max'=>2,'metadata_only'=>1,'min'=>2,'minus'=>2,'minute'=>2,'mod'=>2,'mode'=>1,'modify'=>1,'money'=>1,'month'=>2,'monthname'=>2,'months_between'=>2,'name'=>1,'national'=>1,'natural'=>1,'nchar'=>1,'newrow'=>1,'next_day'=>1,'nocompress'=>1,'not'=>1,'now'=>1,'nowait'=>1,'null'=>1,'nullif'=>1,'nullvalue'=>1,'number'=>1,'numeric'=>1,'nvl'=>1,'object_id'=>1,'odbc_convert'=>1,'odbcinfo'=>1,'of'=>1,'oldrow'=>1,'on'=>1,'open'=>1,'option'=>1,'or'=>1,'order'=>1,'out'=>1,'outer'=>1,'output'=>1,'pctfree'=>1,'pi'=>1,'power'=>1,'precision'=>1,'prefix'=>1,'prepare'=>1,'primary'=>1,'privileges'=>1,'procedure'=>1,'public'=>1,'quarter'=>2,'radians'=>2,'rand'=>2,'range'=>2,'raw'=>1,'real'=>3,'record'=>1,'references'=>1,'referencing'=>1,'rename'=>1,'repeat'=>2,'replace'=>1,'resource'=>1,'restrict'=>1,'result'=>1,'return'=>2,'revoke'=>2,'right'=>2,'rollback'=>1,'row'=>2,'rowid'=>2,'rowidtochar'=>2,'rownum'=>2,'rpad'=>2,'rtrim'=>2,'searched_case'=>1,'second'=>1,'section'=>1,'select'=>1,'service'=>1,'set'=>1,'share'=>1,'short'=>1,'sign'=>1,'simple_case'=>1,'sin'=>2,'size'=>2,'smallint'=>3,'some'=>1,'soundex'=>1,'space'=>1,'sql'=>1,'sql_bigint'=>3,'sql_binary'=>3,'sql_bit'=>3,'sql_char'=>3,'sql_date'=>3,'sql_decimal'=>3,'sql_double'=>3,'sql_float'=>1,'sql_integer'=>3,'sql_longvarbinary'=>3,'sql_longvarchar'=>3,'sql_numeric'=>3,'sql_real'=>3,'sql_smallint'=>3,'sql_time'=>3,'sql_timestamp'=>1,'sql_tinyint'=>3,'sql_tsi_day'=>3,'sql_tsi_frac_second'=>3,'sql_tsi_hour'=>3,'sql_tsi_minute'=>3,'sql_tsi_month'=>3,'sql_tsi_quarter'=>3,'sql_tsi_second'=>3,'sql_tsi_week'=>3,'sql_tsi_year'=>3,'sql_varbinary'=>3,'sql_varchar'=>3,'sqlerror'=>1,'sqlwarning'=>1,'sqrt'=>1,'start'=>1,'statement'=>1,'statistics'=>1,'stop'=>1,'storage_attributes'=>1,'storage_manager'=>1,'store_in_progress'=>1,'substr'=>2,'substring'=>2,'suffix'=>2,'sum'=>2,'suser_name'=>2,'synonym'=>2,'sysdate'=>2,'systime'=>2,'systimestamp'=>2,'table'=>1,'tan'=>2,'then'=>1,'time'=>2,'timeout'=>2,'timestamp'=>3,'timestampadd'=>2,'timestampdiff'=>2,'tinyint'=>3,'to'=>2,'to_char'=>2,'to_date'=>2,'to_number'=>2,'to_time'=>2,'to_timestamp'=>2,'tpe'=>1,'transaction'=>1,'translate'=>1,'trigger'=>1,'type'=>1,'ucase'=>1,'uid'=>1,'union'=>1,'unique'=>1,'unsigned'=>1,'update'=>1,'upper'=>1,'user'=>1,'user_id'=>1,'user_name'=>1,'using'=>1,'uuid'=>1,'values'=>1,'varbinary'=>1,'varchar'=>3,'variables'=>1,'varying'=>1,'version'=>1,'view'=>1,'week'=>2,'when'=>1,'whenever'=>1,'where'=>1,'with'=>1,'work'=>1,'year'=>1,'blob'=>3,'text'=>3,'string'=>3,'boolean'=>3,'longvarchar'=>3,'java_object'=>3,'longvarbinary'=>3,'tran'=>1,'top'=>1,'mediumint'=>3));
  34. }
  35. /* OUT */
  36. function isd0 () {
  37. $p=$this->pti;
  38. $c1=$this->pt[$p++];
  39. $c2=$c1.$this->pt[$p];
  40. if($c2=='/*'){
  41. return array(0,'/*');
  42. }
  43. if($c2=='//'){
  44. return array(1,'//');
  45. }
  46. if($c1=='#'){
  47. return array(2,'#');
  48. }
  49. if($c2=='--'){
  50. return array(3,'--');
  51. }
  52. if($c1=='"'){
  53. return array(4,'"');
  54. }
  55. if($c1=='\''){
  56. return array(5,'\'');
  57. }
  58. if($c1=='`'){
  59. return array(6,'`');
  60. }
  61. if(ctype_alpha($c1)){
  62. return array(7,$c1);
  63. }
  64. if(ctype_digit($c1)){
  65. return array(8,$c1);
  66. }
  67. if(stristr("\t\n",$c1)){
  68. return array(9,$c1);
  69. }
  70. return false;
  71. }
  72. /* FUNCTION */
  73. function isd1 () {
  74. $c1=$this->pt[$this->pti];
  75. if(!(ctype_alnum($c1) || $c1=='_')){
  76. return array(0,$c1);
  77. }
  78. return false;
  79. }
  80. /* COMMENT */
  81. function isd2 () {
  82. $p=$this->pti;
  83. $c1=$this->pt[$p++];
  84. $c2=$c1.$this->pt[$p];
  85. if($c2=='*/'){
  86. return array(0,'*/');
  87. }
  88. if(stristr("\t\n",$c1)){
  89. return array(1,$c1);
  90. }
  91. return false;
  92. }
  93. /* COMMENT1 */
  94. function isd3 () {
  95. $c1=$this->pt[$this->pti];
  96. if($c1=='
  97. '){
  98. return array(0,'
  99. ');
  100. }
  101. if(stristr("\t\n",$c1)){
  102. return array(1,$c1);
  103. }
  104. return false;
  105. }
  106. /* QUOTE */
  107. function isd4 () {
  108. $p=$this->pti;
  109. $c1=$this->pt[$p++];
  110. $c2=$c1.$this->pt[$p];
  111. if($c2=='\\"'){
  112. return array(0,'\\"');
  113. }
  114. if($c1=='"'){
  115. return array(1,'"');
  116. }
  117. if(stristr("\t\n",$c1)){
  118. return array(2,$c1);
  119. }
  120. return false;
  121. }
  122. /* QUOTE1 */
  123. function isd5 () {
  124. $p=$this->pti;
  125. $c1=$this->pt[$p++];
  126. $c2=$c1.$this->pt[$p];
  127. if($c2=='\\\''){
  128. return array(0,'\\\'');
  129. }
  130. if($c1=='\''){
  131. return array(1,'\'');
  132. }
  133. if(stristr("\t\n",$c1)){
  134. return array(2,$c1);
  135. }
  136. return false;
  137. }
  138. /* QUOTE3 */
  139. function isd6 () {
  140. $p=$this->pti;
  141. $c1=$this->pt[$p++];
  142. $c2=$c1.$this->pt[$p];
  143. if($c2=='\\`'){
  144. return array(0,'\\`');
  145. }
  146. if($c1=='`'){
  147. return array(1,'`');
  148. }
  149. if(stristr("\t\n",$c1)){
  150. return array(2,$c1);
  151. }
  152. return false;
  153. }
  154. /* NUM */
  155. function isd7 () {
  156. $c1=$this->pt[$this->pti];
  157. if($c1=='x'){
  158. return array(0,'x');
  159. }
  160. if(ctype_digit($c1)){
  161. return array(1,$c1);
  162. }
  163. if(!ctype_digit($c1)){
  164. return array(2,$c1);
  165. }
  166. return false;
  167. }
  168. /* DEC_NUM */
  169. function isd8 () {
  170. $c1=$this->pt[$this->pti];
  171. if(!ctype_digit($c1)){
  172. return array(0,$c1);
  173. }
  174. return false;
  175. }
  176. /* HEX_NUM */
  177. function isd9 () {
  178. $c1=$this->pt[$this->pti];
  179. if(!ctype_xdigit($c1)){
  180. return array(0,$c1);
  181. }
  182. return false;
  183. }
  184. /* OPTION */
  185. function isd10 () {
  186. $p=$this->pti;
  187. $c1=$this->pt[$p++];
  188. $c2=$c1.$this->pt[$p++];
  189. $c3=$c2.$this->pt[$p++];
  190. $c4=$c3.$this->pt[$p++];
  191. $c5=$c4.$this->pt[$p++];
  192. $c6=$c5.$this->pt[$p++];
  193. $c7=$c6.$this->pt[$p];
  194. if($c4=='BLOB'){
  195. return array(0,'BLOB');
  196. }
  197. if($c4=='TEXT'){
  198. return array(1,'TEXT');
  199. }
  200. if($c7=='INTEGER'){
  201. return array(2,'INTEGER');
  202. }
  203. if($c4=='CHAR'){
  204. return array(3,'CHAR');
  205. }
  206. if($c4=='DATE'){
  207. return array(4,'DATE');
  208. }
  209. return false;
  210. }
  211. }
  212. ?>