From 4fe9f5e8257770a6b1de1aa94748609acd37f0f6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 3 Aug 2015 00:49:38 -0700 Subject: 1925 --- html/042name.cc.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'html/042name.cc.html') diff --git a/html/042name.cc.html b/html/042name.cc.html index 1a0cc746..106b8e63 100644 --- a/html/042name.cc.html +++ b/html/042name.cc.html @@ -13,11 +13,11 @@ pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; } body { font-family: monospace; color: #eeeeee; background-color: #080808; } * { font-size: 1.05em; } +.traceAbsent { color: #c00000; } .traceContains { color: #008000; } -.cSpecial { color: #008000; } .Constant { color: #00a0a0; } +.cSpecial { color: #008000; } .SalientComment { color: #00ffff; } -.traceAbsent { color: #c00000; } .Comment { color: #9090ff; } .Delimiter { color: #a04060; } .Special { color: #ff6060; } @@ -45,6 +45,7 @@ recipe main [ +name: assign x 1 +mem: storing 0 in location 1 +:(scenarios transform) :(scenario transform_names_warns) % Hide_warnings = true; recipe main [ @@ -176,12 +177,16 @@ recipe main [ -name: assign _ 1 //: an escape hatch to suppress name conversion that we'll use later +:(scenarios run) :(scenario transform_names_passes_raw) +% Hide_warnings = true; recipe main [ x:number/raw <- copy 0 ] -name: assign x 1 ++warn: can't write to location 0 in 'x:number/raw <- copy 0' +:(scenarios transform) :(scenario transform_names_warns_when_mixing_names_and_numeric_locations) % Hide_warnings = true; recipe main [ @@ -233,7 +238,7 @@ recipe main [ if (inst.operation == Recipe_ordinal["get"] || inst.operation == Recipe_ordinal["get-address"]) { if (SIZE(inst.ingredients) != 2) { - raise << Recipe[r].name << ": exactly 2 ingredients expected in '" << current_instruction().to_string() << "'\n" << end(); + raise << Recipe[r].name << ": exactly 2 ingredients expected in '" << inst.to_string() << "'\n" << end(); break; } if (!is_literal(inst.ingredients.at(1))) -- cgit 1.4.1-2-gfad0