summaryrefslogtreecommitdiff
path: root/dhall/src/grammar_util.rs
blob: 2250acd6451b2534c2267f8db7a37db2e026eb54 (plain)
1
2
3
4
5
6
7
use crate::core::{Expr, X};

pub type ParsedExpr<'i> = Expr<'i, X, X>; // FIXME Parse paths and replace the second X with Path
pub type BoxExpr<'i> = Box<ParsedExpr<'i>>;
pub type ExprOpFn<'i> = fn(BoxExpr<'i>, BoxExpr<'i>) -> ParsedExpr<'i>;
pub type ExprListFn<'i> = fn(BoxExpr<'i>, Vec<ParsedExpr<'i>>) -> ParsedExpr<'i>;