in reply to Re^3: Writing Interpreters, Compilers and Translators in Perl
in thread Writing Interpreters, Compilers and Translators in Perl
For large continuous streams and such-like where I can't use the usual module, I use instance variables that have rules, recursion depths at which to start building trees, callback functions definable as "parser exits" (that's something I picked up from old prePerl technoliogy) to be invoked at certain points so that the tree never needs to be completed but can be acted on or code generated on the fly and I am sure there are other special needs situations I haven;t yet thought of!
It's a horrible minefield but I love it too ;);) after all - if the subject were reducible to bolting modules together and that working for every case, it wouldn't be so interesting, would it?
^M Free your mind!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Writing Interpreters, Compilers and Translators in Perl
by sgt (Deacon) on May 30, 2007 at 16:15 UTC |