Add parse API that accepts Parser as parameter (#2)