diff options
author | Nadrieril | 2019-09-09 22:42:46 +0200 |
---|---|---|
committer | Nadrieril | 2019-09-09 22:42:46 +0200 |
commit | accaf45aa77099654f94319ed1fb12855dd568b4 (patch) | |
tree | a56ca7ee9fc2b7a5dc7bb7fb5451f8b0255129c3 /dhall_proc_macros | |
parent | 595a52018e31126ecbf1be49794750f1a59a66b1 (diff) |
Move pest_consume macros into their own crate
Diffstat (limited to '')
-rw-r--r-- | dhall_proc_macros/src/lib.rs | 19 | ||||
-rw-r--r-- | pest_consume_macros/src/make_parser.rs (renamed from dhall_proc_macros/src/make_parser.rs) | 0 | ||||
-rw-r--r-- | pest_consume_macros/src/parse_children.rs (renamed from dhall_proc_macros/src/parse_children.rs) | 0 |
3 files changed, 0 insertions, 19 deletions
diff --git a/dhall_proc_macros/src/lib.rs b/dhall_proc_macros/src/lib.rs index 37e8f9f..5304429 100644 --- a/dhall_proc_macros/src/lib.rs +++ b/dhall_proc_macros/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(drain_filter)] //! This crate contains the code-generation primitives for the [dhall-rust][dhall-rust] crate. //! This is highly unstable and breaks regularly; use at your own risk. //! @@ -7,8 +6,6 @@ extern crate proc_macro; mod derive; -mod make_parser; -mod parse_children; use proc_macro::TokenStream; @@ -16,19 +13,3 @@ use proc_macro::TokenStream; pub fn derive_static_type(input: TokenStream) -> TokenStream { derive::derive_static_type(input) } - -#[proc_macro_attribute] -pub fn make_parser(attrs: TokenStream, input: TokenStream) -> TokenStream { - TokenStream::from(match make_parser::make_parser(attrs, input) { - Ok(tokens) => tokens, - Err(err) => err.to_compile_error(), - }) -} - -#[proc_macro] -pub fn parse_children(input: TokenStream) -> TokenStream { - TokenStream::from(match parse_children::parse_children(input) { - Ok(tokens) => tokens, - Err(err) => err.to_compile_error(), - }) -} diff --git a/dhall_proc_macros/src/make_parser.rs b/pest_consume_macros/src/make_parser.rs index c0594a5..c0594a5 100644 --- a/dhall_proc_macros/src/make_parser.rs +++ b/pest_consume_macros/src/make_parser.rs diff --git a/dhall_proc_macros/src/parse_children.rs b/pest_consume_macros/src/parse_children.rs index d6474a7..d6474a7 100644 --- a/dhall_proc_macros/src/parse_children.rs +++ b/pest_consume_macros/src/parse_children.rs |