Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to figure out how to use the Yapp module, and all the docs are really arcane. Should I learn lex and yacc before? On what else should I read up? Is there some place with better docs than that which comes with the distribution? Thanks in advance.

Replies are listed 'Best First'.
Re: Yapp
by btrott (Parson) on Mar 23, 2000 at 10:00 UTC
    I've never used Parse::Yapp, but I looked briefly at the docs, and it certainly seems to assume a good level of familiarity with yacc, and parsers in general. So I'd recommend looking for some docs on yacc and yacc-like grammars. You might also take a look at Parse::RecDescent, which comes with some useful and illustrative examples.

    Here are some docs on bison, including some examples.

Re: Yapp
by prout (Novice) on Mar 24, 2000 at 00:55 UTC
    Well, actually I'm using yapp to build a parser, and I can tell you that it works exactly like yacc. I think you should definitely learn to use yacc and probably lex before. Reading about grammars and automatons might also be helpful. I think the best docs are the ones on bison and flex (GNU versions of yacc and lex). You might also take a look at the O'Reilly book "Lex & Yacc".
Re: Yapp
by casiano (Pilgrim) on Apr 12, 2008 at 09:14 UTC