UnionCompilerDesign / compiler_core

The core of the compiler, runtime, and builder setup.
MIT License
1 stars 1 forks source link

Semantic Analysis - Revised Implementation 🝙 #106

Open CalebLItalien opened 1 month ago

CalebLItalien commented 1 month ago

Details

Change SemAnalysis to happen in two steps. Each step is going to parse an AST and SymbolTableStack pairing, but they're going to do so in different ways. The first step will have immutable access to AST and SymbolTableStack. Thus, it should be able to exclusively work with references to the objects in question. The second will have mutable access to AST and SymbolTableStack. Use an Arc<RwLock<>> to ensure thread safety and atomic mutations.

Issue Type

Requirements

Notes