lawrancej / CompilerKit

Compiler construction library in C.
GNU Lesser General Public License v2.1
55 stars 33 forks source link

Write visualizer for regular expressions #34

Open lawrancej opened 12 years ago

lawrancej commented 12 years ago

Currently, examples/visitor-demo.c shows a string representation for regular expressions. It'd be nice to have another way of representing regular expressions, as a tree.

  1. Download and install GraphViz. Learn how it works by perusing the examples here: http://www.graphviz.org/Gallery.php
  2. Write a new file in the examples folder with a function it called regex_graphviz_printer. It should output a .dot file that shows the tree structure of of the regex.
  3. Test it out in GraphViz!
RoboCafaz commented 12 years ago

Dibs.