Giter VIP home page Giter VIP logo

luatmsim's Introduction

luatmsim

lua turing machine simulator

I made this on a whim one afternoon. No guarantee of it working correctly and no liability of the author in that regard.

Sample session:

Initial tape:
001#
~~~^
From state s to state t on input # with action L
001#
~~^
From state t to state w on input 1 with action #
00##
~~^
From state w to state x on input # with action R
00##
~~~^
From state x to state x on input # with action 1
00#1
~~~^
From state x to state s on input 1 with action L
00#1
~~^
From state s to state t on input # with action L
00#1
~^
From state t to state u on input 0 with action #
0##1
~^
From state u to state v on input # with action R
0##1
~~^
From state v to state v on input # with action 0
0#01
~~^
From state v to state s on input 0 with action L
0#01
~^
From state s to state t on input # with action L
0#01
^
From state t to state u on input 0 with action #
##01
^
From state u to state v on input # with action R
##01
~^
From state v to state v on input # with action 0
#001
~^
From state v to state s on input 0 with action L
#001
^
From state s to state t on input # with action L
##001
^
From state t to state y on input # with action R
##001
~^
From state y to state z on input # with action R
##001
~~^
From state z to state z on input 0 with action R
##001
~~~^
From state z to state z on input 0 with action R
##001
~~~~^
From state z to state z on input 1 with action R
##001#
~~~~~^
From state z to state h on input # with action #
##001#
~~~~~^
001 was accepted: Halted after 22 steps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.