lean4-htt/tests/lean/parser1.lean.expected.out

100 lines
2.8 KiB
Text

result:
[(module.header [(module.prelude "prelude")] []) (module.eoi "")]
result:
[(module.header [] [(module.import "import" [(module.import_path [] `me)])])
(module.eoi "")]
error at line 1, column 0:
expected command
partial syntax tree:
[(module.header [] []) (module.eoi "")]
error at line 1, column 6:
unexpected end of input
expected "." or identifier
partial syntax tree:
[(module.header
[]
[(module.import "import" [(module.import_path [] <missing>) <missing>])
<missing>])
(module.eoi "")]
result:
[(module.header
[(module.prelude "prelude")]
[(module.import
"import"
[(module.import_path ["." "."] `a) (module.import_path [] `b)])
(module.import "import" [(module.import_path [] `c)])])
(module.eoi "")]
result:
[(module.header [] [])
(command.open
"open"
[(command.open_spec `me [] [] [] []) (command.open_spec `you [] [] [] [])])
(module.eoi "")]
result:
[(module.header [] [])
(command.open
"open"
[(command.open_spec
`me
[(command.open_spec.as "as" `you)]
[(command.open_spec.only ["(" `a] [`b `c] ")")]
[(command.open_spec.renaming
["(" "renaming"]
[(command.open_spec.renaming.item `a "->" `b)
(command.open_spec.renaming.item `c "->" `d)]
")")]
[(command.open_spec.hiding "(" "hiding" [`a `b] ")")])])
(module.eoi "")]
error at line 1, column 11:
expected command
partial syntax tree:
[(module.header [] [])
(command.open
"open"
[(command.open_spec `me [] [] [] []) (command.open_spec `you [] [] [] [])])
(module.eoi "")]
error at line 1, column 5:
expected identifier
error at line 1, column 9:
unexpected end of input
expected identifier
partial syntax tree:
[(module.header [] [])
(command.open "open" [<missing> <missing>])
(command.open "open" [<missing> <missing>])
(module.eoi "")]
error at line 1, column 8:
expected command
partial syntax tree:
[(module.header [] [])
(command.open "open" [(command.open_spec `me [] [] [] [])])
(command.open "open" [(command.open_spec `you [] [] [] [])])
(module.eoi "")]
result:
[(module.header [] [])
(command.open "open" [(command.open_spec `a [] [] [] [])])
(command.section "section" [`b])
(command.open "open" [(command.open_spec `c [] [] [] [])])
(command.section "section" [`d])
(command.open "open" [(command.open_spec `e [] [] [] [])])
(command.end "end" [`d])
(command.end "end" [`b])
(module.eoi "")]
result:
[(module.header [] [])
(command.section "section" [`a])
(command.end "end" [])
(module.eoi "")]
Type (max u v) : Type ((max u v)+1)
result:
[(module.header [] [])
(command.check
"#check"
(term.app
(term.app
(term.sort_app (term.sort (1 "Type")) (level.leading (0 `max)))
(ident_univs `u []))
(ident_univs `v [])))
(module.eoi "")]
(ok (some "notationa`+`:65 b:65 :=nat.addab"))
parser1.lean:140:0: warning: using 'exit' to interrupt Lean