2011-08-08 21:17:33 +00:00
|
|
|
import base::*;
|
|
|
|
import syntax::ast;
|
2012-01-11 14:15:54 +00:00
|
|
|
import std::io::writer_util;
|
2011-08-08 21:17:33 +00:00
|
|
|
|
2011-09-12 09:27:30 +00:00
|
|
|
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: @ast::expr,
|
2012-02-01 03:30:26 +00:00
|
|
|
_body: ast::mac_body) -> @ast::expr {
|
2011-08-08 21:17:33 +00:00
|
|
|
|
|
|
|
cx.print_backtrace();
|
2011-09-02 22:34:58 +00:00
|
|
|
std::io::stdout().write_line(print::pprust::expr_to_str(arg));
|
2011-08-08 21:17:33 +00:00
|
|
|
|
|
|
|
//trivial expression
|
2011-08-19 22:16:48 +00:00
|
|
|
ret @{id: cx.next_id(), node: ast::expr_rec([], option::none), span: sp};
|
2011-08-12 14:15:18 +00:00
|
|
|
}
|