It'd probably be worth pulling all of this parsing out into a new module under `TomDoc`. Then we can have nicely-documented top level declarations. :)