package tezt
Test framework for unit tests, integration tests, and regression tests
Install
Dune Dependency
Authors
Maintainers
Sources
tezt-4.1.0.tar.bz2
md5=88c2d9d3da75ff554599bc34cbf5acbe
sha512=e60294514ecc4a989ce663ebb306e56f654dcfaffb7dbe5e3f05f5a13c9c2ff64dadde4a77b0d9a8567a76a6a7a2b25e0940ccd2a956ffcb85ff9300bfebe3bc
doc/src/tezt.core/TSL_parser.ml.html
Source file TSL_parser.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
type token = | STRING of ( # 26 "lib_core/TSL_parser.mly" string # 6 "lib_core/TSL_parser.ml" ) | SLASH_STRING of ( # 26 "lib_core/TSL_parser.mly" string # 11 "lib_core/TSL_parser.ml" ) | TRUE | FALSE | EQUAL | NOT_EQUAL | MATCHES | NOT_MATCHES | LPAR | RPAR | NOT | OR | AND | EOF open Parsing let _ = parse_error;; # 9 "lib_core/TSL_parser.mly" open Base open TSL_AST let rex s = try rex s with Re.Perl.Parse_error -> failwith ("invalid regular expression: " ^ s) let string_var = function | "file" -> File | "title" -> Title | var -> failwith ("unknown value: " ^ var) # 44 "lib_core/TSL_parser.ml" let yytransl_const = [| 259 (* TRUE *); 260 (* FALSE *); 261 (* EQUAL *); 262 (* NOT_EQUAL *); 263 (* MATCHES *); 264 (* NOT_MATCHES *); 265 (* LPAR *); 266 (* RPAR *); 267 (* NOT *); 268 (* OR *); 269 (* AND *); 0 (* EOF *); 0|] let yytransl_block = [| 257 (* STRING *); 258 (* SLASH_STRING *); 0|] let yylhs = "\255\255\ \001\000\002\000\002\000\002\000\002\000\002\000\002\000\002\000\ \002\000\002\000\002\000\002\000\002\000\002\000\000\000" let yylen = "\002\000\ \002\000\001\000\001\000\003\000\003\000\002\000\001\000\001\000\ \001\000\003\000\003\000\003\000\003\000\003\000\002\000" let yydefred = "\000\000\ \000\000\000\000\000\000\009\000\002\000\003\000\000\000\000\000\ \015\000\000\000\000\000\000\000\000\000\000\000\000\000\006\000\ \000\000\000\000\001\000\010\000\011\000\012\000\013\000\014\000\ \000\000\004\000" let yydgoto = "\002\000\ \009\000\010\000" let yysindex = "\255\255\ \013\255\000\000\020\255\000\000\000\000\000\000\013\255\013\255\ \000\000\007\000\003\255\009\255\017\255\018\255\252\254\000\000\ \013\255\013\255\000\000\000\000\000\000\000\000\000\000\000\000\ \007\255\000\000" let yyrindex = "\000\000\ \000\000\000\000\001\000\000\000\000\000\000\000\000\000\005\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \011\000\000\000" let yygindex = "\000\000\ \000\000\251\255" let yytablesize = 279 let yytable = "\001\000\ \008\000\015\000\016\000\020\000\007\000\024\000\019\000\017\000\ \018\000\021\000\005\000\025\000\026\000\003\000\004\000\005\000\ \006\000\022\000\023\000\018\000\000\000\007\000\000\000\008\000\ \011\000\012\000\013\000\014\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\008\000\000\000\008\000\008\000\007\000\000\000\ \007\000\007\000\017\000\018\000\005\000\000\000\005\000" let yycheck = "\001\000\ \000\000\007\000\008\000\001\001\000\000\010\001\000\000\012\001\ \013\001\001\001\000\000\017\000\018\000\001\001\002\001\003\001\ \004\001\001\001\001\001\013\001\255\255\009\001\255\255\011\001\ \005\001\006\001\007\001\008\001\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\010\001\255\255\012\001\013\001\010\001\255\255\ \012\001\013\001\012\001\013\001\010\001\255\255\012\001" let yynames_const = "\ TRUE\000\ FALSE\000\ EQUAL\000\ NOT_EQUAL\000\ MATCHES\000\ NOT_MATCHES\000\ LPAR\000\ RPAR\000\ NOT\000\ OR\000\ AND\000\ EOF\000\ " let yynames_block = "\ STRING\000\ SLASH_STRING\000\ " let yyact = [| (fun _ -> failwith "parser") ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 1 : 'expr) in Obj.repr( # 40 "lib_core/TSL_parser.mly" ( _1 ) # 199 "lib_core/TSL_parser.ml" : TSL_AST.t)) ; (fun __caml_parser_env -> Obj.repr( # 44 "lib_core/TSL_parser.mly" ( True ) # 205 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> Obj.repr( # 46 "lib_core/TSL_parser.mly" ( False ) # 211 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : 'expr) in let _3 = (Parsing.peek_val __caml_parser_env 0 : 'expr) in Obj.repr( # 48 "lib_core/TSL_parser.mly" ( And (_1, _3) ) # 219 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : 'expr) in let _3 = (Parsing.peek_val __caml_parser_env 0 : 'expr) in Obj.repr( # 50 "lib_core/TSL_parser.mly" ( Or (_1, _3) ) # 227 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _2 = (Parsing.peek_val __caml_parser_env 0 : 'expr) in Obj.repr( # 52 "lib_core/TSL_parser.mly" ( Not _2 ) # 234 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> Obj.repr( # 54 "lib_core/TSL_parser.mly" ( Has_tag "not" ) # 240 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 56 "lib_core/TSL_parser.mly" ( Has_tag _1 ) # 247 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 58 "lib_core/TSL_parser.mly" ( Not (Has_tag _1) ) # 254 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : string) in let _3 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 60 "lib_core/TSL_parser.mly" ( String_predicate (string_var _1, Is _3) ) # 262 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : string) in let _3 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 62 "lib_core/TSL_parser.mly" ( Not (String_predicate (string_var _1, Is _3)) ) # 270 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : string) in let _3 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 64 "lib_core/TSL_parser.mly" ( String_predicate (string_var _1, Matches (rex _3)) ) # 278 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _1 = (Parsing.peek_val __caml_parser_env 2 : string) in let _3 = (Parsing.peek_val __caml_parser_env 0 : string) in Obj.repr( # 66 "lib_core/TSL_parser.mly" ( Not (String_predicate (string_var _1, Matches (rex _3))) ) # 286 "lib_core/TSL_parser.ml" : 'expr)) ; (fun __caml_parser_env -> let _2 = (Parsing.peek_val __caml_parser_env 1 : 'expr) in Obj.repr( # 68 "lib_core/TSL_parser.mly" ( _2 ) # 293 "lib_core/TSL_parser.ml" : 'expr)) (* Entry expression *) ; (fun __caml_parser_env -> raise (Parsing.YYexit (Parsing.peek_val __caml_parser_env 0))) |] let yytables = { Parsing.actions=yyact; Parsing.transl_const=yytransl_const; Parsing.transl_block=yytransl_block; Parsing.lhs=yylhs; Parsing.len=yylen; Parsing.defred=yydefred; Parsing.dgoto=yydgoto; Parsing.sindex=yysindex; Parsing.rindex=yyrindex; Parsing.gindex=yygindex; Parsing.tablesize=yytablesize; Parsing.table=yytable; Parsing.check=yycheck; Parsing.error_function=parse_error; Parsing.names_const=yynames_const; Parsing.names_block=yynames_block } let expression (lexfun : Lexing.lexbuf -> token) (lexbuf : Lexing.lexbuf) = (Parsing.yyparse yytables 1 lexfun lexbuf : TSL_AST.t)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>