A language built for fun
This project is maintained by cometlang
clock()
returns a Number representing the fractional number of seconds of CPU time the process has usedprint([...])
print every argument by first calling to_string()
on it first, ending with a newlineprint_to(STD_STREAM, [...])
print every argument by first calling to_string()
on it first, ending with a newline. It will print it to the given stream. The options are STD_STREAM.OUT and STD_STREAM.ERRinput([prompt])
print the prompt (no newline) if given and then wait for a line of input, returning it as a String. Gets a maximum of 512 bytes in one line.get_password([prompt])
print the prompt (no newline) if given and then wait for a line of input, returning it as a String. Does not echo the input. Gets a maximum of 512 bytes in one line.assert(value)
if value is falsy, then an AssertionException is throwncallable?(value)
returns true
if the value can be called (like a function)sleep(time)
stops the execution of the current thread for at least the fractional seconds provided.exit(exit_status)
simple wrapper for the C function to exit the program with the given return code. Makes no attempt to clean anything up.get_imported_modules()
gets all of the Modules currently imported to the interpretercall_function(receiver, method, [arguments, ...])
calls the method on the receiver. If the method is a function object, then the receiver may be nil
. If the method is a name of a method (a string), then the receiver must be an instance.