Next | Higher-Order Parsing | 37 |
Perl has a lot of features that let you ignore the fact that you're parsing
This is a rudimentary parser:
while (<$fh>) { # do something with $_ }
This would be more obvious if the code were in C
As the input you're parsing becomes more complicated, the code becomes more elaborate
At some point it may exceed your ability to keep up with ad-hoc mechanisms
So we have parsing systems like Parse::RecDescent
Next | Copyright © 2007 M. J. Dominus |