all repos — min @ 590222095d335823c4cb23f27b4da580878fba1f

A small but practical concatenative programming language.

Tested return symbol and sigil operator def.
h3rald h3rald@h3rald.com
Mon, 28 Dec 2020 03:11:26 +0000
commit

590222095d335823c4cb23f27b4da580878fba1f

parent

b829c87bdd1c6360e7924bbdc9e110112d68697d

1 files changed, 21 insertions(+), 0 deletions(-)

jump to
M tests/lang.mintests/lang.min

@@ -246,6 +246,27 @@ )

) operator 2 4 pow-mul - 8 == ) assert + + ( + ( + sigil nt + (string :s ==> bool :result) + ( + ("int" s ==) + (true @result return) + when + ("num" s ==) + (true @result return) + when + ("float" s ==) + (true @result return) + when + "not gonna be printed if true!" puts + false @result + ) + ) operator + nt"float" + ) assert report ; Tidy up