package sqlgg
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
SQL Guided (code) Generator
Install
dune-project
Dependency
Authors
Maintainers
Sources
sqlgg-20260721.tbz
sha256=40d7699187951dd2f17d885c4f4f04124930bf7dc1119d4cca322c5f0cb42d8e
sha512=e7c90683cddcff3ca0ba9de9e40c2c4c69923ea62e2647f1a70083e42ed00b7cab53f8a14d1a965ee4465966bc02fa75fa7cb42e485beae1a9c26bdc252c3665
doc/src/sqlgg.lib/parser_utils.ml.html
Source file parser_utils.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(* Simple wrapper tying together parser and lexer *) module type Parser_type = sig type token type result val input : (Lexing.lexbuf -> token) -> Lexing.lexbuf -> result val rule : Lexing.lexbuf -> token end exception Error of exn * (int * int * string * string) module Make(T : Parser_type) = struct let parse_buf_exn lexbuf = Parser_state.with_lexbuf lexbuf @@ fun () -> try T.input T.rule lexbuf with exn -> begin let curr = lexbuf.Lexing.lex_curr_p in let line = curr.Lexing.pos_lnum in let cnum = curr.Lexing.pos_cnum - curr.Lexing.pos_bol in let tok = Lexing.lexeme lexbuf in let tail = Sql_lexer.ruleTail "" lexbuf in raise (Error (exn,(line,cnum,tok,tail))) end let parse_buf lexbuf = try Some (parse_buf_exn lexbuf) with _ -> None let parse_stdin () = parse_buf (Lexing.from_channel stdin) let parse_string str = (*Error.log "Parsing : %s" str; *) parse_buf (Lexing.from_string str) let parse_file filename = let contents = try Std.input_file filename with _ -> "" in parse_string contents end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>