package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb
doc/src/bonsai.web_ui_auto_generated/grammar_helper.ml.html
Source file grammar_helper.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 27open! Core module Tags = struct type t = Sexp.t String.Map.t let rec : type a. a Sexp_grammar.with_tag_list -> a = function | Sexp_grammar.No_tag a -> a | Tag { grammar; _ } -> strip_tags grammar ;; let (type a) (grammar : a Sexp_grammar.with_tag_list) = let rec recurse accum = function | Sexp_grammar.No_tag a -> a, accum | Tag { key; value; grammar } -> recurse (Map.set accum ~key ~data:value) grammar in recurse String.Map.empty grammar ;; let find_doc_tag t = let%map.Option sexp = Map.find t Ppx_sexp_conv_lib.Sexp_grammar.doc_comment_tag in match sexp with | Sexp.Atom str -> str | List _ -> Sexp.to_string_hum sexp ;; let is_empty = Map.is_empty end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>