aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2023-06-15 18:14:02 -0700
committerrtk0c <[email protected]>2023-06-15 18:14:02 -0700
commit1717c62f258c3cad297e9d066da7cbe57f8be200 (patch)
tree5864784122bb413a79b088da0e093ec419903007 /source/20-codegen-compiler
parent434a274cc8b85cfb37309c0ac1b1470ed930d30f (diff)
Changeset: 98 Cleanup and prepare for rewriting shader system
Diffstat (limited to 'source/20-codegen-compiler')
-rw-r--r--source/20-codegen-compiler/main.cpp2
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);