all repos — min @ 94c574dca86daf775329797d0f8644603435aca3

A small but practical concatenative programming language.

Corrected behavior of cons (ref: #174).
h3rald h3rald@h3rald.com
Tue, 28 Dec 2021 11:24:45 +0000
commit

94c574dca86daf775329797d0f8644603435aca3

parent

d68f0c21a780664403827da28603c370f3fc53d6

4 files changed, 6 insertions(+), 33 deletions(-)

jump to
M min.ymlmin.yml

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

author: Fabio Cevasco description: A small but practical concatenative programming language and shell. -id: 53297148 +id: 56055122 name: min -version: 0.36.0+version: 0.36.1
M minpkg/lib/min_stack.nimminpkg/lib/min_stack.nim

@@ -118,8 +118,7 @@ def.symbol("cons") do (i: In):

let vals = i.expect("quot", "a") let q = vals[0] let v = vals[1] - q.qVal = @[v] & q.qVal - i.push q + i.push newVal(@[v] & q.qVal) def.symbol("swons") do (i: In): i.pushSym "swap"
M next-release.mdnext-release.md

@@ -1,30 +1,4 @@

-### BREAKING CHANGES - -* Runtime checks (expectations, stack pollution checks, operator output validation) must now be manually activated by specifying `-d` or `--dev`. Activating checks can be very useful while developing a min program, at cost of performance. -* Moved the following symbols from the **sys** to the **fs** module: - * exists? - * dir? - * file? - * symlink? - * filename - * dirname - -### New Features - -* Added **dev?** symbol to check if we are running in development mode. -* Added new symbols to the **fs** module: - * join-path - * expand-filename - * expand-symlink - * normalized-path - * absolute-path - * relative-path - * windows-path - * unix-path - * absolute-path? -* Added **admin?** symbol to the **sys** module. - ### Fixes and Improvements -* Fixed Nim 1.6.0 compilation warnings. -* string values are now properly escaped when printed. +* Miscellaneous documentarion fixes. +* Fixed #174 (cons operator was not creating a new quotation).
M site/settings.jsonsite/settings.json

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

"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.36.0" + "version": "0.36.1" }