2011-08-08 16:17:33 -05:00
|
|
|
import base::*;
|
|
|
|
import syntax::ast;
|
2012-01-11 08:15:54 -06:00
|
|
|
import std::io::writer_util;
|
2011-08-08 16:17:33 -05:00
|
|
|
|
2011-09-12 04:27:30 -05:00
|
|
|
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: @ast::expr,
|
2012-01-31 21:30:26 -06:00
|
|
|
_body: ast::mac_body) -> @ast::expr {
|
2011-08-08 16:17:33 -05:00
|
|
|
|
|
|
|
cx.print_backtrace();
|
2011-09-02 17:34:58 -05:00
|
|
|
std::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
|
|
|
}
|