mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-15 01:45:02 +01:00
more vm and alloc and intern
This commit is contained in:
parent
e58e6e3dc4
commit
dc26b52bd2
8 changed files with 200 additions and 112 deletions
|
|
@ -1,7 +1,8 @@
|
|||
//! The bytecode that is executed in the vm
|
||||
|
||||
use crate::errors::Span;
|
||||
use crate::value::{HashMap, NewSym};
|
||||
use crate::gc::Symbol;
|
||||
use crate::HashMap;
|
||||
use bumpalo::collections::Vec;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -47,5 +48,5 @@ pub enum Value {
|
|||
Num(f64),
|
||||
String,
|
||||
Array,
|
||||
Object(HashMap<NewSym, Value>),
|
||||
Object(HashMap<Symbol, Value>),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue