Added seq module.
h3rald h3rald@h3rald.com
Fri, 14 Apr 2017 12:32:09 +0200
39 files changed,
50 insertions(+),
14 deletions(-)
jump to
A
lib/min_seq.nim
@@ -0,0 +1,18 @@
+import + tables, + random +import + ../core/parser, + ../core/value, + ../core/interpreter, + ../core/utils + +# Operations on sequences (data quotations) +proc seq_module*(i: In)= + + i.define() + + .symbol("harvest") do (i: In): + discard + + .finalize("seq")
M
prelude.min
→
prelude.min
@@ -5,10 +5,11 @@ 'logic import
'num import 'sys import 'stack import +'seq import 'time import 'fs import 'crypto import ; Unsealed symbols -() :startup -("[$1]$$ " (.) => %) :prompt +() :startup +("[$1]$$ " (.) => %) :prompt
M
site/contents/learn.md
→
site/contents/learn.md
@@ -2,4 +2,4 @@ -----
content-type: page title: Learn ----- -{@ _includes/_learn_.md || 0 @} +{@ _includes/_learn.md || 0 @}
M
site/contents/reference-crypto.md
→
site/contents/reference-crypto.md
@@ -2,4 +2,4 @@ -----
content-type: page title: crypto Module ----- -{@ _includes/_reference-crypto_.md || 1 @} +{@ _includes/_reference-crypto.md || 1 @}
M
site/contents/reference-fs.md
→
site/contents/reference-fs.md
@@ -2,4 +2,4 @@ -----
content-type: page title: fs Module ----- -{@ _includes/_reference-fs_.md || 1 @} +{@ _includes/_reference-fs.md || 1 @}
M
site/contents/reference-io.md
→
site/contents/reference-io.md
@@ -2,4 +2,4 @@ -----
content-type: page title: io Module ----- -{@ _includes/_reference-io_.md || 1 @} +{@ _includes/_reference-io.md || 1 @}
M
site/contents/reference-lang.md
→
site/contents/reference-lang.md
@@ -2,4 +2,4 @@ -----
content-type: page title: lang Module ----- -{@ _includes/_reference-lang_.md || 1 @} +{@ _includes/_reference-lang.md || 1 @}
M
site/contents/reference-logic.md
→
site/contents/reference-logic.md
@@ -2,4 +2,4 @@ -----
content-type: page title: logic Module ----- -{@ _includes/_reference-logic_.md || 1 @} +{@ _includes/_reference-logic.md || 1 @}
M
site/contents/reference-num.md
→
site/contents/reference-num.md
@@ -2,4 +2,4 @@ -----
content-type: page title: num Module ----- -{@ _includes/_reference-num_.md || 1 @} +{@ _includes/_reference-num.md || 1 @}
A
site/contents/reference-seq.md
@@ -0,0 +1,5 @@
+----- +content-type: page +title: seq Module +----- +{@ _includes/_reference-seq.md || 1 @}
M
site/contents/reference-stack.md
→
site/contents/reference-stack.md
@@ -2,4 +2,4 @@ -----
content-type: page title: stack Module ----- -{@ _includes/_reference-stack_.md || 1 @} +{@ _includes/_reference-stack.md || 1 @}
M
site/contents/reference-str.md
→
site/contents/reference-str.md
@@ -2,4 +2,4 @@ -----
content-type: page title: str Module ----- -{@ _includes/_reference-str_.md || 1 @} +{@ _includes/_reference-str.md || 1 @}
M
site/contents/reference-sys.md
→
site/contents/reference-sys.md
@@ -2,4 +2,4 @@ -----
content-type: page title: sys Module ----- -{@ _includes/_reference-sys_.md || 1 @} +{@ _includes/_reference-sys.md || 1 @}
M
site/contents/reference-time.md
→
site/contents/reference-time.md
@@ -2,4 +2,4 @@ -----
content-type: page title: time Module ----- -{@ _includes/_reference-time_.md || 1 @} +{@ _includes/_reference-time.md || 1 @}
M
site/contents/reference.md
→
site/contents/reference.md
@@ -3,4 +3,4 @@ content-type: page
title: Reference ----- -{@ _includes/_reference_.md || 0 @} +{@ _includes/_reference.md || 0 @}
M
tests/all.min
→
tests/all.min
@@ -1,6 +1,7 @@
; Load test files 'lang load 'stack load +'seq load 'io load 'logic load 'num load