Structure

Prior | Next

If you are new to ESPL, or have not programmed since your school days way back when, this material is for you. It introduces you to some of the basics of programming and ESPL's syntax and semantics.

Comments
As a starting point, you should know how to make comments in your script. Three styles of comments are supported:  1) curly braces, 2) parentheses and asterisks, and 3) double slash. Examples of each type follow:

  { This is a comment }
  (* This is a comment *)
  // This is a comment

Ensign Software tends to use the curly braces for making comments in our examples. Comments are ignored by the compiler and to not increase the size of the compiled program nor slow down the execution speed.

Structure
ESPL scripts have the following program skeleton.

var
  {variables are declared here}
begin
  {statements to execute go here}
end;

ESPL's structured style lends itself to programming code that is readable and maintainable.

Prior | Next