all repos — min @ c6b7f0a71001c14d2fc8fed0308657cc4db2cf12

A small but practical concatenative programming language.

Fixed min compile command
h3rald h3rald@h3rald.com
Sun, 04 Feb 2024 10:45:06 +0100
commit

c6b7f0a71001c14d2fc8fed0308657cc4db2cf12

parent

a7f072c628c389f4a0def48c24ea3327ad9024b7

4 files changed, 5 insertions(+), 2 deletions(-)

jump to
M min.nimmin.nim

@@ -76,7 +76,7 @@ result = result.concat(minFile(f, "compile", main = false))

result.add "### $# (main)" % i.filename result = result.concat(i.compileFile(main)) writeFile(nimFile, result.join("\n")) - let cmd = "nim c --threadAnalysis:off $#$#" % [NIMOPTIONS&" ", nimFile] + let cmd = "nim c --threadAnalysis:off --mm:refc $#$#" % [NIMOPTIONS&" ", nimFile] logging.notice("Calling Nim compiler:") logging.notice(cmd) discard execShellCmd(cmd)
M minpkg/core/parser.nimminpkg/core/parser.nim

@@ -878,8 +878,9 @@ result = @[op&"MinValue(kind: minSymbol, symVal: "&p.a.escapeEx&")"]

p.a = "" discard getToken(p) of tkLineComment, tkBlockComment, tkLineDocComment, tkBlockDocComment, tkSpace: - discard getToken(p) + eat(p, p.token) result = @[""] + #discard getToken(p) #result = p.compileMinValue(i, push, indent) else: raiseUndefined(p, "Undefined value: '"&p.a&"'")
M next-release.mdnext-release.md

@@ -13,5 +13,6 @@ ### Fixes and Improvements

- Added check to prevent installing local managed modules in the HOME directory or $HOME/mmm. - Changed `tokenize` symbol so that it returns the full token, including delimiters (for strings and comments). +- Fixed regression in `min compile` command introduced in the previews version due to parses changes.
M site/contents/news/v0.43.0.mdsite/contents/news/v0.43.0.md

@@ -27,3 +27,4 @@ ## Fixes and Improvements

- Added check to prevent installing local managed modules in the HOME directory or $HOME/mmm. - Changed {#link-operator||global||tokenize#} symbol so that it returns the full token, including delimiters (for strings and comments). +- Fixed regression in `min compile` command introduced in the previews version due to parses changes.