all repos — min @ e90b5bc1c027e761559426581710f5a96e8d1fcd

A small but practical concatenative programming language.

Fixed $HOME resolved at compile time & string serialization problem.
h3rald h3rald@h3rald.com
Fri, 07 Oct 2016 13:40:51 +0200
commit

e90b5bc1c027e761559426581710f5a96e8d1fcd

parent

dc68ada6e89d648d203ee6ab1a4d058cfca51da1

2 files changed, 9 insertions(+), 9 deletions(-)

jump to
M core/consts.nimcore/consts.nim

@@ -37,13 +37,13 @@ stderr.writeLine("Cannot process configuration file.")

quit(2) - -when defined(windows): - const HOME* = getenv("USERPROFILE") -when not defined(windows): - const HOME* = getenv("HOME") +var HOME*: string +if defined(windows): + HOME = getenv("USERPROFILE") +if not defined(windows): + HOME = getenv("HOME") -const MINIMRC* = HOME / ".minimrc" -const MINIMSYMBOLS* = HOME / ".minim_symbols" -const MINIMHISTORY* = HOME / ".minim_history" +let MINIMRC* = HOME / ".minimrc" +let MINIMSYMBOLS* = HOME / ".minim_symbols" +let MINIMHISTORY* = HOME / ".minim_history"
M core/parser.nimcore/parser.nim

@@ -503,7 +503,7 @@ return $a.boolVal

of minSymbol: return a.symVal of minString: - return "\""&a.strVal&"\"" + return "\"$1\"" % a.strVal.replace("\"", "\\\"") of minInt: return $a.intVal of minFloat: