Garden 🌻

Manual

Keywords

as, assert, break, continue, else, enum, for, fun, if, import, in, let, match, method, public, return, shared, struct, test and while.

Operators

+, +=, -, -=, *, **, ==, !=, =, ^, >, <, >=, <= and %.

Built-in Types

Bool, Dict, Fun, Int, List, Namespace, NoValue, Option, Path, Result, String, Tuple and Unit.

Prelude

These functions are available without importing anything.

dbg(), get_env(), max(), min(), print(), println(), range(), shell(), shell_arguments(), source_directory(), string_repr(), throw() and todo().

Filesystem __fs.gdn

create_dir(), list_directory(), remove_dir(), set_working_directory(), working_directory() and write_file().

Random __random.gdn

int()

Reflection __reflect.gdn

builtin_files(), check_snippet(), doc_comment(), doc_comment_for_method(), doc_comment_for_type(), keywords(), lex(), methods_for_type(), namespace_functions(), operators(), prelude_types(), source_for_fun(), source_for_method() and source_for_type().

Time __time.gdn

unixtime()