all repos — min @ 4106ec840857bc3943dad27cb56d133865633aa8

A small but practical concatenative programming language.

Sigils: Added % and removed *.
h3rald h3rald@h3rald.com
Mon, 20 Feb 2017 17:50:28 +0100
commit

4106ec840857bc3943dad27cb56d133865633aa8

parent

de8b8e07ace501301e98c5c6e618b4eb6e8efb0c

3 files changed, 7 insertions(+), 7 deletions(-)

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

@@ -795,14 +795,14 @@

.sigil("/") do (i: In): i.push("dget".newSym) + .sigil("%") do (i: In): + i.push("dset".newSym) + .sigil(">") do (i: In): i.push("save-symbol".newSym) .sigil("<") do (i: In): i.push("load-symbol".newSym) - - .sigil("*") do (i: In): - i.push("seal".newSym) .sigil("#") do (i: In): i.push("quote-bind".newSym)
M minim.nimminim.nim

@@ -202,7 +202,7 @@

var REPL = false let usage* = """ $1 v$2 - a tiny concatenative shell and programming language - (c) 2014-2016 Fabio Cevasco + (c) 2014-2017 Fabio Cevasco Usage: minim [options] [filename]

@@ -250,4 +250,4 @@ elif REPL:

minimRepl() quit(0) else: - minimFile stdin, "stdin" + minimFile stdin, "stdin"
M tests/lang.mintests/lang.min

@@ -127,7 +127,7 @@ ) try get-stack ("MinEmptyStackError" "finally") ==) assert

("aaaa" :cd cd "aaaa" ==) assert ;It is possible to shadow sealed symbols in child scopes - (((2 :a1 *a1 3 :a1) ("failed")) try "failed" ==) assert + (((2 :a1 'a1 seal 3 :a1) ("failed")) try "failed" ==) assert ( (

@@ -156,7 +156,7 @@ (((a 1)(b 2)(c 3)) dictionary?) assert

(((a 1)(b 2)(c 3)) 'b dget 2 ==) assert - (((a 1)(b 2)(c 3)) ' :dict dict 5 'b dset 7 'd dset =newdict newdict ((a 1)(b 5)(c 3)(d 7)) == dict ((a 1)(b 2)(c 3)) == and) assert + (((a 1)(b 2)(c 3)) ' :dict dict 5 'b dset 7 %d =newdict newdict ((a 1)(b 5)(c 3)(d 7)) == dict ((a 1)(b 2)(c 3)) == and) assert (((a 1)(b 2)(c 3)) ' :dict dict 'b ddel =newdict newdict ((a 1)(c 3)) == dict ((a 1)(b 2)(c 3)) == and) assert