Difference between revisions of "Pascal (programming language)"
(Pascal Programming Language) |
|||
| Line 2: | Line 2: | ||
==Technical Summary== | ==Technical Summary== | ||
| − | Pascal, as defined by Wirth, is a general-purpose programming language with the following '''reserved words''': array, begin, case, const, do, downto, else, end, file, for, function, goto, if, label, nil, of, packed, procedure, program, record, repeat, set, then, to, type, until, var, while, with. The following reserved words are '''operators''': and, or, not, div, mod, in. Built in simple '''data types''': integer, char, boolean, real. In addition, arrays of data types, files of data types, and records (structures) can be defined, as well as enumerations (called scalars). Unique among major programming languages is the support of '''sets'''. Built-in '''functions''': abs, arctan, chr, cos, eof, eoln, exp, ln, odd, ord, pred, round, sin, sqr, sqrt, succ, trunc. '''Operators''': + - * ( ) < > = <> >= <= | + | Pascal, as defined by Wirth, is a general-purpose programming language with the following '''reserved words''': array, begin, case, const, do, downto, else, end, file, for, function, goto, if, label, nil, of, packed, procedure, program, record, repeat, set, then, to, type, until, var, while, with. The following reserved words are '''operators''': and, or, not, div, mod, in. Built in simple '''data types''': integer, char, boolean, real. In addition, arrays of data types, files of data types, and records (structures) can be defined, as well as enumerations (called scalars). Unique among major programming languages is the support of '''sets'''. Built-in '''functions''': abs, arctan, chr, cos, eof, eoln, exp, ln, odd, ord, pred, round, sin, sqr, sqrt, succ, trunc. Build-in '''procedures''': dispose, get, new, put, read, readln, reset, rewrite, write, writeln. '''Operators''': + - * ( ) < > = <> >= <= |
Revision as of 19:29, June 27, 2007
Pascal is a computer programming language created by Prof. Nicholas Wirth in 1970. It became widely popular with the release of Borland's Turbo Pascal, an integrated editor and compiler for Pascal on MSDOS, in 1981. Pascal was eventually made an ISO standard (ISO 7185).
Technical Summary
Pascal, as defined by Wirth, is a general-purpose programming language with the following reserved words: array, begin, case, const, do, downto, else, end, file, for, function, goto, if, label, nil, of, packed, procedure, program, record, repeat, set, then, to, type, until, var, while, with. The following reserved words are operators: and, or, not, div, mod, in. Built in simple data types: integer, char, boolean, real. In addition, arrays of data types, files of data types, and records (structures) can be defined, as well as enumerations (called scalars). Unique among major programming languages is the support of sets. Built-in functions: abs, arctan, chr, cos, eof, eoln, exp, ln, odd, ord, pred, round, sin, sqr, sqrt, succ, trunc. Build-in procedures: dispose, get, new, put, read, readln, reset, rewrite, write, writeln. Operators: + - * ( ) < > = <> >= <=
A major fault in the original definition of Pascal was the lack of string support. Namely, strings are packed arrays of chars, with minimal string-specific support. This shortcoming has been addressed by every modern Pascal compiler, which provide well-supported native string data types.
References
- A brief History of Pascal
- Delphi Study Guide
- Jensen, K. and Wirth, N., Pascal User Manual and Report, Springer-Verlag, 1976.
- ISO 7185:1990