Language Reference
FlowLang is built on the Rhai scripting language. The pages below mirror the Rhai book's reference material on syntax, types, control flow, functions, and modules. They describe the language semantics; for the typed Connect-block surface (MessageParticipant, Flow, Cond, …) see the namespace catalogue.
- Comments
- Doc-Comments
- Values and Types
- `Dynamic` Values
- type_of()
- Interop with Rust
- Value Tag
- Numbers
- Operators
- Floating-point Comparison
- Standard Functions
- Value Conversions
- Ranges
- Bit-Fields
- Strings and Characters
- String Interpolation
- Standard Functions and Operators
- Arrays
- BLOB's (Byte Arrays)
- Out-of-Bounds Index
- Object Maps
- Parse from JSON
- Special Support for OOP
- Non-Existent Property
- Timestamps
- Keywords
- Statements
- Statement Expression
- Variables
- Variable Shadowing
- Constants
- Automatic Global Module
- Assignments
- Compound Assignments
- Logic Operators
- In Operator
- If Statement
- Switch Statement
- Switch Expression
- While Loop
- Do Loop
- Loop Statement
- For Loop
- Standard Iterable Types
- Make a Custom Type Iterable
- Return Value
- Throw Exception on Error
- Catch Exceptions
- Functions
- Method Calls
- Overloading
- Namespaces
- Function Pointers
- Currying
- Anonymous Functions
- Closures
- Get Scripted Functions Metadata in Rhai
- Print and Debug
- Modules
- Export Variables, Functions and Sub-Modules from Script
- Import Modules
- Eval Function