blob: e67f2aadd32b43514a70866e48b41f912ab26f8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
extern crate proc_macro;
mod derive;
mod quote;
use proc_macro::TokenStream;
// Deprecated
#[proc_macro]
pub fn dhall_expr(input: TokenStream) -> TokenStream {
subexpr(input)
}
#[proc_macro]
pub fn expr(input: TokenStream) -> TokenStream {
quote::expr(input)
}
#[proc_macro]
pub fn subexpr(input: TokenStream) -> TokenStream {
quote::subexpr(input)
}
#[proc_macro_derive(SimpleStaticType)]
pub fn derive_simple_static_type(input: TokenStream) -> TokenStream {
derive::derive_simple_static_type(input)
}
|