Write a lexer for dot. dot is a part of the graphviz graph visualization software suite. It is designed to support directed graphs. It is a fairly sophisticated DSL, but we will consider only a subpart of it. You can find full information at www.graphviz.org. In particular, check out the dot documentation and the grammar.