diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 23:21:07 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 23:21:07 +0100 |
| commit | 82c14f030b36938cb10c1c8f8e880d0e0acaadc2 (patch) | |
| tree | 50d399aebb9d374c867d86482da129fce1b1c4e7 /oryxc/src/prelude.rs | |
| parent | f1a862a334efb1aa1f1cc2c3f30dcbffeaa9b4e3 (diff) | |
Begin working on symbol resolution
Diffstat (limited to 'oryxc/src/prelude.rs')
| -rw-r--r-- | oryxc/src/prelude.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/oryxc/src/prelude.rs b/oryxc/src/prelude.rs index 78e7597..b7e80c2 100644 --- a/oryxc/src/prelude.rs +++ b/oryxc/src/prelude.rs @@ -8,7 +8,17 @@ use std::fmt::{ pub struct FileId(pub usize); #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] -pub struct NodeId(pub u32); +pub struct ScopeId(pub usize); + +impl ScopeId { + pub const GLOBAL: Self = Self(0); +} + +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] +pub struct SymbolId(pub u32); + +pub struct SymbolVal {} #[derive(Clone, Copy)] pub struct SubNodes(pub u32, pub u32); |