diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-19 21:17:46 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-19 21:17:53 +0000 |
| commit | e62ef99244bb3aa906810a5cfd53c0dac68b0f37 (patch) | |
| tree | e7379e2add7014e7124f678f4a7a8edc699fe914 /core/init.moon | |
| parent | major refactoring: Const, Stream + ResultNode (diff) | |
| download | alive-e62ef99244bb3aa906810a5cfd53c0dac68b0f37.tar.gz alive-e62ef99244bb3aa906810a5cfd53c0dac68b0f37.zip | |
merge Const and Stream into Value; Dataflow logic
lib not fully ported / functonial
Diffstat (limited to 'core/init.moon')
| -rw-r--r-- | core/init.moon | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/init.moon b/core/init.moon index b885747..a309722 100644 --- a/core/init.moon +++ b/core/init.moon @@ -2,7 +2,7 @@ L or= setmetatable {}, __index: => -> import Op, Action, FnDef from require 'core.base' -import Stream, Const, load_ from require 'core.value' +import Value, Result, load_ from require 'core.value' import Scope from require 'core.scope' load_! @@ -15,7 +15,7 @@ import cell, program from require 'core.parsing' globals = Scope.from_table require 'core.builtin' { - :Stream, :Const + :Value, :Result :Cell, :RootCell :Op, :Action, :FnDef :Scope @@ -30,5 +30,5 @@ globals = Scope.from_table require 'core.builtin' ast = assert (cell\match str), "failed to parse: #{str}" result = ast\eval scope - result\value_only! + result\const! } |
