lean4-htt/tests/playground/frontend1.lean

8 lines
239 B
Text

import init.lean.elaborator
open Lean
def main (xs : List String) : IO Unit :=
do contents ← IO.readTextFile xs.head;
(env, messages) ← testFrontend contents xs.head;
messages.toList.mfor $ fun msg => IO.println msg;
pure ()