add wam_instructions/2 to render predicate instructions as lists of functors

This commit is contained in:
Mark Thom
2019-09-22 16:06:50 -06:00
parent 4cfab7aff8
commit 380aae85bd
12 changed files with 594 additions and 24 deletions

View File

@@ -16,6 +16,18 @@ macro_rules! heap_integer {
)
}
macro_rules! heap_cell {
($i:expr) => (
HeapCellValue::Addr(Addr::HeapCell($i))
)
}
macro_rules! heap_con {
($i:expr) => (
HeapCellValue::Addr(Addr::Con($i))
)
}
macro_rules! heap_atom {
($name:expr) => (
HeapCellValue::Addr(Addr::Con(atom!($name)))