Removed prelude file (no longer needed).
h3rald h3rald@h3rald.com
Sun, 29 Sep 2024 11:31:13 +0200
4 files changed,
3 insertions(+),
8 deletions(-)
M
min.nimble
→
min.nimble
@@ -6,7 +6,7 @@ description = "A small but practical concatenative programming language and shell."
license = "MIT" bin = @["min"] installExt = @["nim", "c", "h", "a"] -installFiles = @["min.yml", "min.nim", "prelude.min", "help.json"] +installFiles = @["min.yml", "min.nim", "help.json"] skipFiles = @["mintool.min"] installDirs = @["minpkg"]
M
minpkg/core/stdlib.nim
→
minpkg/core/stdlib.nim
@@ -25,7 +25,6 @@ min_net,
min_crypto, min_math] -const PRELUDE* = "../../prelude.min".slurp.strip var customPrelude* {.threadvar.}: string customPrelude = ""@@ -49,9 +48,7 @@ i.net_module
i.math_module i.http_module i.xml_module - if customPrelude == "": - i.eval PRELUDE, "<prelude>" - else: + if customPrelude != "": try: i.eval customPrelude.readFile, customPrelude except CatchableError:
M
minpkg/lib/min_global.nim
→
minpkg/lib/min_global.nim
@@ -1179,7 +1179,7 @@ else:
raiseInvalid("Cannot convert a quotation to float.") def.symbol("prompt") do (i: In): - i.eval(""""[$1]\n$$ " (pwd) => %""") + i.eval(""""[$1]\n$$ " (sys.pwd) => %""") def.symbol("quotesym") do (i: In): let vals = i.expect("str")