diff options
Diffstat (limited to 'oryxc')
| -rw-r--r-- | oryxc/src/compiler.rs | 5 | ||||
| -rw-r--r-- | oryxc/src/prelude.rs | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/oryxc/src/compiler.rs b/oryxc/src/compiler.rs index 50a641e..3bfe6c1 100644 --- a/oryxc/src/compiler.rs +++ b/oryxc/src/compiler.rs @@ -381,7 +381,10 @@ fn worker_loop( }; let symid = c_state.interner.intern(view); - let sym = Symbol::default(); + let sym = Symbol { + state: ResolutionState::Unresolved, + kind: SymbolType::Constant, + }; if let Some(mut sym) = scope.symtab.insert(symid, sym, &arena) diff --git a/oryxc/src/prelude.rs b/oryxc/src/prelude.rs index c118c0d..4e36f33 100644 --- a/oryxc/src/prelude.rs +++ b/oryxc/src/prelude.rs @@ -47,17 +47,17 @@ pub enum ResolutionState { Poisoned, } -#[derive(Debug, Default)] +#[derive(Debug)] pub struct Symbol { pub state: ResolutionState, - pub kind: u32, + pub kind: SymbolType, } #[repr(u8)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] -pub enum DeclKind { - ConstDef = 0, - Param = 1, +pub enum SymbolType { + Constant, + FuncParam, } pub enum OryxType { |