in reply to Re: Parse::RecDescent autotree visitor
in thread Parse::RecDescent autotree visitor
Ok. Thanks. My question was to vague. I'm hoping for design assistance versus help with debugging. I did use Data::Dumper.
More specifically: It seems the classic visitor pattern (accept, visit methods) is unnecessary in Perl because of Perl's simple support for reflection and autoloading. Is that correct? (It seems like that was the intention with PRD autotree?)
Also, do I need to track visited nodes? Is there a way that the visit sub could create an infinite loop while walking a parse tree?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parse::RecDescent autotree visitor
by jethro (Monsignor) on Aug 10, 2011 at 18:42 UTC |