I have a PRD implementation working -- took about four hours to write something to parse the subtleties of the magazine format. Now I need to emit Quark Tags (and write something general to emit InDesign tags or HTML or text, too.) I'll probably make some sort of dictionary that is tunable -- all of the dictionaries will have italic, just the sigils will change from one format to another (sigil or tag, whichever is a more accurate description.)


I have the beginnings of a Perl6::Rules implementation working, but since I am wrestling with its workings, Perl 6-isms, and perhaps bugs (?), I am going to focus on PRD. In fact, I started with P6R, and think I can parse OK, I am just worried that I won't be able to manipulate the results as reliably as PRD.

This is no knock against Damian. In fact, I would like to get the P6R version parsing, and then work to get an implementation running on P6R completely.


On Apr 22, 2004, at 7:45 AM, Randal L. Schwartz wrote:

"Martin" == Martin Streicher <[EMAIL PROTECTED]> writes:

Martin> Has anyone maintained a repository of PRD examples? I'd like to
Martin> learn/improve by imitation, if anyone has a stash (cache?) of PRD code
Martin> beyond what comes with the module.


perlmonks.org, super-search for "Parse::RecDescent"

look in the P::RD distro... there's some examples in there.

google site:stonehenge.com Parse::RecDescent
[hey, some of those articles look familiar!]

But you may also want to look at Perl6::Rules, the heir apparent
to P::RD, as a new learning. I'm writing an article shortly
describing how to reimplement one of my older P::RD examples as P6::R
instead, and so far it's coming out quite nice. And in Perl6 - it'll
work even better!
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Reply via email to