Abstract:Philip Wadler introduced the constructing course of a simple lexical parser when he studied how to structure pure functional programs by a monadic approach. This paper studies the approach further. A pure functional parser which can process complicated layout analyses, lexical analyses and syntax analyses is given according to the monadic approach.