Lab: Files, regular expressions, and pattern matching

Assigned
Monday, 20 September 2021
Summary
We explore simple file usage in Racket. We then use pattern matching in Racket, particularly a version of regular expressions to express general patterns.

This is a two-day-long lab. Do as much as you can on the first day, then expect to work with the same person again on the next class. Also, plan to bring questions to the next class.

Preparation

Don’t forget to employ our pair programming preparation practices.

a. Introduce yourself to your partner.

b. Discuss preferred working habits with your partner.

c. Negotiate working habits for today.

Once you’ve done so, continue with preparation.

d. If you have not done so already, you may want to open a separate tab or window in your browser for the varous readings.

e. Review the double-dagger problems with your partner.

f. Grab the code for this lab.

g. Get started!