From facd2c587d96510c5a808f19d37b40c1fc2d2618 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 11 Nov 2019 17:20:48 +0000 Subject: Parse projection by expression --- dhall_syntax/src/core/expr.rs | 2 ++ dhall_syntax/src/core/visitor.rs | 5 +++++ dhall_syntax/src/parser.rs | 27 +++++++++++++++------------ dhall_syntax/src/printer.rs | 8 +++++++- 4 files changed, 29 insertions(+), 13 deletions(-) (limited to 'dhall_syntax') diff --git a/dhall_syntax/src/core/expr.rs b/dhall_syntax/src/core/expr.rs index 750b58b..131f97e 100644 --- a/dhall_syntax/src/core/expr.rs +++ b/dhall_syntax/src/core/expr.rs @@ -223,6 +223,8 @@ pub enum ExprF { Field(SubExpr, Label), /// `e.{ x, y, z }` Projection(SubExpr, DupTreeSet