package lambdapi
Proof assistant for the λΠ-calculus modulo rewriting
Install
dune-project
Dependency
Authors
Maintainers
Sources
lambdapi-2.3.0.tbz
sha256=9b13c3121ef87cf4d3311a8a1db43db4be7f0e5e2a702fdaff04a3b3c432cb31
sha512=81e0760ca77cb862a5bdb8927aa37faf7141c4e2484a8163dad0a3eaa21cc691acb5f72279c78588c085f53dde4bd35186346378feac0ab55ac06a679cf2e60f
doc/src/lambdapi.common/escape.ml.html
Source file escape.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
(** Escaped identifiers ["{|...|}"]. *) (** [is_escaped s] tells if [s] begins with ["{|"] and ends with ["|}"] without overlapping. For efficiency, we just test that it starts with ['{']. *) let is_escaped : string -> bool = fun s -> s <> "" && s.[0] = '{' (** [unescape s] removes ["{|"] and ["|}"] if [s] is an escaped identifier. *) let unescape : string -> string = fun s -> if is_escaped s then String.(sub s 2 (length s - 4)) else s (** [p] is assumed to be a regular identifier. If [n] is a regular identifier too, then [add_prefix p n] is just [p ^ n]. Otherwise, it is ["{|" ^ p ^ unescape n ^ "|}"]. *) let add_prefix : string -> string -> string = fun p n -> if is_escaped n then "{|" ^ p ^ unescape n ^ "|}" else p ^ n (** [s] is assumed to be a regular identifier. If [n] is a regular identifier too, then [add_suffix n s] is just [n ^ s]. Otherwise, it is ["{" ^ unescape n ^ s ^ "|}"]. *) let add_suffix : string -> string -> string = fun n s -> if is_escaped n then "{|" ^ unescape n ^ s ^ "|}" else n ^ s
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>