all repos — min @ 7fa3f654868f6b460770674dc6051a6cf9837f32

A small but practical concatenative programming language.

Added seq module.
h3rald h3rald@h3rald.com
Fri, 14 Apr 2017 12:32:09 +0200
commit

7fa3f654868f6b460770674dc6051a6cf9837f32

parent

c3b66db7c5690867421e406932fef4faf94a5bdc

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 min.nimmin.nim

@@ -20,6 +20,7 @@ core/utils

import lib/min_lang, lib/min_stack, + lib/min_seq, lib/min_num, lib/min_str, lib/min_logic,

@@ -123,6 +124,7 @@ """

MINRC.writeFile(minrc) i.lang_module i.stack_module + i.seq_module i.io_module i.logic_module i.num_module
M prelude.minprelude.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
A site/contents/_includes/_reference-seq.md

@@ -0,0 +1,2 @@

+{@ _defs_.md || 0 @} +
M site/contents/learn.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/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.mdsite/contents/reference.md

@@ -3,4 +3,4 @@ content-type: page

title: Reference ----- -{@ _includes/_reference_.md || 0 @} +{@ _includes/_reference.md || 0 @}
M tests/all.mintests/all.min

@@ -1,6 +1,7 @@

; Load test files 'lang load 'stack load +'seq load 'io load 'logic load 'num load
A tests/seq.min

@@ -0,0 +1,7 @@

+'test load +'test import + +"seq" describe + + report + newstack