Sceql

From Esolang

Jump to: navigation, search

Sceql is a language that provides a single byte queue as the only form of memory available to programs. The queue can never be empty, and data can never be removed from it once enqueued into it. Initially the queue has one value of 0.

[edit] Instructions

= NEXT   Dequeue a byte and enqueue it again
- DEC    Decrement the byte that would be dequeued next (wrapping)
_ INC    Increment the byte that would be dequeued next (wrapping)
\ BEGIN  Skip to the instruction after the corresponding END if the byte
         that would be dequeued next is zero
/ END    Go back to the corresponding BEGIN
! GROW   Enqueue a new zero byte
& INPUT  Read a byte from stdin and enqueue it (0 for EOF)
* OUTPUT Dequeue a byte, write it to stdout, and enqueue it again

[edit] History

Sceql is a revised version of Qdeql. The instruction set is a lot more practical and easier to use than in Qdeql.

[edit] External resources

Personal tools