TOML Value Elaboration #
Elaborates TOML values into Lean data types.
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Numerals #
Equations
Instances For
Equations
- Lake.Toml.decodeDecInt s = match Lake.Toml.decodeSign s with | (sign, s) => if sign = true then Int.negOfNat (Lake.Toml.decodeDecNum s) else Int.ofNat (Lake.Toml.decodeDecNum s)
Instances For
Equations
- Lake.Toml.elabDecInt x = do let __do_lift ← Lake.Toml.elabLit x "decimal integer" pure (Lake.Toml.decodeDecInt __do_lift)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.Toml.elabFloat x = do let __do_lift ← Lake.Toml.elabLit x "float" pure (Lake.Toml.decodeFloat __do_lift)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Strings & Simple Keys #
Equations
- Lake.Toml.elabLiteralString x = do let __do_lift ← Lake.Toml.elabLit x "literalString" pure ((__do_lift.drop 1).dropRight 1)
Instances For
Equations
- Lake.Toml.decodeHexDigits s = Substring.foldl (fun (n : Nat) (c : Char) => n * 16 + Lake.Toml.decodeHexDigit c) 0 s
Instances For
partial def
Lake.Toml.elabBasicStringCore
(lit : String)
(i : String.Pos := 0)
(out : String := "")
:
Equations
- Lake.Toml.elabBasicString x = do let spelling ← Lake.Toml.elabLit x "basic string" Lean.withRef x.raw (Lake.Toml.elabBasicStringCore ((spelling.drop 1).dropRight 1))
Instances For
Equations
- Lake.Toml.elabMlLiteralString x = do let spelling ← Lake.Toml.elabLit x "multi-line literal string" pure (Lake.Toml.dropInitialNewline ((spelling.drop 3).dropRight 3))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Complex Values #
def
Lake.Toml.elabArray
{α : Type}
(x : Lean.TSyntax `Lake.Toml.array)
(elabVal : Lean.TSyntax `Lake.Toml.val → Lean.CoreM α)
:
Lean.CoreM (Array α)
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lake.Toml.elabInlineTable
(x : Lean.TSyntax `Lake.Toml.inlineTable)
(elabVal : Lean.TSyntax `Lake.Toml.val → Lean.CoreM Lake.Toml.Value)
:
Equations
- One or more equations did not get rendered due to their size.