File: .lake/packages/lean4/src/lean/lake/Lake/Toml/Elab/Expression.lean

full_name: Lake.Toml.KeyTy.array
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Lake.Toml.KeyTy

full_name: Lake.Toml.KeyTy.value
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Lake.Toml.KeyTy

full_name: Lake.Toml.instInhabitedKeyTy
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Inhabited Lake.Toml.KeyTy

full_name: Lake.Toml.KeyTy.stdTable
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Lake.Toml.KeyTy

full_name: Lake.Toml.KeyTy.headerPrefix
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Lake.Toml.KeyTy

full_name: Lake.Toml.KeyTy.dottedPrefix
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Lake.Toml.KeyTy

full_name: Lake.Toml.KeyTy
code: /-- The manner in which a TOML key was declared. -/
inductive KeyTy
/-- A key declared via `key = v`. -/
| value
/-- A key declared via `[key]`. -/
| stdTable
/-- A key declared via `[[key]]`. -/
| array
/-- A key declared via `key.foo`. -/
| dottedPrefix
/-- A key declared via `[key.foo]` or `[[key.foo]]`. -/
| headerPrefix
deriving Inhabited
goal: Type

full_name: Lake.Toml.KeyTy.toString
code: protected def KeyTy.toString (ty : KeyTy) 
goal: String

full_name: Lake.Toml.instToStringKeyTy
code: instance : ToString KeyTy 
goal: ToString Lake.Toml.KeyTy

full_name: Lake.Toml.KeyTy.isValidPrefix
code: def KeyTy.isValidPrefix (ty : KeyTy) 
goal: Bool

full_name: Lake.Toml.Keyval.ref
code: structure Keyval where
  ref : Syntax
  key : Name
  val : Value
goal: Lean.Syntax

full_name: Lake.Toml.Keyval.val
code: structure Keyval where
  ref : Syntax
  key : Name
  val : Value
goal: Lake.Toml.Value

full_name: Lake.Toml.Keyval
code: structure Keyval where
  ref : Syntax
  key : Name
  val : Value
goal: Type

full_name: Lake.Toml.Keyval.key
code: structure Keyval where
  ref : Syntax
  key : Name
  val : Value
goal: Lean.Name

full_name: Lake.Toml.ElabState.items
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Array Lake.Toml.Keyval

full_name: Lake.Toml.ElabState.keyTys
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Lean.NameMap Lake.Toml.KeyTy

full_name: Lake.Toml.ElabState.arrKeyTys
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Lean.NameMap (Lean.NameMap Lake.Toml.KeyTy)

full_name: Lake.Toml.ElabState.currKey
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Lean.Name

full_name: Lake.Toml.ElabState.currArrKey
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Lean.Name

full_name: Lake.Toml.ElabState
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Type

full_name: Lake.Toml.ElabState.arrParents
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Lean.NameMap Lean.Name

full_name: Lake.Toml.instInhabitedElabState
code: structure ElabState where
  keyTys : NameMap KeyTy := {}
  arrKeyTys : NameMap (NameMap KeyTy) := {}
  arrParents : NameMap Name := {}
  currArrKey : Name := .anonymous
  currKey : Name := .anonymous
  items : Array Keyval := {}
  deriving Inhabited
goal: Inhabited Lake.Toml.ElabState

full_name: Lake.Toml.TomlElabM
code: abbrev TomlElabM 
goal: Type

full_name: Lake.Toml.elabSubKeys
code: def elabSubKeys (ks : Array (TSyntax ``simpleKey)) : TomlElabM Name 
goal: Lake.Toml.TomlElabM Lean.Name

full_name: Lake.Toml.elabKeyval
code: def elabKeyval (kv : TSyntax ``keyval) : TomlElabM Unit 
goal: Lake.Toml.TomlElabM Unit

full_name: Lake.Toml.elabHeaderKeys
code: def elabHeaderKeys (ks : Array (TSyntax ``simpleKey)) : TomlElabM Name 
goal: Lake.Toml.TomlElabM Lean.Name

full_name: Lake.Toml.elabStdTable
code: def elabStdTable (x : TSyntax ``stdTable) : TomlElabM Unit 
goal: Lake.Toml.TomlElabM Unit

full_name: Lake.Toml.elabArrayTable
code: def elabArrayTable (x : TSyntax ``arrayTable) : TomlElabM Unit 
goal: Lake.Toml.TomlElabM Unit

full_name: Lake.Toml.elabExpression
code: def elabExpression (x : TSyntax ``expression) : TomlElabM Unit 
goal: Lake.Toml.TomlElabM Unit

full_name: Lake.Toml.mkSimpleTable
code: /--
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}}]}}`
-/
partial def mkSimpleTable (items : Array Keyval) : Table 
goal: Lake.Toml.Table

full_name: Lake.Toml.mkSimpleTable.insert
code: /--
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}}]}}`
-/
partial def mkSimpleTable (items : Array Keyval) : Table 
goal: Lake.Toml.Table

full_name: Lake.Toml.mkSimpleTable.simpVal
code: /--
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}}]}}`
-/
partial def mkSimpleTable (items : Array Keyval) : Table 
goal: Lake.Toml.Value → Lake.Toml.Value

full_name: Lake.Toml.TomlElabM.run
code: nonrec def TomlElabM.run (x : TomlElabM Unit) : CoreM Table 
goal: Lean.CoreM Lake.Toml.Table

full_name: Lake.Toml.elabToml
code: def elabToml (x : TSyntax ``toml) : CoreM Table 
goal: Lean.CoreM Lake.Toml.Table