diff options
Diffstat (limited to 'source/20-codegen-compiler')
-rw-r--r-- | source/20-codegen-compiler/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/20-codegen-compiler/main.cpp b/source/20-codegen-compiler/main.cpp index 6e4f9a0..a2e50f5 100644 --- a/source/20-codegen-compiler/main.cpp +++ b/source/20-codegen-compiler/main.cpp @@ -670,7 +670,7 @@ CodegenLexer LexInputFile(AppState& as, std::string_view source) { void ParseInputFileAndGenerate(AppState& as, CodegenLexer& /*lexingState*/ ls, std::string_view filenameStem) { #if CODEGEN_DEBUG_PRINT printf("BEGIN tokens\n"); - for (auto& token : lexer.tokens) { + for (auto& token : ls.tokens) { switch (token.type) { case CLEX_intlit: { printf(" token %-32s = %ld\n", FSTR_LUT_LOOKUP(ClexNames, token.type), token.lexerIntNumber); |