Please enable JavaScript to view this site.

ESL Documentation

The structure is statement defines a structure type. Within the structure, you define one or more fields. Each field can be defined as a simple variable of type integer, float, or string; for example:

 

structure Employee is 

string  Name

integer NumDependents 

float   Salary

end structure

 

If two or more fields in a row have the same data type, you do not need to repeat the type, as this example shows:

 

structure AddressRecord is 

string Street

City

State

Zip 

end structure

 

This example defines a structure type that contains four string fields, named Street, City, State, and Zip.