From 6c1a739687f706cf6630c55f8d53c92aacaf6e3d Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 24 Mar 2019 14:05:16 +0100 Subject: Disallow builtins as bound variables --- dhall_core/src/parser.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'dhall_core') diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index 3f53c49..4f26b0f 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -266,6 +266,14 @@ make_parser! { [simple_label(l)] => l, [quoted_label(l)] => l, )); + rule!(unreserved_label