about summary refs log tree commit diff stats
path: root/cpp/.traces/divide_with_remainder
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/.traces/divide_with_remainder')
-rw-r--r--cpp/.traces/divide_with_remainder26
1 files changed, 26 insertions, 0 deletions
diff --git a/cpp/.traces/divide_with_remainder b/cpp/.traces/divide_with_remainder
new file mode 100644
index 00000000..330141db
--- /dev/null
+++ b/cpp/.traces/divide_with_remainder
@@ -0,0 +1,26 @@
+parse/0: instruction: 1
+parse/0:   ingredient: {name: "27", type: 0}
+parse/0:   product: {name: "1", type: 1}
+parse/0: instruction: 1
+parse/0:   ingredient: {name: "11", type: 0}
+parse/0:   product: {name: "2", type: 1}
+parse/0: instruction: 6
+parse/0:   ingredient: {name: "1", type: 1}
+parse/0:   ingredient: {name: "2", type: 1}
+parse/0:   product: {name: "3", type: 1}
+parse/0:   product: {name: "4", type: 1}
+run/0: instruction 0
+run/0: ingredient 0 is 27
+mem/0: storing in location 1
+run/0: instruction 1
+run/0: ingredient 0 is 11
+mem/0: storing in location 2
+run/0: instruction 2
+run/0: ingredient 0 is 1
+mem/0: location 1 is 27
+run/0: ingredient 1 is 2
+mem/0: location 2 is 11
+run/0: product 0 is 2
+mem/0: storing in location 3
+run/0: product 1 is 5
+mem/0: storing in location 4
#fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#lang racket/base
;; For legal info, see file "charterm.rkt".

;; (require (planet neil/charterm:1))
(require "charterm.rkt")

(with-charterm
 (charterm-clear-screen)
 (charterm-cursor 10 5)
 (charterm-display "Hello, ")
 (charterm-bold)
 (charterm-display "you")
 (charterm-normal)
 (charterm-display ".")
 (charterm-cursor 1 1)
 (charterm-display "Press a key...")
 (let ((key (charterm-read-key)))
   (charterm-cursor 1 1)
   (charterm-clear-line)
   (printf "You pressed: ~S\r\n" key)))