Please note that the Computer Science departmental site has been migrated to https://brocku.ca/mathematics-science/computer-science and this copy is only being provided for historical reference. Information that you find on this site WILL BE OUT OF DATE. For more information please visit https://www.cosc.brocku.ca/migration.
You are here
COSC 4P75
This is the COSC 4P75 web site for the Fall 2011 offering. Questions or problems should be directed to the course instructor David Hughes.
All Computer Science courses are subject to the rules and regulations of the University (as described in the calendar), the Faculty of Mathematics & Sciences and the policies of the Department of Computer Science.
General Information
Description
COSC 4P75 is an introduction to compiler construction including lexical, syntactic and semantic analysis and code generation. Students will develop a complete compiler for a small Java-like language using recursive descent parsing and object-oriented techniques.
Instructor
David Hughes
Lecture
Monday, Friday: 14:00-15:30, WH 209
Course Documents/Reference
- Course Outline
- Project Language Syntax
- Virtual Machine Instruction Set
- Assignment Coversheet
- Jamal download
Schedule/News
News:
Lectures for COSC 4P75 begin Friday September 9. There will be no lecture Friday Sept. 30.
Schedule:
Lexical Analysis Assignment Due: Oct. 11 @ 12:00 noon Syntactic Analysis Assignment Due: Nov. 7 @ 12:00 noon Semantic Analysis Assignment Due: Dec. 5 @ 12:00 noon Code Generation Assignment Due: Jan 16, 2012 @ 12:00 noon
Course Materials
Text: none
Lectures:
- Introduction (slides: pdf; podcasts: Sept 9, Sept 12)
- Lexical Analysis (slides: pdf; podcasts: Sept 16, Sept 19)
- Syntactic Analysis (slides: pdf; podcasts: Sept 23, Sept 26, Oct 3, Oct 7)
- Semantic Analysis (slides: pdf; podcasts: Oct 14, Oct 17, Oct 21 (unavailable), Oct 24, Oct 28, )
- Code Generation (slides: pdf; podcasts: Oct 31, Nov 4, Nov 7, Nov 11, Nov 14, Nov 18)
Examples:
- Introduction (zip)
- Lexical Analysis (zip)
- Syntactic Analysis (zip)
- Semantic Analysis (zip)
- Code Generation (zip)