The variable engine is designed to follow the DIP (Dependency Inversion Principle). It is divided into three layers according to code stability, abstraction level, and proximity to the business:
A predefined space where the declaration and consumption of variables are described through an AST.
What the scope space is can be defined by different businesses.
⭐️⭐️⭐️ A protocol that combines AST nodes in a tree structure to explicitly or implicitly perform CRUD operations on variable information.
Reference link: https://ts-ast-viewer.com/
An AST node used to declare a new variable, which points to a value that changes within a specific set of ranges through a unique identifier.
⭐️⭐️⭐️ An AST node used to constrain a variable. The value of the constrained variable can only change within a pre - set set of ranges.
![]() | ![]() |