Changes
2 changed files (+3/-5)
-
-
@@ -5,11 +5,10 @@ def ofHex a b := let f (x : Char) := x.toNat - (if x.toNat ≤ '9'.toNat then '016 * (f a) + (f b) |> Char.ofNat def main := do let keysym := (← IO.FS.readFile "keysymdef.h").split "\n" |>.toStringList let keysym := (← IO.FS.lines "keysymdef.h") |>.map (fun l : String ↦ (ofHex (String.Pos.Raw.get! l ⟨45⟩) (String.Pos.Raw.get! l ⟨46⟩), Substring.Raw.mk l ⟨11⟩ ⟨30⟩ |>.takeWhile (· ≠ ' ') |>.toString)) |> Std.HashMap.ofList |> Std.HashMap.ofArray IO.println "# Generated by https://git.unnamed.website/miscelleaneous/tree/Compose.lean" IO.println "include \"%L\"" let raw_abbrs ← IO.Process.run { cmd := "curl", args := #["https://raw.githubusercontent.com/vasnesterov/vscode-lean4/refs/heads/master/lean4-unicode-input/src/abbreviations.json"] }
-
-
-
@@ -2,13 +2,12 @@ import Std.Timeopen Std.Time def parse_csv filename (parse_row : List String → Option α) := do return (← IO.FS.readFile filename).split "\n" |>.map (fun (l : String.Slice) ↦ return (← IO.FS.lines filename) |>.map (fun (l : String) ↦ l.replace "\\," "\n" |>.split "," |>.toList |>.map fun (s : String.Slice) ↦ s.replace "\n" ",") |>.filterMap parse_row |>.toArray instance : LT (DateTime TimeZone.UTC) := ltOfOrd instance : LE PlainDate := leOfOrd
-