about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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