package dose3
Dose library (part of Mancoosi tools)
Install
Dune Dependency
Authors
Maintainers
Sources
dose3-7.0.0.tar.gz
md5=bc99cbcea8fca29dca3ebbee54be45e1
sha512=98dc4bd28e9f4aa8384be71b31783ae1afac577ea587118b8457b554ffe302c98e83d0098971e6b81803ee5c4f2befe3a98ef196d6b0da8feb4121e982ad5c2f
doc/src/dose3.common/shell_lexer.ml.html
Source file shell_lexer.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 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
# 13 "src/common/shell_lexer.mll" exception UnknownShellEscape of string exception UnmatchedChar of char let buf_from_str str = let buf = Buffer.create 16 in Buffer.add_string buf str; buf # 11 "src/common/shell_lexer.ml" let __ocaml_lex_tables = { Lexing.lex_base = "\000\000\245\255\247\255\248\255\001\000\004\000\005\000\249\255\ \250\255\251\255\252\255\253\255\010\000\013\000\248\255\249\255\ \014\000\255\255\009\000\250\255\251\255\252\255\253\255\254\255\ \016\000\017\000\020\000\046\000\253\255\254\255\255\255\047\000\ \249\255\250\255\251\255\018\000\019\000\050\000\253\255\254\255\ \255\255\051\000"; Lexing.lex_backtrk = "\255\255\255\255\255\255\255\255\009\000\001\000\000\000\255\255\ \255\255\255\255\255\255\255\255\255\255\008\000\255\255\255\255\ \009\000\255\255\000\000\255\255\255\255\255\255\255\255\255\255\ \255\255\007\000\008\000\003\000\255\255\255\255\255\255\000\000\ \255\255\255\255\255\255\255\255\004\000\003\000\255\255\255\255\ \255\255\000\000"; Lexing.lex_default = "\005\000\000\000\000\000\000\000\007\000\005\000\255\255\000\000\ \000\000\000\000\000\000\000\000\013\000\013\000\000\000\000\000\ \019\000\000\000\255\255\000\000\000\000\000\000\000\000\000\000\ \025\000\025\000\032\000\255\255\000\000\000\000\000\000\255\255\ \000\000\000\000\000\000\036\000\036\000\255\255\000\000\000\000\ \000\000\255\255"; Lexing.lex_trans = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\006\000\000\000\000\000\000\000\255\255\006\000\000\000\ \000\000\000\000\018\000\018\000\000\000\000\000\255\255\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \006\000\008\000\003\000\011\000\255\255\006\000\255\255\002\000\ \010\000\018\000\018\000\255\255\015\000\255\255\020\000\255\255\ \023\000\014\000\027\000\255\255\255\255\022\000\034\000\031\000\ \031\000\037\000\255\255\041\000\041\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\031\000\031\000\ \029\000\000\000\041\000\041\000\038\000\028\000\000\000\000\000\ \000\000\039\000\000\000\000\000\004\000\009\000\000\000\000\000\ \255\255\000\000\000\000\000\000\000\000\000\000\016\000\000\000\ \000\000\255\255\021\000\000\000\026\000\255\255\000\000\000\000\ \033\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \001\000\255\255\000\000\000\000\255\255\000\000\000\000\000\000\ \000\000\000\000\017\000\000\000\000\000\255\255\255\255\000\000\ \255\255\255\255\255\255\255\255\255\255\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\ \000\000\000\000\000\000\000\000\000\000\000\000\030\000\000\000\ \000\000\000\000\040\000\000\000"; Lexing.lex_check = "\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\000\000\255\255\255\255\255\255\005\000\006\000\255\255\ \255\255\255\255\018\000\012\000\255\255\255\255\013\000\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \000\000\004\000\000\000\004\000\005\000\006\000\005\000\000\000\ \004\000\018\000\012\000\005\000\012\000\013\000\016\000\013\000\ \016\000\012\000\024\000\025\000\013\000\016\000\026\000\027\000\ \031\000\035\000\036\000\037\000\041\000\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\027\000\031\000\ \027\000\255\255\037\000\041\000\037\000\027\000\255\255\255\255\ \255\255\037\000\255\255\255\255\000\000\004\000\255\255\255\255\ \005\000\255\255\255\255\255\255\255\255\255\255\012\000\255\255\ \255\255\013\000\016\000\255\255\024\000\025\000\255\255\255\255\ \026\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \000\000\004\000\255\255\255\255\005\000\255\255\255\255\255\255\ \255\255\255\255\012\000\255\255\255\255\013\000\016\000\255\255\ \024\000\025\000\035\000\036\000\026\000\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\ \255\255\255\255\255\255\255\255\255\255\255\255\027\000\255\255\ \255\255\255\255\037\000\255\255"; Lexing.lex_base_code = ""; Lexing.lex_backtrk_code = ""; Lexing.lex_default_code = ""; Lexing.lex_trans_code = ""; Lexing.lex_check_code = ""; Lexing.lex_code = ""; } let rec shell_command argv lexbuf = __ocaml_lex_shell_command_rec argv lexbuf 0 and __ocaml_lex_shell_command_rec argv lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 26 "src/common/shell_lexer.mll" ( shell_command argv lexbuf ) # 135 "src/common/shell_lexer.ml" | 1 -> # 27 "src/common/shell_lexer.mll" ( uquote argv (buf_from_str (Lexing.lexeme lexbuf)) lexbuf ) # 140 "src/common/shell_lexer.ml" | 2 -> # 28 "src/common/shell_lexer.mll" ( uquote argv (buf_from_str "\"") lexbuf ) # 145 "src/common/shell_lexer.ml" | 3 -> # 29 "src/common/shell_lexer.mll" ( uquote argv (buf_from_str "'") lexbuf ) # 150 "src/common/shell_lexer.ml" | 4 -> # 30 "src/common/shell_lexer.mll" ( uquote argv (buf_from_str "\\") lexbuf ) # 155 "src/common/shell_lexer.ml" | 5 -> # 31 "src/common/shell_lexer.mll" ( uquote argv (buf_from_str " ") lexbuf ) # 160 "src/common/shell_lexer.ml" | 6 -> let # 32 "src/common/shell_lexer.mll" c # 166 "src/common/shell_lexer.ml" = Lexing.sub_lexeme lexbuf lexbuf.Lexing.lex_start_pos (lexbuf.Lexing.lex_start_pos + 2) in # 32 "src/common/shell_lexer.mll" ( raise (UnknownShellEscape c) ) # 170 "src/common/shell_lexer.ml" | 7 -> # 33 "src/common/shell_lexer.mll" ( dquote argv (Buffer.create 16) lexbuf ) # 175 "src/common/shell_lexer.ml" | 8 -> # 34 "src/common/shell_lexer.mll" ( squote argv (Buffer.create 16) lexbuf ) # 180 "src/common/shell_lexer.ml" | 9 -> let # 35 "src/common/shell_lexer.mll" c # 186 "src/common/shell_lexer.ml" = Lexing.sub_lexeme_char lexbuf lexbuf.Lexing.lex_start_pos in # 35 "src/common/shell_lexer.mll" ( raise (UnmatchedChar c) ) # 190 "src/common/shell_lexer.ml" | 10 -> # 36 "src/common/shell_lexer.mll" ( List.rev argv ) # 195 "src/common/shell_lexer.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_shell_command_rec argv lexbuf __ocaml_lex_state and uquote argv buf lexbuf = __ocaml_lex_uquote_rec argv buf lexbuf 12 and __ocaml_lex_uquote_rec argv buf lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 38 "src/common/shell_lexer.mll" ( shell_command ((Buffer.contents buf)::argv) lexbuf ) # 207 "src/common/shell_lexer.ml" | 1 -> # 39 "src/common/shell_lexer.mll" ( Buffer.add_string buf "\""; uquote argv buf lexbuf ) # 212 "src/common/shell_lexer.ml" | 2 -> # 40 "src/common/shell_lexer.mll" ( Buffer.add_string buf "'"; uquote argv buf lexbuf ) # 217 "src/common/shell_lexer.ml" | 3 -> # 41 "src/common/shell_lexer.mll" ( Buffer.add_string buf "\\"; uquote argv buf lexbuf ) # 222 "src/common/shell_lexer.ml" | 4 -> # 42 "src/common/shell_lexer.mll" ( Buffer.add_string buf " "; uquote argv buf lexbuf ) # 227 "src/common/shell_lexer.ml" | 5 -> let # 43 "src/common/shell_lexer.mll" c # 233 "src/common/shell_lexer.ml" = Lexing.sub_lexeme lexbuf lexbuf.Lexing.lex_start_pos (lexbuf.Lexing.lex_start_pos + 2) in # 43 "src/common/shell_lexer.mll" ( raise (UnknownShellEscape c) ) # 237 "src/common/shell_lexer.ml" | 6 -> # 44 "src/common/shell_lexer.mll" ( dquote argv buf lexbuf ) # 242 "src/common/shell_lexer.ml" | 7 -> # 45 "src/common/shell_lexer.mll" ( squote argv buf lexbuf ) # 247 "src/common/shell_lexer.ml" | 8 -> # 46 "src/common/shell_lexer.mll" ( Buffer.add_string buf (Lexing.lexeme lexbuf); uquote argv buf lexbuf ) # 252 "src/common/shell_lexer.ml" | 9 -> let # 47 "src/common/shell_lexer.mll" c # 258 "src/common/shell_lexer.ml" = Lexing.sub_lexeme_char lexbuf lexbuf.Lexing.lex_start_pos in # 47 "src/common/shell_lexer.mll" ( raise (UnmatchedChar c) ) # 262 "src/common/shell_lexer.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_uquote_rec argv buf lexbuf __ocaml_lex_state and dquote argv buf lexbuf = __ocaml_lex_dquote_rec argv buf lexbuf 24 and __ocaml_lex_dquote_rec argv buf lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 49 "src/common/shell_lexer.mll" ( shell_command ((Buffer.contents buf)::argv) lexbuf ) # 274 "src/common/shell_lexer.ml" | 1 -> # 50 "src/common/shell_lexer.mll" ( dquote argv buf lexbuf ) # 279 "src/common/shell_lexer.ml" | 2 -> # 51 "src/common/shell_lexer.mll" ( squote argv buf lexbuf ) # 284 "src/common/shell_lexer.ml" | 3 -> # 52 "src/common/shell_lexer.mll" ( uquote argv buf lexbuf ) # 289 "src/common/shell_lexer.ml" | 4 -> # 53 "src/common/shell_lexer.mll" ( Buffer.add_string buf "\""; dquote argv buf lexbuf ) # 294 "src/common/shell_lexer.ml" | 5 -> # 54 "src/common/shell_lexer.mll" ( Buffer.add_string buf "\\"; dquote argv buf lexbuf ) # 299 "src/common/shell_lexer.ml" | 6 -> let # 55 "src/common/shell_lexer.mll" c # 305 "src/common/shell_lexer.ml" = Lexing.sub_lexeme lexbuf lexbuf.Lexing.lex_start_pos (lexbuf.Lexing.lex_start_pos + 2) in # 55 "src/common/shell_lexer.mll" ( raise (UnknownShellEscape c) ) # 309 "src/common/shell_lexer.ml" | 7 -> # 56 "src/common/shell_lexer.mll" ( Buffer.add_string buf (Lexing.lexeme lexbuf); dquote argv buf lexbuf ) # 314 "src/common/shell_lexer.ml" | 8 -> let # 57 "src/common/shell_lexer.mll" c # 320 "src/common/shell_lexer.ml" = Lexing.sub_lexeme_char lexbuf lexbuf.Lexing.lex_start_pos in # 57 "src/common/shell_lexer.mll" ( raise (UnmatchedChar c) ) # 324 "src/common/shell_lexer.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_dquote_rec argv buf lexbuf __ocaml_lex_state and squote argv buf lexbuf = __ocaml_lex_squote_rec argv buf lexbuf 35 and __ocaml_lex_squote_rec argv buf lexbuf __ocaml_lex_state = match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0 -> # 59 "src/common/shell_lexer.mll" ( shell_command ((Buffer.contents buf)::argv) lexbuf ) # 336 "src/common/shell_lexer.ml" | 1 -> # 60 "src/common/shell_lexer.mll" ( squote argv buf lexbuf ) # 341 "src/common/shell_lexer.ml" | 2 -> # 61 "src/common/shell_lexer.mll" ( dquote argv buf lexbuf ) # 346 "src/common/shell_lexer.ml" | 3 -> # 62 "src/common/shell_lexer.mll" ( uquote argv buf lexbuf ) # 351 "src/common/shell_lexer.ml" | 4 -> # 63 "src/common/shell_lexer.mll" ( Buffer.add_string buf (Lexing.lexeme lexbuf); squote argv buf lexbuf ) # 356 "src/common/shell_lexer.ml" | 5 -> let # 64 "src/common/shell_lexer.mll" c # 362 "src/common/shell_lexer.ml" = Lexing.sub_lexeme_char lexbuf lexbuf.Lexing.lex_start_pos in # 64 "src/common/shell_lexer.mll" ( raise (UnmatchedChar c) ) # 366 "src/common/shell_lexer.ml" | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf; __ocaml_lex_squote_rec argv buf lexbuf __ocaml_lex_state ;; # 66 "src/common/shell_lexer.mll" (** given a (possibly quoted) command string, parse it into an argument vector *) let parse_string str = let lexbuf = Lexing.from_string str in shell_command [] lexbuf # 380 "src/common/shell_lexer.ml"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>