Traditionally the role of lexer and parser have been separate. Parse::RecDescent merges them together but that is unusual.
There is no default lexer in Parse::Yapp. There is an example of one in the Calc example of the distro.
You may also be interested in reading the following article which gives some practical observations in relation to using Parse::RecDescent, Parse::Yapp, Perl-byacc.
John.
--