How to use eof method in wpt

Best JavaScript code snippet using wpt

parseTableData.js

Source:parseTableData.js Github

copy

Full Screen

1let columns=[]2let colName=['states','int','float','+','-','*','/','^','(',')','EOF','VAR','ID','=','AND','OR','NOT','==','>=','<=','<','>','!=','E','C','Ar','T','F','P','A',]3 for(let i=0;i<30;i++){4 columns.push({5 Header: colName[i],6 accessor: colName[i]7 })8 }9export const bottomUpTableColumns=columns;10export const bottomUpTabledata=[11 {12 "states": "1",13 "int": "S 28",14 "float": "S 29",15 "+": "S 9",16 "-": "S 10",17 "*": "",18 "/": "",19 "^": "",20 "(": "S 27",21 ")": "",22 "EOF": "",23 "VAR": "S 3",24 "ID": "S 30",25 "=": "",26 "AND": "",27 "OR": "",28 "NOT": "S 5",29 "==": "",30 ">=": "",31 "<=": "",32 "<": "",33 ">": "",34 "!=": "",35 "E": "GT 2",36 "C": "GT 4",37 "Ar": "GT 6",38 "T": "GT 7",39 "F": "GT 8",40 "P": "GT 92",41 "A": "GT 26"42 },43 {44 "states": "2",45 "int": "",46 "float": "",47 "+": "",48 "-": "",49 "*": "",50 "/": "",51 "^": "",52 "(": "",53 ")": "",54 "EOF": "ACCEPT",55 "VAR": "",56 "ID": "",57 "=": "",58 "AND": "S 11",59 "OR": "S 12",60 "NOT": "",61 "==": "",62 ">=": "",63 "<=": "",64 "<": "",65 ">": "",66 "!=": "",67 "E": "",68 "C": "",69 "Ar": "",70 "T": "",71 "F": "",72 "P": "",73 "A": ""74 },75 {76 "states": "3",77 "int": "",78 "float": "",79 "+": "",80 "-": "",81 "*": "",82 "/": "",83 "^": "",84 "(": "",85 ")": "",86 "EOF": "",87 "VAR": "",88 "ID": "S 22",89 "=": "",90 "AND": "",91 "OR": "",92 "NOT": "",93 "==": "",94 ">=": "",95 "<=": "",96 "<": "",97 ">": "",98 "!=": "",99 "E": "",100 "C": "",101 "Ar": "",102 "T": "",103 "F": "",104 "P": "",105 "A": ""106 },107 {108 "states": "4",109 "int": "",110 "float": "",111 "+": "",112 "-": "",113 "*": "",114 "/": "",115 "^": "",116 "(": "",117 ")": "",118 "EOF": "E -> C",119 "VAR": "",120 "ID": "",121 "=": "",122 "AND": "E -> C",123 "OR": "E -> C",124 "NOT": "",125 "==": "S 13",126 ">=": "S 14",127 "<=": "S 15",128 "<": "S 16",129 ">": "S 17",130 "!=": "S 94",131 "E": "",132 "C": "",133 "Ar": "",134 "T": "",135 "F": "",136 "P": "",137 "A": ""138 },139 {140 "states": "5",141 "int": "S 28",142 "float": "S 29",143 "+": "S 9",144 "-": "S 10",145 "*": "",146 "/": "",147 "^": "",148 "(": "S 27",149 ")": "",150 "EOF": "",151 "VAR": "",152 "ID": "S 30",153 "=": "",154 "AND": "",155 "OR": "",156 "NOT": "S 5",157 "==": "",158 ">=": "",159 "<=": "",160 "<": "",161 ">": "",162 "!=": "",163 "E": "",164 "C": "GT 23",165 "Ar": "GT 6",166 "T": "GT 7",167 "F": "GT 8",168 "P": "GT 92",169 "A": "GT 26"170 },171 {172 "states": "6",173 "int": "",174 "float": "",175 "+": "S 18",176 "-": "S 19",177 "*": "",178 "/": "",179 "^": "",180 "(": "",181 ")": "",182 "EOF": "C -> Ar",183 "VAR": "",184 "ID": "",185 "=": "",186 "AND": "C -> Ar",187 "OR": "C -> Ar",188 "NOT": "",189 "==": "C -> Ar",190 ">=": "C -> Ar",191 "<=": "C -> Ar",192 "<": "C -> Ar",193 ">": "C -> Ar",194 "!=": "C ->Ar",195 "E": "",196 "C": "",197 "Ar": "",198 "T": "",199 "F": "",200 "P": "",201 "A": ""202 },203 {204 "states": "7",205 "int": "",206 "float": "",207 "+": "Ar->T",208 "-": "Ar->T",209 "*": "S 20",210 "/": "S 21",211 "^": "",212 "(": "",213 ")": "",214 "EOF": "Ar->T",215 "VAR": "",216 "ID": "",217 "=": "",218 "AND": "Ar->T",219 "OR": "Ar->T",220 "NOT": "",221 "==": "Ar->T",222 ">=": "Ar->T",223 "<=": "Ar->T",224 "<": "Ar->T",225 ">": "Ar->T",226 "!=": "Ar->T",227 "E": "",228 "C": "",229 "Ar": "",230 "T": "",231 "F": "",232 "P": "",233 "A": ""234 },235 {236 "states": "8",237 "int": "",238 "float": "",239 "+": "T->F",240 "-": "T->F",241 "*": "T->F",242 "/": "T->F",243 "^": "",244 "(": "",245 ")": "",246 "EOF": "T->F",247 "VAR": "",248 "ID": "",249 "=": "",250 "AND": "T->F",251 "OR": "T->F",252 "NOT": "",253 "==": "T->F",254 ">=": "T->F",255 "<=": "T->F",256 "<": "T->F",257 ">": "T->F",258 "!=": "T->F",259 "E": "",260 "C": "",261 "Ar": "",262 "T": "",263 "F": "",264 "P": "",265 "A": ""266 },267 {268 "states": "9",269 "int": "S 28",270 "float": "S 29",271 "+": "",272 "-": "",273 "*": "",274 "/": "",275 "^": "",276 "(": "S 27",277 ")": "",278 "EOF": "",279 "VAR": "",280 "ID": "S 30",281 "=": "",282 "AND": "",283 "OR": "",284 "NOT": "",285 "==": "",286 ">=": "",287 "<=": "",288 "<": "",289 ">": "",290 "!=": "",291 "E": "",292 "C": "",293 "Ar": "",294 "T": "",295 "F": "",296 "P": "GT 24",297 "A": "GT 26"298 },299 {300 "states": "10",301 "int": "S 28",302 "float": "S 29",303 "+": "",304 "-": "",305 "*": "",306 "/": "",307 "^": "",308 "(": "S 27",309 ")": "",310 "EOF": "",311 "VAR": "",312 "ID": "S 30",313 "=": "",314 "AND": "",315 "OR": "",316 "NOT": "",317 "==": "",318 ">=": "",319 "<=": "",320 "<": "",321 ">": "",322 "!=": "",323 "E": "",324 "C": "",325 "Ar": "",326 "T": "",327 "F": "",328 "P": "GT 25",329 "A": "GT 26"330 },331 {332 "states": "11",333 "int": "S 28",334 "float": "S 29",335 "+": "S 9",336 "-": "S 10",337 "*": "",338 "/": "",339 "^": "",340 "(": "S 27",341 ")": "",342 "EOF": "",343 "VAR": "",344 "ID": "S 30",345 "=": "",346 "AND": "",347 "OR": "",348 "NOT": "S 5",349 "==": "",350 ">=": "",351 "<=": "",352 "<": "",353 ">": "",354 "!=": "",355 "E": "",356 "C": "GT 31",357 "Ar": "GT 6",358 "T": "GT 7",359 "F": "GT 8",360 "P": "GT 92",361 "A": "GT 26"362 },363 {364 "states": "12",365 "int": "S 28",366 "float": "S 29",367 "+": "S 9",368 "-": "S 10",369 "*": "",370 "/": "",371 "^": "",372 "(": "S 27",373 ")": "",374 "EOF": "",375 "VAR": "",376 "ID": "S 30",377 "=": "",378 "AND": "",379 "OR": "",380 "NOT": "S 5",381 "==": "",382 ">=": "",383 "<=": "",384 "<": "",385 ">": "",386 "!=": "",387 "E": "",388 "C": "GT 32",389 "Ar": "GT 6",390 "T": "GT 7",391 "F": "GT 8",392 "P": "GT 92",393 "A": "GT 26"394 },395 {396 "states": "13",397 "int": "S 28",398 "float": "S 29",399 "+": "S 9",400 "-": "S 10",401 "*": "",402 "/": "",403 "^": "",404 "(": "S 27",405 ")": "",406 "EOF": "",407 "VAR": "",408 "ID": "S 30",409 "=": "",410 "AND": "",411 "OR": "",412 "NOT": "",413 "==": "",414 ">=": "",415 "<=": "",416 "<": "",417 ">": "",418 "!=": "",419 "E": "",420 "C": "",421 "Ar": "GT 33",422 "T": "GT 7",423 "F": "GT 8",424 "P": "GT 92",425 "A": "GT 26"426 },427 {428 "states": "14",429 "int": "S 28",430 "float": "S 29",431 "+": "S 9",432 "-": "S 10",433 "*": "",434 "/": "",435 "^": "",436 "(": "S 27",437 ")": "",438 "EOF": "",439 "VAR": "",440 "ID": "S 30",441 "=": "",442 "AND": "",443 "OR": "",444 "NOT": "",445 "==": "",446 ">=": "",447 "<=": "",448 "<": "",449 ">": "",450 "!=": "",451 "E": "",452 "C": "",453 "Ar": "GT 34",454 "T": "GT 7",455 "F": "GT 8",456 "P": "GT 92",457 "A": "GT 26"458 },459 {460 "states": "15",461 "int": "S 28",462 "float": "S 29",463 "+": "S 9",464 "-": "S 10",465 "*": "",466 "/": "",467 "^": "",468 "(": "S 27",469 ")": "",470 "EOF": "",471 "VAR": "",472 "ID": "S 30",473 "=": "",474 "AND": "",475 "OR": "",476 "NOT": "",477 "==": "",478 ">=": "",479 "<=": "",480 "<": "",481 ">": "",482 "!=": "",483 "E": "",484 "C": "",485 "Ar": "GT 35",486 "T": "GT 7",487 "F": "GT 8",488 "P": "GT 92",489 "A": "GT 26"490 },491 {492 "states": "16",493 "int": "S 28",494 "float": "S 29",495 "+": "S 9",496 "-": "S 10",497 "*": "",498 "/": "",499 "^": "",500 "(": "S 27",501 ")": "",502 "EOF": "",503 "VAR": "",504 "ID": "S 30",505 "=": "",506 "AND": "",507 "OR": "",508 "NOT": "",509 "==": "",510 ">=": "",511 "<=": "",512 "<": "",513 ">": "",514 "!=": "",515 "E": "",516 "C": "",517 "Ar": "GT 36",518 "T": "GT 7",519 "F": "GT 8",520 "P": "GT 92",521 "A": "GT 26"522 },523 {524 "states": "17",525 "int": "S 28",526 "float": "S 29",527 "+": "S 9",528 "-": "S 10",529 "*": "",530 "/": "",531 "^": "",532 "(": "S 27",533 ")": "",534 "EOF": "",535 "VAR": "",536 "ID": "S 30",537 "=": "",538 "AND": "",539 "OR": "",540 "NOT": "",541 "==": "",542 ">=": "",543 "<=": "",544 "<": "",545 ">": "",546 "!=": "",547 "E": "",548 "C": "",549 "Ar": "GT 37",550 "T": "GT 7",551 "F": "GT 8",552 "P": "GT 92",553 "A": "GT 26"554 },555 {556 "states": "94",557 "int": "S 28",558 "float": "S 29",559 "+": "S 9",560 "-": "S 10",561 "*": "",562 "/": "",563 "^": "",564 "(": "S 27",565 ")": "",566 "EOF": "",567 "VAR": "",568 "ID": "S 30",569 "=": "",570 "AND": "",571 "OR": "",572 "NOT": "",573 "==": "",574 ">=": "",575 "<=": "",576 "<": "",577 ">": "",578 "!=": "",579 "E": "",580 "C": "",581 "Ar": "GT 95",582 "T": "GT 7",583 "F": "GT 8",584 "P": "GT 92",585 "A": "GT 26"586 },587 {588 "states": "18",589 "int": "S 28",590 "float": "S 29",591 "+": "S 9",592 "-": "S 10",593 "*": "",594 "/": "",595 "^": "",596 "(": "S 27",597 ")": "",598 "EOF": "",599 "VAR": "",600 "ID": "S 30",601 "=": "",602 "AND": "",603 "OR": "",604 "NOT": "",605 "==": "",606 ">=": "",607 "<=": "",608 "<": "",609 ">": "",610 "!=": "",611 "E": "",612 "C": "",613 "Ar": "",614 "T": "GT 38",615 "F": "GT 8",616 "P": "GT 92",617 "A": "GT 26"618 },619 {620 "states": "19",621 "int": "S 28",622 "float": "S 29",623 "+": "S 9",624 "-": "S 10",625 "*": "",626 "/": "",627 "^": "",628 "(": "S 27",629 ")": "",630 "EOF": "",631 "VAR": "",632 "ID": "S 30",633 "=": "",634 "AND": "",635 "OR": "",636 "NOT": "",637 "==": "",638 ">=": "",639 "<=": "",640 "<": "",641 ">": "",642 "!=": "",643 "E": "",644 "C": "",645 "Ar": "",646 "T": "GT 39",647 "F": "GT 8",648 "P": "GT 92",649 "A": "GT 26"650 },651 {652 "states": "20",653 "int": "S 28",654 "float": "S 29",655 "+": "S 9",656 "-": "S 10",657 "*": "",658 "/": "",659 "^": "",660 "(": "S 27",661 ")": "",662 "EOF": "",663 "VAR": "",664 "ID": "S 30",665 "=": "",666 "AND": "",667 "OR": "",668 "NOT": "",669 "==": "",670 ">=": "",671 "<=": "",672 "<": "",673 ">": "",674 "!=": "",675 "E": "",676 "C": "",677 "Ar": "",678 "T": "",679 "F": "GT 40",680 "P": "GT 92",681 "A": "GT 26"682 },683 {684 "states": "21",685 "int": "S 28",686 "float": "S 29",687 "+": "S 9",688 "-": "S 10",689 "*": "",690 "/": "",691 "^": "",692 "(": "S 27",693 ")": "",694 "EOF": "",695 "VAR": "",696 "ID": "S 30",697 "=": "",698 "AND": "",699 "OR": "",700 "NOT": "",701 "==": "",702 ">=": "",703 "<=": "",704 "<": "",705 ">": "",706 "!=": "",707 "E": "",708 "C": "",709 "Ar": "",710 "T": "",711 "F": "GT 41",712 "P": "GT 92",713 "A": "GT 26"714 },715 {716 "states": "22",717 "int": "",718 "float": "",719 "+": "",720 "-": "",721 "*": "",722 "/": "",723 "^": "",724 "(": "",725 ")": "",726 "EOF": "",727 "VAR": "",728 "ID": "",729 "=": "S 42",730 "AND": "",731 "OR": "",732 "NOT": "",733 "==": "",734 ">=": "",735 "<=": "",736 "<": "",737 ">": "",738 "!=": "",739 "E": "",740 "C": "",741 "Ar": "",742 "T": "",743 "F": "",744 "P": "",745 "A": ""746 },747 {748 "states": "23",749 "int": "",750 "float": "",751 "+": "",752 "-": "",753 "*": "",754 "/": "",755 "^": "",756 "(": "",757 ")": "",758 "EOF": "C->NOT C",759 "VAR": "",760 "ID": "",761 "=": "",762 "AND": "C->NOT C",763 "OR": "C->NOT C",764 "NOT": "",765 "==": "C->NOT C / S 13",766 ">=": "C->NOT C / S 14",767 "<=": "C->NOT C / S 15",768 "<": "C->NOT C / S 16",769 ">": "C->NOT C / S 17",770 "!=": "C->NOT C / S 94",771 "E": "",772 "C": "",773 "Ar": "",774 "T": "",775 "F": "",776 "P": "",777 "A": ""778 },779 {780 "states": "24",781 "int": "",782 "float": "",783 "+": "F -> +P",784 "-": "F -> +P",785 "*": "F -> +P",786 "/": "F -> +P",787 "^": "",788 "(": "",789 ")": "",790 "EOF": "F -> + P",791 "VAR": "",792 "ID": "",793 "=": "",794 "AND": "F -> + P",795 "OR": "F -> + P",796 "NOT": "",797 "==": "F -> +P",798 ">=": "F -> +P",799 "<=": "F ->+P",800 "<": "F -> +P",801 ">": "F -> +P",802 "!=": "F -> +P",803 "E": "",804 "C": "",805 "Ar": "",806 "T": "",807 "F": "",808 "P": "",809 "A": ""810 },811 {812 "states": "25",813 "int": "",814 "float": "",815 "+": "F -> -P",816 "-": "F -> -P",817 "*": "F -> -P",818 "/": "F -> -P",819 "^": "",820 "(": "",821 ")": "",822 "EOF": "F -> -P",823 "VAR": "",824 "ID": "",825 "=": "",826 "AND": "F -> -P",827 "OR": "F -> -P",828 "NOT": "",829 "==": "F -> -P",830 ">=": "F -> -P",831 "<=": "F -> -P",832 "<": "F -> -P",833 ">": "F -> -P",834 "!=": "F -> -P",835 "E": "",836 "C": "",837 "Ar": "",838 "T": "",839 "F": "",840 "P": "",841 "A": ""842 },843 {844 "states": "26",845 "int": "",846 "float": "",847 "+": "P->A",848 "-": "P->A",849 "*": "P->A",850 "/": "P->A",851 "^": "S 90",852 "(": "",853 ")": "",854 "EOF": "P->A",855 "VAR": "",856 "ID": "",857 "=": "",858 "AND": "P->A",859 "OR": "P->A",860 "NOT": "",861 "==": "P->A",862 ">=": "P->A",863 "<=": "P->A",864 "<": "P->A",865 ">": "P->A",866 "!=": "P->A",867 "E": "",868 "C": "",869 "Ar": "",870 "T": "",871 "F": "",872 "P": "",873 "A": ""874 },875 {876 "states": "27",877 "int": "S 70",878 "float": "S 71",879 "+": "S 50",880 "-": "S 51",881 "*": "",882 "/": "",883 "^": "",884 "(": "S 69",885 ")": "",886 "EOF": "",887 "VAR": "S 44",888 "ID": "S 72",889 "=": "",890 "AND": "",891 "OR": "",892 "NOT": "S 46",893 "==": "",894 ">=": "",895 "<=": "",896 "<": "",897 ">": "",898 "!=": "",899 "E": "GT 43",900 "C": "GT 45",901 "Ar": "GT 47",902 "T": "GT 48",903 "F": "GT 49",904 "P": "GT 93",905 "A": "GT 68"906 },907 {908 "states": "28",909 "int": "",910 "float": "",911 "+": "A->INT",912 "-": "A->INT",913 "*": "A->INT",914 "/": "A->INT",915 "^": "A->INT",916 "(": "",917 ")": "",918 "EOF": "A->INT",919 "VAR": "",920 "ID": "",921 "=": "",922 "AND": "A->INT",923 "OR": "A->INT",924 "NOT": "",925 "==": "A->INT",926 ">=": "A->INT",927 "<=": "A->INT",928 "<": "A->INT",929 ">": "A->INT",930 "!=": "A->INT",931 "E": "",932 "C": "",933 "Ar": "",934 "T": "",935 "F": "",936 "P": "",937 "A": ""938 },939 {940 "states": "29",941 "int": "",942 "float": "",943 "+": "A->FLOAT",944 "-": "A->FLOAT",945 "*": "A->FLOAT",946 "/": "A->FLOAT",947 "^": "A->FLOAT",948 "(": "",949 ")": "",950 "EOF": "A->FLOAT",951 "VAR": "",952 "ID": "",953 "=": "",954 "AND": "A->FLOAT",955 "OR": "A->FLOAT",956 "NOT": "",957 "==": "A->FLOAT",958 ">=": "A->FLOAT",959 "<=": "A->FLOAT",960 "<": "A->FLOAT",961 ">": "A->FLOAT",962 "!=": "A->FLOAT",963 "E": "",964 "C": "",965 "Ar": "",966 "T": "",967 "F": "",968 "P": "",969 "A": ""970 },971 {972 "states": "30",973 "int": "",974 "float": "",975 "+": "A->ID",976 "-": "A->ID",977 "*": "A->ID",978 "/": "A->ID",979 "^": "A->ID",980 "(": "",981 ")": "",982 "EOF": "A->ID",983 "VAR": "",984 "ID": "",985 "=": "",986 "AND": "A->ID",987 "OR": "A->ID",988 "NOT": "",989 "==": "A->ID",990 ">=": "A->ID",991 "<=": "A->ID",992 "<": "A->ID",993 ">": "A->ID",994 "!=": "A->ID",995 "E": "",996 "C": "",997 "Ar": "",998 "T": "",999 "F": "",1000 "P": "",1001 "A": ""1002 },1003 {1004 "states": "31",1005 "int": "",1006 "float": "",1007 "+": "",1008 "-": "",1009 "*": "",1010 "/": "",1011 "^": "",1012 "(": "",1013 ")": "",1014 "EOF": "E->E and C",1015 "VAR": "",1016 "ID": "",1017 "=": "",1018 "AND": "E->E and C",1019 "OR": "E->E and C",1020 "NOT": "",1021 "==": "S 13",1022 ">=": "S 14",1023 "<=": "S 15",1024 "<": "S 16",1025 ">": "S 17",1026 "!=": "S 94",1027 "E": "",1028 "C": "",1029 "Ar": "",1030 "T": "",1031 "F": "",1032 "P": "",1033 "A": ""1034 },1035 {1036 "states": "32",1037 "int": "",1038 "float": "",1039 "+": "",1040 "-": "",1041 "*": "",1042 "/": "",1043 "^": "",1044 "(": "",1045 ")": "",1046 "EOF": "E->E or C",1047 "VAR": "",1048 "ID": "",1049 "=": "",1050 "AND": "E->E or C",1051 "OR": "E->E or C",1052 "NOT": "",1053 "==": "S 13",1054 ">=": "S 14",1055 "<=": "S 15",1056 "<": "S 16",1057 ">": "S 17",1058 "!=": "S 94",1059 "E": "",1060 "C": "",1061 "Ar": "",1062 "T": "",1063 "F": "",1064 "P": "",1065 "A": ""1066 },1067 {1068 "states": "33",1069 "int": "",1070 "float": "",1071 "+": "S 18",1072 "-": "S 19",1073 "*": "",1074 "/": "",1075 "^": "",1076 "(": "",1077 ")": "",1078 "EOF": "C-> C==Ar",1079 "VAR": "",1080 "ID": "",1081 "=": "",1082 "AND": "C-> C==Ar",1083 "OR": "C-> C==Ar",1084 "NOT": "",1085 "==": "C-> C==Ar",1086 ">=": "C-> C==Ar",1087 "<=": "C-> C==Ar",1088 "<": "C-> C==Ar",1089 ">": "C-> C==Ar",1090 "!=": "C-> C==Ar",1091 "E": "",1092 "C": "",1093 "Ar": "",1094 "T": "",1095 "F": "",1096 "P": "",1097 "A": ""1098 },1099 {1100 "states": "34",1101 "int": "",1102 "float": "",1103 "+": "S 18",1104 "-": "S 19",1105 "*": "",1106 "/": "",1107 "^": "",1108 "(": "",1109 ")": "",1110 "EOF": "C-> C>=Ar",1111 "VAR": "",1112 "ID": "",1113 "=": "",1114 "AND": "C-> C>=Ar",1115 "OR": "C-> C>=Ar",1116 "NOT": "",1117 "==": "C-> C>=Ar",1118 ">=": "C-> C>=Ar",1119 "<=": "C-> C>=Ar",1120 "<": "C-> C>=Ar",1121 ">": "C-> C>=Ar",1122 "!=": "C-> C>=Ar",1123 "E": "",1124 "C": "",1125 "Ar": "",1126 "T": "",1127 "F": "",1128 "P": "",1129 "A": ""1130 },1131 {1132 "states": "35",1133 "int": "",1134 "float": "",1135 "+": "S 18",1136 "-": "S 19",1137 "*": "",1138 "/": "",1139 "^": "",1140 "(": "",1141 ")": "",1142 "EOF": "C-> C<=Ar",1143 "VAR": "",1144 "ID": "",1145 "=": "",1146 "AND": "C-> C<=Ar",1147 "OR": "C-> C<=Ar",1148 "NOT": "",1149 "==": "C-> C<=Ar",1150 ">=": "C-> C<=Ar",1151 "<=": "C-> C<=Ar",1152 "<": "C-> C<=Ar",1153 ">": "C-> C<=Ar",1154 "!=": "C-> C<=Ar",1155 "E": "",1156 "C": "",1157 "Ar": "",1158 "T": "",1159 "F": "",1160 "P": "",1161 "A": ""1162 },1163 {1164 "states": "36",1165 "int": "",1166 "float": "",1167 "+": "S 18",1168 "-": "S 19",1169 "*": "",1170 "/": "",1171 "^": "",1172 "(": "",1173 ")": "",1174 "EOF": "C-> C<Ar",1175 "VAR": "",1176 "ID": "",1177 "=": "",1178 "AND": "C-> C<Ar",1179 "OR": "C-> C<Ar",1180 "NOT": "",1181 "==": "C-> C<Ar",1182 ">=": "C-> C<Ar",1183 "<=": "C-> C<Ar",1184 "<": "C-> C<Ar",1185 ">": "C-> C<Ar",1186 "!=": "C-> C<Ar",1187 "E": "",1188 "C": "",1189 "Ar": "",1190 "T": "",1191 "F": "",1192 "P": "",1193 "A": ""1194 },1195 {1196 "states": "37",1197 "int": "",1198 "float": "",1199 "+": "S 18",1200 "-": "S 19",1201 "*": "",1202 "/": "",1203 "^": "",1204 "(": "",1205 ")": "",1206 "EOF": "C-> C>Ar",1207 "VAR": "",1208 "ID": "",1209 "=": "",1210 "AND": "C-> C>Ar",1211 "OR": "C-> C>Ar",1212 "NOT": "",1213 "==": "C-> C>Ar",1214 ">=": "C-> C>Ar",1215 "<=": "C-> C>Ar",1216 "<": "C-> C>Ar",1217 ">": "C-> C>Ar",1218 "!=": "C-> C>Ar",1219 "E": "",1220 "C": "",1221 "Ar": "",1222 "T": "",1223 "F": "",1224 "P": "",1225 "A": ""1226 },1227 {1228 "states": "95",1229 "int": "",1230 "float": "",1231 "+": "S 18",1232 "-": "S 19",1233 "*": "",1234 "/": "",1235 "^": "",1236 "(": "",1237 ")": "",1238 "EOF": "C-> C!=Ar",1239 "VAR": "",1240 "ID": "",1241 "=": "",1242 "AND": "C-> C!=Ar",1243 "OR": "C-> C!=Ar",1244 "NOT": "",1245 "==": "C-> C!=Ar",1246 ">=": "C-> C!=Ar",1247 "<=": "C-> C!=Ar",1248 "<": "C-> C!=Ar",1249 ">": "C-> C!=Ar",1250 "!=": "C-> C!=Ar",1251 "E": "",1252 "C": "",1253 "Ar": "",1254 "T": "",1255 "F": "",1256 "P": "",1257 "A": ""1258 },1259 {1260 "states": "38",1261 "int": "",1262 "float": "",1263 "+": "Ar->Ar+T",1264 "-": "Ar->Ar+T",1265 "*": "S 20",1266 "/": "S 21",1267 "^": "",1268 "(": "",1269 ")": "",1270 "EOF": "Ar->Ar+T",1271 "VAR": "",1272 "ID": "",1273 "=": "",1274 "AND": "Ar->Ar+T",1275 "OR": "Ar->Ar+T",1276 "NOT": "",1277 "==": "Ar->Ar+T",1278 ">=": "Ar->Ar+T",1279 "<=": "Ar->Ar+T",1280 "<": "Ar->Ar+T",1281 ">": "Ar->Ar+T",1282 "!=": "Ar->Ar+T",1283 "E": "",1284 "C": "",1285 "Ar": "",1286 "T": "",1287 "F": "",1288 "P": "",1289 "A": ""1290 },1291 {1292 "states": "39",1293 "int": "",1294 "float": "",1295 "+": "Ar->Ar-T",1296 "-": "Ar->Ar-T",1297 "*": "S 20",1298 "/": "S 21",1299 "^": "",1300 "(": "",1301 ")": "",1302 "EOF": "Ar->Ar-T",1303 "VAR": "",1304 "ID": "",1305 "=": "",1306 "AND": "Ar->Ar-T",1307 "OR": "Ar->Ar-T",1308 "NOT": "",1309 "==": "Ar->Ar-T",1310 ">=": "Ar->Ar-T",1311 "<=": "Ar->Ar-T",1312 "<": "Ar->Ar-T",1313 ">": "Ar->Ar-T",1314 "!=": "Ar->Ar-T",1315 "E": "",1316 "C": "",1317 "Ar": "",1318 "T": "",1319 "F": "",1320 "P": "",1321 "A": ""1322 },1323 {1324 "states": "40",1325 "int": "",1326 "float": "",1327 "+": "T->T * F",1328 "-": "T->T * F",1329 "*": "T->T * F",1330 "/": "T->T * F",1331 "^": "",1332 "(": "",1333 ")": "",1334 "EOF": "T->T * F",1335 "VAR": "",1336 "ID": "",1337 "=": "",1338 "AND": "T->T * F",1339 "OR": "T->T * F",1340 "NOT": "",1341 "==": "T->T * F",1342 ">=": "T->T * F",1343 "<=": "T->T * F",1344 "<": "T->T * F",1345 ">": "T->T * F",1346 "!=": "T->T * F",1347 "E": "",1348 "C": "",1349 "Ar": "",1350 "T": "",1351 "F": "",1352 "P": "",1353 "A": ""1354 },1355 {1356 "states": "41",1357 "int": "",1358 "float": "",1359 "+": "T->T / F",1360 "-": "T->T / F",1361 "*": "T->T / F",1362 "/": "T->T / F",1363 "^": "",1364 "(": "",1365 ")": "",1366 "EOF": "T->T / F",1367 "VAR": "",1368 "ID": "",1369 "=": "",1370 "AND": "T->T / F",1371 "OR": "T->T / F",1372 "NOT": "",1373 "==": "T->T / F",1374 ">=": "T->T / F",1375 "<=": "T->T / F",1376 "<": "T->T / F",1377 ">": "T->T / F",1378 "!=": "T->T / F",1379 "E": "",1380 "C": "",1381 "Ar": "",1382 "T": "",1383 "F": "",1384 "P": "",1385 "A": ""1386 },1387 {1388 "states": "42",1389 "int": "S 28",1390 "float": "S 29",1391 "+": "S 9",1392 "-": "S 10",1393 "*": "",1394 "/": "",1395 "^": "",1396 "(": "S 27",1397 ")": "",1398 "EOF": "",1399 "VAR": "S 3",1400 "ID": "S 30",1401 "=": "",1402 "AND": "",1403 "OR": "",1404 "NOT": "S 5",1405 "==": "",1406 ">=": "",1407 "<=": "",1408 "<": "",1409 ">": "",1410 "!=": "",1411 "E": "GT 85",1412 "C": "GT 4",1413 "Ar": "GT 6",1414 "T": "GT 7",1415 "F": "GT 8",1416 "P": "GT 92",1417 "A": "GT 26"1418 },1419 {1420 "states": "43",1421 "int": "",1422 "float": "",1423 "+": "",1424 "-": "",1425 "*": "",1426 "/": "",1427 "^": "",1428 "(": "",1429 ")": "S 52",1430 "EOF": "",1431 "VAR": "",1432 "ID": "",1433 "=": "",1434 "AND": "S 53",1435 "OR": "S 54",1436 "NOT": "",1437 "==": "",1438 ">=": "",1439 "<=": "",1440 "<": "",1441 ">": "",1442 "!=": "",1443 "E": "",1444 "C": "",1445 "Ar": "",1446 "T": "",1447 "F": "",1448 "P": "",1449 "A": ""1450 },1451 {1452 "states": "44",1453 "int": "",1454 "float": "",1455 "+": "",1456 "-": "",1457 "*": "",1458 "/": "",1459 "^": "",1460 "(": "",1461 ")": "",1462 "EOF": "",1463 "VAR": "",1464 "ID": "S 64",1465 "=": "",1466 "AND": "",1467 "OR": "",1468 "NOT": "",1469 "==": "",1470 ">=": "",1471 "<=": "",1472 "<": "",1473 ">": "",1474 "!=": "",1475 "E": "",1476 "C": "",1477 "Ar": "",1478 "T": "",1479 "F": "",1480 "P": "",1481 "A": ""1482 },1483 {1484 "states": "45",1485 "int": "",1486 "float": "",1487 "+": "",1488 "-": "",1489 "*": "",1490 "/": "",1491 "^": "",1492 "(": "",1493 ")": "E->C",1494 "EOF": "",1495 "VAR": "",1496 "ID": "",1497 "=": "",1498 "AND": "E->C",1499 "OR": "E->C",1500 "NOT": "",1501 "==": "S 55",1502 ">=": "S 56",1503 "<=": "S 57",1504 "<": "S 58",1505 ">": "S 59",1506 "!=": "S 96",1507 "E": "",1508 "C": "",1509 "Ar": "",1510 "T": "",1511 "F": "",1512 "P": "",1513 "A": ""1514 },1515 {1516 "states": "46",1517 "int": "S 70",1518 "float": "S 71",1519 "+": "S 50",1520 "-": "S 51",1521 "*": "",1522 "/": "",1523 "^": "",1524 "(": "S 69",1525 ")": "",1526 "EOF": "",1527 "VAR": "",1528 "ID": "S 72",1529 "=": "",1530 "AND": "",1531 "OR": "",1532 "NOT": "S 46",1533 "==": "",1534 ">=": "",1535 "<=": "",1536 "<": "",1537 ">": "",1538 "!=": "",1539 "E": "",1540 "C": "GT 65",1541 "Ar": "GT 47",1542 "T": "GT 48",1543 "F": "GT 49",1544 "P": "GT 93",1545 "A": "GT 68"1546 },1547 {1548 "states": "47",1549 "int": "",1550 "float": "",1551 "+": "S 60",1552 "-": "S 61",1553 "*": "",1554 "/": "",1555 "^": "",1556 "(": "",1557 ")": "C->Ar",1558 "EOF": "",1559 "VAR": "",1560 "ID": "",1561 "=": "",1562 "AND": "C->Ar",1563 "OR": "C->Ar",1564 "NOT": "",1565 "==": "C->Ar",1566 ">=": "C->Ar",1567 "<=": "C->Ar",1568 "<": "C->Ar",1569 ">": "C->Ar",1570 "!=": "C->Ar",1571 "E": "",1572 "C": "",1573 "Ar": "",1574 "T": "",1575 "F": "",1576 "P": "",1577 "A": ""1578 },1579 {1580 "states": "48",1581 "int": "",1582 "float": "",1583 "+": "Ar->T",1584 "-": "Ar->T",1585 "*": "S 62",1586 "/": "S 63",1587 "^": "",1588 "(": "",1589 ")": "Ar->T",1590 "EOF": "",1591 "VAR": "",1592 "ID": "",1593 "=": "",1594 "AND": "Ar->T",1595 "OR": "Ar->T",1596 "NOT": "",1597 "==": "Ar->T",1598 ">=": "Ar->T",1599 "<=": "Ar->T",1600 "<": "Ar->T",1601 ">": "Ar->T",1602 "!=": "Ar->T",1603 "E": "",1604 "C": "",1605 "Ar": "",1606 "T": "",1607 "F": "",1608 "P": "",1609 "A": ""1610 },1611 {1612 "states": "49",1613 "int": "",1614 "float": "",1615 "+": "T->F",1616 "-": "T->F",1617 "*": "T->F",1618 "/": "T->F",1619 "^": "",1620 "(": "",1621 ")": "T->F",1622 "EOF": "",1623 "VAR": "",1624 "ID": "",1625 "=": "",1626 "AND": "T->F",1627 "OR": "T->F",1628 "NOT": "",1629 "==": "T->F",1630 ">=": "T->F",1631 "<=": "T->F",1632 "<": "T->F",1633 ">": "T->F",1634 "!=": "T->F",1635 "E": "",1636 "C": "",1637 "Ar": "",1638 "T": "",1639 "F": "",1640 "P": "",1641 "A": ""1642 },1643 {1644 "states": "50",1645 "int": "S 70",1646 "float": "S 71",1647 "+": "",1648 "-": "",1649 "*": "",1650 "/": "",1651 "^": "",1652 "(": "S 69",1653 ")": "",1654 "EOF": "",1655 "VAR": "",1656 "ID": "S 72",1657 "=": "",1658 "AND": "",1659 "OR": "",1660 "NOT": "",1661 "==": "",1662 ">=": "",1663 "<=": "",1664 "<": "",1665 ">": "",1666 "!=": "",1667 "E": "",1668 "C": "",1669 "Ar": "",1670 "T": "",1671 "F": "",1672 "P": "GT 66",1673 "A": "GT 68"1674 },1675 {1676 "states": "51",1677 "int": "S 70",1678 "float": "S 71",1679 "+": "",1680 "-": "",1681 "*": "",1682 "/": "",1683 "^": "",1684 "(": "S 69",1685 ")": "",1686 "EOF": "",1687 "VAR": "",1688 "ID": "S 72",1689 "=": "",1690 "AND": "",1691 "OR": "",1692 "NOT": "",1693 "==": "",1694 ">=": "",1695 "<=": "",1696 "<": "",1697 ">": "",1698 "!=": "",1699 "E": "",1700 "C": "",1701 "Ar": "",1702 "T": "",1703 "F": "",1704 "P": "GT 67",1705 "A": "GT 68"1706 },1707 {1708 "states": "52",1709 "int": "",1710 "float": "",1711 "+": "A->(E)",1712 "-": "A->(E)",1713 "*": "A->(E)",1714 "/": "A->(E)",1715 "^": "A->(E)",1716 "(": "",1717 ")": "",1718 "EOF": "A->(E)",1719 "VAR": "",1720 "ID": "",1721 "=": "",1722 "AND": "A->(E)",1723 "OR": "A->(E)",1724 "NOT": "",1725 "==": "A->(E)",1726 ">=": "A->(E)",1727 "<=": "A->(E)",1728 "<": "A->(E)",1729 ">": "A->(E)",1730 "!=": "A->(E)",1731 "E": "",1732 "C": "",1733 "Ar": "",1734 "T": "",1735 "F": "",1736 "P": "",1737 "A": ""1738 },1739 {1740 "states": "53",1741 "int": "S 70",1742 "float": "S 71",1743 "+": "S 50",1744 "-": "S 51",1745 "*": "",1746 "/": "",1747 "^": "",1748 "(": "S 69",1749 ")": "",1750 "EOF": "",1751 "VAR": "",1752 "ID": "S 72",1753 "=": "",1754 "AND": "",1755 "OR": "",1756 "NOT": "S 46",1757 "==": "",1758 ">=": "",1759 "<=": "",1760 "<": "",1761 ">": "",1762 "!=": "",1763 "E": "",1764 "C": "GT 73",1765 "Ar": "GT 47",1766 "T": "GT 48",1767 "F": "GT 49",1768 "P": "GT 93",1769 "A": "GT 68"1770 },1771 {1772 "states": "54",1773 "int": "S 70",1774 "float": "S 71",1775 "+": "S 50",1776 "-": "S 51",1777 "*": "",1778 "/": "",1779 "^": "",1780 "(": "S 69",1781 ")": "",1782 "EOF": "",1783 "VAR": "",1784 "ID": "S 72",1785 "=": "",1786 "AND": "",1787 "OR": "",1788 "NOT": "S 46",1789 "==": "",1790 ">=": "",1791 "<=": "",1792 "<": "",1793 ">": "",1794 "!=": "",1795 "E": "",1796 "C": "GT 74",1797 "Ar": "GT 47",1798 "T": "GT 48",1799 "F": "GT 49",1800 "P": "GT 93",1801 "A": "GT 68"1802 },1803 {1804 "states": "55",1805 "int": "S 70",1806 "float": "S 71",1807 "+": "S 50",1808 "-": "S 51",1809 "*": "",1810 "/": "",1811 "^": "",1812 "(": "S 69",1813 ")": "",1814 "EOF": "",1815 "VAR": "",1816 "ID": "S 72",1817 "=": "",1818 "AND": "",1819 "OR": "",1820 "NOT": "",1821 "==": "",1822 ">=": "",1823 "<=": "",1824 "<": "",1825 ">": "",1826 "!=": "",1827 "E": "",1828 "C": "",1829 "Ar": "GT 75",1830 "T": "GT 48",1831 "F": "GT 49",1832 "P": "GT 93",1833 "A": "GT 68"1834 },1835 {1836 "states": "56",1837 "int": "S 70",1838 "float": "S 71",1839 "+": "S 50",1840 "-": "S 51",1841 "*": "",1842 "/": "",1843 "^": "",1844 "(": "S 69",1845 ")": "",1846 "EOF": "",1847 "VAR": "",1848 "ID": "S 72",1849 "=": "",1850 "AND": "",1851 "OR": "",1852 "NOT": "",1853 "==": "",1854 ">=": "",1855 "<=": "",1856 "<": "",1857 ">": "",1858 "!=": "",1859 "E": "",1860 "C": "",1861 "Ar": "GT 76",1862 "T": "GT 48",1863 "F": "GT 49",1864 "P": "GT 93",1865 "A": "GT 68"1866 },1867 {1868 "states": "57",1869 "int": "S 70",1870 "float": "S 71",1871 "+": "S 50",1872 "-": "S 51",1873 "*": "",1874 "/": "",1875 "^": "",1876 "(": "S 69",1877 ")": "",1878 "EOF": "",1879 "VAR": "",1880 "ID": "S 72",1881 "=": "",1882 "AND": "",1883 "OR": "",1884 "NOT": "",1885 "==": "",1886 ">=": "",1887 "<=": "",1888 "<": "",1889 ">": "",1890 "!=": "",1891 "E": "",1892 "C": "",1893 "Ar": "GT 77",1894 "T": "GT 48",1895 "F": "GT 49",1896 "P": "GT 93",1897 "A": "GT 68"1898 },1899 {1900 "states": "58",1901 "int": "S 70",1902 "float": "S 71",1903 "+": "S 50",1904 "-": "S 51",1905 "*": "",1906 "/": "",1907 "^": "",1908 "(": "S 69",1909 ")": "",1910 "EOF": "",1911 "VAR": "",1912 "ID": "S 72",1913 "=": "",1914 "AND": "",1915 "OR": "",1916 "NOT": "",1917 "==": "",1918 ">=": "",1919 "<=": "",1920 "<": "",1921 ">": "",1922 "!=": "",1923 "E": "",1924 "C": "",1925 "Ar": "GT 78",1926 "T": "GT 48",1927 "F": "GT 49",1928 "P": "GT 93",1929 "A": "GT 68"1930 },1931 {1932 "states": "59",1933 "int": "S 70",1934 "float": "S 71",1935 "+": "S 50",1936 "-": "S 51",1937 "*": "",1938 "/": "",1939 "^": "",1940 "(": "S 69",1941 ")": "",1942 "EOF": "",1943 "VAR": "",1944 "ID": "S 72",1945 "=": "",1946 "AND": "",1947 "OR": "",1948 "NOT": "",1949 "==": "",1950 ">=": "",1951 "<=": "",1952 "<": "",1953 ">": "",1954 "!=": "",1955 "E": "",1956 "C": "",1957 "Ar": "GT 79",1958 "T": "GT 48",1959 "F": "GT 49",1960 "P": "GT 93",1961 "A": "GT 68"1962 },1963 {1964 "states": "96",1965 "int": "S 70",1966 "float": "S 71",1967 "+": "S 50",1968 "-": "S 51",1969 "*": "",1970 "/": "",1971 "^": "",1972 "(": "S 69",1973 ")": "",1974 "EOF": "",1975 "VAR": "",1976 "ID": "S 72",1977 "=": "",1978 "AND": "",1979 "OR": "",1980 "NOT": "",1981 "==": "",1982 ">=": "",1983 "<=": "",1984 "<": "",1985 ">": "",1986 "!=": "",1987 "E": "",1988 "C": "",1989 "Ar": "GT 97",1990 "T": "GT 48",1991 "F": "GT 49",1992 "P": "GT 93",1993 "A": "GT 68"1994 },1995 {1996 "states": "60",1997 "int": "S 70",1998 "float": "S 71",1999 "+": "S 50",2000 "-": "S 51",2001 "*": "",2002 "/": "",2003 "^": "",2004 "(": "S 69",2005 ")": "",2006 "EOF": "",2007 "VAR": "",2008 "ID": "S 72",2009 "=": "",2010 "AND": "",2011 "OR": "",2012 "NOT": "",2013 "==": "",2014 ">=": "",2015 "<=": "",2016 "<": "",2017 ">": "",2018 "!=": "",2019 "E": "",2020 "C": "",2021 "Ar": "",2022 "T": "GT 80",2023 "F": "GT 49",2024 "P": "GT 93",2025 "A": "GT 68"2026 },2027 {2028 "states": "61",2029 "int": "S 70",2030 "float": "S 71",2031 "+": "S 50",2032 "-": "S 51",2033 "*": "",2034 "/": "",2035 "^": "",2036 "(": "S 69",2037 ")": "",2038 "EOF": "",2039 "VAR": "",2040 "ID": "S 72",2041 "=": "",2042 "AND": "",2043 "OR": "",2044 "NOT": "",2045 "==": "",2046 ">=": "",2047 "<=": "",2048 "<": "",2049 ">": "",2050 "!=": "",2051 "E": "",2052 "C": "",2053 "Ar": "",2054 "T": "GT 81",2055 "F": "GT 49",2056 "P": "GT 93",2057 "A": "GT 68"2058 },2059 {2060 "states": "62",2061 "int": "S 70",2062 "float": "S 71",2063 "+": "S 50",2064 "-": "S 51",2065 "*": "",2066 "/": "",2067 "^": "",2068 "(": "S 69",2069 ")": "",2070 "EOF": "",2071 "VAR": "",2072 "ID": "S 72",2073 "=": "",2074 "AND": "",2075 "OR": "",2076 "NOT": "",2077 "==": "",2078 ">=": "",2079 "<=": "",2080 "<": "",2081 ">": "",2082 "!=": "",2083 "E": "",2084 "C": "",2085 "Ar": "",2086 "T": "",2087 "F": "GT 82",2088 "P": "GT 93",2089 "A": "GT 68"2090 },2091 {2092 "states": "63",2093 "int": "S 70",2094 "float": "S 71",2095 "+": "S 50",2096 "-": "S 51",2097 "*": "",2098 "/": "",2099 "^": "",2100 "(": "S 69",2101 ")": "",2102 "EOF": "",2103 "VAR": "",2104 "ID": "S 72",2105 "=": "",2106 "AND": "",2107 "OR": "",2108 "NOT": "",2109 "==": "",2110 ">=": "",2111 "<=": "",2112 "<": "",2113 ">": "",2114 "!=": "",2115 "E": "",2116 "C": "",2117 "Ar": "",2118 "T": "",2119 "F": "GT 83",2120 "P": "GT 93",2121 "A": "GT 68"2122 },2123 {2124 "states": "64",2125 "int": "",2126 "float": "",2127 "+": "",2128 "-": "",2129 "*": "",2130 "/": "",2131 "^": "",2132 "(": "",2133 ")": "",2134 "EOF": "",2135 "VAR": "",2136 "ID": "",2137 "=": "S 98",2138 "AND": "",2139 "OR": "",2140 "NOT": "",2141 "==": "",2142 ">=": "",2143 "<=": "",2144 "<": "",2145 ">": "",2146 "!=": "",2147 "E": "",2148 "C": "",2149 "Ar": "",2150 "T": "",2151 "F": "",2152 "P": "",2153 "A": ""2154 },2155 {2156 "states": "65",2157 "int": "",2158 "float": "",2159 "+": "",2160 "-": "",2161 "*": "",2162 "/": "",2163 "^": "",2164 "(": "",2165 ")": "C->NOT C",2166 "EOF": "",2167 "VAR": "",2168 "ID": "",2169 "=": "",2170 "AND": "C->NOT C",2171 "OR": "C->NOT C",2172 "NOT": "",2173 "==": "C->NOT C / S 55",2174 ">=": "C->NOT C / S 56",2175 "<=": "C->NOT C / S 57",2176 "<": "C->NOT C / S 58",2177 ">": "C->NOT C / S 59",2178 "!=": "C->NOT C / S 96",2179 "E": "",2180 "C": "",2181 "Ar": "",2182 "T": "",2183 "F": "",2184 "P": "",2185 "A": ""2186 },2187 {2188 "states": "66",2189 "int": "",2190 "float": "",2191 "+": "F->+P",2192 "-": "F->+P",2193 "*": "F->+P",2194 "/": "F->+P",2195 "^": "",2196 "(": "",2197 ")": "F->+P",2198 "EOF": "",2199 "VAR": "",2200 "ID": "",2201 "=": "",2202 "AND": "F->+P",2203 "OR": "F->+P",2204 "NOT": "",2205 "==": "F->+P",2206 ">=": "F->+P",2207 "<=": "F->+P",2208 "<": "F->+P",2209 ">": "F->+P",2210 "!=": "F->+P",2211 "E": "",2212 "C": "",2213 "Ar": "",2214 "T": "",2215 "F": "",2216 "P": "",2217 "A": ""2218 },2219 {2220 "states": "67",2221 "int": "",2222 "float": "",2223 "+": "F->-P",2224 "-": "F->-P",2225 "*": "F->-P",2226 "/": "F->-P",2227 "^": "",2228 "(": "",2229 ")": "F->-P",2230 "EOF": "",2231 "VAR": "",2232 "ID": "",2233 "=": "",2234 "AND": "F->-P",2235 "OR": "F->-P",2236 "NOT": "",2237 "==": "F->-P",2238 ">=": "F->-P",2239 "<=": "F->-P",2240 "<": "F->-P",2241 ">": "F->-P",2242 "!=": "F->-P",2243 "E": "",2244 "C": "",2245 "Ar": "",2246 "T": "",2247 "F": "",2248 "P": "",2249 "A": ""2250 },2251 {2252 "states": "68",2253 "int": "",2254 "float": "",2255 "+": "P->A",2256 "-": "P->A",2257 "*": "P->A",2258 "/": "P->A",2259 "^": "S 88",2260 "(": "",2261 ")": "P->A",2262 "EOF": "",2263 "VAR": "",2264 "ID": "",2265 "=": "",2266 "AND": "P->A",2267 "OR": "P->A",2268 "NOT": "",2269 "==": "P->A",2270 ">=": "P->A",2271 "<=": "P->A",2272 "<": "P->A",2273 ">": "P->A",2274 "!=": "P->A",2275 "E": "",2276 "C": "",2277 "Ar": "",2278 "T": "",2279 "F": "",2280 "P": "",2281 "A": ""2282 },2283 {2284 "states": "69",2285 "int": "S 70",2286 "float": "S 71",2287 "+": "S 50",2288 "-": "S 51",2289 "*": "",2290 "/": "",2291 "^": "",2292 "(": "S 69",2293 ")": "",2294 "EOF": "",2295 "VAR": "S 44",2296 "ID": "S 72",2297 "=": "",2298 "AND": "",2299 "OR": "",2300 "NOT": "S 46",2301 "==": "",2302 ">=": "",2303 "<=": "",2304 "<": "",2305 ">": "",2306 "!=": "",2307 "E": "GT 84",2308 "C": "GT 45",2309 "Ar": "GT 47",2310 "T": "GT 48",2311 "F": "GT 49",2312 "P": "GT 93",2313 "A": "GT 68"2314 },2315 {2316 "states": "70",2317 "int": "",2318 "float": "",2319 "+": "A->int",2320 "-": "A->int",2321 "*": "A->int",2322 "/": "A->int",2323 "^": "A->int",2324 "(": "",2325 ")": "A->int",2326 "EOF": "",2327 "VAR": "",2328 "ID": "",2329 "=": "",2330 "AND": "A->int",2331 "OR": "A->int",2332 "NOT": "",2333 "==": "A->int",2334 ">=": "A->int",2335 "<=": "A->int",2336 "<": "A->int",2337 ">": "A->int",2338 "!=": "A->int",2339 "E": "",2340 "C": "",2341 "Ar": "",2342 "T": "",2343 "F": "",2344 "P": "",2345 "A": ""2346 },2347 {2348 "states": "71",2349 "int": "",2350 "float": "",2351 "+": "A->float",2352 "-": "A->float",2353 "*": "A->float",2354 "/": "A->float",2355 "^": "A->float",2356 "(": "",2357 ")": "A->float",2358 "EOF": "",2359 "VAR": "",2360 "ID": "",2361 "=": "",2362 "AND": "A->float",2363 "OR": "A->float",2364 "NOT": "",2365 "==": "A->float",2366 ">=": "A->float",2367 "<=": "A->float",2368 "<": "A->float",2369 ">": "A->float",2370 "!=": "A->float",2371 "E": "",2372 "C": "",2373 "Ar": "",2374 "T": "",2375 "F": "",2376 "P": "",2377 "A": ""2378 },2379 {2380 "states": "72",2381 "int": "",2382 "float": "",2383 "+": "A->ID",2384 "-": "A->ID",2385 "*": "A->ID",2386 "/": "A->ID",2387 "^": "A->ID",2388 "(": "",2389 ")": "A->ID",2390 "EOF": "",2391 "VAR": "",2392 "ID": "",2393 "=": "",2394 "AND": "A->ID",2395 "OR": "A->ID",2396 "NOT": "",2397 "==": "A->ID",2398 ">=": "A->ID",2399 "<=": "A->ID",2400 "<": "A->ID",2401 ">": "A->ID",2402 "!=": "A->ID",2403 "E": "",2404 "C": "",2405 "Ar": "",2406 "T": "",2407 "F": "",2408 "P": "",2409 "A": ""2410 },2411 {2412 "states": "73",2413 "int": "",2414 "float": "",2415 "+": "",2416 "-": "",2417 "*": "",2418 "/": "",2419 "^": "",2420 "(": "",2421 ")": "E->E and C",2422 "EOF": "",2423 "VAR": "",2424 "ID": "",2425 "=": "",2426 "AND": "E->E and C",2427 "OR": "E->E and C",2428 "NOT": "",2429 "==": "S 55",2430 ">=": "S 56",2431 "<=": "S 57",2432 "<": "S 58",2433 ">": "S 59",2434 "!=": "S 96",2435 "E": "",2436 "C": "",2437 "Ar": "",2438 "T": "",2439 "F": "",2440 "P": "",2441 "A": ""2442 },2443 {2444 "states": "74",2445 "int": "",2446 "float": "",2447 "+": "",2448 "-": "",2449 "*": "",2450 "/": "",2451 "^": "",2452 "(": "",2453 ")": "E->E or C",2454 "EOF": "",2455 "VAR": "",2456 "ID": "",2457 "=": "",2458 "AND": "E->E or C",2459 "OR": "E->E or C",2460 "NOT": "",2461 "==": "S 55",2462 ">=": "S 56",2463 "<=": "S 57",2464 "<": "S 58",2465 ">": "S 59",2466 "!=": "S 96",2467 "E": "",2468 "C": "",2469 "Ar": "",2470 "T": "",2471 "F": "",2472 "P": "",2473 "A": ""2474 },2475 {2476 "states": "75",2477 "int": "",2478 "float": "",2479 "+": "S 60",2480 "-": "S 61",2481 "*": "",2482 "/": "",2483 "^": "",2484 "(": "",2485 ")": "C-> C==Ar",2486 "EOF": "",2487 "VAR": "",2488 "ID": "",2489 "=": "",2490 "AND": "C-> C==Ar",2491 "OR": "C-> C==Ar",2492 "NOT": "",2493 "==": "C-> C==Ar",2494 ">=": "C-> C==Ar",2495 "<=": "C-> C==Ar",2496 "<": "C-> C==Ar",2497 ">": "C-> C==Ar",2498 "!=": "C-> C==Ar",2499 "E": "",2500 "C": "",2501 "Ar": "",2502 "T": "",2503 "F": "",2504 "P": "",2505 "A": ""2506 },2507 {2508 "states": "76",2509 "int": "",2510 "float": "",2511 "+": "S 60",2512 "-": "S 61",2513 "*": "",2514 "/": "",2515 "^": "",2516 "(": "",2517 ")": "C-> C>=Ar",2518 "EOF": "",2519 "VAR": "",2520 "ID": "",2521 "=": "",2522 "AND": "C-> C>=Ar",2523 "OR": "C-> C>=Ar",2524 "NOT": "",2525 "==": "C-> C>=Ar",2526 ">=": "C-> C>=Ar",2527 "<=": "C-> C>=Ar",2528 "<": "C-> C>=Ar",2529 ">": "C-> C>=Ar",2530 "!=": "C-> C>=Ar",2531 "E": "",2532 "C": "",2533 "Ar": "",2534 "T": "",2535 "F": "",2536 "P": "",2537 "A": ""2538 },2539 {2540 "states": "77",2541 "int": "",2542 "float": "",2543 "+": "S 60",2544 "-": "S 61",2545 "*": "",2546 "/": "",2547 "^": "",2548 "(": "",2549 ")": "C-> C<=Ar",2550 "EOF": "",2551 "VAR": "",2552 "ID": "",2553 "=": "",2554 "AND": "C-> C<=Ar",2555 "OR": "C-> C<=Ar",2556 "NOT": "",2557 "==": "C-> C<=Ar",2558 ">=": "C-> C<=Ar",2559 "<=": "C-> C<=Ar",2560 "<": "C-> C<=Ar",2561 ">": "C-> C<=Ar",2562 "!=": "C-> C<=Ar",2563 "E": "",2564 "C": "",2565 "Ar": "",2566 "T": "",2567 "F": "",2568 "P": "",2569 "A": ""2570 },2571 {2572 "states": "78",2573 "int": "",2574 "float": "",2575 "+": "S 60",2576 "-": "S 61",2577 "*": "",2578 "/": "",2579 "^": "",2580 "(": "",2581 ")": "C-> C<Ar",2582 "EOF": "",2583 "VAR": "",2584 "ID": "",2585 "=": "",2586 "AND": "C-> C<Ar",2587 "OR": "C-> C<Ar",2588 "NOT": "",2589 "==": "C-> C<Ar",2590 ">=": "C-> C<Ar",2591 "<=": "C-> C<Ar",2592 "<": "C-> C<Ar",2593 ">": "C-> C<Ar",2594 "!=": "C-> C<Ar",2595 "E": "",2596 "C": "",2597 "Ar": "",2598 "T": "",2599 "F": "",2600 "P": "",2601 "A": ""2602 },2603 {2604 "states": "79",2605 "int": "",2606 "float": "",2607 "+": "S 60",2608 "-": "S 61",2609 "*": "",2610 "/": "",2611 "^": "",2612 "(": "",2613 ")": "C-> C>Ar",2614 "EOF": "",2615 "VAR": "",2616 "ID": "",2617 "=": "",2618 "AND": "C-> C>Ar",2619 "OR": "C-> C>Ar",2620 "NOT": "",2621 "==": "C-> C>Ar",2622 ">=": "C-> C>Ar",2623 "<=": "C-> C>Ar",2624 "<": "C-> C>Ar",2625 ">": "C-> C>Ar",2626 "!=": "C-> C>Ar",2627 "E": "",2628 "C": "",2629 "Ar": "",2630 "T": "",2631 "F": "",2632 "P": "",2633 "A": ""2634 },2635 {2636 "states": "97",2637 "int": "",2638 "float": "",2639 "+": "S 60",2640 "-": "S 61",2641 "*": "",2642 "/": "",2643 "^": "",2644 "(": "",2645 ")": "C-> C!=Ar",2646 "EOF": "",2647 "VAR": "",2648 "ID": "",2649 "=": "",2650 "AND": "C-> C!=Ar",2651 "OR": "C-> C!=Ar",2652 "NOT": "",2653 "==": "C-> C!=Ar",2654 ">=": "C-> C!=Ar",2655 "<=": "C-> C!=Ar",2656 "<": "C-> C!=Ar",2657 ">": "C-> C!=Ar",2658 "!=": "C-> C!=Ar",2659 "E": "",2660 "C": "",2661 "Ar": "",2662 "T": "",2663 "F": "",2664 "P": "",2665 "A": ""2666 },2667 {2668 "states": "80",2669 "int": "",2670 "float": "",2671 "+": "Ar->Ar+T",2672 "-": "Ar->Ar+T",2673 "*": "S 62",2674 "/": "S 63",2675 "^": "",2676 "(": "",2677 ")": "Ar->Ar+T",2678 "EOF": "",2679 "VAR": "",2680 "ID": "",2681 "=": "",2682 "AND": "Ar->Ar+T",2683 "OR": "Ar->Ar+T",2684 "NOT": "",2685 "==": "Ar->Ar+T",2686 ">=": "Ar->Ar+T",2687 "<=": "Ar->Ar+T",2688 "<": "Ar->Ar+T",2689 ">": "Ar->Ar+T",2690 "!=": "Ar->Ar+T",2691 "E": "",2692 "C": "",2693 "Ar": "",2694 "T": "",2695 "F": "",2696 "P": "",2697 "A": ""2698 },2699 {2700 "states": "81",2701 "int": "",2702 "float": "",2703 "+": "Ar->Ar-T",2704 "-": "Ar->Ar-T",2705 "*": "S 62",2706 "/": "S 63",2707 "^": "",2708 "(": "",2709 ")": "Ar->Ar-T",2710 "EOF": "",2711 "VAR": "",2712 "ID": "",2713 "=": "",2714 "AND": "Ar->Ar-T",2715 "OR": "Ar->Ar-T",2716 "NOT": "",2717 "==": "Ar->Ar-T",2718 ">=": "Ar->Ar-T",2719 "<=": "Ar->Ar-T",2720 "<": "Ar->Ar-T",2721 ">": "Ar->Ar-T",2722 "!=": "Ar->Ar-T",2723 "E": "",2724 "C": "",2725 "Ar": "",2726 "T": "",2727 "F": "",2728 "P": "",2729 "A": ""2730 },2731 {2732 "states": "82",2733 "int": "",2734 "float": "",2735 "+": "T->T*F",2736 "-": "T->T*F",2737 "*": "T->T*F",2738 "/": "T->T*F",2739 "^": "",2740 "(": "",2741 ")": "T->T*F",2742 "EOF": "",2743 "VAR": "",2744 "ID": "",2745 "=": "",2746 "AND": "T->T*F",2747 "OR": "T->T*F",2748 "NOT": "",2749 "==": "T->T*F",2750 ">=": "T->T*F",2751 "<=": "T->T*F",2752 "<": "T->T*F",2753 ">": "T->T*F",2754 "!=": "T->T*F",2755 "E": "",2756 "C": "",2757 "Ar": "",2758 "T": "",2759 "F": "",2760 "P": "",2761 "A": ""2762 },2763 {2764 "states": "83",2765 "int": "",2766 "float": "",2767 "+": "T->T/F",2768 "-": "T->T/F",2769 "*": "T->T/F",2770 "/": "T->T/F",2771 "^": "",2772 "(": "",2773 ")": "T->T/F",2774 "EOF": "",2775 "VAR": "",2776 "ID": "",2777 "=": "",2778 "AND": "T->T/F",2779 "OR": "T->T/F",2780 "NOT": "",2781 "==": "T->T/F",2782 ">=": "T->T/F",2783 "<=": "T->T/F",2784 "<": "T->T/F",2785 ">": "T->T/F",2786 "!=": "T->T/F",2787 "E": "",2788 "C": "",2789 "Ar": "",2790 "T": "",2791 "F": "",2792 "P": "",2793 "A": ""2794 },2795 {2796 "states": "98",2797 "int": "S 70",2798 "float": "S 71",2799 "+": "S 50",2800 "-": "S 51",2801 "*": "",2802 "/": "",2803 "^": "",2804 "(": "S 69",2805 ")": "",2806 "EOF": "",2807 "VAR": "S 44",2808 "ID": "S 72",2809 "=": "",2810 "AND": "",2811 "OR": "",2812 "NOT": "S 46",2813 "==": "",2814 ">=": "",2815 "<=": "",2816 "<": "",2817 ">": "",2818 "!=": "",2819 "E": "GT 86",2820 "C": "GT 45",2821 "Ar": "GT 47",2822 "T": "GT 48",2823 "F": "GT 49",2824 "P": "GT 93",2825 "A": "GT 68"2826 },2827 {2828 "states": "84",2829 "int": "",2830 "float": "",2831 "+": "",2832 "-": "",2833 "*": "",2834 "/": "",2835 "^": "",2836 "(": "",2837 ")": "S 87",2838 "EOF": "",2839 "VAR": "",2840 "ID": "",2841 "=": "",2842 "AND": "S 53",2843 "OR": "S 54",2844 "NOT": "",2845 "==": "",2846 ">=": "",2847 "<=": "",2848 "<": "",2849 ">": "",2850 "!=": "",2851 "E": "",2852 "C": "",2853 "Ar": "",2854 "T": "",2855 "F": "",2856 "P": "",2857 "A": ""2858 },2859 {2860 "states": "85",2861 "int": "",2862 "float": "",2863 "+": "",2864 "-": "",2865 "*": "",2866 "/": "",2867 "^": "",2868 "(": "",2869 ")": "",2870 "EOF": "E->VAR ID = E",2871 "VAR": "",2872 "ID": "",2873 "=": "",2874 "AND": "E->VAR ID = E / S 11",2875 "OR": "E->VAR ID = E / S 12",2876 "NOT": "",2877 "==": "",2878 ">=": "",2879 "<=": "",2880 "<": "",2881 ">": "",2882 "!=": "",2883 "E": "",2884 "C": "",2885 "Ar": "",2886 "T": "",2887 "F": "",2888 "P": "",2889 "A": ""2890 },2891 {2892 "states": "86",2893 "int": "",2894 "float": "",2895 "+": "",2896 "-": "",2897 "*": "",2898 "/": "",2899 "^": "",2900 "(": "",2901 ")": "E->VAR ID = E",2902 "EOF": "",2903 "VAR": "",2904 "ID": "",2905 "=": "",2906 "AND": "E->VAR ID = E / S 53",2907 "OR": "E->VAR ID = E / S 54",2908 "NOT": "",2909 "==": "",2910 ">=": "",2911 "<=": "",2912 "<": "",2913 ">": "",2914 "!=": "",2915 "E": "",2916 "C": "",2917 "Ar": "",2918 "T": "",2919 "F": "",2920 "P": "",2921 "A": ""2922 },2923 {2924 "states": "87",2925 "int": "",2926 "float": "",2927 "+": "A->(E)",2928 "-": "A->(E)",2929 "*": "A->(E)",2930 "/": "A->(E)",2931 "^": "A->(E)",2932 "(": "",2933 ")": "A->(E)",2934 "EOF": "",2935 "VAR": "",2936 "ID": "",2937 "=": "",2938 "AND": "A->(E)",2939 "OR": "A->(E)",2940 "NOT": "",2941 "==": "A->(E)",2942 ">=": "A->(E)",2943 "<=": "A->(E)",2944 "<": "A->(E)",2945 ">": "A->(E)",2946 "!=": "A->(E)",2947 "E": "",2948 "C": "",2949 "Ar": "",2950 "T": "",2951 "F": "",2952 "P": "",2953 "A": ""2954 },2955 {2956 "states": "88",2957 "int": "S 70",2958 "float": "S 71",2959 "+": "S 50",2960 "-": "S 51",2961 "*": "",2962 "/": "",2963 "^": "",2964 "(": "S 69",2965 ")": "",2966 "EOF": "",2967 "VAR": "",2968 "ID": "S 72",2969 "=": "",2970 "AND": "",2971 "OR": "",2972 "NOT": "",2973 "==": "",2974 ">=": "",2975 "<=": "",2976 "<": "",2977 ">": "",2978 "!=": "",2979 "E": "",2980 "C": "",2981 "Ar": "",2982 "T": "",2983 "F": "GT 89",2984 "P": "GT 93",2985 "A": "GT 68"2986 },2987 {2988 "states": "89",2989 "int": "",2990 "float": "",2991 "+": "P->A^F",2992 "-": "P->A^F",2993 "*": "P->A^F",2994 "/": "P->A^F",2995 "^": "",2996 "(": "",2997 ")": "P->A^F",2998 "EOF": "",2999 "VAR": "",3000 "ID": "",3001 "=": "",3002 "AND": "P->A^F",3003 "OR": "P->A^F",3004 "NOT": "",3005 "==": "P->A^F",3006 ">=": "P->A^F",3007 "<=": "P->A^F",3008 "<": "P->A^F",3009 ">": "P->A^F",3010 "!=": "P->A^F",3011 "E": "",3012 "C": "",3013 "Ar": "",3014 "T": "",3015 "F": "",3016 "P": "",3017 "A": ""3018 },3019 {3020 "states": "90",3021 "int": "S 28",3022 "float": "S 29",3023 "+": "S 9",3024 "-": "S 10",3025 "*": "",3026 "/": "",3027 "^": "",3028 "(": "S 27",3029 ")": "",3030 "EOF": "",3031 "VAR": "",3032 "ID": "S 30",3033 "=": "",3034 "AND": "",3035 "OR": "",3036 "NOT": "",3037 "==": "",3038 ">=": "",3039 "<=": "",3040 "<": "",3041 ">": "",3042 "!=": "",3043 "E": "",3044 "C": "",3045 "Ar": "",3046 "T": "",3047 "F": "GT 91",3048 "P": "GT 92",3049 "A": "GT 26"3050 },3051 {3052 "states": "91",3053 "int": "",3054 "float": "",3055 "+": "P->A^F",3056 "-": "P->A^F",3057 "*": "P->A^F",3058 "/": "P->A^F",3059 "^": "",3060 "(": "",3061 ")": "",3062 "EOF": "P->A^F",3063 "VAR": "",3064 "ID": "",3065 "=": "",3066 "AND": "P->A^F",3067 "OR": "P->A^F",3068 "NOT": "",3069 "==": "P->A^F",3070 ">=": "P->A^F",3071 "<=": "P->A^F",3072 "<": "P->A^F",3073 ">": "P->A^F",3074 "!=": "P->A^F",3075 "E": "",3076 "C": "",3077 "Ar": "",3078 "T": "",3079 "F": "",3080 "P": "",3081 "A": ""3082 },3083 {3084 "states": "92",3085 "int": "",3086 "float": "",3087 "+": "F -> P",3088 "-": "F -> P",3089 "*": "F -> P",3090 "/": "F -> P",3091 "^": "",3092 "(": "",3093 ")": "",3094 "EOF": "F -> P",3095 "VAR": "",3096 "ID": "",3097 "=": "",3098 "AND": "F -> P",3099 "OR": "F -> P",3100 "NOT": "",3101 "==": "F -> P",3102 ">=": "F -> P",3103 "<=": "F -> P",3104 "<": "F -> P",3105 ">": "F -> P",3106 "!=": "F -> P",3107 "E": "",3108 "C": "",3109 "Ar": "",3110 "T": "",3111 "F": "",3112 "P": "",3113 "A": ""3114 },3115 {3116 "states": "93",3117 "int": "",3118 "float": "",3119 "+": "F -> P",3120 "-": "F -> P",3121 "*": "F -> P",3122 "/": "F -> P",3123 "^": "",3124 "(": "",3125 ")": "F -> P",3126 "EOF": "",3127 "VAR": "",3128 "ID": "",3129 "=": "",3130 "AND": "F -> P",3131 "OR": "F -> P",3132 "NOT": "",3133 "==": "F -> P",3134 ">=": "F -> P",3135 "<=": "F -> P",3136 "<": "F -> P",3137 ">": "F -> P",3138 "!=": "F -> P",3139 "E": "",3140 "C": "",3141 "Ar": "",3142 "T": "",3143 "F": "",3144 "P": "",3145 "A": ""3146 }3147 ]...

Full Screen

Full Screen

mysql-protocol.pac

Source:mysql-protocol.pac Github

copy

Full Screen

...208 pad : padding[23];209 username : NUL_String;210 password : bytestring &restofdata;211} &let {212 deprecate_eof: bool = $context.connection.set_deprecate_eof(cap_flags & CLIENT_DEPRECATE_EOF);213};214type Handshake_Response_Packet_v9 = record {215 cap_flags : uint16;216 max_pkt_size : uint24le;217 username : NUL_String;218 auth_response: NUL_String;219 have_db : case ( cap_flags & 0x8 ) of {220 0x8 -> database: NUL_String;221 0x0 -> none : empty;222 };223 password : bytestring &restofdata;224};225# Command Request226type Command_Request_Packet = record {227 command: uint8;228 arg : bytestring &restofdata;229} &let {230 update_expectation: bool = $context.connection.set_next_expected_from_command(command);231};232# Command Response233type Command_Response(pkt_len: uint32) = case $context.connection.get_expectation() of {234 EXPECT_COLUMN_COUNT -> col_count_meta: ColumnCountMeta;235 EXPECT_COLUMN_DEFINITION -> col_def : ColumnDefinition;236 EXPECT_COLUMN_DEFINITION_OR_EOF -> def_or_eof : ColumnDefinitionOrEOF(pkt_len);237 EXPECT_RESULTSET -> resultset : Resultset(pkt_len);238 EXPECT_REST_OF_PACKET -> rest : bytestring &restofdata;239 EXPECT_STATUS -> status : Command_Response_Status;240 EXPECT_AUTH_SWITCH -> auth_switch : AuthSwitchRequest;241 EXPECT_EOF -> eof : EOFIfLegacy(pkt_len);242 default -> unknown : empty;243};244type Command_Response_Status = record {245 pkt_type: uint8;246 response: case pkt_type of {247 0x00 -> data_ok: OK_Packet;248 0xfe -> data_eof: EOF_Packet;249 0xff -> data_err: ERR_Packet;250 default -> unknown: empty;251 };252};253type ColumnCountMeta = record {254 byte : uint8;255 pkt_type: case byte of {256 0x00 -> ok : OK_Packet;257 0xff -> err : ERR_Packet;258# 0xfb -> Not implemented259 default -> col_count: ColumnCount(byte);260 };261};262type ColumnCount(byte: uint8) = record {263 le_column_count : LengthEncodedIntegerLookahead(byte);264} &let {265 col_num : uint32 = to_int()(le_column_count);266 update_col_num : bool = $context.connection.set_col_count(col_num);267 update_remain : bool = $context.connection.set_remaining_cols(col_num);268 update_expectation: bool = $context.connection.set_next_expected(EXPECT_COLUMN_DEFINITION);269};270type ColumnDefinition = record {271 dummy: uint8;272 def : ColumnDefinition41(dummy);273} &let {274 update_remain : bool = $context.connection.dec_remaining_cols();275 update_expectation: bool = $context.connection.set_next_expected($context.connection.get_remaining_cols() > 0 ? EXPECT_COLUMN_DEFINITION : EXPECT_EOF);276};277type EOFOrOK = case $context.connection.get_deprecate_eof() of {278 false -> eof: EOF_Packet;279 true -> ok: OK_Packet;280};281type ColumnDefinitionOrEOF(pkt_len: uint32) = record {282 marker : uint8;283 def_or_eof: case is_eof of {284 true -> eof: EOFOrOK;285 false -> def: ColumnDefinition41(marker);286 } &requires(is_eof);287} &let {288 # MySQL spec says "You must check whether the packet length is less than 9289 # to make sure that it is a EOF_Packet packet" so the value of 13 here290 # comes from that 9, plus a 4-byte header.291 is_eof: bool = (marker == 0xfe && pkt_len < 13);292};293type EOFIfLegacy(pkt_len: uint32) = case $context.connection.get_deprecate_eof() of {294 false -> eof: EOF_Packet;295 true -> resultset: Resultset(pkt_len);296} &let {297 update_result_seen: bool = $context.connection.set_results_seen(0);298 update_expectation: bool = $context.connection.set_next_expected(EXPECT_RESULTSET);299};300type Resultset(pkt_len: uint32) = record {301 marker : uint8;302 row_or_eof: case is_eof of {303 true -> eof: EOFOrOK;304 false -> row: ResultsetRow(marker);305 } &requires(is_eof);306} &let {307 # MySQL spec says "You must check whether the packet length is less than 9308 # to make sure that it is a EOF_Packet packet" so the value of 13 here309 # comes from that 9, plus a 4-byte header.310 is_eof : bool = (marker == 0xfe && pkt_len < 13);311 update_result_seen: bool = $context.connection.inc_results_seen();312 update_expectation: bool = $context.connection.set_next_expected(is_eof ? NO_EXPECTATION : EXPECT_RESULTSET);313};314type ResultsetRow(first_byte: uint8) = record {315 first_field: LengthEncodedStringArg(first_byte);316 fields : LengthEncodedString[$context.connection.get_col_count() - 1];317};318type ColumnDefinition41(first_byte: uint8) = record {319 catalog : LengthEncodedStringArg(first_byte);320 schema : LengthEncodedString;321 table : LengthEncodedString;322 org_table: LengthEncodedString;323 name : LengthEncodedString;324 org_name : LengthEncodedString;325 next_len : LengthEncodedInteger;326 char_set : uint16;327 col_len : uint32;328 type : uint8;329 flags : uint16;330 decimals : uint8;331 filler : padding[2];332};333type AuthSwitchRequest = record {334 status: uint8;335 name : NUL_String;336 data : bytestring &restofdata;337};338type ColumnDefinition320 = record {339 table : LengthEncodedString;340 name : LengthEncodedString;341 length_of_col_len: LengthEncodedInteger;342 col_len : uint24le;343 type_len : LengthEncodedInteger;344 type : uint8;345};346type OK_Packet = record {347 le_rows: LengthEncodedInteger;348 todo : bytestring &restofdata;349} &let {350 rows : uint32 = to_int()(le_rows);351 update_state: bool = $context.connection.update_state(COMMAND_PHASE);352};353type ERR_Packet = record {354 code : uint16;355 state: bytestring &length=6;356 msg : bytestring &restofdata;357} &let {358 update_state: bool = $context.connection.update_state(COMMAND_PHASE);359};360type EOF_Packet = record {361 warnings: uint16;362 status : uint16;363} &let {364 update_state: bool = $context.connection.update_state(COMMAND_PHASE);365};366# State tracking367refine connection MySQL_Conn += {368 %member{369 uint8 version_;370 uint8 previous_seq_id_;371 int state_;372 Expected expected_;373 uint32 col_count_;374 uint32 remaining_cols_;375 uint32 results_seen_;376 bool deprecate_eof_;377 %}378 %init{379 version_ = 0;380 previous_seq_id_ = 0;381 state_ = CONNECTION_PHASE;382 expected_ = EXPECT_STATUS;383 col_count_ = 0;384 remaining_cols_ = 0;385 results_seen_ = 0;386 deprecate_eof_ = false;387 %}388 function get_version(): uint8389 %{390 return version_;391 %}392 function set_version(v: uint8): bool393 %{394 version_ = v;395 return true;396 %}397 function get_previous_seq_id(): uint8398 %{399 return previous_seq_id_;400 %}401 function set_previous_seq_id(s: uint8): bool402 %{403 previous_seq_id_ = s;404 return true;405 %}406 function get_state(): int407 %{408 return state_;409 %}410 function update_state(s: state): bool411 %{412 state_ = s;413 return true;414 %}415 function get_deprecate_eof(): bool416 %{417 return deprecate_eof_;418 %}419 function set_deprecate_eof(d: bool): bool420 %{421 deprecate_eof_ = d;422 return true;423 %}424 function get_expectation(): Expected425 %{426 return expected_;427 %}428 function set_next_expected(e: Expected): bool429 %{430 expected_ = e;431 return true;432 %}433 function set_next_expected_from_command(cmd: uint8): bool...

Full Screen

Full Screen

plugins.js

Source:plugins.js Github

copy

Full Screen

1$(document).ready(function() {2 /* bootstrap tooltip */3 $(".tip").tooltip({4 placement: 'top'5 });6 $(".tipb").tooltip({7 placement: 'bottom'8 });9 $(".tipl").tooltip({10 placement: 'left'11 });12 $(".tipr").tooltip({13 placement: 'right'14 });15 /* eof bootstrap tooltip */16 /* scroll */17 if ($("#layout_scroll").length > 0)18 $("#layout_scroll").height($(window).height() - 80);19 if ($(".scroll").length > 0)20 $(".scroll").mCustomScrollbar({21 advanced: {22 autoScrollOnFocus: false23 }24 });25 $(".modal").on('shown.bs.modal', function() {26 $(this).find('.scroll').mCustomScrollbar('update');27 });28 if ($(".scroll-mail").length > 0) {29 $(".scroll-mail").height($(window).height() - 185).mCustomScrollbar({30 advanced: {31 autoScrollOnFocus: false32 }33 });34 }35 /* eof scroll */36 //Bootstrap file input 37 if ($("input.fileinput").length > 0)38 $("input.fileinput").bootstrapFileInput();39 //END Bootstrap file input 40 /* Accordion */41 if ($(".accordion").length > 0) {42 $(".accordion").accordion({43 heightStyle: "content"44 });45 $(".accordion .ui-accordion-header:last").css('border-bottom', '0px');46 }47 /* EOF Accordion */48 /* uniform */49 if ($("input[type=checkbox]").length > 0 || $("input[type=radio]").length > 0)50 $("input[type=checkbox], input[type=radio]").not('.skip').uniform();51 /* eof uniform */52 /* select2 */53 if ($(".select2").length > 0)54 $(".select2").select2();55 /* eof select2 */56 /* tagsinput */57 if ($(".tags").length > 0)58 $(".tags").tagsInput({59 width: '100%',60 height: 'auto'61 });62 if ($(".mail_tags").length > 0)63 $(".mail_tags").tagsInput({64 width: '100%',65 height: 'auto',66 'defaultText': 'add email'67 });68 /* eof tagsinput */69 /* jQuery UI Datepicker */70 if ($(".datepicker").length > 0)71 $(".datepicker").datepicker({72 nextText: "",73 prevText: ""74 });75 if ($(".mdatepicker").length > 0)76 $(".mdatepicker").datepicker({77 numberOfMonths: 3,78 nextText: "",79 prevText: ""80 });81 /* EOF jQuery UI Datepicker */82 /* Timepicker */83 if ($(".timepicker").length > 0)84 $(".timepicker").timepicker();85 /* EOF Timepicker */86 /* Datetimepicker */87 if ($(".datetimepicker").length > 0)88 $(".datetimepicker").datetimepicker({89 nextText: "",90 prevText: ""91 });92 /* EOF Datetimepicker */93 /* Datatables */94 if ($("table.sortable_simple").length > 0)95 $("table.sortable_simple").dataTable({96 "iDisplayLength": 5,97 "bLengthChange": false,98 "bFilter": false,99 "bInfo": false,100 "bPaginate": true101 });102 if ($("table.sortable_default").length > 0)103 $("table.sortable_default").dataTable({104 "iDisplayLength": 5,105 "sPaginationType": "full_numbers",106 "bLengthChange": false,107 "bFilter": false,108 "bInfo": false,109 "bPaginate": true,110 "aoColumns": [{111 "bSortable": false112 }, null, null, null, null]113 });114 if ($("table.sortable").length > 0) {115 let iDisplayLength = 5,dataIDL = $("table.sortable").attr('data-idl');116 if (dataIDL) {117 iDisplayLength = dataIDL;118 }119 console.log(`data-idl: ${dataIDL}, idl: ${iDisplayLength}`);120 $("table.sortable").dataTable({121 "iDisplayLength": iDisplayLength,122 "aLengthMenu": [10, 25, 50, 100],123 "sPaginationType": "full_numbers",124 "bLengthChange": false,125 "bFilter": true,126 "bInfo": false,127 "bPaginate": true128 });129 }130 /* eof Datatables */131 /* knob plugin */132 if ($(".knob").length > 0)133 $(".knob input").knob();134 /* eof knob plugin */135 /* sparkline */136 if ($(".sparkline").length > 0)137 $('.sparkline span').sparkline('html', {138 enableTagOptions: true139 });140 /* eof sparkline */141 /* CLEditor */142 if ($(".cle").length > 0)143 cE = $(".cle").cleditor({144 width: "100%",145 height: 230146 });147 if ($(".cleditor").length > 0)148 cEdit = $(".cleditor").cleditor({149 width: "100%",150 height: 450151 });152 if ($(".scle").length > 0)153 cEC = $(".scle").cleditor({154 width: "100%",155 height: 230,156 controls: "bold italic underline strikethrough link unlink"157 })[0].focus();158 $('#modal_mail').on('shown.bs.modal', function() {159 cEC.refresh();160 });161 /* eof CLEditor */162 /* draggable modal */163 if ($(".modal-draggable").length > 0) {164 $(".modal-draggable").draggable();165 }166 /* eof draggable modal */167 /* Tinymce */168 if ($("textarea.tmce").length > 0) {169 tinymce.init({170 selector: "textarea.tmce",171 height: 400172 });173 }174 if ($("textarea.stmce").length > 0) {175 tinymce.init({176 selector: "textarea.stmce",177 toolbar: "bold italic | alignleft aligncenter alignright alignjustify | undo redo",178 menu: [],179 height: 200180 });181 }182 /* eof tinymce */183 /* ValidationEngine */184 if ($("#validate").length > 0 || $("#validate_custom").length > 0)185 $("#validate, #validate_custom").validationEngine('attach', {186 promptPosition: "topLeft"187 });188 /* EOF ValidationEngine */189 /* Stepy*/190 if ($("#wizard").length > 0)191 $('#wizard').stepy();192 if ($("#wizard_validate").length > 0) {193 $("#wizard_validate").validationEngine('attach', {194 promptPosition: "topLeft"195 });196 $('#wizard_validate').stepy({197 back: function(index) {//if(!$("#wizard_validate").validationEngine('validate')) return false; //uncomment if u need to validate on back click 198 },199 next: function(index) {200 if (!$("#wizard_validate").validationEngine('validate'))201 return false;202 },203 finish: function(index) {204 if (!$("#wizard_validate").validationEngine('validate'))205 return false;206 }207 });208 }209 /* EOF Stepy */210 /* Masked Input */211 if ($("input[class^='mask_']").length > 0) {212 $("input.mask_tin").mask('99-9999999');213 $("input.mask_ssn").mask('999-99-9999');214 $("input.mask_date").mask('9999-99-99');215 $("input.mask_product").mask('a*-999-a999');216 $("input.mask_phone").mask('99 (999) 999-99-99');217 $("input.mask_phone_ext").mask('99 (999) 999-9999? x99999');218 $("input.mask_credit").mask('9999-9999-9999-9999');219 $("input.mask_percent").mask('99%');220 }221 /* EOF Masked Input */222 /* Syntax Highlight */223 if ($("pre[class^=brush]").length > 0) {224 SyntaxHighlighter.defaults['toolbar'] = false;225 SyntaxHighlighter.all();226 }227 /* EOF Syntax Highlight */228 /* Fancybox */229 if ($(".fancybox").length > 0)230 $(".fancybox").fancybox({231 padding: 10232 });233 /* EOF Fancybox */234 /* carousel */235 if ($('.carousel').length > 0)236 $('.carousel').carousel();237 /* eof carousel */238 /* fullcalendar (demo) */239 if ($("#calendar").length > 0) {240 var date = new Date();241 var d = date.getDate();242 var m = date.getMonth();243 var y = date.getFullYear();244 $('#external-events .external-event').each(function() {245 var eventObject = {246 title: $.trim($(this).text())247 };248 $(this).data('eventObject', eventObject);249 $(this).draggable({250 zIndex: 999,251 revert: true,252 revertDuration: 0253 });254 });255 var calendar = $('#calendar').fullCalendar({256 header: {257 left: 'prev,next today',258 center: 'title',259 right: 'month,agendaWeek,agendaDay'260 },261 editable: true,262 events: [{263 title: 'All Day Event',264 start: new Date(y,m,1)265 }, {266 title: 'Long Event',267 start: new Date(y,m,d - 5),268 end: new Date(y,m,d - 2)269 }, {270 id: 999,271 title: 'Repeating Event',272 start: new Date(y,m,d - 3,16,0),273 allDay: false274 }, {275 id: 999,276 title: 'Repeating Event',277 start: new Date(y,m,d + 4,16,0),278 allDay: false279 }, {280 title: 'Meeting',281 start: new Date(y,m,d,10,30),282 allDay: false283 }, {284 title: 'Lunch',285 start: new Date(y,m,d,12,0),286 end: new Date(y,m,d,14,0),287 allDay: false288 }, {289 title: 'Birthday Party',290 start: new Date(y,m,d + 1,19,0),291 end: new Date(y,m,d + 1,22,30),292 allDay: false293 }, {294 title: 'Click for Google',295 start: new Date(y,m,28),296 end: new Date(y,m,29),297 url: 'http://google.com/'298 }],299 droppable: true,300 selectable: true,301 selectHelper: true,302 select: function(start, end, allDay) {303 var title = prompt('Event Title:');304 if (title) {305 calendar.fullCalendar('renderEvent', {306 title: title,307 start: start,308 end: end,309 allDay: allDay310 }, true);311 }312 calendar.fullCalendar('unselect');313 },314 drop: function(date, allDay) {315 var originalEventObject = $(this).data('eventObject');316 var copiedEventObject = $.extend({}, originalEventObject);317 copiedEventObject.start = date;318 copiedEventObject.allDay = allDay;319 $('#calendar').fullCalendar('renderEvent', copiedEventObject, true);320 if ($('#drop-remove').is(':checked')) {321 $(this).remove();322 }323 }324 });325 }326 /* eof fullcalendar (demo) */327 /* popover (demo) */328 $("[data-toggle=popover]").popover();329 /* eof popover (demo) */330 /* slider example(demo) */331 $(".slider_example").slider({332 range: "min",333 min: 0,334 max: 100,335 value: 50336 });337 $(".slider_example2").slider({338 range: true,339 min: 0,340 max: 500,341 values: [150, 350]342 });343 $(".slider_example3").slider({344 orientation: "vertical",345 range: "min",346 min: 0,347 max: 100,348 value: 50349 });350 $(".slider_example4").slider({351 orientation: "vertical",352 min: 0,353 max: 500,354 range: true,355 values: [150, 350]356 });357 if ($("#price_rage").length > 0) {358 $("#price_rage").slider({359 range: true,360 min: 0,361 max: 3000,362 values: [1000, 2000],363 slide: function(event, ui) {364 $("#price_amount").html("$" + ui.values[0] + " - $" + ui.values[1]);365 }366 });367 $("#price_amount").html("$" + $("#price_rage").slider("values", 0) + " - $" + $("#price_rage").slider("values", 1));368 }369 /* eof slider example(demo) */370 /* slider example(demo) */371 $("#spinner").spinner();372 $("#spinner2").spinner({373 step: 0.1374 });375 $("#spinner3").spinner({376 min: 0,377 max: 2500,378 step: 25.15,379 numberFormat: "C"380 });381 /* eof slider example(demo) */382 /* button state(demo)*/383 $('#fat-btn').click(function() {384 var btn = $(this)385 btn.button('loading')386 setTimeout(function() {387 btn.button('reset')388 }, 3000);389 });390 /* eof button state(demo)*/391 /* sortable (demo)*/392 if ($("#sortable_example_1").length > 0) {393 $("#sortable_example_1").sortable({394 items: ".list-group-item"395 });396 $("#sortable_example_1").disableSelection();397 }398 /* eof sortable (demo)*/399 /* selectable (demo)*/400 if ($("#selectable_example_1").length > 0) {401 $("#selectable_example_1").selectable();402 }403 /* eof selectable (demo)*/404});405$(window).resize(function() {406 if ($("#layout_scroll").length > 0)407 $("#layout_scroll").height($(window).height() - 80).mCustomScrollbar('update');408 if ($(".scroll-mail").length > 0)409 $(".scroll-mail").height($(window).height() - 205).mCustomScrollbar('update');...

Full Screen

Full Screen

Scanner.test.js

Source:Scanner.test.js Github

copy

Full Screen

1const Scanner = require('../src/Scanner');2describe('Scanner', () => {3 const scanner = new Scanner();4 it('should construct a scanner', () => {5 const emptyScanner = new Scanner();6 expect(emptyScanner.tokens).toEqual([]);7 expect(emptyScanner.index).toEqual(0);8 expect(emptyScanner.current_number).toEqual('');9 });10 it('should reset', () => {11 scanner.tokens = [12 { "type": "TK_NUMBER", "value": 1 },13 { "type": "TK_PLUS", "value": "+" },14 { "type": "TK_NUMBER", "value": 1 },15 { "type": "TK_EOF", "value": "EOF" }16 ];17 scanner.index = 10;18 scanner.current_number = '3';19 scanner.reset();20 expect(scanner.tokens).toEqual([]);21 expect(scanner.index).toEqual(0);22 expect(scanner.current_number).toEqual('');23 });24 it('should return tokens for basic addition', () => {25 expect(scanner.scan('1+1')).toEqual([26 { "type": "TK_NUMBER", "value": 1 },27 { "type": "TK_PLUS", "value": "+" },28 { "type": "TK_NUMBER", "value": 1 },29 { "type": "TK_EOF", "value": "EOF" }30 ]);31 });32 it('should return tokens for basic subtraction', () => {33 expect(scanner.scan('1-1')).toEqual([34 { "type": "TK_NUMBER", "value": 1 },35 { "type": "TK_MINUS", "value": "-" },36 { "type": "TK_NUMBER", "value": 1 },37 { "type": "TK_EOF", "value": "EOF" }38 ]);39 });40 it('should return tokens for basic multiplication', () => {41 expect(scanner.scan('1x1')).toEqual([42 { "type": "TK_NUMBER", "value": 1 },43 { "type": "TK_MULTIPLY", "value": "x" },44 { "type": "TK_NUMBER", "value": 1 },45 { "type": "TK_EOF", "value": "EOF" }46 ]);47 expect(scanner.scan('1X1')).toEqual([48 { "type": "TK_NUMBER", "value": 1 },49 { "type": "TK_MULTIPLY", "value": "x" },50 { "type": "TK_NUMBER", "value": 1 },51 { "type": "TK_EOF", "value": "EOF" }52 ]);53 expect(scanner.scan('1*1')).toEqual([54 { "type": "TK_NUMBER", "value": 1 },55 { "type": "TK_MULTIPLY", "value": "*" },56 { "type": "TK_NUMBER", "value": 1 },57 { "type": "TK_EOF", "value": "EOF" }58 ]);59 });60 it('should return tokens for basic division', () => {61 expect(scanner.scan('1/1')).toEqual([62 { "type": "TK_NUMBER", "value": 1 },63 { "type": "TK_DIVIDE", "value": "/" },64 { "type": "TK_NUMBER", "value": 1 },65 { "type": "TK_EOF", "value": "EOF" }66 ]);67 });68 it('should return tokens for basic modulo', () => {69 expect(scanner.scan('1%1')).toEqual([70 { "type": "TK_NUMBER", "value": 1 },71 { "type": "TK_MOD", "value": "%" },72 { "type": "TK_NUMBER", "value": 1 },73 { "type": "TK_EOF", "value": "EOF" }74 ]);75 });76 it('should return tokens for basic power', () => {77 expect(scanner.scan('1^1')).toEqual([78 { "type": "TK_NUMBER", "value": 1 },79 { "type": "TK_POWER", "value": "^" },80 { "type": "TK_NUMBER", "value": 1 },81 { "type": "TK_EOF", "value": "EOF" }82 ]);83 });84 it('should return tokens for basic parenthesis', () => {85 expect(scanner.scan('(1 * 1)')).toEqual([86 { "type": "TK_OPEN_PAREN", "value": "(" },87 { "type": "TK_NUMBER", "value": 1 },88 { "type": "TK_MULTIPLY", "value": "*" },89 { "type": "TK_NUMBER", "value": 1 },90 { "type": "TK_CLOSE_PAREN", "value": ")" },91 { "type": "TK_EOF", "value": "EOF" }92 ]);93 });94 it('should return tokens for negative numbers', () => {95 expect(scanner.scan('-1 - 1')).toEqual([96 { "type": "TK_MINUS", "value": "-" },97 { "type": "TK_NUMBER", "value": 1 },98 { "type": "TK_MINUS", "value": "-" },99 { "type": "TK_NUMBER", "value": 1 },100 { "type": "TK_EOF", "value": "EOF" }101 ]);102 expect(scanner.scan('-1 - -1')).toEqual([103 { "type": "TK_MINUS", "value": "-" },104 { "type": "TK_NUMBER", "value": 1 },105 { "type": "TK_MINUS", "value": "-" },106 { "type": "TK_MINUS", "value": "-" },107 { "type": "TK_NUMBER", "value": 1 },108 { "type": "TK_EOF", "value": "EOF" }109 ]);110 });111 it('should return tokens for multiple basic operations', () => {112 expect(scanner.scan('1 + 1 - 1 * 1 / 1')).toEqual([113 { "type": "TK_NUMBER", "value": 1 },114 { "type": "TK_PLUS", "value": "+" },115 { "type": "TK_NUMBER", "value": 1 },116 { "type": "TK_MINUS", "value": "-" },117 { "type": "TK_NUMBER", "value": 1 },118 { "type": "TK_MULTIPLY", "value": "*" },119 { "type": "TK_NUMBER", "value": 1 },120 { "type": "TK_DIVIDE", "value": "/" },121 { "type": "TK_NUMBER", "value": 1 },122 { "type": "TK_EOF", "value": "EOF" }123 ]);124 })125 it('should return tokens for numbers with multiple digits', () => {126 expect(scanner.scan('11+111')).toEqual([127 { "type": "TK_NUMBER", "value": 11 },128 { "type": "TK_PLUS", "value": "+" },129 { "type": "TK_NUMBER", "value": 111 },130 { "type": "TK_EOF", "value": "EOF" }131 ]);132 });133 it('should return tokens for real numbers', () => {134 expect(scanner.scan('1.5 + 2.55')).toEqual([135 { "type": "TK_NUMBER", "value": 1.5 },136 { "type": "TK_PLUS", "value": "+" },137 { "type": "TK_NUMBER", "value": 2.55 },138 { "type": "TK_EOF", "value": "EOF" }139 ]);140 });141 it('should return tokens while ignoring other words', () => {142 expect(scanner.scan('what is 1 + 1 - 1 johnny?')).toEqual([143 { "type": "TK_NUMBER", "value": 1 },144 { "type": "TK_PLUS", "value": "+" },145 { "type": "TK_NUMBER", "value": 1 },146 { "type": "TK_MINUS", "value": "-" },147 { "type": "TK_NUMBER", "value": 1 },148 { "type": "TK_EOF", "value": "EOF" }149 ]);150 });...

Full Screen

Full Screen

error-codes.js

Source:error-codes.js Github

copy

Full Screen

1'use strict';2module.exports = {3 controlCharacterInInputStream: 'control-character-in-input-stream',4 noncharacterInInputStream: 'noncharacter-in-input-stream',5 surrogateInInputStream: 'surrogate-in-input-stream',6 nonVoidHtmlElementStartTagWithTrailingSolidus: 'non-void-html-element-start-tag-with-trailing-solidus',7 endTagWithAttributes: 'end-tag-with-attributes',8 endTagWithTrailingSolidus: 'end-tag-with-trailing-solidus',9 unexpectedSolidusInTag: 'unexpected-solidus-in-tag',10 unexpectedNullCharacter: 'unexpected-null-character',11 unexpectedQuestionMarkInsteadOfTagName: 'unexpected-question-mark-instead-of-tag-name',12 invalidFirstCharacterOfTagName: 'invalid-first-character-of-tag-name',13 unexpectedEqualsSignBeforeAttributeName: 'unexpected-equals-sign-before-attribute-name',14 missingEndTagName: 'missing-end-tag-name',15 unexpectedCharacterInAttributeName: 'unexpected-character-in-attribute-name',16 unknownNamedCharacterReference: 'unknown-named-character-reference',17 missingSemicolonAfterCharacterReference: 'missing-semicolon-after-character-reference',18 unexpectedCharacterAfterDoctypeSystemIdentifier: 'unexpected-character-after-doctype-system-identifier',19 unexpectedCharacterInUnquotedAttributeValue: 'unexpected-character-in-unquoted-attribute-value',20 eofBeforeTagName: 'eof-before-tag-name',21 eofInTag: 'eof-in-tag',22 missingAttributeValue: 'missing-attribute-value',23 missingWhitespaceBetweenAttributes: 'missing-whitespace-between-attributes',24 missingWhitespaceAfterDoctypePublicKeyword: 'missing-whitespace-after-doctype-public-keyword',25 missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:26 'missing-whitespace-between-doctype-public-and-system-identifiers',27 missingWhitespaceAfterDoctypeSystemKeyword: 'missing-whitespace-after-doctype-system-keyword',28 missingQuoteBeforeDoctypePublicIdentifier: 'missing-quote-before-doctype-public-identifier',29 missingQuoteBeforeDoctypeSystemIdentifier: 'missing-quote-before-doctype-system-identifier',30 missingDoctypePublicIdentifier: 'missing-doctype-public-identifier',31 missingDoctypeSystemIdentifier: 'missing-doctype-system-identifier',32 abruptDoctypePublicIdentifier: 'abrupt-doctype-public-identifier',33 abruptDoctypeSystemIdentifier: 'abrupt-doctype-system-identifier',34 cdataInHtmlContent: 'cdata-in-html-content',35 incorrectlyOpenedComment: 'incorrectly-opened-comment',36 eofInScriptHtmlCommentLikeText: 'eof-in-script-html-comment-like-text',37 eofInDoctype: 'eof-in-doctype',38 nestedComment: 'nested-comment',39 abruptClosingOfEmptyComment: 'abrupt-closing-of-empty-comment',40 eofInComment: 'eof-in-comment',41 incorrectlyClosedComment: 'incorrectly-closed-comment',42 eofInCdata: 'eof-in-cdata',43 absenceOfDigitsInNumericCharacterReference: 'absence-of-digits-in-numeric-character-reference',44 nullCharacterReference: 'null-character-reference',45 surrogateCharacterReference: 'surrogate-character-reference',46 characterReferenceOutsideUnicodeRange: 'character-reference-outside-unicode-range',47 controlCharacterReference: 'control-character-reference',48 noncharacterCharacterReference: 'noncharacter-character-reference',49 missingWhitespaceBeforeDoctypeName: 'missing-whitespace-before-doctype-name',50 missingDoctypeName: 'missing-doctype-name',51 invalidCharacterSequenceAfterDoctypeName: 'invalid-character-sequence-after-doctype-name',52 duplicateAttribute: 'duplicate-attribute',53 nonConformingDoctype: 'non-conforming-doctype',54 missingDoctype: 'missing-doctype',55 misplacedDoctype: 'misplaced-doctype',56 endTagWithoutMatchingOpenElement: 'end-tag-without-matching-open-element',57 closingOfElementWithOpenChildElements: 'closing-of-element-with-open-child-elements',58 disallowedContentInNoscriptInHead: 'disallowed-content-in-noscript-in-head',59 openElementsLeftAfterEof: 'open-elements-left-after-eof',60 abandonedHeadElementChild: 'abandoned-head-element-child',61 misplacedStartTagForHeadElement: 'misplaced-start-tag-for-head-element',62 nestedNoscriptInHead: 'nested-noscript-in-head',63 eofInElementThatCanContainOnlyText: 'eof-in-element-that-can-contain-only-text'...

Full Screen

Full Screen

buffer.js

Source:buffer.js Github

copy

Full Screen

1var Buffer = HTML5.Buffer = function Buffer() {2 this.data = '';3 this.start = 0;4 this.committed = 0;5 this.eof = false;6};7Buffer.prototype = {8 slice: function() {9 if(this.start >= this.data.length) {10 if(!this.eof) throw HTML5.DRAIN;11 return HTML5.EOF;12 }13 return this.data.slice(this.start, this.data.length);14 },15 char: function() {16 if(!this.eof && this.start >= this.data.length - 1) throw HTML5.DRAIN;17 if(this.start >= this.data.length) {18 return HTML5.EOF;19 }20 return this.data[this.start++];21 },22 advance: function(amount) {23 this.start += amount;24 if(this.start >= this.data.length) {25 if(!this.eof) throw HTML5.DRAIN;26 return HTML5.EOF;27 } else {28 if(this.committed > this.data.length / 2) {29 // Sliiiide30 this.data = this.data.slice(this.committed);31 this.start = this.start - this.committed;32 this.committed = 0;33 }34 }35 },36 matchWhile: function(re) {37 if(this.eof && this.start >= this.data.length ) return '';38 var r = new RegExp("^"+re+"+");39 var m = r.exec(this.slice());40 if(m) {41 if(!this.eof && m[0].length == this.data.length - this.start) throw HTML5.DRAIN;42 this.advance(m[0].length);43 return m[0];44 } else {45 return '';46 }47 },48 matchUntil: function(re) {49 var m, s;50 s = this.slice();51 if(s === HTML5.EOF) {52 return '';53 } else if(m = new RegExp(re + (this.eof ? "|\0|$" : "|\0")).exec(this.slice())) {54 var t = this.data.slice(this.start, this.start + m.index);55 this.advance(m.index);56 return t.toString();57 } else {58 throw HTML5.DRAIN;59 }60 },61 append: function(data) {62 this.data += data;63 },64 shift: function(n) {65 if(!this.eof && this.start + n >= this.data.length) throw HTML5.DRAIN;66 if(this.eof && this.start >= this.data.length) return HTML5.EOF;67 var d = this.data.slice(this.start, this.start + n).toString();68 this.advance(Math.min(n, this.data.length - this.start));69 return d;70 },71 peek: function(n) {72 if(!this.eof && this.start + n >= this.data.length) throw HTML5.DRAIN;73 if(this.eof && this.start >= this.data.length) return HTML5.EOF;74 return this.data.slice(this.start, Math.min(this.start + n, this.data.length)).toString();75 },76 length: function() {77 return this.data.length - this.start - 1;78 },79 unget: function(d) {80 if(d === HTML5.EOF) return;81 this.start -= (d.length);82 },83 undo: function() {84 this.start = this.committed;85 },86 commit: function() {87 this.committed = this.start;88 }...

Full Screen

Full Screen

test.js

Source:test.js Github

copy

Full Screen

1var assert = require('assert');2describe('options/eof-newline', function() {3 it('Invalid value should not change trim trailing brac', function() {4 this.comb.configure({ 'eof-newline': 'foobar' });5 assert.equal(6 this.comb.processString('a { color: red } \n'),7 'a { color: red } \n'8 );9 });10 it('Boolean true value should insert line-break at eof', function() {11 this.comb.configure({ 'eof-newline': true });12 assert.equal(13 this.comb.processString(14 'a {color:red} '15 ),16 'a {color:red} \n'17 );18 });19 it('Boolean false value should remove line-break from eof', function() {20 this.comb.configure({ 'eof-newline': false });21 assert.equal(22 this.comb.processString(23 'a {color:red} \n'24 ),25 'a {color:red} '26 );27 });28 it('Shouldn’t detect eof newline', function() {29 this.shouldDetect(30 ['eof-newline'],31 'a { color: red }',32 {33 'eof-newline': false34 }35 );36 });37 it('Should detect eof newline', function() {38 this.shouldDetect(39 ['eof-newline'],40 'a { color: red }\n',41 {42 'eof-newline': true43 }44 );45 });46 it('Shouldn’t detect eof newline with spaces at the end', function() {47 this.shouldDetect(48 ['eof-newline'],49 'a { color: red } ',50 {51 'eof-newline': false52 }53 );54 });55 it('Should detect eof newline with mixed spaces at the end', function() {56 this.shouldDetect(57 ['eof-newline'],58 'a { color: red } \n ',59 {60 'eof-newline': true61 }62 );63 });...

Full Screen

Full Screen

diagnostic.js

Source:diagnostic.js Github

copy

Full Screen

1/*2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4 *5 * This code is free software; you can redistribute it and/or modify it6 * under the terms of the GNU General Public License version 2 only, as7 * published by the Free Software Foundation.8 *9 * This code is distributed in the hope that it will be useful, but WITHOUT10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12 * version 2 for more details (a copy is included in the LICENSE file that13 * accompanied this code).14 *15 * You should have received a copy of the GNU General Public License version16 * 2 along with this work; if not, write to the Free Software Foundation,17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18 *19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20 * or visit www.oracle.com if you need additional information or have any21 * questions.22 */23/**24 * @test25 * @bug 806830426 * @option -scripting27 * @run28 */29load(__DIR__ + "utils.js")30var code = <<EOF31 var a = { k:1, k:2 }32EOF33parseDiagnostic(code, "-strict")34var code = <<EOF35 var x = {}36 with(x) {}37EOF38parseDiagnostic(code, "-strict")39var code = <<EOF40 var eval = "test value";41EOF42parseDiagnostic(code, "-strict")43var code = <<EOF44 var arguments = "test value";45EOF46parseDiagnostic(code, "-strict")47var code = <<EOF48 if (true) {49 function a () {}50 }51EOF52parseDiagnostic(code, "-strict")53var code = <<EOF54 var a = { get x() {}, get x() {}};55 var a = { set x() {}, set x() {}};56EOF57parseDiagnostic(code, "-strict")58var code = <<EOF59 /([a-z])+(/;60 /([a-z])+/h;61EOF...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3 if (err) return console.error(err);4 wpt.getTestResults(data.data.testId, function(err, data) {5 if (err) return console.error(err);6 console.log(data.data);7 });8});9var wpt = require('webpagetest');10var wpt = new WebPageTest('www.webpagetest.org');11 if (err) return console.error(err);12 wpt.getTestResults(data.data.testId, function(err, data) {13 if (err) return console.error(err);14 console.log(data.data);15 });16});17var wpt = require('webpagetest');18var wpt = new WebPageTest('www.webpagetest.org');19 if (err) return console.error(err);20 wpt.getTestResults(data.data.testId, function(err, data) {21 if (err) return console.error(err);22 console.log(data.data);23 });24});25var wpt = require('webpagetest');26var wpt = new WebPageTest('www.webpagetest.org');27 if (err) return console.error(err);28 wpt.getTestResults(data.data.testId, function(err, data) {29 if (err) return console.error(err);30 console.log(data.data);31 });32});33var wpt = require('webpagetest');34var wpt = new WebPageTest('www.webpagetest.org');35 if (err) return console.error(err);36 wpt.getTestResults(data.data.testId, function(err, data) {37 if (err) return console.error(err);

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3}, function(err, data) {4 if (err) return console.error(err);5 console.log('Test status:', data.statusText);6 wpt.getTestResults(data.data.testId, function(err, data) {7 if (err) return console.error(err);8 console.log('Test status:', data.statusText);9 if (data.data.completeTime) {10 console.log('Test completed:', data.data.completeTime);11 console.log('View test:', data.data.summary);12 }13 });14});15var wpt = require('webpagetest');16var wpt = new WebPageTest('www.webpagetest.org');17}, function(err, data) {18 if (err) return console.error(err);19 console.log('Test status:', data.statusText);20 wpt.getTestResults(data.data.testId, function(err, data) {21 if (err) return console.error(err);22 console.log('Test status:', data.statusText);23 if (data.data.completeTime) {24 console.log('Test completed:', data.data.completeTime);25 console.log('View test:', data.data.summary);26 }27 });28});29var wpt = require('webpagetest');30var wpt = new WebPageTest('www.webpagetest.org');

Full Screen

Using AI Code Generation

copy

Full Screen

1wpt = new WebPageTest('www.webpagetest.org');2 if (err) {3 console.log(err);4 } else {5 console.log(data);6 wpt.getTestResults(data.data.testId, function(err, data) {7 if (err) {8 console.log(err);9 } else {10 console.log(data);11 }12 });13 }14});15wpt = new WebPageTest('www.webpagetest.org');16 if (err) {17 console.log(err);18 } else {19 console.log(data);20 wpt.getTestResults(data.data.testId, function(err, data) {21 if (err) {22 console.log(err);23 } else {24 console.log(data);25 }26 });27 }28});29wpt = new WebPageTest('www.webpagetest.org');30 if (err) {31 console.log(err);32 } else {33 console.log(data);34 wpt.getTestResults(data.data.testId, function(err, data) {35 if (err) {36 console.log(err);37 } else {38 console.log(data);39 }40 });41 }42});43wpt = new WebPageTest('www.webpagetest.org');44 if (err) {45 console.log(err);46 } else {47 console.log(data);48 wpt.getTestResults(data.data.testId, function(err, data) {49 if (err) {50 console.log(err);51 } else {52 console.log(data);53 }54 });55 }56});57wpt = new WebPageTest('www.webpagetest.org');58 if (err) {

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var wptClient = new wpt('WPT_API_KEY');3 if (err) {4 console.log(err);5 } else {6 wptClient.testStatus(data.data.testId, function(err, data) {7 if (err) {8 console.log(err);9 } else {10 console.log(data);11 }12 });13 }14});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptoolkit = require('wptoolkit');2var util = require('util');3var fs = require('fs');4wpt.login(function() {5 console.log('logged in');6 wpt.uploadFile('test.jpg', function() {7 console.log('uploaded');8 wpt.editPost('test', 'test', 'test.jpg', function() {9 console.log('post created');10 wpt.logout(function() {11 console.log('logged out');12 });13 });14 });15});16var wptoolkit = require('wptoolkit');17var util = require('util');18var fs = require('fs');19wpt.login(function() {20 console.log('logged in');21 wpt.uploadFile('test.jpg', function() {22 console.log('uploaded');23 wpt.uploadFile('test2.jpg', function() {24 console.log('uploaded');25 wpt.editPost('test', 'test', 'test.jpg,test2.jpg', function() {26 console.log('post created');27 wpt.logout(function() {28 console.log('logged out');29 });30 });31 });32 });33});34Copyright (c) 2013 Pradeep Kumar

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful