Main Features Download Documentation Resources

Variable Header

About

Some programming languages require variables to be declared at the beginning of function and program. In these languages, there is a clear distinction between variable declarations and the code that makes use of them. This is the case with Pascal.

The Variable Header section uses the same is used to generate a list of variables They are inserted into functions using the --->VARIABLES special value..

Pascal Example
[Variable Header Name]
Separator = ,{space}
Text = {name}
[Variable Header]
Text = {variables} : array of {type}; | array
= {variables} : {type}; ~array

Variable Header Name Section

About

This section is used to generate a list of variable names that will be used, later, in the [Variable Header] section.

Separator Key

The Separator defines the text that will be inserted between the list of variable names.

Fields
None
Flags
None

Text Key

The text key is used to generate the syntax of the each item in the list. The {size} variable contains a valid value if the Declare Statement is an array. Use the 'array' flag to use the proper syntax.

Fields Contents
{type} The variable's data type
{name} Name of the variable.
{size} Size of the array

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

Flags When True
array The declaration is an array
first The variable is the first item in the list.
last The variable is the last item in the list.

Declare Section

About

The Declare Section is used to create the syntax for a Declare Statement.

Text Key

The text key is used to generate the syntax of the each item in the list. The {size} variable contains a valid value if the Declare Statement is an array. Use the 'array' flag to use the proper syntax.

Fields Contents
{variables} The names of the variables - generated by the Variable Header Name section.
{size} Size of the array. Only valid the declaration is an array.
{type} Name of the data type

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

Flags When True
array The declaration is an array
first The declare is the first item in the block.
last The declare is the last item in the block.

Name Mode Key

The name mode key can contain two different values:

  1. separate (the default)
  2. merged

When merged, all variable names will be merged into a single list. In this case, the {size} and {type} fields are meaningless.

Fields
None
Flags
None