summaryrefslogtreecommitdiff
path: root/dhall_generator/src/lib.rs
blob: d720b679d15acdba0ccdabdf4576c43e0ca30c1a (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(Type)]
pub fn derive_type(input: TokenStream) -> TokenStream {
    dhall_type::derive_type(input)
}