- Take the above
ast.dot
file - Paste it into http://www.webgraphviz.com/
- It will generate a diagram like this:
- After you've written your first lexer and parser, write a function which walks the AST and "compiles" it into graphviz notation like the above