Quick Reference
Program Structure
This page provides a quick syntax overview. Click chapters in the sidebar for detailed documentation.
example.frFractal
Loading…
Keywords
| Keyword | Description |
|---|---|
| !start / !end | Program delimiters |
| !func | Declare a function |
| !if / !elif / !else | Conditional |
| !for | Counted loop |
| !while | Condition loop |
| !return | Return from function |
| !break / !continue | Loop control |
| !import | Import another file |
| !module | Define a module |
| !exit | Terminate program |
Types
| Type | Description |
|---|---|
| :int | 64-bit integer |
| :float | 64-bit float |
| :char | Unicode character |
| :boolean | true or false |
| :void | Null type |
| :array<T, N> | Fixed array |
| :list<T> | Dynamic list |
| :struct<Name> | User struct |
Operators
| Operator | Description |
|---|---|
| + - * / % | Arithmetic |
| & | ^ ~ | Bitwise |
| !not !and !or | Logical |
| == ~= > < >= <= | Comparison |
| += -= *= /= %= | Compound assign |
| :: | Struct member |
| -> | Return type |
Type Casting
Use :Type(expression) to convert between types:
example.frFractal
Loading…
Common Patterns
example.frFractal
Loading…
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+S | Save |
| Ctrl+O | Open |
| Ctrl+N | New tab |
| Ctrl+D | Toggle docs |
| Ctrl+F | Find |