mod types;
use std::collections::BTreeMap;
use crate::vm::types::Pr47Value;
use crate::bind::funcs::Pr47Func;
pub use types::*;
pub struct Pr47Env {
static_stack: Vec<Vec<Pr47Value>>,
dynamic_stack: Vec<Vec<Pr47Ptr>>,
heap: Vec<Pr47Ptr>,
ffi_funcs: BTreeMap<String, Box<dyn Pr47Func>>
}
impl Pr47Env {
pub fn new() -> Self {
Self {
static_stack: Vec::new(),
dynamic_stack: Vec::new(),
heap: Vec::new(),
ffi_funcs: BTreeMap::new()
}
}
}