all repos — min @ d5072e01822187654987916594844ffa1dc71493

A small but practical concatenative programming language.

Fixes.
h3rald h3rald@h3rald.com
Sun, 16 Jun 2024 20:22:51 +0000
commit

d5072e01822187654987916594844ffa1dc71493

parent

ccac3412286d146c91002fd65b199190e2fde1d6

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

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

@@ -206,7 +206,7 @@ op.prc(i)

i.scope = origScope i.scope.parent = origParentScope op.mdl.scope.parent = origMdlParentScope - else + else: op.prc(i) else: if op.val.kind == minQuotation:
M minpkg/core/scope.nimminpkg/core/scope.nim

@@ -56,7 +56,7 @@ debug "hasSymbol: $#" % [key]

if scope.isNil: return false else: - debug "hasSymbol - scope symbols: $#" % [$scope.symbols.keys.toSeq] + #debug "hasSymbol - scope symbols: $#" % [$scope.symbols.keys.toSeq] if scope.symbols.hasKey(key): debug "hasSymbol - found $#" % [key] return true

@@ -126,7 +126,7 @@ override = false, define = false): bool {.discardable.} =

result = false # check if a symbol already exists in current scope debug "setSymbol: $#" % [key] - debug "setSymbol: scope symbols: $#" % [$scope.symbols.keys.toSeq] + #debug "setSymbol: scope symbols: $#" % [$scope.symbols.keys.toSeq] if not scope.isNil and scope.symbols.hasKey(key): if not override and scope.symbols[key].sealed: raiseInvalid("Symbol '$1' is sealed ." % key)