TOML Value Elaboration #
Elaborates TOML values into Lean data types.
@[inline]
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
Instances For
Strings & Simple Keys #
Instances For
partial def
Lake.Toml.elabBasicStringCore
(lit : String)
(i : String.Pos := 0)
(out : String := "")
:
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
@[inline]
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 α)
Instances For
def
Lake.Toml.elabInlineTable
(x : Lean.TSyntax `Lake.Toml.inlineTable)
(elabVal : Lean.TSyntax `Lake.Toml.val → Lean.CoreM Lake.Toml.Value)
: