From 63ed265157de8ff91dee606b0e61e52214a4083b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 2 Oct 2017 19:00:58 -0700 Subject: More progress towards making everything work. --- lib/secrets.nom | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/secrets.nom') diff --git a/lib/secrets.nom b/lib/secrets.nom index 4c3dca6..76bf6b3 100644 --- a/lib/secrets.nom +++ b/lib/secrets.nom @@ -2,14 +2,14 @@ require "lib/core.nom" compile [with secrets %block] to code: ".." |do; - | local secrets = {} + | local secrets = {}; | \(%block as lua statements) |end; # Access the lua variable that should be within scope compile [secrets] to: "secrets" -compile [secret %key; secret value of %key; secret value for %key] to: +compile [secret %key, secret value of %key, secret value for %key] to: assert ((%key's "type") == "Var") ".." |Wrong type, expected Var, but got: \(%key's "type") "secrets[\(repr (%key's "value"))]" @@ -17,6 +17,7 @@ compile [secret %key; secret value of %key; secret value for %key] to: compile [secret %key = %new_value] to code: assert ((%key's "type") == "Var") ".." |Wrong type, expected Var, but got: \(%key's "type") - "secrets[\(repr (%key's "value"))] = \(%new_value as lua)" + "secrets[\(repr (%key's "value"))] = \(%new_value as lua);" rule [rules about secrecy] =: ["with secrets %"] + -- cgit v1.2.3