Next lecture… in the lab
We're going to need to use both Jlex and CUP, working over specifications of Tiger
I'll mail you by Monday midday
- instructions for downloading the required files
We'll then build the parser on Tuesday
- and look at how to construct abstract syntax trees
Reading
- Chapter 2 is an easy read to assist understanding of how lexing can be automated – not essential
- Chapter 3 – widen your knowledge of LR (also known as shift-reduce parsing), and conflict reports
- Chapter 4 – Read this one – on augmenting parser with AST constructors