readline

prompt


Summary

Read a line of input in a user friendly way after writing PROMPT

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 'stdout))
(    2 ($push/val 'block-write))
(    4 ($get/val 'prompt))
(    6 ($dup))
(    7 ($jt* 13))
(   10 ($drop))
(   11 ($push/val ))
(   13 ($dup))
(   14 ($jt* 6))
(   17 ($drop))
(   18 ($push/val #f))
(   20 ($apply 2))
(   22 ($drop))
(   23 ($get/val 'stdout))
(   25 ($push/val 'flush-output))
(   27 ($apply 1))
(   29 ($drop))
(   30 ($get/val 'read-line))
(   32 ($apply 0))
(   34 ($ret))