I need to parse a file line by line, and output the results line by
line (too big to fit into memory). So far, simple enough:
However, the parser needs the ability to peek ahead to the next line,
in order to parse this line. What’s the right way to do this? Again,
I really don’t want to try to slurp the whole file into memory and
split on newlines.
Here’s an example:
I’d like to:
hey, this is practically a unit test!