![]() | Description |
---|---|
In terms of structured programming languages, an ASM function definition is an associative array (dictionary, map, etc.), which stores data values at locations (slots) defined by its index elements. However, a main difference is that these arrays are very dynamic in the sense that they may store an arbitrarily large number of elements, and the size of the array can be increased at any time during execution in order to store a new element at a specific location (index). |
![]() | Syntax |
---|---|
AsmFunctionDefAST ::= OptAnnotationsAST asmfunction TypeNameAST / ArityAST InitialValuesOptAST ArityAST ::= DecimalIntegerLiteral
An An ASM function have to be declared at the global scope (that is, at machine scope, outside any rules) prior to its first use. |
Defined In: GTASM Machine
See Also: ASM function location, update rule