all repos — min @ f6986cd4b44d8a3961a78ccae8937f08c11b69fa

A small but practical concatenative programming language.

Fixed minor problem in case operator.
h3rald h3rald@h3rald.com
Sun, 06 Nov 2016 11:40:47 +0100
commit

f6986cd4b44d8a3961a78ccae8937f08c11b69fa

parent

ac120ad6b8f2d15a3f06a327ffd979251c0be04b

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

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

@@ -551,8 +551,7 @@ # ) case

.symbol("case") do (i: In): var cases: MinValue i.reqQuotation cases - let last = cases.qVal.len-1 - if last == 0: + if cases.qVal.len == 0: raiseInvalid("Empty case operator") var k = 0 let stack = i.stack