Minor QoL improvements to main.nim

This commit is contained in:
nocturn9x 2021-12-26 20:05:44 +01:00
parent 0a3d93512c
commit 71dfac87dd
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ nimcache/
nimblecache/
htmldocs/
main
*.jplc

View File

@ -77,7 +77,7 @@ proc main() =
# We run this now because the optimizer
# acts in-place on the AST so if we printed
# it later the parsed tree would equal the
# optimized one!
# optimized one
echo "Parsing step: "
for node in tree:
echo "\t", node
@ -130,7 +130,7 @@ proc main() =
stdout.write($e)
if i < len(serialized.chunk.code) - 1:
stdout.write(", ")
stdout.write("]\n")
stdout.write(&"] (matches: {serialized.chunk.code == compiled.code})\n")
except:
echo &"A Nim runtime exception occurred: {getCurrentExceptionMsg()}"