You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(compiler): Implement Phase 2 Procedures, Functions & Loop Control
Completes all Phase 2 tasks by adding full support for subroutines and advanced loop control statements.
- Implements functions and procedures with support for value, `var`, and `const` parameters.
- Adds `external` function declarations and all BNF-specified calling conventions (`cdecl`, `stdcall`, `fastcall`, `register`) for C ABI interoperability.
- Adds support for `break` and `continue` statements with contextual validation.
- Fixes memory corruption and dangling pointer bugs by implementing correct ownership semantics for parameter symbols in the symbol table.
- Corrects parser logic for statement separator handling.
- Updates `coverage.pas` with comprehensive tests for all new capabilities.
0 commit comments