Top level scope

This commit is contained in:
2026-04-15 08:40:28 +02:00
parent 6df7f672d0
commit 19629363b0
3 changed files with 32 additions and 10 deletions
+21
View File
@@ -0,0 +1,21 @@
use std::{
collections::HashMap,
sync::{Arc, Mutex},
};
use crate::top_level;
pub enum Symbol {
Function(top_level::FunctionSymbol),
TypeSymbol(top_level::TypeSymbol),
StructSymbol(top_level::StructSymbol),
}
pub struct Scope {
pub parent: Option<Arc<Scope>>,
pub variables: Mutex<HashMap<String, Symbol>>,
}
impl Scope {
pub fn from_top_level() {}
}