Matchbox 0.2

Built-in Functions

Matchbox 0.2 includes a small set of built-in functions. This page lists them by category and links to the detailed reference page for each function.

I/O

I/O functions allow a program to communicate with its environment.

  • print writes an integer to standard output.

Math

Math functions provide common operations for integer values.

  • abs returns an integer's absolute value.
  • clamp restricts an integer to a range.
  • max returns the greater of two integers.
  • min returns the lesser of two integers.

Runtime

Runtime functions provide information about the environment in which a Matchbox program is executing.

System

System functions allow a Matchbox program to interact with the host system and control its process.

  • exit terminates the current program.