lean4-htt/tests/lean/parser1.lean.expected.out
2018-09-28 20:50:18 -07:00

156 lines
4.1 KiB
Text

result:
[(module.header [(module.prelude "prelude")] []) (eoi "")]
result:
[(module.header [] [(module.import "import" [(module.import_path [] `me)])])
(eoi "")]
error at line 1, column 0:
expected command
partial syntax tree:
[(module.header [] []) (eoi "")]
error at line 1, column 6:
unexpected end of file
expected identifier
partial syntax tree:
[(module.header
[]
[(module.import "import" [(module.import_path [] <missing>) <missing>])
<missing>])
(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)])])
(eoi "")]
result:
[(module.header [] [])
(command.open
"open"
[(command.open_spec `me [] [] [] []) (command.open_spec `you [] [] [] [])])
(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] ")")])])
(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 [] [] [] [])])
(eoi "")]
error at line 1, column 5:
expected identifier
error at line 1, column 9:
unexpected end of file
expected identifier
partial syntax tree:
[(module.header [] [])
(command.open
"open"
[(command.open_spec <missing> <missing> <missing> <missing> <missing>)
<missing>])
(command.open
"open"
[(command.open_spec <missing> <missing> <missing> <missing> <missing>)
<missing>])
(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 [] [] [] [])])
(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])
(eoi "")]
result:
[(module.header [] [])
(command.section "section" [`a])
(command.end "end" [])
(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)))
(term.ident `u []))
(term.ident `v [])))
(eoi "")]
(ok "notationa`+`:65 b:65 :=nat.addab")
error at line 332, column 16:
expected "scoped"
register_notation_tokens: unreachable
error at line 1228, column 0:
expected identifier or number
error at line 1232, column 0:
unexpected token "{"
expected term
error at line 1239, column 0:
unexpected token "{"
expected term
error at line 1361, column 10:
expected identifier
error at line 1458, column 40:
unexpected token ":="
expected ")"
error at line 1462, column 41:
unexpected token ":="
expected ")"
error at line 1466, column 50:
unexpected token ":="
expected ")"
error at line 1470, column 55:
unexpected token ":="
expected ")"
error at line 1475, column 6:
unexpected token "infix"
expected "attribute"
error at line 1530, column 9:
expected "(", "{", "⦃", "{{", "[" or "⟨"
error at line 1531, column 9:
expected "(", "{", "⦃", "{{", "[" or "⟨"
error at line 1532, column 9:
expected "(", "{", "⦃", "{{", "[" or "⟨"
error at line 1533, column 6:
unexpected token "infix"
expected "attribute"
error at line 1534, column 6:
unexpected token "postfix"
expected "attribute"
error at line 1534, column 19:
expected number
register_notation_tokens: unreachable
error at line 1535, column 9:
expected "(", "{", "⦃", "{{", "[" or "⟨"
error at line 1536, column 6:
unexpected token "infix"
expected "attribute"
error at line 1542, column 18:
unexpected end of file
expected "(", "{", "⦃", "{{", "[", "⟨", ":", ":=", "." or "|"