MIR: lexical scoping + builder vars modules

This commit is contained in:
nyash-codex
2025-12-13 01:30:04 +09:00
parent 5c75506dcc
commit 1fae4f1648
16 changed files with 388 additions and 29 deletions

View File

@ -21,6 +21,7 @@ impl super::MirBuilder {
// Sequentially lower statements and return last value (or Void)
self.cf_block(statements)
}
ASTNode::ScopeBox { body, .. } => self.cf_block(body),
ASTNode::Print { expression, .. } => self.build_print_statement(*expression),
ASTNode::If {
condition,