Execute HQ9+: Difference between revisions

Line 336:
It slightly alters an original HQ9+ specification. HQ9+ is an impure language that does console output. However console output is the only interaction that a user can see when executing HQ9+ program. This interpreter doesn't output to console but instead generates a list with all outputs. An accumulator is moved to the interpter arguments and the need for a reference cell is eliminated. Once an interpreter completes a client code can output to console like so:
 
<lang ela>open console imperative
each writen <| eval "HQ9+"</lang>
 
Anonymous user