Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A program to convert JFlap files to Graphviz files
Ruby
branch: master

This branch is 2 commits ahead, 2 commits behind mdonoughe:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.markdown
jff2dot.rb

README.markdown

jff2dot

I was taking "Models of Computation" and I had to make a bunch of automata. Typing out the machines as Graphviz files in Vim only lasted so long. I found JFlap's layout system to be a little lacking, and wrote a program to convert JFlap DFAs into dot files. As the class progressed the program got support for PDAs and Turing Machines.

Now I'm in "Theoretical Computer Science", the graduate version of "Models of Computation", and this program is still useful so I'm posting it somewhere.

Requirements

jff2dot requires hpricot installed through RubyGems.

Usage

Run jff2dot.rb [jflap.jff] > [graphviz.dot] to convert jflap.jff(a JFlap 4 file) into graphviz.dot(a Graphviz dot file).

Something went wrong with that request. Please try again.