Closed kubouch closed 8 months ago
Resolution pass performs binding of definition and use sites. Only implemented for variables in this PR. Includes:
let
$var
I want to make sure the test outputs make sense and add scoping to more commands (if, for, etc.). Commands like for should also define variables using the same trick as I did in the closure resolving.
if
for
Resolution pass performs binding of definition and use sites. Only implemented for variables in this PR. Includes:
let
and closure params define variables within scope$var
performs variable lookup within the current scope frame