Next | Higher-Order Parsing | 5 |
This is a rudimentary parser:
while (read a line of input) { # do something with it }
The program must here convert an unstructured character stream into a sequence of lines
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 yacc and Parse::RecDescent
Next | Copyright © 2007 M. J. Dominus |