Xome interview question

how do you implement a parser?