all repos — min @ bb44494bf64ae8b1b925a24afa213ef50bf94fe7

A small but practical concatenative programming language.

Fixes.
h3rald h3rald@h3rald.com
Sun, 16 Jun 2024 12:21:30 +0200
commit

bb44494bf64ae8b1b925a24afa213ef50bf94fe7

parent

94db3f912d1b617bff39b5a615dc5c3bed1824bc

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M minpkg/core/shell.nimminpkg/core/shell.nim

@@ -3,7 +3,6 @@ import

std/[ strutils, sequtils, - json, critbits, algorithm, streams,
M minpkg/lib/min_logic.nimminpkg/lib/min_logic.nim

@@ -1,5 +1,5 @@

import - std/math + std/[math, strutils] import ../core/parser, ../core/value,

@@ -133,7 +133,7 @@ i.dequote vv

let r = i.pop c.inc() if not r.isBool: - raiseInvalid("Quotation #$# does not evaluate to a boolean value") + raiseInvalid("Quotation #$# does not evaluate to a boolean value" % [$c]) if not r.boolVal: i.push r return

@@ -157,7 +157,7 @@ i.dequote vv

let r = i.pop c.inc() if not r.isBool: - raiseInvalid("Quotation #$# does not evaluate to a boolean value") + raiseInvalid("Quotation #$# does not evaluate to a boolean value" % [$c]) if r.boolVal: i.push r return