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.
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.
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.examples
folder with a function it calledregex_graphviz_printer
. It should output a.dot
file that shows the tree structure of of the regex.