all repos — min @ 9a0150f451aa6839fe04745d3af4992c95c6e570

A small but practical concatenative programming language.

Minor changes
h3rald h3rald@h3rald.com
Sun, 11 Sep 2016 20:31:24 +0200
commit

9a0150f451aa6839fe04745d3af4992c95c6e570

parent

901d7a414e7207d2c614bb912c160ee6c8667479

2 files changed, 11 insertions(+), 1 deletions(-)

jump to
M lib/min_io.nimlib/min_io.nim

@@ -18,6 +18,17 @@ .symbol("put") do (i: In):

let a = i.peek echo $$a + .symbol("tab-print") do (i: In): + var n, q: MinValue + i.reqIntAndQuotation n, q + var c = 0 + for s in q.qVal: + c.inc + stdout.write $$s & spaces(max(0, 15 - ($$s).len)) + if c mod n.intVal == 0: + echo "" + echo "" + .symbol("get") do (i: In): i.push newVal(stdin.readLine())
M prelude.minprelude.min

@@ -8,7 +8,6 @@ 'time import

'fs import 'crypto import - ; Aliases 'define :: 'bind :@