From 86a3219e7fc3244331595819f742b365172f96ad Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 21 Jun 2018 19:12:59 -0700 Subject: 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. --- core/operators.nom | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'core/operators.nom') diff --git a/core/operators.nom b/core/operators.nom index c81760d..0756751 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -130,16 +130,6 @@ compile [with %assignments %body] to \%lua end -- 'with' block -compile [local %var_or_vars] to - %lua <- (Lua "") - lua> ".." - if \%var_or_vars.type == "List" then - \%lua:add_free_vars(table.map(\%var_or_vars, function(v) return tostring(nomsu:compile(v)) end)) - else - \%lua:add_free_vars({tostring(nomsu:compile(\%var_or_vars))}) - end - return %lua - # Math Operators compile [%x wrapped around %y, %x mod %y] to: Lua value "(\(%x as lua expr) % \(%y as lua expr))" -- cgit v1.2.3