simpler parsing using seek_in and a lexbuf (no dependency on bigarray)