UnionCompilerDesign / compiler_core

The core of the compiler, runtime, and builder setup.
MIT License
1 stars 1 forks source link

SymbolTableStack - Constants in Initializations #138

Open CalebLItalien opened 2 weeks ago

CalebLItalien commented 2 weeks ago

Details

The test test_variable_initialization_sym_table does not pass because it expects sym_table_init to read that the assigned value is a constant, and create a StrValue type rather than a Node type. It is commented out because of this. Fix sym_table_init to properly read the assigned value's child's type, and create a StrValue if its a constant and then uncomment out the test to prove it works.

Issue Type

Requirements

Notes