all repos — min @ 7fd620551f487070f95c66575485c29cbe56bd66

A small but practical concatenative programming language.

Improvements.
h3rald h3rald@h3rald.com
Mon, 19 Apr 2021 20:07:53 +0200
commit

7fd620551f487070f95c66575485c29cbe56bd66

parent

c542a4f6e8ad995d897720571440eab890d182a3

M min.nimblemin.nimble

@@ -13,7 +13,7 @@ installDirs = @["minpkg"]

# Dependencies -requires "nim >= 1.4.0" +requires "nim >= 1.4.6, zippy >= 0.5.6" before install: exec "nimble install -y nifty"
M min.ymlmin.yml

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

author: Fabio Cevasco description: A small but practical concatenative programming language and shell. -id: 39805166 +id: 41641090 name: min -version: 0.35.0+version: 0.35.1
M minpkg/core/interpreter.nimminpkg/core/interpreter.nim

@@ -178,10 +178,8 @@

proc copyDict*(i: In, val: MinValue): MinValue {.gcsafe.}= # Assuming val is a dictionary var v = newDict(i.scope) - for item in val.scope.symbols.pairs: - v.scope.symbols[item.key] = item.val - for item in val.scope.sigils.pairs: - v.scope.sigils[item.key] = item.val + v.scope.symbols = val.scope.symbols + v.scope.sigils = val.scope.sigils if val.objType != "": v.objType = val.objType if not val.obj.isNil:
M minpkg/core/parser.nimminpkg/core/parser.nim

@@ -779,6 +779,7 @@ raiseUndefined(p, "Undefined value: '"&p.a&"'")

proc print*(a: MinValue) = stdout.write($$a) + stdout.flushFile() # Predicates
M minpkg/lib/min_io.nimminpkg/lib/min_io.nim

@@ -115,6 +115,7 @@ elif answer.contains(re"(?i)^no?$"):

return false else: stdout.write "Invalid answer. Please enter 'yes' or 'no': " + stdout.flushFile() return confirm() i.push confirm().newVal

@@ -126,6 +127,7 @@ var q = vals[1]

if q.qVal.len <= 0: raiseInvalid("No choices to display") stdout.writeLine(s.getString) + stdout.flushFile() proc choose(): int = var c = 0 for item in q.qVal:
M next-release.mdnext-release.md

@@ -1,11 +1,6 @@

-### BREAKING CHANGES +### Fixes and Improvements -* Removed **lite?** and **mini?** symbols, as they are no longer necessary. +* Fixed problem with **print** symbol (Linux only if compiled with musl) +* Minor performance improvements on dictionary management +* Upgraded OpenSSL to v1.1.1k -### New Features - -* Now using [zippy](https://github.com/guzba/zippy) for the **zip** and **unzip** symbols. - -### Fixes and Improvements - -* Removed conditional compilations related to mini and lite variants as they are no longer needed.
M site/contents/reference-logic.mdsite/contents/reference-logic.md

@@ -38,6 +38,10 @@

{#op||!=||{{a1}} {{a2}}||{{b}}|| Returns {{t}} if {{a1}} is not equal to {{a2}}, {{f}} otherwise. #} +{#alias||&vert;&vert;||expect-any#} + +{#alias||&&||expect-all#} + {#op||and||{{b1}} {{b2}}||{{b3}}|| Returns {{t}} if {{b1}} is equal to {{b2}}, {{f}} otherwise.#}
M site/settings.jsonsite/settings.json

@@ -6,5 +6,5 @@ "rules": "rules.min",

"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.35.0" + "version": "0.35.1" }