All the Perl that's Practical to Extract and Report

Navigation

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.

Please Log In to Continue

If someone not a Haskell afficionado wishes to answer "What is a Attribute Grammar", the article at [wikipedia.org] is of course quite concise and neutral. Although Luke's POD [cpan.org] is a pretty good tutorial as is.

Question. Do I understand that your AG class implements the synthetic and inherited Attributes for a data-structure already parsed and created by Parse::RecDescent or whatever? In which case -- pending a marriage of the two modules -- a pre-processor to extract P:RD

Thank you for the POD compliment, though I do think I need to rewrite it. I was in a coding mood, not a writing mood, when I wrote it.
The AG modle works on any blessed data structure, actually, so yes, presumably P::RD already created it. I can see such a preprocessor coming in useful when I add structure specification, but at the moment, I don't think it would buy you anything. There is no redundant information there. A very simple preprocessor that would allow you to interleave an AG and a BNF may

Somehow, strangely, this was already fixed...maybe I did it
subconsciously, maybe there are helpful little gnomes running around
in the repository and fixing bugs while we sleep, I don't know..
-- Jarkko Hietaniemi

Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.