2011-08-08 16:17:33 -05:00
|
|
|
import base::*;
|
2012-03-12 22:04:27 -05:00
|
|
|
import io::writer_util;
|
2011-08-08 16:17:33 -05:00
|
|
|
|
2012-02-01 00:50:12 -06:00
|
|
|
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
|
2012-01-31 21:30:26 -06:00
|
|
|
_body: ast::mac_body) -> @ast::expr {
|
2012-02-01 01:20:31 -06:00
|
|
|
let arg = get_mac_arg(cx,sp,arg);
|
2011-08-08 16:17:33 -05:00
|
|
|
cx.print_backtrace();
|
2012-03-12 22:04:27 -05:00
|
|
|
io::stdout().write_line(print::pprust::expr_to_str(arg));
|
2011-08-08 16:17:33 -05:00
|
|
|
|
|
|
|
//trivial expression
|
2011-08-19 17:16:48 -05:00
|
|
|
ret @{id: cx.next_id(), node: ast::expr_rec([], option::none), span: sp};
|
2011-08-12 09:15:18 -05:00
|
|
|
}
|