all repos — min @ 657a7dbaafca269c89eb01e9b60981e23b968696

A small but practical concatenative programming language.

Added dev symbol.
h3rald h3rald@h3rald.com
Fri, 01 Dec 2023 11:30:00 +0100
commit

657a7dbaafca269c89eb01e9b60981e23b968696

parent

3f752338fabee8bfce21cd988492b57431b8778a

3 files changed, 16 insertions(+), 1 deletions(-)

jump to
M minpkg/lib/min_lang.nimminpkg/lib/min_lang.nim

@@ -1046,6 +1046,10 @@

def.symbol("compiled?") do (i: In): i.push MINCOMPILED.newVal + def.symbol("dev") do (i: In): + DEV = not DEV + notice "Development Mode: ", DEV + def.symbol("dev?") do (i: In): i.push DEV.newVal
M next-release.mdnext-release.md

@@ -2,11 +2,19 @@ ### BREAKING CHANGES

* The `dpairs` symbol now returns a quotation of quotations, each containing a value/key pair. - ### New Features +* Added `dev` symbol to toggle development mode within a min program. +* Implemented [mmm](http://localhost:1337/learn-mmm), i.e. _min module management_. The following new commands are now built-in into the min executable: + * min init — Initialize a manage module. + * min install — Install a managed module. + * min uninstall — Uninstall a managed module. + * min update — Update a managed module. + * min list — List all dependent managed modules. + * min search — Search for managed module. ### Fixes and Improvements * Fixed `help` symbol and `min help` command to correctly report sigil documentation. +* Documented `~` (alias and sigil for `lambda-bind`) symbol.
M site/contents/reference-lang.mdsite/contents/reference-lang.md

@@ -112,6 +112,9 @@ > Pushes the contents of quotation {{q}} on the stack.

> > Each element is pushed on the stack one by one. If any error occurs, {{q}} is restored on the stack.#} +{#op||dev||{{none}}||{{none}}|| +Toggles development mode.#} + {#op||dev?||{{none}}||{{b}}|| Returns {{t}} if the current program is being executed in development mode.#}