GithubHelp home page GithubHelp logo

sta's Introduction

sta

A JS module to run State Transition Systems in a NodeJS or browser environment. See test.js if you are looking for a code sample.

even-sta.json is a file representing an STA which has the following properties:

  • valid symbols: 'a', 'b';
  • accepted words: those composed of an even number of symbols;
  • sample set of accepted words: "", "aa", "ab", "aaba"…
  • sample set of rejected words: "a", "aaa", "aba", "aab"…

Please consider that this code has not been fully tested.

TODO:

  • Comments;
  • Error handling;
  • Add a functionality to check whether a loaded STA is consistent or not.

Try it

If you have a NodeJS environment, you can clone the repo and run the sample script:

git clone https://github.com/cGuille/sta.git
cd sta
node test.js

Otherwise, once you have cloned the repo, you can open the sample file test.html in any recent browser and look into the console to see the output.

sta's People

Contributors

cguille avatar

Stargazers

Jean-Karim Bockstael avatar

Watchers

 avatar James Cloos 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.