aboutsummaryrefslogtreecommitdiffstats
path: root/core/init.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-24 11:39:25 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-24 11:39:25 +0000
commit677c0d2f01e14bbeca1583ec7878d80c71c3aa68 (patch)
treecc20e04697da590b546de370599eeaaef647d20c /core/init.moon
parentinternals/plugin-guide: first draft (diff)
downloadalive-677c0d2f01e14bbeca1583ec7878d80c71c3aa68.tar.gz
alive-677c0d2f01e14bbeca1583ec7878d80c71c3aa68.zip
Value -> Value/Event/IO-Stream
Close 12
Diffstat (limited to 'core/init.moon')
-rw-r--r--core/init.moon20
1 files changed, 6 insertions, 14 deletions
diff --git a/core/init.moon b/core/init.moon
index 8a0154c..6e23fa7 100644
--- a/core/init.moon
+++ b/core/init.moon
@@ -1,20 +1,10 @@
----
-- `alive` public API.
--
--- @see Value
--- @see Result
--- @see Cell
--- @see Scope
--- @see Registry
--- @see Tag
--- @field globals
--- @field parse
--- @field eval
---
-- @module init
L or= setmetatable {}, __index: => ->
-import Value from require 'core.value'
+import ValueStream, EventStream, IOStream from require 'core.stream'
import Result from require 'core.result'
import Scope from require 'core.scope'
import Error from require 'core.error'
@@ -31,7 +21,9 @@ globals = Scope.from_table require 'core.builtin'
--- exports
-- @table exports
--- @tfield Value Value
+-- @tfield ValueStream ValueStream
+-- @tfield EventStream EventStream
+-- @tfield IOStream IOStream
-- @tfield Result Result
-- @tfield Cell Cell
-- @tfield RootCell RootCell
@@ -42,9 +34,9 @@ globals = Scope.from_table require 'core.builtin'
-- @tfield Scope globals global definitons
-- @tfield parse function to turn a `string` into a root `Cell`
{
- :Value, :Result
+ :ValueStream, :EventStream, :IOStream
:Cell, :RootCell
- :Scope, :Error
+ :Result, :Scope, :Error
:Registry, :SimpleRegistry, :Tag