diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-02-12 22:04:36 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-02-12 22:04:36 -0800 |
commit | 97a77434c5950d7a491f77ec2543fcad3157c460 (patch) | |
tree | 4069436462538df2645ac8cdedee709402a16081 /baremetal/shell | |
parent | be4b86e91be785eb7eaaeded9472fd97c12551d9 (diff) | |
download | mu-97a77434c5950d7a491f77ec2543fcad3157c460.tar.gz |
7729
Diffstat (limited to 'baremetal/shell')
-rw-r--r-- | baremetal/shell/eval.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/baremetal/shell/eval.mu b/baremetal/shell/eval.mu index 64d60b98..ad077129 100644 --- a/baremetal/shell/eval.mu +++ b/baremetal/shell/eval.mu @@ -177,10 +177,10 @@ fn evaluate _in: (addr line), end: (addr word), out: (addr value-stack) { { rewind-stream curr-stream var start/eax: byte <- stream-first curr-stream - compare start, 0x5b/[ + compare start, 0x5b/open-bracket break-if-!= var end/eax: byte <- stream-final curr-stream - compare end, 0x5d/] + compare end, 0x5d/close-bracket break-if-!= # wastefully create a new input string to strip quotes var h: (handle array value) @@ -266,7 +266,7 @@ fn test-eval-string { # in var in-storage: line var in/esi: (addr line) <- address in-storage - parse-line "\"abc\"", in + parse-line "\"abc\"", in # TODO support spaces within strings # end var w-ah/eax: (addr handle word) <- get in, data var end-h: (handle word) |