Google interview question

Provide a parser for a given regular language.