dwarf: implement parser