package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
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
open! 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 ;; end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>