Giter Club home page Giter Club logo

automaton-evaluator's Introduction

automaton-evaluator

I was bored the night before my Formal Languages and Automata Theory lab examination, so I started working on this instead...
I got the idea while playing around with JFLAP.

Roadmap

List of features I'd like to implement (highly unlikely):

  • Deterministic Finite State Automata
  • Non-deterministic Finite State Automata
  • Pushdown Automata
  • Simple Turing Machines
  • Visualize automata described by a config file
  • GUI???

Example usage

$ cargo run --features build-binary -- /path/to/config.json --automaton=dfa --string=abaaaba
Accepted

Example Config

Example configuration files for any automatons that have been implemented so far are in the test_configs directory.

DFA

  • dfa01.json: Accepts all strings over $\Sigma = {a, b}$ which have aa as a substring
  • dfa02.json: Accepts all strings over $\Sigma = {0, 1}$ which have odd number of 1's and odd number of 0's.

NFA

  • nfa01.json: Accepts all strings over $\Sigma = {a, b}$ which end in ab
  • nfa02.json: Accepts all strings over $\Sigma = {a, b}$ which start with a
  • nfa03.json: Accepts all strings that match the regular expression $(b)^\ast a$

automaton-evaluator's People

Contributors

anand2312 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

automaton-evaluator's Issues

Trap states

It would be trivial to detect if the current state is a trap state or not and then instantly form a decision -- possible big wins in performance?

(I'm just using issues to quickly make notes of ideas I thought of but didn't have time to implement at the moment)

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.