Pascal

Pascal definition - computer

A high-level programming language developed by Swiss professor Niklaus Wirth in the early 1970s and named after the French mathematician, Blaise Pascal. It is noted for its structured programming, which caused it to achieve popularity initially in academic circles. Pascal has had strong influence on subsequent languages, such as Ada, dBASE and PAL. See Turbo Pascal.

Pascal is available in both interpreter and compiler form and has unique ways of defining variables. For example, a set of values can be stated for a variable, and if any other value is stored in it, the program generates an error at runtime. A Pascal set is an array-like structure that can hold a varying number of predefined values. Sets can be matched and manipulated providing powerful non-numeric programming capabilities.

The following Turbo Pascal example converts Fahrenheit to Celsius:

   program convert;
   var
   fahr, cent : real;
   begin
    write('Enter Fahrenheit ');
    readln(fahr);
    cent := (fahr - 32) * 5 / 9;
    writeln('Celsius is ',cent)
   end.





Computer Desktop Encyclopedia THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 1981-2009 by Computer Language Company Inc. All rights reserved.

Comments
Improve this definition.
Do you have more to add? Share your linguistic knowledge or observation.
/Register to save your comments.