blob: b4228343755be11d9110c493ecdb95206a39796e (
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(StaticType)]
pub fn derive_type(input: TokenStream) -> TokenStream {
derive::derive_type(input)
}
|