Expand description

Semantic analyzer

Semantic analyzer provide algorithms to analyze AST for different rules and generate Codegen. AST represent tree n0des of language constructions and fully cover all flow of the program represented through AST.

Semantic contains basic entities:

  • Global State - global state of semantic analyzer.
  • Block State - state for functions and sub blocks for it.
  • Codegen - generated code as result of semantic analyzing.

Codegen is result of Semantic analyzer and contains prepared data tree of generated code for next step - compilation generated raw program code.

Structs