[WIP] TomDoc parser