COP 5621 - Homework 2 - Parser

Due Monday, October 14

Read the description of the Tiger parser on pages 83-84. To find out details of Tiger's syntax, you will also need to refer to the Appendix on pages 522-531. You can view the CUP reference manual at

My /homes/smithg/javatools/tiger/chap3 directory contains a number of files to help you. You just need to copy your Tiger.lex into Parse/, complete Grm.cup, and run make. Then you can run your parser by typing

  java Parse.Main example.tig

Here are a few remarks: