TACPOL (programming language)

TACPOL (Tactical Procedure Oriented Language) is a block structured programming language developed by the United States Army for the TACFIRE Tactical Fire Direction command and control application. TACPOL is similar to PL/I.

Language constructs

Reserved words

Unlike PL/I, TACPOL keywordscalled particlesare reserved and can not be used as identifiers. There are roughly 100 reserved words.

Identifiers

TACPOL identifiers can be any length, but if longer than eight characters only the first five concatenated with the last three characters were actually used.

Data types

TACPOL supports fixed-point binary numeric data, fixed-length character strings up to 512 bytes, and fixed-length bit strings up to 32 bits. There is no support for floating point numeric data or for pointers. Arrays may have up to three dimensions, but dynamic bounds are not permitted. Additional types are records, called groups, limited to a single level of nesting, tables (arrays of groups), and unions, called cells.

Control Structures

Control structures include IF-THEN-ELSE, iteration, WHILE and CASE statements.

Procedures

Procedures may have value parameters, quantity parameters - by reference without type-checking, parameterless procedure and label parameters.

Implementations

The TACPOL compiler ran on and generated code for the AN/GYK-12, a militarized version of the Litton Industries L-3050 32-bit minicomputer.

Criticism and defense

Positive features

Negative features

Notes

  1. Serafino, et al. p.59
  2. Serafino, et al. p.59.
  3. U.S. GAO. p.17.

References

External links

See also

This article is issued from Wikipedia - version of the 1/17/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.