- Ends a statement.
- Usage: end
- Outputs text without a newline.
- Usage: out
- Outputs text with a newline.
- Usage: out!
- Prints a newline.
- Usage: @nl
- Outputs a string variable.
- Usage: @strout
- Outputs an int variable.
- Usage: @intout
- Outputs a float variable.
- Usage: @floatout
- Defines a function without parameters.
- Usage: @!define
-
Defines a function.
-
Usage: @define returnType name
-
Parameters
- returnType - The function's return type.
- name - The function's name.
-
Sub-methods
- Adds a parameter.
- Usage: @param type name
- Parameters
- type - The param's type.
- name - The param's name.
- Adds the final parameter. If a parameter isn't directly followed by another one, it's required to use @finalparam.
- Usage: @finalparam type name
- Parameters
- type - The param's type.
- name - The param's name.
- Calls a function with no params
- Usage: @!call fn
- Parameters
- fn - The function's name
- Calls a function with the specified params
- Usage: @call fn ...params
- Parameters
- fn - The function's name
- ...params - A list of parameters, seperated by commas.
- Defines a number variable.
- Usage: @int name = value
- Parameters
- name - The variable's name.
- value - The variable's value.
- Defines a string variable.
- Usage: @str name = value
- Parameters
- name - The variable's name.
- value - The variable's value.
- Defines a double variable.
- Usage: @double name = value
- Parameters
- name - The variable's name.
- value - The variable's value.
- Adds a for loop.
- Usage: for decl; cond; step
- Parameters
- decl - The variable declaration.
- cond - The condition.
- step - The statement which gets executed after each iteration.
-
Adds an if statement.
-
Usage: if cond
-
Parameters
- cond - The condition.
-
Sub-methods
- Adds an else if statement.
- Usage: else if cond
- Parameters
- cond - The condition.
- Adds an else if statement.
- Usage: elif cond
- Parameters
- cond - The condition.
- Adds an else statement.
- Usage: else cond
- Parameters
- cond - The condition.
- Adds a while statement.
- Usage: while cond
- Parameters
- cond - The condition.
- Redefines an already existing variable.
- Usage: @redefine name = value
- Parameters
- name - The variable's name.
- value - The variable's value.
- Start a structure.
- Usage: @structure
- Output a structure property.
- Usage: @struct_access_property type variable.property
- Parameters
- type - The property type.
- variable.property - The variable and the property you want to output.
- Create a variable based on a structure.
- Usage: @create_struct struct name
- Parameters
- struct - The structure name.
- name - The variable name.
- End a structure definition.
- Usage: @endstructure
- Add a structure property (within structure definition).
- Usage: @property type name
- Parameters
- type - The property type.
- name - The property name.
- Add a comment.
- Usage: ;; comment
- Parameters
- comment - The comment content.
- Include all code from another file.
- Usage: @incl file
- Parameters
- file - The file name.