Expand description
This module contains the AST nodes for the SAP language statements.
A statement is a single line of code that performs an action, such as setting a variable, returning a value, or defining a function. The AST nodes in this module represent the different types of statements that can be found in the SAP language.
Standalone expressions are also considered statements in the SAP language, and are
represented by the Expression enum in the expression module. This allows
expressions to be used as statements in the language, such as in the case of function
calls.
Structs§
- Display
- Represents a display statement in the SAP language.
For example:
display "Hello, world!" - Function
Declaration - Represents a function declaration in the SAP language. For example:
- Repeat
Forever - Represents a repeat forever statement in the SAP language. For example:
- RepeatN
Times - Represents a repeat n times statement in the SAP language. For example:
- Repeat
Until - Represents a repeat until statement in the SAP language. For example:
- Return
- Represents a return statement in the SAP language.
For example:
return 5 - Set
- Represents a set statement in the SAP language.
For example:
set x = 5
Enums§
- Statement
- Represents a single statement in the SAP language.