mikeeeeeeeeeeeeeeee / TM

Turing machine in c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build

Build with Qt (https://www.qt.io/ide/)

Examples

Go to ./scripts

Binary add plus 1 (or not)

echo T111 | ./tm_bplus1

returns: R1000

echo R111 | ./tm_bplus1

returns: R111

IF

input: Tiu
if i=1 runs: ./tm_bplus1 with u as input
if i=0 runs: ./tm_bminus1 with u as input

echo T0100 | ./IF | ./THEN | ./tm_bplus1 | ./ELSE | ./tm_bminus1 | ./ENDIF

returns: T011

About

Turing machine in c


Languages

Language:C 66.0%Language:C++ 14.1%Language:Shell 13.7%Language:QMake 6.1%