Now answer the following questions. You may find the index helpful; note that the specification is the relevant piece of the grammar.
String.tokens and String.translate will do most of the work for you, but you have to write and pass functions that do the right thing. (Confused about a function taking a function as a parameter? See Chapter 7, Exercise 7 on page 116 for a brief introduction, and Chapter 9 for more information.) Study the examples on the handout!!