Hi,
I want to write a syntax extension that operates on Rust AST, not on
individual tokens. For example:
fn foo() {
...
my_ext!{
<statement1>;
<statement2>;
...
}
...
}
where <statement 1..N> are normal Rust statements.
I want to get the AST for code enclosed inside my extension block,
transform it, and insert in place of the original node(s).
Any pointers to where to start? Are there any existing extensions that do
something close to what I want?
Vadim
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev