PACKAGE
mantra.compiler
Compiler frontend and backends: lexer, recursive parser, type checker, VM, and C99 codegen.
📋 Classes & Interfaces Summary
| Class / Interface | Type | Description |
|---|---|---|
| Lexer | CLASS | Indentation-aware token stream scanner that synthesizes INDENT and DEDENT tokens based on 4-space indentation rules. |
| Parser | CLASS | Recursive-descent syntax analyzer translating token streams into strongly-typed Abstract Syntax Trees (AST). |
| TypeChecker | CLASS | Static semantic validator ensuring interface completeness, method override validity, and encapsulation scopes. |
| Interpreter | CLASS | Dynamic tree-walking VM evaluating AST nodes directly using hierarchical execution frames. |
| CEmitter | CLASS | Native code generator translating Mantra AST into optimized ISO C99 source with vtable structs. |
| NativeCompiler | CLASS | Compiler driver executing host Clang/GCC to produce native executables with -O2 optimization. |