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

hi Trying to learn to build grammars and haven't found much about the grammar for this particular Lex...I would love to see some working examples for analyzing source code and WORD docs. I have no experience with any parsing tools (except REGEXPs) Thanks

Replies are listed 'Best First'.
Re: grammar for Parse::Lex
by ww (Archbishop) on Apr 28, 2010 at 16:11 UTC
    Have you read the documentation ... and, especially, the examples cited near the bottom of that documentation?

    And note that the manifest indicates the presence of numerous other examples.

    Perhaps they're not directly relevant to your specific goals (but you didn't tell us what those are), but several have names that strongly suggest their relevance.

    Then, there are more than just a few hints in the Super Search results.

    Perhaps you should help yourself -- searching, studying, and writing code -- and come back when you get stuck.