all repos — min @ 9581eaf9020384bbf700e1acafb835fe4d980fac

A small but practical concatenative programming language.

Fixes
h3rald h3rald@h3rald.com
Sat, 02 Jan 2021 04:56:48 +0100
commit

9581eaf9020384bbf700e1acafb835fe4d980fac

parent

d1fb45884a5acdbccad39eaadfabfbadab90e914

5 files changed, 11 insertions(+), 14 deletions(-)

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

@@ -52,6 +52,9 @@

proc newSym*(s: string): MinValue = return MinValue(kind: minSymbol, symVal: s) +proc newSym*(s: string, fn: string): MinValue = + return MinValue(kind: minSymbol, symVal: s, filename: fn) + # Get string value from string or quoted symbol proc getFloat*(v: MinValue): float =

@@ -74,4 +77,4 @@ let sym = v.qVal[0]

if sym.isSymbol: return sym.symVal else: - raiseInvalid("Quotation is not a quoted symbol")+ raiseInvalid("Quotation is not a quoted symbol")
M min.nimmin.nim

@@ -332,7 +332,7 @@ var s = newStringStream("")

i.open(s, "<repl>") var line: string while true: - i.push("prompt".newSym) + i.push("prompt".newSym(i.filename)) let vals = i.expect("string") let v = vals[0] let prompt = v.getString()

@@ -355,7 +355,7 @@ let symbols = toSeq(i.scope.symbols.keys)

EDITOR.completionCallback = proc(ed: LineEditor): seq[string] = return ed.getCompletions(symbols) # evaluate prompt - i.push("prompt".newSym) + i.push("prompt".newSym(i.filename)) let vals = i.expect("string") let v = vals[0] let prompt = v.getString()
M min.ymlmin.yml

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

author: Fabio Cevasco description: A tiny concatenative programming language and shell. -id: 35746169 +id: 35901301 name: min -version: 0.27.0+version: 0.27.1
M next-release.mdnext-release.md

@@ -1,8 +1,2 @@

-* **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. -* Improved diagnostics of exceptions occurring in native code. -* Fixed unwanted stack pollution in **to-yaml** operator. -* Added check to prevent required modules from polluting the stack. -- Added **nossl** flag to compile without openssl (otherwise enabled by default). +* Fixed handling if escaped / characters in regex operator +* Fixed fatal error in REPL
M site/settings.jsonsite/settings.json

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

"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.27.0" + "version": "0.27.1" }