more vm and alloc and intern

This commit is contained in:
nora 2021-12-31 14:09:06 +01:00
parent e58e6e3dc4
commit dc26b52bd2
8 changed files with 200 additions and 112 deletions

View file

@ -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>),
}