Here are some links that contain the sample program that is given in the assignment and a text file with an example of the output. I hope it helps!
Sample program
Example of output

The presentation on Yacc is available here. I added a reference page at the end with some links that might have useful information.

Here is a sample of output for a parser for the FP language.
Example of output