blob: c855702de0ce211daec4d95b061eda9a8bfc43a3 [file]
Input: "%%%\nfoo := 1\nbar := 2\n%%%"
Success! Final stack:
(Lean.Doc.Parser.Block.metadata_block
"%%%"
(Term.structInstFields
[(Term.structInstField
(Term.structInstLVal `foo [])
[[]
[]
(Term.structInstFieldDef
":="
[]
(num "1"))])
[]
(Term.structInstField
(Term.structInstLVal `bar [])
[[]
[]
(Term.structInstFieldDef
":="
[]
(num "2"))])
[]])
"%%%")
All input consumed.
Round-trip OK
Decoded views:
metadata (opener := "%%%") (fields := 2) (closer := "%%%")