A programming language developed by U of T and sold though Holdsoft (http://www.holtsoft.com/turing/home.html)

I found the syntax to be very similar to Pascal. It is a good language to learn programming with but once you have grasped the basic concepts of coding it is time to move on. And, yes it is named after Alan Turing. Oh, and even though it may say on HoldSoft's web page that "Turing is used generally used to teach programming at many universities in the United States and Canada as well as institutions around the world. ", I am yet to find someone from outside of Ontario that knows that Turing is a programming language, never mind uses it.

Example of Turing Code:

% Roll a die until you get 6.  (This line is a comment)
      var die : int
      loop
           randint (die, 1, 6)
           exit when die = 6
           put "This roll is ", die
      end loop
      put "Stopping with roll of 6"

I think the development of Turing has stopped. Most of their effort is going in to OOT (Which is actual not that bad a language to make fast dirty programs.).

This is a turing program that uses loops to display a triangle of stars:
var numRows : int := (10) * 2 %variables are declared here
var intCount : int := 10
get numRows
numRows := numRows * 2
intCount := numRows

if numRows > 0 then
for row : 1 .. numRows by 2
for x : 1 .. (intCount)
put " " ..
end for
for column : 1 .. row
put "*" ..
end for
put ""
intCount := intCount - 1
end for
else numRows := numRows + 2
intCount := intCount + 1
for row : numRows .. 1 by 2
for x : (intCount) .. 1
put " " ..
end for
for column : row .. 0
put "*" ..
end for
put ""
intCount := intCount - 1
end for
end if

A sample result if the number 4 is entered:

^^^*
^^***
^*****
*******

Log in or register to write something here or to contact authors.