From b27a1a2523ed0733329832b7010a7939e3b72114 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 24 Sep 2020 20:39:22 -0700 Subject: 6851 --- apps/tile/data.mu | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'apps/tile') 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 -- cgit 1.4.1-2-gfad0