feat: Add direct expression to string
This commit is contained in:
parent
c0e2a592ea
commit
394fb73137
|
@ -23,9 +23,11 @@ def isInaccessible (n: Name) : Bool := n.isInaccessibleUserName || n.hasMacroSco
|
||||||
|
|
||||||
@[export pantograph_mk_app_m]
|
@[export pantograph_mk_app_m]
|
||||||
def mkAppM (constName : Name) (xs : Array Expr) : MetaM Expr := Meta.mkAppM constName xs
|
def mkAppM (constName : Name) (xs : Array Expr) : MetaM Expr := Meta.mkAppM constName xs
|
||||||
@[export pantograph_mk_app_m_expr]
|
@[export pantograph_mk_app_expr_m]
|
||||||
def mkAppM' (f: Expr) (xs : Array Expr) : MetaM Expr := Meta.mkAppM' f xs
|
def mkAppM' (f: Expr) (xs : Array Expr) : MetaM Expr := Meta.mkAppM' f xs
|
||||||
|
|
||||||
|
@[export pantograph_expr_to_string]
|
||||||
|
def exprToString (e: Expr): String := toString e
|
||||||
@[export pantograph_pp_expr_m]
|
@[export pantograph_pp_expr_m]
|
||||||
def ppExpr (e: Expr): MetaM String := toString <$> Meta.ppExpr e
|
def ppExpr (e: Expr): MetaM String := toString <$> Meta.ppExpr e
|
||||||
@[export pantograph_get_used_constants]
|
@[export pantograph_get_used_constants]
|
||||||
|
|
Loading…
Reference in New Issue