Quick Reference

Program Structure

This page provides a quick syntax overview. Click chapters in the sidebar for detailed documentation.

example.frFractal
Loading…

Keywords

KeywordDescription
!start / !endProgram delimiters
!funcDeclare a function
!if / !elif / !elseConditional
!forCounted loop
!whileCondition loop
!returnReturn from function
!break / !continueLoop control
!importImport another file
!moduleDefine a module
!exitTerminate program

Types

TypeDescription
:int64-bit integer
:float64-bit float
:charUnicode character
:booleantrue or false
:voidNull type
:array<T, N>Fixed array
:list<T>Dynamic list
:struct<Name>User struct

Operators

OperatorDescription
+ - * / %Arithmetic
& | ^ ~Bitwise
!not !and !orLogical
== ~= > < >= <=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

ShortcutAction
Ctrl+SSave
Ctrl+OOpen
Ctrl+NNew tab
Ctrl+DToggle docs
Ctrl+FFind