Main Features Download Documentation Resources

Variable Access

About

This section is used to get the proper syntax when a variable is being accessed in an expression.

Java Example
[Variable Access]
Precedence = 100
Text = {name} | ~subscript
= {name}[{subscript}] | subscript

Precedence

This key defines the precedence of the variable access. Normally, this should be set to the maximum value used in the template's expressions.

Text Key

The text key is used to generate the syntax for a variable access.

Fields Contents
{name} The name of the varaible
{subscript} The subscript (index) if an array element is being accessed.

The first and last flags can be used if the syntax differs for the first or last statement in the block.

Flags When True
integer The expression is an Integer.
real The expression is a Real.
boolean The expression is an Boolean.
string The expression is an String.
none The expression doesn't have a known type - i.e. not declared. This is good for a "default" syntax.
subscript A subscript (index) is being used with the variable.
from-parameter The variable was defined as a parameter.