From 672e3e50c6ed6de161e40aa256c3fc0f2b1f7cf9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 6 May 2015 00:19:03 -0700 Subject: 1279 - colorized rendering of the source files --- html/026assert.cc.html | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 html/026assert.cc.html (limited to 'html/026assert.cc.html') diff --git a/html/026assert.cc.html b/html/026assert.cc.html new file mode 100644 index 00000000..14a471bc --- /dev/null +++ b/html/026assert.cc.html @@ -0,0 +1,56 @@ + + + + +~/Desktop/s/mu/026assert.cc.html + + + + + + + + + + +
+:(scenario assert)
+% Hide_warnings = true;
+recipe main [
+  assert 0:literal, [this is an assert in mu]
+]
++warn: this is an assert in mu
+
+:(before "End Primitive Recipe Declarations")
+ASSERT,
+:(before "End Primitive Recipe Numbers")
+Recipe_number["assert"] = ASSERT;
+:(before "End Primitive Recipe Implementations")
+case ASSERT: {
+  trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name;
+  vector<long long int> arg0 = read_memory(current_instruction().ingredients[0]);
+  assert(arg0.size() == 1);
+  if (arg0[0] == 0)
+    raise << current_instruction().ingredients[1].name << '\n';
+  break;
+}
+
+ + + -- cgit 1.4.1-2-gfad0