Aussom is a small, object-oriented scripting language that runs on the Java Virtual Machine. Its core ideas are easy to summarize:
This Basics section is the language reference. Read it in order on a first pass, or jump to a specific topic. Each page is short and focused.
| Section | What it covers |
|---|---|
| Variables | Local and member variables, access modifiers. |
| Data Types | The nine built-in data types and their literal forms. |
| Functions | Defining and calling functions. Default and variadic arguments. Set blocks. |
| Control Flow | if / else if / else, switch, while, and for loops. |
| Operators | Math, string, list, and the safe-access ? operator. |
| Classes | Constructors, members, inheritance, static classes. |
| Exception Handling | try / catch and throw. |
| Modules | Splitting code across files with include. |
| Extern Classes | Calling Java code from Aussom. |
| Standard Library | A tour of the modules that ship with the interpreter. |
Two more references live alongside the language sections:
c.log. Code
examples avoid backticks.These rules apply to every name you write in Aussom: classes, members, functions, function arguments, local variables, loop variables, module names, enum names. The rest of the docs assume them.
A-Z and a-z, digits 0-9, and the underscore _ are
allowed.class, enum, include, public, protected, private,
static, extern, return, try, catch, throw, new, null,
if, else, switch, case, default, while, break, for,
instanceof.Style preferences (PascalCase classes, camelCase functions, and so on) live in the Style Guide. The language itself does not enforce them.