assistance-engine/docs/developer.avapframework.com/chapter9_2.md

12 lines
517 B
Markdown

## 4.2. Names and Bindings
### 4.2.1. Name Binding
Names in AVAP refer to values and are introduced through name binding operations. The following constructs bind names:
* Formal parameters of functions.
* Function definitions.
* Assignment expressions.
Name binding is performed using the `addVar(value, variable)` function, which assigns the value to the specified variable. There are no class declarations or complex targets in AVAP. Only functions and direct assignments to variables are valid code blocks.