Skip to content

Commit

Permalink
label table is now by file instead of by function.
Browse files Browse the repository at this point in the history
Not really working well with modern standards but old PPL uses that.
  • Loading branch information
mkrueger committed Jan 19, 2025
1 parent 0c35fc0 commit ec48b4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/icy_board_engine/src/semantic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ impl<'a> SemanticVisitor<'a> {

fn start_parse_function_body(&mut self) {
self.local_variable_lookup = Some(VariableLookups::default());
self.label_lookup_table.clear();

// TODO: clear the local label lookup on each new functions for future language versions?
// self.label_lookup_table.clear();
}

fn end_parse_function_body(&mut self) -> Option<VariableLookups> {
Expand Down

0 comments on commit ec48b4c

Please sign in to comment.