Lab 5 - Build Your Own Metacharacter Parser

The purpose of this lab is to investigate metacharacter parsing, as described in Chapter 8 of the book. For this lab, you will code a metachar parser and then have another student in the class review your code to see if they can find any mistakes.

You can use one of the following programming languages for your metachar parser: C, C++, Perl, or PHP. You may not use ANY parsing or quoting/escaping libraries that those languages provide. You MUST build your own metacharacter parser.

Your metachar parser has to do one of the following tasks (choose whichever task appeals to you):

Code Requirements:

Once you have finished the code, have someone else in the class review the code to see if they can still evade your metacharacter parsing.

You should submit your code and a write-up of the code review with your classmate to Moodle for this lab.