Course Instructor: Dr. Masud Hasan. Email: mhasan2010@gmail.com (in English please)
Lecture Schedule:
- Section CB63M (Morning):
- Sunday and Tuesday, 9:00-10:15, B12 Lab9
- Student Representative: Talib Mohammad, Mobile: 0567473410. Email: tmbksa@hotmail.com
- Section TC (Evening): Monday and Wednesday, 18:30-19:45, B12 G88
Text Book: “Compilers: Principles, Techniques and Tools”, Aho, Lam, Sethi, Ullman. 2nd edition, 2007
Course Plan: pdf
Course Website: https://sites.google.com/view/tucs403february2017/home
Office Hours: Sunday and Tuesday, 11:00-12:00 B20
Marks Distribution:
Midterm Exam 1: 20
Midterm Exam 2: 20
Home Assignment 1: 10
Home Assignment 2: 10
Final Exam: 40
Bonus: Time to time I shall give bonus marks for answering questions that I ask in the class
Slides, Notes, Text Book Readings:
- All Slides [pdf rar]
- Hand notes
- Lecture 2: Phases of a compiler Example [pdf]
- Lecture 3, 4: Regular expression examples [pdf 1] [pdf 2]
- Lecture 3, 4: NFA DFA examples [pdf]
- Lecture 4: NFA step by step example [pdf]
- Lecture 5: Modified slides 10, 11 [pdf]
- Lecture 5: Example of right associative operation [pdf]
- Lecture 5: Example of an unambiguous grammar [pdf]
- Lecture 6: Modified slides 10, 11 [pdf]
- Lecture 6: Example of left most and right most derivation mixed [pdf]
- Lecture 6: Examples of the grammar S->(S)|epsilon [pdf]
- Lecture 6: Example of unambiguous dangling else grammar [pdf]
- Lecture 6: Examples of different types of errors [pdf]
- Lecture 6: Examples of bottom-up parsing [pdf]
- Lecture 7: Easy techniques for FIRST and FOLLOW [pdf]
- Lecture 7: Examples of FIRST [pdf]
- Lecture 7: Example of Parse Table [pdf]
- Lecture 8: DAG Examples [pdf]
- Lecture 8: Three address code for While loop [pdf]
- Lecture 9: Infix to postfix step by step examples [pdf]
- Lecture 9: Postfix to Syntax Tree Step by Step [pdf]
- Lecture 9: Corrected slide 11 [pdf]
Assignments:
- Assignment 1: [pdf] Print this assignment, write your answer here, then submit the hard copy to me in the class. Soft copy by email not allowed.
- Deadline
- Section CB63M (Morning): 21 March 2017, Tuesday, in class
- Section TC14 (Evening): 22 March 2017, Wednesday, in class
- Assignment 2: [pdf] Print this assignment, write your answer here, then submit the hard copy to me in the class. Soft copy by email not allowed.
- Deadline
- Section CB63M (Morning): 02 May2017, Tuesday, in class
- Section TC14 (Evening): 03 May 2017, Wednesday, in class
Exams:
- Midterm exam 1:
- Date and Time:
- Section CB63M (Morning): 21 March 2017, Tuesday, in class, 9:00-10:00
- Section TC14 (Evening): 22 March 2017, Wednesday, in class, 6:45-7:45
- Syllabus: Lecture 1, 2, 3, 4, 5, 6
- Question Type: Both MCQ and short questions
- Midterm exam 2:
- Date and Time:
- Section CB63M (Morning): 02 May 2017, Tuesday, in class, 9:00-10:00
- Section TC14 (Evening): 03 May 2017, Wednesday, in class, 7:00-8:00
- Syllabus: Lecture 7, 8, 9
- Question Type: Both MCQ and short questions
- Final Exam:
- Syllabus:
- Section CB63M (Morning): All lectures covered in the class (Lecture 1-10)
- Section TC14 (Evening): All lectures covered in the class (Lecture 1-9)
- Question Type: Only MCQ
Marks:
- Section CB63 (Morning) [pdf]
- Section TC14 (Evening) [pdf]