introduce bespoke Heap type for in-heap partial strings

This commit is contained in:
Mark Thom
2024-05-13 18:00:56 -06:00
committed by Mark Thom
parent f7bbdfe73a
commit c0f72704ec
54 changed files with 7836 additions and 7167 deletions

View File

@@ -2,6 +2,7 @@ use crate::parser::ast::*;
use crate::forms::*;
use crate::instructions::*;
use crate::machine::heap::Heap;
use crate::targets::*;
pub(crate) trait Allocator {
@@ -45,7 +46,7 @@ pub(crate) trait Allocator {
fn reset(&mut self);
fn reset_arg(&mut self, arg_num: usize);
fn reset_at_head(&mut self, term: &mut FocusedHeap, head_loc: usize);
fn reset_at_head(&mut self, heap: &mut Heap, head_loc: usize);
fn reset_contents(&mut self);
fn advance_arg(&mut self);