Turing (programming language)
Turing is a high-level, general purpose programming language developed in 1982 by Ric Holt and James Cordy, at University of Toronto in Ontario, Canada.
≈ 3 min read
Turing (programming language). encyclopegia.org, snapshot enwiki-001366134604. /a/turing-programming-language
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Turing is a high-level, general purpose programming language developed in 1982 by Ric Holt and James Cordy, at University of Toronto in Ontario, Canada. It was designed to help students taking their first computer science course learn how to code. Turing is a descendant of Pascal, Euclid, and SP/k with a clean syntax and precise machine-independent semantics.
Turing 4.1.0 is the latest stable version. Versions 4.1.1 and 4.1.2 do not emit standalone program .exe files. Versions pre-4.1.0 have outdated syntax and functions.
Overview
Named after British computer scientist Alan Turing, Turing is used mainly as a teaching language at the high school and university level. Two other versions exist, Object-Oriented Turing and Turing+, a systems programming variant. In September 2001, "Object Oriented Turing" was renamed "Turing" and the original Turing was renamed "Classic Turing".
Turing is now unsupported by Holt Software Associates in Toronto, Ontario. Turing was widely used in high schools in Ontario as an introduction to programming. On November 28, 2007, Turing, which was previously a commercial programming language, became freeware, available to download from the developer's website free of charge for personal, commercial, and educational use.
The makers of Turing, Holt Software Associates, have since ceased operations, and Turing has seen no further development since November 25, 2007.
Syntax
Turing is designed to have a lightweight, readable, intuitive syntax. Here is the entire "Hello, World!" program in Turing with syntax highlighting: put "Hello World!" Turing avoids semicolons and braces, using explicit end markers for most language constructs instead, and allows declarations anywhere.
Here is a complete program defining and using the traditional recursive function to calculate a factorial. % Accepts a number and calculates its factorial function factorial ( n : int) : real if n = 0 then result 1 else result n * factorial ( n - 1) end if end factorial var n : int loop put "Please input an integer: " .. get n exit when n >= 0 put "Input must be a non-negative integer." end loop put "The factorial of " , n , " is " , factorial ( n )
Open implementations
There are two open source alternative implementations of Turing: Open Turing, an open source version of the original interpreter, and TPlus, a native compiler for the concurrent system programming language variant Turing+. OpenT, a project to develop a Turing compiler, was discontinued.
Open Turing
Open Turing is an open-source implementation of the original Turing interpreter for Windows written by Tristan Hume. It includes speed improvements, new features such as OpenGL 3D and a new code editor. It is fully backwards compatible with the closed-source implementation.
TPlus
TPlus is an open-source implementation of original (non-Object-Oriented) Turing with systems programming extensions developed at the University of Toronto and ported to Linux, Solaris, and Mac OS X at Queen's University in the late 1990s. TPlus implements Turing+ (Turing Plus), a concurrent systems programming language based on the original Turing programming language.
Some, but not all, of the features of Turing Plus were eventually subsumed into the present Object-Oriented Turing language. Turing Plus extends original Turing with processes, monitors (as specified by C.A.R. Hoare), and language constructs needed for system programming such as binary input-output, separate compiling, variables at absolute addresses, type converters and other features.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1366134604 under CC BY-SA 4.0; modifications have been made.