Turin
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
Turin is based of Turing-machine. There is an infinite tape and all start by default with 0 there is a pointer pointing at a cell. The is also a state, that defaults to START. The program starts with an header.
IN ASCII OUT ASCII
that specifies that the input was interped as ASCII. It is then converted to binary.BIN and HEX was also apported for the IN and OUT header. First, a command starts with a conditional:
START~0
The following commands are executed if state is START and the value under the pointer was 0.
Commands
Command | Description |
---|---|
> | Move pointer left |
< | Move pointer right |
0 | Write a 0 under the pointer |
1 | Similar to 0 except that it writes a 1 |
Examples
Hello world:
OUT ASCII IN ASCII START~0:0>1>0>0>1>0>0>0>0>1>1>0>0>1>0>1>0>1>1>0>1>1>0>0>0>1>1>0>1>1>0>0>0>1>1>0>1>1>1>1>0>0>1>0>1>1>0>0>0>1>1>1>0>1>1>1>0>1>1>0>1>1>1>1>0>1>1>1>0>0>1>0>0>1>1>0>1>1>0>0>0>1>1>0>0>1>0>0>0>0>1>0>0>0>0>1>
To create this, first I convert the phrase Hello,World! into binary. Then I added > in between.