Posted on 2006-06-12 23:09:13-07 by khaitdoan
Why do I need to write a lexer subroutine?
Parse::RecDescent does not require a lexer subroutine. If I don't want to provide a lexer subroutine, is there a default one? Khai
Direct Responses: 2469 | Write a response
Posted on 2006-06-13 08:49:14-07 by jmcnamara in response to 2467
Re: Why do I need to write a lexer subroutine?

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.
--
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.