[Hai-users] Program compiler
Tom Williamson
Tom at DTSsoftware.com
Wed Nov 28 08:42:49 CST 2007
I have finished my first pass at a compiler for the HAI Programs.
It can be downloaded at http://www.dtssoftware.com/haipc (windows
version).
The file 1701-1.haipc is a sample.
It has the following advantages over the PCAccess program:
1) You can add comments to your programs
2) UNITS/ZONES... etc can be renumbered without changing your programs.
The HAI PCAccess program shows names of UNITS/ZONES but they are keep as
UNIT/ZONE numbers. If you move a name the program does not match the new
name.
3) You can use long names in your programs. The DEFINE statement allows
any length for a UNIT/ZONE name that can they be referenced in the
program. The name that gets downloaded into the panel is separate from
this name
4) The name/voice downloaded into the panel is also defined within the
compiler. If you change any UNIT/ZONE the panel name/voice will also
change.
5) You can use structured programming. The WHILE statement can have more
than one IF/ANDIF or DO statement under it. This means that you do not
need to keep repeating the same WHEN or IF statement over and over
again.
6) The normal BAT file used to invoke the compiler runs a macro
preprocessor first. This allows the source to have embedded macros or
equates or INCLUDE other files.
7) The compiler accepts literals for device names. This allows the use
of device names within the program lines without actually defining the
names.
8) The compiler produces a list of the programs generated with a symbol
cross-reference. This makes it easy to see where a symbol is used.
9) More than two IF statement allowed. You can use more than two if
statements (IF / ANDIF) and the compiler will automatically pick an
unused button to chain the Ifs together. See XANDIF
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://romaine.tssi.com/pipermail/hai-users/attachments/20071128/aedf0688/attachment.htm
More information about the HAI-users
mailing list