Don't ask to ask, just ask | |
PerlMonks |
Trees and Language::AttributeGrammarby rg0now (Chaplain) |
on Mar 06, 2006 at 12:33 UTC ( [id://534671]=perlquestion: print w/replies, xml ) | Need Help?? |
rg0now has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks!
I have largish data structures, organized into trees, and I have to perform rather complex transformations on this data. When I first encounterd with attribute grammars I immediately fell in love with the concept. So I installed luqui's Language::AttributeGrammar, wrote a little tree data representation: and a simple attribute grammar to count the number of nodes in a tree and an example Everything works like charm as long as the line that is commented out remains commented out. As soon as I add the node back to the tree, I get and the script runs into a seemingly infinite loop. Does anyone have a clue why this happens? I would greatly appreciate any ideas. Update: sorry I mixed up: it works with 3 leafs, but stops working as soon as I comment out the offending line... p.s.: if luqui reads this: there is a typo in the SYNOPSIS of Language::AttributeGrammar:
Back to
Seekers of Perl Wisdom
|
|