Fixes
h3rald h3rald@h3rald.com
Sat, 02 Jan 2021 04:56:48 +0100
5 files changed,
11 insertions(+),
14 deletions(-)
M
core/value.nim
→
core/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.nim
→
min.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
next-release.md
→
next-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.json
→
site/settings.json
@@ -6,5 +6,5 @@ "rules": "rules.min",
"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.27.0" + "version": "0.27.1" }