Language only do byte manipulation I/O is java
Basic example that displays Ascii A
0
>
!
0
+
>
>
>
>
>
>
!
0
+
;
How to run
java is prerequisite. To change example modify code next to
EXAMPLE FILE
comment
java TuringMachine.java
Instruction | Description |
---|---|
1st Number | Program always starts with number.It indicates turing machine head position |
> | Moves head one point towards right |
< | Moves head one point towards left |
! | This is condition increment/decrement. If Number on next to it matches number on head. It inc/decr number on head |
; | Terminate or halts the program |
NOTE : It only support conditional inc/decr Each instruction must be written on separate line without missing line