Skip to content

Regex, Finite Automatas and Regulars Grammars Validator.

License

Notifications You must be signed in to change notification settings

SeaSkyThe/PyFlap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyFlap

A project made using Django (Python Web Framework)

Regex, Finite Automatas and Regular Grammars Validator.

  1. Create your virtual enviroment (I recommend venv for Windows and pyenv for any other OS) and install requirements.txt with pip (pip install -r requirements.txt).
  2. Enter into your virtual enviroment
  3. Go to the second Pyflap folder (where manage.py is) and run python manage.py runserver to run the app.

It is necessary to setup the frontend with npm too.

  1. Install your npm
  2. Go to the same folder as package.json
  3. Run npm install then npm run build

Instructions to use the Finite Automata page.

tutorialpyflap

The buttons in the #c5f015 green box:

  1. Use to move the nodes (hold left click and drag).
    1. This button is used to edit TRANSITIONS too, just double click in any transition with it.
  2. Add a new state (node) clicking in any position of the canvas with the left mouse button.
  3. Remove state (node) or transition (edge) by clicking in it with left mouse button.
  4. Create a transition between 2 states, by draging and drop from one state to another (with left mouse button). To create loops, just drag a little bit off the node.

The buttons in the #c5f015 pink box:

  1. Mark node as initial (with left mouse). It will be represented as a triangle (like q0 in the image).
  2. Mark/Unmark node as final. To mark use the left click, to unmark use right click. q2 is representing a final node, with the red color.

Extras

Below everything, we have a input box, to test our sentences.

About

Regex, Finite Automatas and Regulars Grammars Validator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published