Garden 🌻

Manual

Keywords

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

Operators

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

Built-in Types

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

Prelude

These functions are available without importing anything.

dbg(), eprint(), eprintln(), max(), min(), not(), print(), println(), range(), read_line(), shell_arguments(), sort_nums(), string_repr(), throw() and todo().

Filesystem __fs.gdn

copy_file(), create_dir(), list_directory(), read_file(), read_file_bytes(), remove_dir(), remove_file(), set_working_directory(), working_directory(), write_bytes() and write_file().

Random __random.gdn

choose() and int().

Reflection __reflect.gdn

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

Shell __shell.gdn

get_env(), is_tty() and run().

Time __time.gdn

unixtime()