package pyast
Python AST
Install
Dune Dependency
Authors
Maintainers
Sources
v0.1.1.tar.gz
sha512=7f8d19d2c87b7ad0da3d58ae68177701fe7271d62a9a5bc13630d069ed643b50d8307e1fde34998c171f5410a5f9d8ff115234e8d2b34ccb10eb36752e9e90d8
doc/src/pyast.utils/pyast_utils.ml.html
Source file pyast_utils.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module Version = struct type t = { major : int; minor : int; subminor : int; } [@@deriving refl] let parse (s : string) : t = try Scanf.sscanf s "%d.%d.%d" (fun major minor subminor -> { major; minor; subminor }) with End_of_file -> Scanf.sscanf s "%d.%d" (fun major minor -> { major; minor; subminor = 0 }) let to_string { major; minor; subminor } : string = Printf.sprintf "%d.%d.%d" major minor subminor end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>