lean4-htt/tests/lean/run/frontend1.lean
2019-12-08 17:59:11 -08:00

18 lines
382 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Init.Lean.Elab
open Lean
open Lean.Elab
def run (input : String) : IO Unit :=
do (env, messages) ← testFrontend input;
messages.toList.forM $ fun msg => IO.println msg;
pure ()
#eval run
"import Init.Core
universe u universe v
section namespace foo.bla end bla end foo
variable (p q : Prop)
variable (_ b : _)
variable {α : Type}
-- variable [Monad m]
end"