diff --git a/src/config.nim b/src/config.nim index 4612a48..b916e90 100644 --- a/src/config.nim +++ b/src/config.nim @@ -17,8 +17,8 @@ import strformat # These variables can be tweaked to debug and test various components of the toolchain const debugLexer* {.booldefine.} = false # Print the tokenizer's output const debugParser* {.booldefine.} = false # Print the AST generated by the parser -const debugCompiler* {.booldefine.} = false # Disassemble and print the bytecode generated by the compiler -const debugVM* {.booldefine.} = false # Run the VM in debug mode and show stack and instruction info +const debugCompiler* {.booldefine.} = false # Disassemble and /or print the code generated by the compiler +const debugVM* {.booldefine.} = false # Enable the runtime debugger in the bytecode VM const debugGC* {.booldefine.} = false # Debug the Garbage Collector (extremely verbose) const debugAlloc* {.booldefine.} = false # Trace object allocation (extremely verbose) const debugMem* {.booldefine.} = false # Debug the memory allocator (extremely verbose) @@ -36,7 +36,7 @@ const PeonVersion* = (major: 0, minor: 1, patch: 0) const PeonRelease* = "alpha" const PeonCommitHash* = staticExec("git rev-parse HEAD") const PeonBranch* = staticExec("git symbolic-ref HEAD 2>/dev/null | cut -f 3 -d /") -const PeonVersionString* = &"Peon {PeonVersion.major}.{PeonVersion.minor}.{PeonVersion.patch} {PeonRelease} ({PeonBranch[0..(if len(PeonBranch) > 8: 8 else: PeonBranch.high())]}, {CompileDate}, {CompileTime}, {PeonCommitHash}) [Nim {NimVersion}] on {hostOS} ({hostCPU})" +const PeonVersionString* = &"Peon {PeonVersion.major}.{PeonVersion.minor}.{PeonVersion.patch} {PeonRelease} ({PeonBranch}, {CompileDate}, {CompileTime}, {PeonCommitHash[0..PeonCommitHash.high() mod 8]}) [Nim {NimVersion}] on {hostOS} ({hostCPU})" const HelpMessage* = """The peon programming language, Copyright (C) 2022 Mattia Giambirtone & All Contributors This program is free software, see the license distributed with this program or check