@@ -132,3 +132,34 @@ The file ``main.cc`` contains a sample main program.
You may have to modify it depending on how you choose to report errors from your parser.
If the scanner encounters an error it will throw an object of type :class`ScannerError`.
Your main program should catch this exception (the sample main program does), print an error message (you can print a :class:`ScannerError` object using stream operators) and then perform error recovery.
Testing your solution
---------------------
A test script is available called test.py with an auxilary file called test.txt.
You may test your solution by using the following command::
python3 test.py test.txt
The output of running this test program should be something like this::