The code in this notebook helps with drawing syntax-diagrams. It is a (slightly customized) copy of the excellent library from Tab Atkins jr., which unfortunately is not available as a Python package.
This notebook needs some understanding on advanced concepts in Python and Graphics, notably
* the Python `with` statement
* Scalable Vector Graphics