Turing programming language

Missing image
Turing_logo.gif
The logo for the turing programming language

Turing is a Pascal-like programming language developed in 1982 by Ric Holt and James Cordy, then of University of Toronto, Canada.

Turing is a descendant of Euclid that features a clean syntax and precise machine-independent semantics. It is used primarily as a teaching language at the high school and university level. Two other versions exist, Object-Oriented Turing and Turing Plus, a systems programming variant. Turing is available from Holt Software Associates in Toronto. Versions for Unix, Microsoft Windows and Apple Macintosh are available.

Descendants included Turing Plus and Object-Oriented Turing

A brief example of Turing is the following recursive function to calculate a factorial.

 function  factorial (n: int) : int
   assert n >= 0
   if n = 0 then
     result 1
   else
     result n * factorial(n-1)
   end if
 end factorial

 var n: int
 put "Please input an integer :" ..
 get n
 put "The factorial of ", n, " is ", factorial(n)

Here is a sample Hello World program in Turing:

put "Hello World!"

External links

See also

This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL.
Navigation

<MenuNavigation7>

Toolbox
Personal tools