all repos — min @ 83d8c1220a55939335556f119dbc0ae755f05569

A small but practical concatenative programming language.

Removed prelude file (no longer needed).
h3rald h3rald@h3rald.com
Sun, 29 Sep 2024 11:31:13 +0200
commit

83d8c1220a55939335556f119dbc0ae755f05569

parent

2e8cb4237a3d94d3e5ee5c9f416a50af458f489b

4 files changed, 3 insertions(+), 8 deletions(-)

jump to
M min.nimblemin.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.nimminpkg/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.nimminpkg/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")
M prelude.minprelude.min

@@ -1,2 +0,0 @@

-; Unseal prompt symbol -'prompt unseal-symbol