2.3 re

Refer to the exercise policy for details.
Do the exercises in sections 1.3 and 1.4 in the textbook.
Implement a compiler from regular expressions to NFAs.