diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 16:30:17 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 16:32:11 -0800 |
| commit | 9fceff7e785bb234971b443809eef3da9051c598 (patch) | |
| tree | 4ed1193c95d07a2f88ab5bd71c1ac2e491f82e6e /lib/core | |
| parent | 5eb1b276adef1ec0755f170380f5b67bb465cee2 (diff) | |
Added (SyntaxTree {...} ...) shorthand for SyntaxTree{..., ...} and
added some shebangs.
Diffstat (limited to 'lib/core')
| -rw-r--r-- | lib/core/init.nom | 1 | ||||
| -rw-r--r-- | lib/core/operators.nom | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/init.nom b/lib/core/init.nom index 0c8051d..5b1074f 100644 --- a/lib/core/init.nom +++ b/lib/core/init.nom @@ -1,3 +1,4 @@ +#!/usr/bin/env nomsu -V6.14.13.8 # Export everything export "core/metaprogramming" export "core/operators" 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: |
