diff options
author | Nadrieril | 2019-03-04 18:26:28 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-04 18:26:28 +0100 |
commit | c1c21e3ae53ffdbc639fa950093baa60e710e022 (patch) | |
tree | 90db36bc1eef7756f1b88138a92174cf603adacd /dhall/src/grammar_util.rs | |
parent | 24d3e235399ef421723cd597fe7a9408c3da54ec (diff) |
Make some annotations optional in AST
Diffstat (limited to 'dhall/src/grammar_util.rs')
-rw-r--r-- | dhall/src/grammar_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/grammar_util.rs b/dhall/src/grammar_util.rs index 2250acd..c185632 100644 --- a/dhall/src/grammar_util.rs +++ b/dhall/src/grammar_util.rs @@ -3,5 +3,5 @@ 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>; +pub type ExprListFn<'i> = fn(Option<BoxExpr<'i>>, Vec<ParsedExpr<'i>>) -> ParsedExpr<'i>; |