Add a lot of new stuff to the compile mod

* compile::sym is now compile::name
* add basic block structure
* add visitor pattern
* some other minor things (e.g. syn::ast::prelude)

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-05-19 15:26:38 -04:00
parent c0833086b6
commit 8dc89f7153
9 changed files with 316 additions and 31 deletions

9
src/compile/error.rs Normal file
View File

@@ -0,0 +1,9 @@
use snafu::Snafu;
#[derive(Debug, Snafu)]
pub enum Error {
//#[snafu(display("illegal attr key"))]
}
pub type Result<T, E = Error> = std::result::Result<T, E>;