package sexplib0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Library containing the definition of S-expressions and some base converters
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
md5=abafe8fd1d6302e55a315f4d78960d2a
sha512=ad387e40789fe70a11473db7e85fe017b801592624414e9030730b2e92ea08f98095fb6e9236430f33c801605ebee0a2a6284e0f618a26a7da4599d4fd9d395d
doc/src/sexplib0/sexp_conv_grammar.ml.html
Source file sexp_conv_grammar.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 41open StdLabels let grammar ~ = List.fold_right tags ~init:grammar ~f:(fun (key, value) grammar -> Sexp_grammar.Tagged { key; value; grammar }) ;; let sexp_grammar_with_tag_list x ~ = List.fold_right tags ~init:x ~f:(fun (key, value) grammar -> Sexp_grammar.Tag { key; value; grammar }) ;; let unit_sexp_grammar : unit Sexp_grammar.t = { untyped = List Empty } let bool_sexp_grammar : bool Sexp_grammar.t = { untyped = Bool } let string_sexp_grammar : string Sexp_grammar.t = { untyped = String } let bytes_sexp_grammar : bytes Sexp_grammar.t = { untyped = String } let char_sexp_grammar : char Sexp_grammar.t = { untyped = Char } let int_sexp_grammar : int Sexp_grammar.t = { untyped = Integer } let float_sexp_grammar : float Sexp_grammar.t = { untyped = Float } let int32_sexp_grammar : int32 Sexp_grammar.t = { untyped = Integer } let int64_sexp_grammar : int64 Sexp_grammar.t = { untyped = Integer } let nativeint_sexp_grammar : nativeint Sexp_grammar.t = { untyped = Integer } let sexp_t_sexp_grammar : Sexp.t Sexp_grammar.t = { untyped = Any "Sexp.t" } let ref_sexp_grammar grammar = Sexp_grammar.coerce grammar let lazy_t_sexp_grammar grammar = Sexp_grammar.coerce grammar let option_sexp_grammar ({ untyped } : _ Sexp_grammar.t) : _ option Sexp_grammar.t = { untyped = Option untyped } ;; let list_sexp_grammar ({ untyped } : _ Sexp_grammar.t) : _ list Sexp_grammar.t = { untyped = List (Many untyped) } ;; let array_sexp_grammar ({ untyped } : _ Sexp_grammar.t) : _ array Sexp_grammar.t = { untyped = List (Many untyped) } ;; let empty_sexp_grammar : _ Sexp_grammar.t = { untyped = Union [] } let opaque_sexp_grammar = empty_sexp_grammar let fun_sexp_grammar = empty_sexp_grammar
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>