There are two parts in this lab.

Part 1 questions are in if-then-else.txt.  Please create and submit
if-then-else.pdf for your answers. (Some drawing is involved.)
[6 marks]

Part 2 starter code and the file to submit is Hex2.hs.
[6 marks]
ParserLib.hs is the parser library.
testHex2.hs has sample test cases. TestLib.hs is support file.

This version of ParserLib adds traceP for debugging messages.  Example: If you
say

    traceP "my label" myParser

then there will be debugging messages when entering and exiting myParser.
The debugging messages will also be labelled with "my label".

The marking version of ParserLib has a silent traceP.