If you are looking for a way to generate flowchart diagrams from a DSL description, the classic is Brian Kernighan's PIC: http://doc.cat-v.org/unix/v8/picmemo.pdf
I am surprised at the amount of people that have never heard of it. It is probably already installed on your Unix system. There are several implementations with various improvements, such as https://ece.uwaterloo.ca/~aplevich/dpic/