Commit 313ea9c
committed
feat: add unified cleanup infrastructure and Grammar2 support
Memory Management:
- Add UnifiedCleanupManager bridging LinearTypeChecker with DropManager
- Implement HirLinearityKind enum mirroring TypedAST linearity kinds
- Add CleanupInfo for type cleanup requirements
- Create CleanupAction enum for destructor/intrinsic/drop operations
- Implement scope-based cleanup with strategy-aware action generation
- Integrate StackPromotionPass into MemoryManagementPass pipeline
ZynML:
- Add Grammar2 support for direct TypedAST parsing
- Export Grammar2, Grammar2Error, Grammar2Result types
- Add parse_to_typed_ast() and parse_to_typed_ast_with_filename() methods
- Add has_grammar2() and grammar2() accessor methods
- Add Grammar2 compilation and metadata tests1 parent 0b0e0b4 commit 313ea9c
4 files changed
Lines changed: 585 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
0 commit comments