all repos — min @ bff602ce45d72f650e81f2ea2b39f4e76aab40e2

A small but practical concatenative programming language.

Fixes.
h3rald h3rald@h3rald.com
Mon, 28 Dec 2020 17:29:02 +0100
commit

bff602ce45d72f650e81f2ea2b39f4e76aab40e2

parent

a58770431314d96aa9509d51f445f87d93c21845

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

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

@@ -231,7 +231,6 @@ else:

inExpects.add v else: if v[0] != ':': - echo v raiseInvalid("No mapping symbol specified in signature at position $#" % $(c+1)) else: if o:

@@ -558,12 +557,14 @@ let s = vals[0].getString

let parts = s.split("/") if parts.len < 2: raiseInvalid("Dictionary identifier not specified") - var mdlId = parts[0] - i.push mdlId.newSym for p in 0..parts.len-2: + let mdlId = parts[p] let symId = parts[p+1] - i.push symId.newVal - i.push "dget".newSym + var q = newSeq[MinValue](0) + q.add symId.newSym + i.push q.newVal + i.push mdlId.newSym + i.push "with".newSym def.symbol("set-type") do (i: In): let vals = i.expect("'sym", "dict")
M next-release.mdnext-release.md

@@ -1,3 +1,4 @@

* **REMOVED** support for creating dynamic libraries (it never worked properly anyway) * Added **operator** symbol to define symbols and sigils in a more controlled way. * Added **expect-all** and **expect-any** symbols. +* Fixed behavior of **require** and **invoke** ensuring that operators are evaluated in the correct scopes.