summaryrefslogtreecommitdiff
path: root/dhall_generator/src/lib.rs
blob: b52c454a393a75ca8d3bde92526de88a0f85e13b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate proc_macro;

mod dhall_expr;
mod dhall_type;

use proc_macro::TokenStream;

#[proc_macro]
pub fn dhall_expr(input: TokenStream) -> TokenStream {
    dhall_expr::dhall_expr(input)
}

#[proc_macro_derive(DhallType)]
pub fn derive_dhall_type(input: TokenStream) -> TokenStream {
    dhall_type::derive_dhall_type(input)
}