aboutsummaryrefslogtreecommitdiff
path: root/core/scopes.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-02 15:17:48 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-11-02 15:17:49 -0700
commit0f17c5eb9ac4660f2f969bd1e67af42713e45eac (patch)
tree279ca7da2de0efe2f363684f3c84a540635f11a8 /core/scopes.nom
parentacd9c2acd4688f2301b091daad910c04e402bd6a (diff)
parentdc41f30c73c9686685e3a4183c1213fb4ba55c90 (diff)
Merge branch 'master' into working
Diffstat (limited to 'core/scopes.nom')
-rw-r--r--core/scopes.nom12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/scopes.nom b/core/scopes.nom
index c01a361..2d86ca4 100644
--- a/core/scopes.nom
+++ b/core/scopes.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V4.8.8.6
+#!/usr/bin/env nomsu -V4.8.10
#
This file contains definitions pertaining to variable scoping
@@ -14,19 +14,19 @@ test:
assume (%x == "inner")
assume (%x == "outer")
- action [foo] "outer foo"
- with local [action (foo)]:
- action [foo] "inner foo"
+ externally (foo) means "outer foo"
+ with local [(foo)'s meaning]:
+ externally (foo) means "inner foo"
assume ((foo) == "inner foo")
assume ((foo) == "outer foo")
-compile [with local %locals %body, with local %locals do %body] to:
+[with local %locals %body, with local %locals do %body] all compile to:
%body_lua = (%body as lua statements)
if %locals.type is:
"Dict":
%body_lua = (..)
Lua "\
- ..\(compile as (<- %locals))
+ ..\(what (<- %locals) compiles to)
\%body_lua"
%body_lua::declare locals ("\(%.1 as lua)" for % in %locals)