diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-01 23:51:40 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-01 23:55:30 +0000 |
| commit | 177cd265947bfd9db20ad1a99ae07c76b6b4f147 (patch) | |
| tree | 49af71e06770925abb0ab1fd2e89be077281b74c /init.moon | |
| parent | first-class scopes (diff) | |
| download | alive-177cd265947bfd9db20ad1a99ae07c76b6b4f147.tar.gz alive-177cd265947bfd9db20ad1a99ae07c76b6b4f147.zip | |
macros and scopes
Diffstat (limited to 'init.moon')
| -rw-r--r-- | init.moon | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -1,17 +1,6 @@ -import Registry from require 'registry' - -env = Registry! -env\add_module 'math' -env\add_module 'time' -env\add_module 'util' -env\add_module 'osc' -env\add_module 'debug' - -if ... == 'init' - return env - -- run from CLI import clock_gettime, nanosleep, CLOCK_MONOTONIC from require 'posix.time' +import Registry from require 'registry' import Copilot from require 'copilot' delta = do @@ -25,7 +14,9 @@ delta = do with time - (last or time) last = time +env = Registry! copilot = Copilot arg[1], env + while true copilot\poll! |
