Parser for the ndb file format