|
Zen-C
|


Go to the source code of this file.
Data Structures | |
| struct | TypeChecker |
| Type Checker Context. More... | |
Typedefs | |
| typedef struct TypeChecker | TypeChecker |
| Type Checker Context. | |
Functions | |
| int | check_program (ParserContext *ctx, ASTNode *root) |
| Main Type Checking Entry Point. | |
| typedef struct TypeChecker TypeChecker |
Type Checker Context.
Holds the state during the semantic analysis pass. Unlike the parser, this focuses on semantic validity (types, definitions, correctness).
| int check_program | ( | ParserContext * | ctx, |
| ASTNode * | root | ||
| ) |
Main Type Checking Entry Point.
Performs semantic analysis on the entire AST.
| ctx | Global parser context. |
| root | Root AST node of the program. |