# Turing (Iamcalledbob)

Jump to navigation
Jump to search

## Syntax

Turing is designed to have a very 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 factorialfunfactorial (n)ifn = 0result1elseresultn * factorial (n - 1)funloop()getnifn < 0put"The factorial of ", n, " is ", factorial (n)resultnelseresultloop() loop()