lean4-htt/tests/lean/ppSyntax.lean
Sebastian Ullrich c1d75e21ea fix: fix pretty printers for imported ParserDescrs
... by interpreting them (imported or not) on the fly instead of storing them in the environment

/cc @leodemoura
2020-11-07 17:05:07 +01:00

9 lines
175 B
Text

import Lean
open Lean
def test (stx : Unhygienic Syntax) : MetaM Unit :=
PrettyPrinter.ppTerm stx.run >>= IO.println
-- test imported `ParserDescr`
#eval test `(s!"hi!")