Monkey Documentation

Module monkey.lang

The lang module contains classes and functions built-in to the monkey language.


Classes:
Functions:

Function Documentation

Function DebugLog : Int ( message:String )

Writes message to the current debug channel.

Function DebugStop : Int ()

Stops program execution.

Function Error : Int ( message:String )

Generates a runtime error message and ends program execution.

If message is an empty string, program execution will end but no runtime error message with be generated.

Function Print : Int ( message:String )

Prints message to the current output channel.

The behavior of Print is target dependant. In general, monkey will attempt to print to the 'stdout' output channel, but on some targets this is not always an option.