2011-08-08 14:17:33 -07:00
|
|
|
import std::option;
|
|
|
|
import base::*;
|
|
|
|
import syntax::ast;
|
2011-09-01 17:27:58 -07:00
|
|
|
import std::str;
|
2011-08-08 14:17:33 -07:00
|
|
|
|
|
|
|
fn expand_syntax_ext(cx: &ext_ctxt, sp: codemap::span, arg: @ast::expr,
|
2011-08-26 18:48:08 -07:00
|
|
|
_body: &option::t<istr>) -> @ast::expr {
|
2011-08-08 14:17:33 -07:00
|
|
|
|
|
|
|
cx.print_backtrace();
|
2011-08-24 21:26:19 -07:00
|
|
|
std::io::stdout().write_line(
|
2011-08-27 01:16:40 -07:00
|
|
|
print::pprust::expr_to_str(arg));
|
2011-08-08 14:17:33 -07:00
|
|
|
|
|
|
|
//trivial expression
|
2011-08-19 15:16:48 -07:00
|
|
|
ret @{id: cx.next_id(), node: ast::expr_rec([], option::none), span: sp};
|
2011-08-12 07:15:18 -07:00
|
|
|
}
|