diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-01-31 13:54:19 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-01-31 13:54:19 +0000 |
| commit | 227c2f0ed83dda049173700ebfa39b664cc84065 (patch) | |
| tree | 38057dfb393a89f7de6b8fdeb822adac8e34e222 /boot.lua | |
| parent | more types &c (diff) | |
| download | alive-227c2f0ed83dda049173700ebfa39b664cc84065.tar.gz alive-227c2f0ed83dda049173700ebfa39b664cc84065.zip | |
comments, actual working things
Diffstat (limited to 'boot.lua')
| -rw-r--r-- | boot.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/boot.lua b/boot.lua new file mode 100644 index 0000000..4226cba --- /dev/null +++ b/boot.lua @@ -0,0 +1,22 @@ +require 'moonscript' + +MODS = MODS or {} +-- table.insert(MODS, 'base') +-- table.insert(MODS, 'debug') +-- table.insert(MODS, 'math') +-- table.insert(MODS, 'time') + +for _,mod in ipairs(MODS) do + package.loaded[mod] = nil +end +for _,mod in ipairs(MODS) do + require(mod) +end +for k,v in pairs(require 'base') do + _G[k] = v +end + +function reload() + package.loaded.boot = nil + require 'boot' +end |
