Add codegen crate for schala-lang
This commit is contained in:
parent
3b20b9e209
commit
1b60bd38ff
@ -11,6 +11,7 @@ maaru-lang = { path = "maaru" }
|
|||||||
rukka-lang = { path = "rukka" }
|
rukka-lang = { path = "rukka" }
|
||||||
robo-lang = { path = "robo" }
|
robo-lang = { path = "robo" }
|
||||||
schala-lang = { path = "schala-lang/language" }
|
schala-lang = { path = "schala-lang/language" }
|
||||||
|
codegen = { path = "schala-lang/codegen" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
includedir_codegen = "0.2.0"
|
includedir_codegen = "0.2.0"
|
||||||
|
12
schala-lang/codegen/Cargo.toml
Normal file
12
schala-lang/codegen/Cargo.toml
Normal 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"
|
11
schala-lang/codegen/src/lib.rs
Normal file
11
schala-lang/codegen/src/lib.rs
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user