From 9fceff7e785bb234971b443809eef3da9051c598 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Jan 2019 16:30:17 -0800 Subject: Added (SyntaxTree {...} ...) shorthand for SyntaxTree{..., ...} and added some shebangs. --- lib/core/operators.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/core/operators.nom') diff --git a/lib/core/operators.nom b/lib/core/operators.nom index dee76b6..912b7c1 100644 --- a/lib/core/operators.nom +++ b/lib/core/operators.nom @@ -85,7 +85,7 @@ test: set global x local y unless (($foozle == "inner") and ($y == "outer")): fail "external failed." (external $var = $value) compiles to: - $lua = ((SyntaxTree {.type = "Action", .source = $var.source, .1 = $var, .2 = "=", .3 = $value}) as lua) + $lua = ((SyntaxTree {.type = "Action", .source = $var.source} $var "=" $value) as lua) $lua, remove free vars return $lua test: -- cgit v1.2.3