parser: add mmap and string parser