Instructor: Prof. Jianguo Lu. email: jlu at u windsor. Office: LT 5111.
Office hours: Tuesday and Thursday 1:00-2:00pm.
Links for labs
- Lab 1: Work on assignment 1. You can also practice Regular expression in Grep
- Lab 2: Finish A1
- Lab 3: Start A2.
JLex installation instructions,
JLex lecture slides (pdf),
- Lab 4: Finish A2.
- Lab 5: JavaCup
JavaCup installation instruction
- Calc example: calc.lex,
- Calc2 Example: calc2.lex,
- Lab 6: Finish A3.
- Lab 7, 8: A4.
- Lab 9, 10: Recursive descent parser
links for assignments
This course covers both pragmatic and theoretical aspects
of grammars, recognizers, and translators for computer languages. The
theoretical aspect contains regular language, context free language, finite
state machine, different paring techniques including recursive descent
parsing, LL(1), SLR, LALR, and LR(1) parsing. The practical aspect contains
automatic generation of scanners using a scanner generator JLex, automatic
parser generation using parser generator JavaCUP, and language translation
techniques. The prerequisites are 03-60-212, 03-60-140, 03-60-104, and
03-60-100. All the assignments will use Java, hence you should have a solid
knowledge in Java programming. After this course, you will be able to
understand grammars, write grammars, write parsers according to a grammar, and
write a translator between different languages.
Attendance in lectures and labs is very important to be
successful in this course - students who do not attend lectures and labs
generally score very low on exams and assignments. You must keep up with the
material as the semester progresses.
We will follow Chpaters 1-5, and some of Chpaters 6 and 7 of the following book :