accomodate \0\ in partial strings, print null as \0\ (#267, #526), update prolog parser, version bump

This commit is contained in:
Mark Thom
2020-05-18 23:45:21 -06:00
parent 041dc039d4
commit e0e3b180e7
7 changed files with 28 additions and 58 deletions

View File

@@ -1110,6 +1110,11 @@ impl MachineState {
let h = self.heap.h();
if atom.as_str().is_empty() {
self.fail = true;
return Ok(());
}
let pstr = self.heap.allocate_pstr(atom.as_str());
let pstr_tail = self.heap[h + 1].as_addr(h + 1);