This can be useful for 1. Making it easier to test parsing output. 2. Could provide an API for those who want to build an AST instead of parsing latex.
This can be useful for