Split out the AST and codegen into the wasm-bindgen-backend crate

This commit is contained in:
Nick Fitzgerald
2018-03-29 09:14:32 -07:00
parent 79ef5979f4
commit 0bd54480c6
7 changed files with 860 additions and 846 deletions

25
crates/backend/src/lib.rs Executable file
View File

@ -0,0 +1,25 @@
#![recursion_limit = "128"]
extern crate proc_macro2;
#[macro_use]
extern crate quote;
#[macro_use]
extern crate syn;
extern crate wasm_bindgen_shared as shared;
macro_rules! my_quote {
($($t:tt)*) => (quote_spanned!(Span::call_site() => $($t)*))
}
pub mod ast;
mod codegen;
mod literal;
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}