read/single

text


Summary

Uses the reader and returns the first single value read from string TEXT

Bytecode

Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.

(    0 ($get/val 'type-of))
(    2 ($get/val 'text))
(    4 ($apply 1))
(    6 ($push/val :string))
(    8 ($=))
(    9 ($jf* 7))
(   12 ($push/nil))
(   13 ($jmp* 21))
(   16 ($get/val 'throw))
(   18 ($get/val 'list))
(   20 ($push/val :type-error))
(   22 ($push/val Expected a value of type :string))
(   24 ($get/val 'text))
(   26 ($get/val 'current-lambda))
(   28 ($apply 0))
(   30 ($apply 4))
(   32 ($apply 1))
(   34 ($drop))
(   35 ($get/val 'read))
(   37 ($get/val 'text))
(   39 ($apply 1))
(   41 ($car))
(   42 ($ret))