diff --git a/src/config.nim b/src/config.nim index 6014eb9..1fda235 100644 --- a/src/config.nim +++ b/src/config.nim @@ -27,7 +27,7 @@ when len(PEON_COMMIT_HASH) != 40: const PEON_BRANCH* = "master" when len(PEON_BRANCH) > 255: {.fatal: "The git branch name's length must be less than or equal to 255 characters".} -const DEBUG_TRACE_VM* = true # Traces VM execution +const DEBUG_TRACE_VM* = false # Traces VM execution const DEBUG_TRACE_GC* = false # Traces the garbage collector (TODO) const DEBUG_TRACE_ALLOCATION* = false # Traces memory allocation/deallocation const DEBUG_TRACE_COMPILER* = false # Traces the compiler diff --git a/src/frontend/compiler.nim b/src/frontend/compiler.nim index 27116f4..81a5797 100644 --- a/src/frontend/compiler.nim +++ b/src/frontend/compiler.nim @@ -1502,4 +1502,3 @@ proc compile*(self: Compiler, ast: seq[Declaration], file: string): Chunk = result = self.chunk if self.ast.len() > 0 and self.scopeDepth != -1: self.error(&"invalid state: invalid scopeDepth value (expected -1, got {self.scopeDepth}), did you forget to call endScope/beginScope?") - echo self.chunk.code \ No newline at end of file diff --git a/src/main.nim b/src/main.nim index e72b4ce..5d22fd6 100644 --- a/src/main.nim +++ b/src/main.nim @@ -32,7 +32,7 @@ proc getLineEditor: LineEditor # Handy dandy compile-time constants const debugLexer = false const debugParser = false -const debugCompiler = true +const debugCompiler = false const debugSerializer = false const debugRuntime = false