This document describes three related Python classes that the author has found useful for many kinds of input processing:
Log object is used to centralize the
processing of errors and error messages.
Scan class is used to coordinate the scanning of
an input stream with the generation of error messages
related to that stream.
In the first sections of this document, we will describe the interfaces to these classes. Later sections will walk you through the actual code.