Fixed macro system by reintroducing MacTok::Resolved
This commit is contained in:
@@ -173,7 +173,7 @@ async fn print_exprkind<'a>(
|
||||
None => format!("Bottom(\n\t{}\n)", indent(&e.to_string())).into(),
|
||||
},
|
||||
ExprKind::Call(f, x) => tl_cache!(Rc<Variants>: Rc::new(Variants::default()
|
||||
.unbounded("{0b} {1l}")
|
||||
// .unbounded("{0b} {1l}")
|
||||
.bounded("({0b} {1})")))
|
||||
.units([print_expr(f, c, visited, id_only).await, print_expr(x, c, visited, id_only).await]),
|
||||
ExprKind::Identity(id) =>
|
||||
|
||||
@@ -195,6 +195,14 @@ impl Extension {
|
||||
})
|
||||
.await
|
||||
},
|
||||
api::ExprReq::ExprPrint(prt @ api::ExprPrint { target }) => {
|
||||
let msg = match ctx.exprs.get_expr(target) {
|
||||
None => "EXPIRED_TICKET".into(),
|
||||
Some(expr) => expr.print(&FmtCtxImpl::default()).await,
|
||||
}
|
||||
.to_api();
|
||||
handle.reply(&prt, &msg).await
|
||||
},
|
||||
api::ExprReq::Create(cre) => {
|
||||
let req = Witness::of(&cre);
|
||||
let api::Create(sys, expr) = cre;
|
||||
|
||||
Reference in New Issue
Block a user