Add codegen crate for schala-lang

This commit is contained in:
greg 2018-10-17 15:29:32 -07:00
parent 3b20b9e209
commit 1b60bd38ff
3 changed files with 24 additions and 0 deletions

View File

@ -11,6 +11,7 @@ maaru-lang = { path = "maaru" }
rukka-lang = { path = "rukka" }
robo-lang = { path = "robo" }
schala-lang = { path = "schala-lang/language" }
codegen = { path = "schala-lang/codegen" }
[build-dependencies]
includedir_codegen = "0.2.0"

View File

@ -0,0 +1,12 @@
[package]
name = "codegen"
version = "0.1.0"
authors = ["greg <greg.shuflin@protonmail.com>"]
edition = "2018"
[lib]
proc-macro = true
[dependencies]
syn = { version = "0.15.6", features = ["full", "extra-traits"] }
quote = "0.6.8"

View File

@ -0,0 +1,11 @@
extern crate proc_macro;
#[macro_use]
extern crate quote;
extern crate syn;
use self::proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn parser_function(attr: TokenStream, item: TokenStream) -> TokenStream {
item
}