Zulip Chat Archive
Stream: metaprogramming / tactics
Topic: Debugging metaprogramming in TermElabM
Segev Elazar Mittelman (Sep 30 2025 at 20:46):
How do I evaluate the result of a TermElabM to do unit testing of my metaprogramming?
For instance, how do I get this to work?
#eval (do pure $ Lean.Elab.Term.elabType (← constructorExprToTSyntaxTerm (.Ctor ``String [])))
Aaron Liu (Sep 30 2025 at 21:03):
if you have a t : TermElabM Expr you can use by_elab t
Segev Elazar Mittelman (Oct 01 2025 at 13:41):
Thank you!
Last updated: Dec 20 2025 at 21:32 UTC