about summary refs log tree commit diff stats
path: root/baremetal/shell/line.mu
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal/shell/line.mu')
-rw-r--r--baremetal/shell/line.mu7
1 files changed, 7 insertions, 0 deletions
diff --git a/baremetal/shell/line.mu b/baremetal/shell/line.mu
index 70b0184c..f3d8d261 100644
--- a/baremetal/shell/line.mu
+++ b/baremetal/shell/line.mu
@@ -61,6 +61,13 @@ fn render-line screen: (addr screen), _line: (addr line), x: int, y: int, render
   return result
 }
 
+fn parse-line in: (addr array byte), _out: (addr line) {
+  var out/edi: (addr line) <- copy _out
+  initialize-line out
+  var dest/eax: (addr handle word) <- get out, data
+  parse-words in, dest
+}
+
 #? fn main {
 #?   # line = [aaa, bbb, ccc, ddd]
 #?   var line-storage: line