TOML Expression Elaboration #
Elaborates top-level TOML syntax into a Lean Toml.Table
.
The manner in which a TOML key was declared.
- value: Lake.Toml.KeyTy
A key declared via
key = v
. - stdTable: Lake.Toml.KeyTy
A key declared via
[key]
. - array: Lake.Toml.KeyTy
A key declared via
[[key]]
. - dottedPrefix: Lake.Toml.KeyTy
A key declared via
key.foo
. - headerPrefix: Lake.Toml.KeyTy
A key declared via
[key.foo]
or[[key.foo]]
.
Instances For
Equations
- Lake.Toml.instToStringKeyTy = { toString := Lake.Toml.KeyTy.toString }
- ref : Lean.Syntax
- key : Lean.Name
- val : Lake.Toml.Value
Instances For
- keyTys : Lean.NameMap Lake.Toml.KeyTy
- arrKeyTys : Lean.NameMap (Lean.NameMap Lake.Toml.KeyTy)
- arrParents : Lean.NameMap Lean.Name
- currArrKey : Lean.Name
- currKey : Lean.Name
- items : Array Lake.Toml.Keyval
Instances For
Equations
- Lake.Toml.instInhabitedElabState = { default := { keyTys := default, arrKeyTys := default, arrParents := default, currArrKey := default, currKey := default, items := default } }
@[reducible, inline]
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Instances For
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
Construct a table of simple key-value pairs from arbitrary key-value pairs.
For example:
{a.b := [c.d := 0]}, {a.b := [c.e := 1]}
becomes
{a := {b := [{c := {d := 0, e := 1}}]}}
Instances For
partial def
Lake.Toml.mkSimpleTable.insert
(t : Lake.Toml.Table)
(kRef : Lean.Syntax)
(k : Lean.Name)
(ks : List Lean.Name)
(newV : Lake.Toml.Value)
:
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.