diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-21 19:12:59 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-21 19:13:47 -0700 |
| commit | 86a3219e7fc3244331595819f742b365172f96ad (patch) | |
| tree | 948a3f308bd9c45b85efa2e130af8432bb1a97e2 /core/scopes.nom | |
| parent | 7761f715f7497e8b325a4f1134869f332848fd16 (diff) | |
Cleanup of some metaprogramming stuff, as well as adding support for
"package.nomsupath" to search for files in different locations, and
prioritizing use of "luafilesystem" over system calls.
Diffstat (limited to 'core/scopes.nom')
| -rw-r--r-- | core/scopes.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/scopes.nom b/core/scopes.nom index b5fdded..3af59c5 100644 --- a/core/scopes.nom +++ b/core/scopes.nom @@ -9,18 +9,18 @@ compile [with local %locals %body, with local %locals do %body] to * "Dict" %body_lua <- Lua ".." - \(=lua "A_assign_1(\%locals, \%locals)") + \(compile as: <- %locals) \%body_lua declare locals - (%.1 as lua id) for % in %locals + "\(%.1 as lua)" for % in %locals .. in %body_lua * "List" declare locals - (% as lua id) for % in %locals + "\(% as lua)" for % in %locals .. in %body_lua * "Var" * "Action" - declare locals [%locals as lua id] in %body_lua + declare locals ["\(%locals as lua)"] in %body_lua * else barf "Unexpected local: \(%locals as nomsu)" return |
