about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-24 20:39:22 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-24 20:39:22 -0700
commitb27a1a2523ed0733329832b7010a7939e3b72114 (patch)
tree21d6f33807042729033cb42554c454646ede014f
parent6d35f049cc894f929f4793140bbe768adff4bd4a (diff)
downloadmu-b27a1a2523ed0733329832b7010a7939e3b72114.tar.gz
6851
-rw-r--r--apps/tile/data.mu13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/tile/data.mu b/apps/tile/data.mu
index 1cdbbc5c..44d9b2d6 100644
--- a/apps/tile/data.mu
+++ b/apps/tile/data.mu
@@ -28,16 +28,23 @@ type line {
 type word {
   # at most one of these will be non-null
   scalar-data: (handle gap-buffer)
+  text-data: (handle array byte)
   box-data: (handle line)  # recurse
   next: (handle word)
   prev: (handle word)
 }
 
-type result {
-  data: (handle word-stack)
-  error: (handle array byte)  # single error message for now
+type value {
+  scalar-data: int
+  text-data: (handle array byte)
+  box-data: (handle line)
 }
 
+#? type result {
+#?   data: (handle value-stack)
+#?   error: (handle array byte)  # single error message for now
+#? }
+
 # if 'out' is non-null, save the first word of the program there
 fn initialize-program _program: (addr program), out: (addr handle word) {
   var program/esi: (addr program) <- copy _program