Git Product home page Git Product logo

tmi's Introduction

To Build

First you need to install stack. If you don't want to it is already on the cs servers.

git clone https://github.com/ethanpailes/tmi
cd tmi
stack build
cp $(stack exec which tmi) .

The last line is optional. It just copies the binary from where stack puts it to your current directory. This may take a while because stack is going to pull in a bunch of libraries. Once you have tmi built you should be able to run in with:

./tmi <args here>

For example

./tmi p3.txt 0001110000
./tmi p3.txt 0001110000 -v

Hopefully these will print Accept to the screen. If it does not one of us screwed up.

Getting tmi on the Tufts CS servers

cp /h/epaile01/tmi .

I may end up fixing bugs at some point in which case I will try to update this version of the interpreter.

Usage

This is pretty hacked together so I did not polish the command line interface as much as I would have liked. Usage is as follows.

tmi <Turing machine file> <input tape> [<flag>]

Note that the arguments are fixed position and the flag must be the third argument if it exists. Here is the name of your file. It should follow the format described by the perl scrip provided by the course staff. That script is the authority. My interpreter is not affiliated with the course. is a list of symbols in Sigma. is one of two things.

-t       test. runs some fuzz tests based on the langauge we are asked
          to decide. (Disabled at Ben's request).
-v       verbose. spits out each application of delta on a seperate line.
          useful for debugging a specific input.

tmi's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.