Humus Simulator/Debugger





Quick Reference

See the Humus language overview for more detail.

Statements

Expressions

Patterns

Built-Ins

println
An actor that receives any message, and prints it to the console
timer
An actor that receives (dt, msg, actor), and sends msg to actor after dt milliseconds
random
An actor that receives (cust, n), and sends cust a random number from 0 to n-1
eq(value, value)
Value equality produces a boolean
not(boolean)
and(boolean, boolean)
or(boolean, boolean)
Boolean predicates produce a boolean or ?
is_boolean(value)
is_number(value)
is_function(value)
is_actor(value)
is_pair(value)
Type predicates produce a boolean
neg(number)
add(number, number)
sub(number, number)
mul(number, number)
div(number, number)
mod(number, number)
Arithmetic operations produce a number or ?
compare(number, number)
Numeric comparison produces -1 if <, 0 if =, 1 if >, or ?
less(number, number)
less_equal(number, number)
greater_equal(number, number)
greater(number, number)
Numeric predicates produce a boolean or ?


DEBUG:
TRACE: