Skip to content

yahyakamran/JavaTuringMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Language Based On Turing Machine

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

Docs

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

About

Simple Turing Machine in java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages