From 062fc44a93a18ee432e51db852290ab5849f4dd9 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 23 Mar 2019 23:24:11 +0100 Subject: Handle merge and record projection --- dhall_core/src/core.rs | 15 ++++++++++----- dhall_core/src/parser.rs | 21 +++++++++++++++++---- dhall_core/src/printer.rs | 5 +++++ 3 files changed, 32 insertions(+), 9 deletions(-) (limited to 'dhall_core') diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs index bc5a666..502a9bc 100644 --- a/dhall_core/src/core.rs +++ b/dhall_core/src/core.rs @@ -241,8 +241,10 @@ pub enum Expr { SubExpr, Option>, ), - /// `Field e x ~ e.x` + /// e.x Field(SubExpr, Label), + /// e.{ x, y, z } + Projection(SubExpr, Vec