From Esolang
Jump to: navigation, search

Oroogu is a language created by Georg Kraml based around the queue as its sole data structure and a "While Object X Contains One or More Items" loop as its main system of flow control. Original documentation is difficult to come by since Kraml's site went down, but the language is simple enough to give a basic overview.

d = ()
foo = (1 2 3..7) (d / foo)

This sample program consists of a queue named foo, and output queue named d, and a loop. Foo contains the items within the first set of parentheses, ".." is the range operator and indicates all integers between the two operands (infix notation). d starts out empty, but when foo is evaluated, each item in foo is removed and appended to d. By definition, all queues with a name beginning with or consisting only of d are sent to output at the end of the program run, so the program given has the following output:

1 2 3 4 5 6 7

External resources