This is a parser for the TAO syntax grammar.
The implementation can be used as a reference for other parsers, in particular in programming languages similar to Scala.
Interactive version of the parser in JavaScript can be tried at tree-annotation.org.