Wheel IDE

Online demo »

Standard

This file contains standard procedures.

Constants

The standard module.
Source: lib/modules/standard.whl, line: 9
MODULE_STANDARD0

Standard module calls.
Source: lib/modules/standard.whl, line: 12
STANDARD_PRINT_NUMBER1
STANDARD_PRINT_STRING2
STANDARD_PRINT_FORMAT3
STANDARD_END_FORMAT4
STANDARD_CLEAR_CONSOLE5
STANDARD_SLEEP6
STANDARD_STOP_VM7
STANDARD_STOP_PROGRAM8
STANDARD_GET_TIME9

Boolean constants.
Source: lib/modules/standard.whl, line: 23
TRUE1
FALSE0

Procedures

printN
Source: lib/modules/standard.whl, line: 27

Print a number in the console.

proc printN(number n)
Parameters:
NameTypeDescription
nnumberThe number to print.

printS
Source: lib/modules/standard.whl, line: 34

Print a string in the console.

proc printS(string s)
Parameters:
NameTypeDescription
sstring

printFormat
Source: lib/modules/standard.whl, line: 41

Set the string formatting.

proc printFormat(string format)
Parameters:
NameTypeDescription
formatstringThe format, for example: "The number: %n, the text: %s"

endFormat
Source: lib/modules/standard.whl, line: 48

End the string formatting.

proc endFormat()

clearConsole
Source: lib/modules/standard.whl, line: 53

Clear the console in the IDE.

proc clearConsole()

sleep
Source: lib/modules/standard.whl, line: 58

Halt the execution of the VM for a given number of milliseconds.

proc sleep(number time)
Parameters:
NameTypeDescription
timenumberMilliseconds to pause.

stopVM
Source: lib/modules/standard.whl, line: 65

Stop the VM, this command does not stop the program.

proc stopVM()

stopProgram
Source: lib/modules/standard.whl, line: 70

Stop the program.

proc stopProgram()

getTime
Source: lib/modules/standard.whl, line: 75

Get the time value.

proc getTime()
Return: The time value in milliseconds.


halt
Source: lib/modules/standard.whl, line: 81

Keep looping, this traps the VM in an enless loop without stopping.

proc halt()