One can force Amalthea not to load the prelude module by invoking the interpreter with the switch -noprelude. This prevents the prelude from being imported automatically both into the main program and into any modules it depends on, unless it's explicitly imported.
Name | Arguments | Description |
---|---|---|
terminate | Accepts no parameters and does nothing, resulting in program termination. | |
= | Calls contT if A and B are equal ints or strings, otherwise contF. |
Name | Arguments | Description |
---|---|---|
+ | Adds integer arguments A and B and calls the last argument with the result. | |
- | Subtracts integer arguments B from A and calls the last argument with the result. | |
* | Multiplies integer arguments A and B and calls the last argument with the result. | |
/ | Divides integer arguments A by B and calls the last argument with the result. Division by zero terminates the program with an error message. | |
< | Calls contT if intA is less than intB, otherwise contF. | |
> | Calls contT if intA is greater than intB, otherwise contF. | |
print_int | Prints the integer argument on standard out followed by a newline, then calls the second argument. | |
print_int_ | Prints the integer argument on standard out and calls the second argument. | |
string_of_int | Calls the second argument with the integer argument represented as a string. |
Name | Arguments | Description |
---|---|---|
^ | strA strB -> strR | Concatenates the strings strA and strB, calls the last argument continuation with the result.. |
= | Calls contT if A and B are equal ints or strings, otherwise contF. |
^ strA strB (-> strR) - Calls it's last argument with strA and strB concatenated.
substr strA intF intL (-> strR) - Calls it's last argument with the substring from strA specified by the first char intF and the last char intL, exclusive intL.
string_length strA (-> intR) - Calls it's last argument with the integer length of strA.
string_of_int intA (-> strR) - Calls it's last argument with the string representation of intA.
int_of_string strA (-> intR) - Calls it's last argument with the integer represented by strA. If strA doesn't represent a valid integer the program terminates with an error.
print_int intA contA - Prints it's first argument on standard out followed by a newline, then calls it's second argument.
print_int intA contA - Prints it's first argument on standard out followed by a newline, then calls it's second argument.
print_int_ strA contA - Prints it's first argument on standard out, then calls it's second argument.
print_string_ strA contA - Prints it's first argument on standard out, then calls it's second argument.
Look around in the modules to find out what's included.