Skip to content

Simple project transforming AFN to AFD using graphviz package to draw automata from regular expressing, and drawing using dotScript langage.

Notifications You must be signed in to change notification settings

mjrlgue/AFNtoAFD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFNtoAFD

Simple project for my class, using graphviz package and dotScript langage to draw automata.

How to use it

this project is based on an existing project on Github called "Automata.js". I installed LAMP server on Linux then graphviz package (google it and click first link), related documentation on the same website. I added a section, that embedded graphviz package in a web server; Just create a script file on your home directory, ex: /home/user/EXAMPLE/demoDot.sh or anywhere except /var/www for security reasons, and set permissions: chmod 777 demoDot.sh. Then write this line into your scipt:

#!/bin/bash
/usr/bin/dot -Tsvg demo.dot -o demo.svg

demo.svg is the output file. for png output:

#!/bin/bash
/usr/bin/dot -Tpng demo.dot -o demo.png

demot.dot: contains the dotScript langage; ex:

digraph G{
	a -> b;
	b -> c;
	c -> a;

}

Authors:

Marwane Chahoud, Badr Chtibi and Chadi Elbani. studying at: National school of applied science - Kenitra.

#License: You can use, publish and modify this project in any form, feel free to use it.

"If we know coding, we don't need to learn drawing."

About

Simple project transforming AFN to AFD using graphviz package to draw automata from regular expressing, and drawing using dotScript langage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published