提交 5aabe7e8 编写于 作者: B Brian Anderson

Add partial pretty-printing for syntax extensions

上级 fa2525a7
......@@ -512,8 +512,17 @@
wrd1(s, "check");
print_expr(s, expr);
}
case (ast.expr_ext(?path, ?args, ?body, _, _)) {
wrd(s, "#");
print_path(s, path);
if (_vec.len[@ast.expr](args) > 0u) {
popen(s);
commasep[@ast.expr](s, args, pe);
pclose(s);
}
// TODO: extension 'body'
}
case (_) {wrd(s, "X");}
// TODO expr_ext(path, vec[@expr], option.t[@expr], @expr, ann);
}
end(s);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册