rust/src/comp/syntax/ext/log_syntax.rs

15 lines
407 B
Rust
Raw Normal View History

import std::option;
import base::*;
import syntax::ast;
import std::str;
fn expand_syntax_ext(cx: &ext_ctxt, sp: codemap::span, arg: @ast::expr,
2011-09-02 15:34:58 -07:00
_body: &option::t<str>) -> @ast::expr {
cx.print_backtrace();
2011-09-02 15:34:58 -07:00
std::io::stdout().write_line(print::pprust::expr_to_str(arg));
//trivial expression
ret @{id: cx.next_id(), node: ast::expr_rec([], option::none), span: sp};
}