From acc4792d2f7c787aad064876a1eb2d00bdf076b2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 21 Mar 2016 02:25:52 -0700 Subject: 2803 Show more thorough information about instructions in the trace, but keep the original form in error messages. --- 031address.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '031address.cc') diff --git a/031address.cc b/031address.cc index 0bbe8ab8..16e29dbd 100644 --- a/031address.cc +++ b/031address.cc @@ -25,7 +25,7 @@ def main [ :(before "End Preprocess write_memory(x)") canonize(x); if (x.value == 0) { - raise << "can't write to location 0 in '" << to_string(current_instruction()) << "'\n" << end(); + raise << "can't write to location 0 in '" << to_original_string(current_instruction()) << "'\n" << end(); return; } @@ -189,7 +189,7 @@ def main [ 2:number <- copy 34 3:number <- copy *1:address:number ] -+parse: ingredient: 1: ("address" "number"), {"lookup": ()} ++parse: ingredient: {1: ("address" "number"), "lookup": ()} +mem: storing 34 in location 3 :(before "End Parsing reagent") -- cgit 1.4.1-2-gfad0