FlowRun Features
Here is a quick overview of features supported by FlowRun editor.
Blocks
| Name | Value(s) | Description |
|---|---|---|
| Declare variable | Declare a variable of a specific type | |
| Assign variable | Assign a new value to a variable | |
| Input a variable | Get input value from user and store it into a variable | |
| Output a variable | Print a value | |
| If | Conditionally execute code depending on a boolean value | |
| While | Conditionally execute code (zero or more times) depending on a boolean value | |
| Do While | Conditionally execute code (one or more times) depending on a boolean value | |
| For | Execute a block of code a number of times, with a counter | |
| Comment | Add a comment block, does nothing | |
| Call a function | Call (execute) a function |
Semantics
| Name | Value(s) | Description |
|---|---|---|
| Scalar data types | Integer, Real, String, Boolean | Simple data types, most commonly used |
| Array data types | Integer[], Real[], String[], Boolean[] | Data types used for storing many values of same type, sequences |
| Automatic array initialization | Arrays are automatically initialized to their default values: integer/real arrays to zeros, boolean arrays to falses, string arrays to empty strings | |
| Arithmetic operators | +, -, *, /, % | Operators for working with numbers |
| String operators | + | Operators for strings, + is used for concatenation |
| Logic operators | &&, ||, ! | Operators for working with booleans |
| Number comparison operators | <, <=, ==, !=, >, >= | Operators for comparing numbers |
| Comparison operators | ==, != | Operators for comparing values that are not numbers: strings, booleans.. |
| Predefined functions | see full reference | Use predefined functions |
| Custom functions | Declare custom functions | |
| Recursive functions | Declare functions that are mutually recursive (function calls itself directly, or indirectly) |
Runtime
| Name | Description |
|---|---|
| Run a program | Run a program from start to end |
| Debug a program | Run a program step by step, stopping after each command |
| Show debug variables | Show values of all variables while program is running |
| Stop a program | Stop a program at any time |
Import / Export
| Name | Description |
|---|---|
| Export (Download) as file | Save a program as file (with .flowrun file extension) |
| Import from file | Import program from a .flowrun file |
| Copy source | Copy the whole program as a string (JSON format) |
| Paste source | Paste a program from the clipboard |
| Copy a command | Copy a single command to the clipboard |
| Paste a command | Paste a single command from the clipboard |
| Generate code | Generate code for many real programming languages |
| Copy DOT | Copy the current function in DOT format, the graph language |