tomo/docs/README.md
2024-08-19 15:57:06 -04:00

1.3 KiB

Documentation

This is an overview of the documentation on Tomo.

Topics

A few topics that are documented:

Types

Information about Tomo's built-in types can be found here:

Built-in Functions

say

Description:
Prints a message to the console.

Usage:

say(text:Text) -> Void

Parameters:

  • text: The text to print.

Returns:
Nothing.

Example:

say("Hello world!")

fail

Description:
Prints a message to the console, aborts the program, and prints a stack trace.

Usage:

fail(message:Text) -> Abort

Parameters:

  • message: The error message to print.

Returns:
Nothing, aborts the program.

Example:

fail("Oh no!")