sceql.txt 665 B

1234567891011121314151617
  1. Sceql (seckel): slow and clean esoteric queue language
  2. The program has access to a queue of bytes. The queue initially contains
  3. a single zero byte.
  4. Instructions:
  5. = NEXT Dequeue a byte and enqueue it again
  6. - DEC Decrement the byte that would be dequeued next (wrapping)
  7. _ INC Increment the byte that would be dequeued next (wrapping)
  8. \ BEGIN Skip to the instruction after the corresponding END if the byte
  9. that would be dequeued next is zero
  10. / END Go back to the corresponding BEGIN
  11. ! GROW Enqueue a new zero byte
  12. & INPUT Read a byte from stdin and enqueue it (0 for EOF)
  13. * OUTPUT Dequeue a byte, write it to stdout, and enqueue it again