build a parser for this binary format deterministically