1
0
forked from osmarks/potatOS

Merge pull request 'Form incredibly high energy bee structures from infinitely dense radioactive apioforms occupying a 4m side length hexagon with 1cm internal thickness and extruded 2.3234cm evenly into the dimension perpendicular to the 2 current dimensions in use' (#5) from heavpoot/potatOS:master into master

Reviewed-on: osmarks/potatOS#5
Seems non-evil enough!
This commit is contained in:
osmarks 2021-01-29 23:26:04 +00:00
commit 78d22d9f66

View File

@ -1,3 +1,11 @@
local path = {
"",
"/heavlisp_lib/",
"/rom/heavlisp_lib/",
"/lib/",
"/rom/lib/",
"lib/",
}
if not unpack then unpack = table.unpack end if not unpack then unpack = table.unpack end
function deepclone(t) function deepclone(t)
local res={} local res={}
@ -463,7 +471,11 @@ function interpret(ast,imports)
if y and y.type=="string" then if y and y.type=="string" then
namespace=y.value.."_" namespace=y.value.."_"
end end
local f=io.open(x.value,"r") local f
for _,v in ipairs(path) do
f=io.open(v..x.value,"r")
if f then break end
end
if not f then if not f then
return {type="bool",value=false} return {type="bool",value=false}
end end