Removed file/column/line information from generated nim code whencompiling
h3rald h3rald@h3rald.com
Fri, 21 Jul 2023 16:24:23 +0200
4 files changed,
4 insertions(+),
13 deletions(-)
D
cmdTest.nim
@@ -1,9 +0,0 @@
-import min -MINCOMPILED = true -var i = newMinInterpreter("cmdTest.min") -i.stdLib() -### cmdTest.min (main) -i.push MinValue(kind: minCommand, cmdVal: "ls") -i.push MinValue(kind: minString, strVal: "\n") -i.push MinValue(kind: minSymbol, symVal: "split", column: 15, line: 1, filename: "cmdTest.min") -i.push MinValue(kind: minSymbol, symVal: "puts", column: 20, line: 1, filename: "cmdTest.min")
M
minpkg/core/parser.nim
→
minpkg/core/parser.nim
@@ -804,7 +804,7 @@ discard getToken(p)
of tkBracketLe: CVARCOUNT.inc var qvar = "q" & $CVARCOUNT - result.add indent&"var "&qvar&" = newSeq[MinValue](0)" + result.add indent&"var "&qvar&" = newSeq[V](0)" discard getToken(p) while p.token != tkBracketRi: var instructions = p.compileMinValue(i, false, indent)@@ -854,7 +854,7 @@ raiseInvalid("Invalid dictionary")
result.add indent&"var "&scopevar&" = newScopeRef(nil)" result.add op&"MinValue(kind: minDictionary, scope: "&scopevar&")" of tkSymbol: - result = @[op&"MinValue(kind: minSymbol, symVal: "&p.a.escapeEx&", column: " & $p.getColumn & ", line: " & $p.lineNumber & ", filename: "&p.filename.escapeEx&")"] + result = @[op&"MinValue(kind: minSymbol, symVal: "&p.a.escapeEx&")"] p.a = "" discard getToken(p) else:
M
next-release.md
→
next-release.md
@@ -8,6 +8,7 @@
### Fixes and Improvements * Documentation improvements and fixes (thanjs @agentofuser, @tristanmcd130, and @jo-he). -* Fixed #184 (thanks @inivekin) +* Fixed #184 (thanks @inivekin). * Fixed problem with hardcoded relative paths to third-party libraries that prevented installing via nimble. +* Removed filename/line/column from generated Nim code when compiling. * Upgraded OpenSSL to v3.1.1.