all repos — min @ de8b8e07ace501301e98c5c6e618b4eb6e8efb0c

A small but practical concatenative programming language.

Minor changes.
h3rald h3rald@h3rald.com
Sun, 19 Feb 2017 15:00:02 +0100
commit

de8b8e07ace501301e98c5c6e618b4eb6e8efb0c

parent

66263c20760243554ea019fda22083ff593ac313

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

jump to
M core/interpreter.nimcore/interpreter.nim

@@ -3,7 +3,6 @@ streams,

strutils, critbits, os, - oids, algorithm, logging import

@@ -98,16 +97,15 @@ i.parser.close();

proc push*(i: In, val: MinValue) {.gcsafe.} -#proc apply*(i: In, op: MinOperator, s: var ref MinScope, name="apply") = proc apply*(i: In, op: MinOperator) = - var s = newScopeRef(i.scope, "apply") + var newscope = newScopeRef(i.scope, "apply") case op.kind of minProcOp: op.prc(i) of minValOp: if op.val.kind == minQuotation: var q = op.val - i.withScope(q, s): + i.withScope(q, newscope): for e in q.qVal: i.push e else:
M lib/min_lang.nimlib/min_lang.nim

@@ -4,7 +4,6 @@ strutils,

os, json, algorithm, - oids, logging import ../core/consts,