all repos — min @ 92684f1dd61207992926808fb7b1c445aa6337f3

A small but practical concatenative programming language.

Re-enabled linenoise on OSX and Linux.
h3rald h3rald@h3rald.com
Sun, 15 May 2016 09:44:42 +0200
commit

92684f1dd61207992926808fb7b1c445aa6337f3

parent

6d9717124714f473da9c798a10a17cf3cea4fc27

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M minim.nimminim.nim

@@ -20,7 +20,7 @@ var repl = false

const prelude = "lib/prelude.min".slurp.strip const - USE_LINENOISE = false #(defined(i386) or defined(amd64))# and not defined(windows) + USE_LINENOISE = (defined(i386) or defined(amd64))# and not defined(windows) let usage* = " MiNiM v" & version & " - a tiny concatenative system programming language" & """

@@ -91,8 +91,8 @@ echo "MiNiM v"&version&" - REPL initialized."

i.eval prelude echo "Prelude loaded." echo "-> Type 'exit' or 'quit' to exit." - #if USE_LINENOISE: - # discard linenoiseSetCompletionCallback completionCallback + if USE_LINENOISE: + discard linenoiseSetCompletionCallback completionCallback var line: string while true: line = prompt(": ")