about summary refs log tree commit diff stats
path: root/baremetal/shell
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-02-21 22:10:19 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-02-21 22:10:19 -0800
commit37e8e05721083b34c1a309d3db8337f433f2b492 (patch)
treee4efc19bf07b44adf43e6f5e984736be112ee2c4 /baremetal/shell
parent210c48370a9cfda64e421440df4bb378b0167d0b (diff)
downloadmu-37e8e05721083b34c1a309d3db8337f433f2b492.tar.gz
7778
Diffstat (limited to 'baremetal/shell')
-rw-r--r--baremetal/shell/read.mu7
1 files changed, 5 insertions, 2 deletions
diff --git a/baremetal/shell/read.mu b/baremetal/shell/read.mu
index ba575d83..ced559b1 100644
--- a/baremetal/shell/read.mu
+++ b/baremetal/shell/read.mu
@@ -1,5 +1,5 @@
 # out is not allocated
-fn read-cell in: (addr gap-buffer), _out: (addr handle cell) {
+fn read-cell in: (addr gap-buffer), out: (addr handle cell) {
   # TODO:
   #   tokenize
   #   insert parens
@@ -7,7 +7,10 @@ fn read-cell in: (addr gap-buffer), _out: (addr handle cell) {
   #   token tree
   #   syntax tree
   rewind-gap-buffer in
-  # read symbol
+  read-symbol in, out
+}
+
+fn read-symbol in: (addr gap-buffer), _out: (addr handle cell) {
   var out/eax: (addr handle cell) <- copy _out
   new-symbol out
   var out-a/eax: (addr cell) <- lookup *out