First Class Variables as AST Annotations
The AST produced by the parser lacks semantic information about variables. Semantic variables were introduced to annotate the AST. However, variables were not first class objects. This document proposes making variables first class by representing them as subclasses of Variable, each with their own scope. Now the AST can use semantic variables directly, simplifying name analysis for the compiler and enabling reflective access to variables.
Related topics: