summaryrefslogtreecommitdiff
path: root/src/grammar_util.rs
blob: cbd1e59ee57f6c43f07e69a12ed6904561641ad6 (plain)
1
2
3
4
5
6
7
8
use core::Expr;

pub type BoxExpr = Box<Expr<(), ()>>;
pub type ExprOpFn = fn(BoxExpr, BoxExpr) -> Expr<(), ()>;

pub fn bx<T>(x: T) -> Box<T> {
    Box::new(x)
}