Step 41 TDD test: C++ expression generation

Tests BinaryOperation, UnaryOperation, VariableReference, all literals
(int, float, string, bool, null->nullptr), FunctionCall, and nested
expression parenthesization for CppGenerator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bill
2026-02-07 08:18:51 -07:00
parent 217a38a2c8
commit 07f40c4786
2 changed files with 206 additions and 0 deletions

View File

@@ -136,6 +136,9 @@ target_include_directories(step39_test PRIVATE src)
add_executable(step40_test tests/step40_test.cpp)
target_include_directories(step40_test PRIVATE src)
add_executable(step41_test tests/step41_test.cpp)
target_include_directories(step41_test PRIVATE src)
add_executable(whetstone_editor src/main.cpp)
target_include_directories(whetstone_editor PRIVATE src)
# find_package(SDL2 REQUIRED) # Commented out for now to avoid build issues