svhawkins / B-Minor-Compiler

COMP 4060 B-Minor Compiler
2 stars 0 forks source link

hidden symbols as decls front-appended to parser-result #4

Closed svhawkins closed 10 months ago

svhawkins commented 11 months ago

(not really front-appended but decl_codegen() won't care if it's called twice on different declaration lists).

Hidden symbols are now 'appended' (see above) to struct decl* parser_result so that when it comes to decl_codegen(), all necessary symbols, including hidden symbols, will be in the list(s), with no need to look through the symbol table several times to check for symbols that may not even be in the table (if no string literals are ever used for instance).

svhawkins commented 10 months ago

08.20.2023: 13:44: Merged to branch codegen