I am trying to create a grammar and need some guidance. I've got it 'almost' working, but need help with the nested parsing. Below is what i've got so far, w/ the example of what to parse under __DATA__.

Sorry, I can't help you, because I don't know Parse::RecDescent. However I feel like giving you a suggestion about how to better ask your question. In fact you say that your solution is "'almost' working", but you fail to specify in what exactly it does not work. Also, you give an example of "what to parse" but you fail to specify how you want it to be parsed. Last, had you not used the abbreviation P::RD in the subject (in the body of your post it would have been fine) you would have increased the possibilities that someone knowledgeable with that module would notice it in say NN. All in all your question is better asked than others one can find here, but in any case I point you to How do I post a question effectively?, which may be helpful.


In reply to Re: nested parsing with Parse::RecDescent by blazar
in thread nested parsing with Parse::RecDescent by loomis53

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.