package dolmen
A parser library for automated deduction
Install
Dune Dependency
Authors
Maintainers
Sources
dolmen-0.8.tbz
sha256=3ee4b4b028b18ab0066cb4648fa14cd4d628a3afd79455f85fb796a9969ac80c
sha512=06d455f0221814dae44d9d8614cab7c1d4fb43a383e603a92ffc9cf4a753d42c5f2a0f3c5ae64aa6cf02da769c4666b130443ae2cf8fa0918c906d46e0caec9a
doc/src/dolmen.std/namespace.ml.html
Source file namespace.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
(* This file is free software, part of dolmen. See file "LICENSE" for more information. *) (* Type definitions *) (* ************************************************************************* *) type value = | Integer | Rational | Real | Binary | Hexadecimal | Bitvector | String type t = | Var | Sort | Term | Attr | Decl | Track | Value of value (* Creation functions *) (* ************************************************************************* *) let var = Var let sort = Sort let term = Term let attr = Attr let decl = Decl let track = Track (* Std functions *) (* ************************************************************************* *) let value_discr = function | Integer -> 0 | Rational -> 1 | Real -> 2 | Binary -> 3 | Hexadecimal -> 4 | Bitvector -> 5 | String -> 6 let discr = function | Var -> 0 | Sort -> 1 | Term -> 2 | Attr -> 3 | Decl -> 4 | Track -> 5 | Value v -> 6 + value_discr v let hash a = Hashtbl.hash a let compare a b = compare (discr a) (discr b) let equal a b = a == b || compare a b = 0 let print_value fmt = function | Integer -> Format.fprintf fmt "int" | Rational -> Format.fprintf fmt "rat" | Real -> Format.fprintf fmt "real" | Binary -> Format.fprintf fmt "bin" | Hexadecimal -> Format.fprintf fmt "hex" | Bitvector -> Format.fprintf fmt "bitv" | String -> Format.fprintf fmt "string" let print fmt = function | Var -> Format.fprintf fmt "var" | Sort -> Format.fprintf fmt "sort" | Term -> Format.fprintf fmt "term" | Attr -> Format.fprintf fmt "attr" | Decl -> Format.fprintf fmt "decl" | Track -> Format.fprintf fmt "track" | Value value -> Format.fprintf fmt "value:%a" print_value value (* Map *) (* ************************************************************************* *) module Map = Maps.Make(struct type nonrec t = t let compare = compare end)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>