2011-11-10 16:41:42 +00:00
|
|
|
import std::{option};
|
2011-08-08 21:17:33 +00:00
|
|
|
import base::*;
|
|
|
|
import syntax::ast;
|
|
|
|
|
2011-09-12 09:27:30 +00:00
|
|
|
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: @ast::expr,
|
|
|
|
_body: option::t<str>) -> @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
|
|
|
}
|