package pyast
Python AST
Install
Dune Dependency
Authors
Maintainers
Sources
v0.1.0.tar.gz
sha512=11603fc03eb6f32ceb2ea3c0107b682aba96794490cfbf5c2cb369c67a0428515f63da56d4a3b4981390f6bca33ce6c8dffea2110d346fec0b7ac618deead4e7
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)"
>