Keywords
Flow-Wing programming language supports the following keywords:
Keyword | Description |
---|---|
true | Boolean true value |
false | Boolean false value |
var | Variable declaration |
if | Conditional statement |
or | Logical OR operator |
else | Alternative branch in conditional statement |
while | Looping statement |
for | Looping statement |
fun | Function declaration |
to | Used in range expressions |
continue | Skip to the next iteration in a loop |
break | Exit from a loop |
return | Return a value from a function |
const | Constant declaration |
nthg | Represents 'nothing' or 'void' |
int | 32-bit integer type |
int8 | 8-bit integer type |
int64 | 64-bit integer type |
bool | Boolean type |
unknown | Represents an unknown type |
str | String type |
deci | Decimal type |
deci32 | 32-bit decimal type |
Nir | Represents null value |
bring | Import or bring a module |
expose | Expose functionality of a module |
from | Used in import statements |
fill | Fill a data structure |
type | Define a type |
decl | Declare a type or function |
new | Instantiate a class or object |
class | Class declaration |
inout | Parameter passing mode |
extends | Inherit from a superclass |
as | Type casting or aliasing |
module | Module declaration |
switch | Switch statement |
case | Case in a switch statement |
default | Default case in a switch statement |