Qu (programming language)


Qu is a computer programming language with an open-source interpreter written in C by Marc Krisnanto. It is comparable to Python, Ruby, Perl and many others. It is licensed under the GPL version 2.
The language is semi-dynamic, and optionally strongly typed, with full object orientation. All variables in the language are first class objects.
The design and implementation focuses on compactness and speed, using the GNU Lightning Just In Time compiler.

Examples

  1. Ackermann
if not # get input;
println
println
else
NUM = Int
printf: %d\n', NUM, Ack)
end if
sub Ack # one way
if m 0 return n + 1
elif n 0 return Ack
else return Ack;;
;;
# alternate way
sub ackermann
return m ? ) : n + 1
;;