- Semester
- Area Elective
- Type
- Technical Elective
- Credit
- 3
- ECTS
- 5
- Language
- İngilizce
- Contact hours
- Lecture 3 · Practice 0 · Lab 0
On this page
Course Objective
The objective of this course is to provide necessary skills in developing a language processor as applied to compiler generation.
Course Content
Fundamental concepts of compilation and interpretation; single-pass and multiple-pass language translators; lexical analyzer; top-down parsing, and LL(1) grammars; recursive descent method; bottom-up parsing; shift reduce technique; operator precedence grammar, LR(0) and SLR(1) grammars; syntax directed translation; error processing and recovery; s
Prerequisites
None
Delivery and Teaching Methods
- Face to face
- Lecture
Learning Outcomes and Contribution to Programme Outcomes
- 1Use syntactic analyzers in the context of compiler construction
- 2Appraise higher level programming languages concepts
- 3Design a scanner and a parser as a part of a compiler
Contribution level ranges from 0 (none) to 5 (highest).
| PO | Programme outcome | Contribution level |
|---|---|---|
| PO1 | Gains adequate knowledge in mathematics, science, and subjects specific to the software engineering discipline; acquires the ability to apply theoretical and practical knowledge of these areas to complex engineering problems. | 4 |
| PO2 | Gains the ability to identify, define, formulate, and solve complex engineering problems; selects and applies proper analysis and modeling techniques for this purpose. | 4 |
| PO3 | Develops the ability to design a complex system, process, device, or product under realistic constraints and conditions to meet specific requirements; applies modern design methods for this purpose. | 5 |
| PO4 | Demonstrates the ability to select, and utilize modern techniques and tools essential for the analysis and determination of complex problems in software engineering applications; uses information technologies effectively. | 5 |
| PO5 | Develops the ability to design experiments, gather data, analyze, and interpret results for the investigation of complex engineering problems or research topics specific to the software engineering discipline. | 0 |
| PO6 | Demonstrates the ability to work effectively both individually and in disciplinary and interdisciplinary teams in fields related to software engineering. | 0 |
| PO7 | Demonstrates the ability to communicate effectively in Turkish, both orally and in writing; to write effective reports and understand written reports, to prepare design and production reports, to deliver effective presentations, and to give and receive clear and understandable instructions. | 0 |
| PO8 | Gains knowledge of at least one foreign language; acquires the ability to write effective reports and understand written reports, prepare design and production reports, deliver effective presentations, and give and receive clear and understandable instructions. | 0 |
| PO9 | Acquires an awareness of the necessity of lifelong learning; the ability to access information, follow developments in science and technology, and continuously improve oneself. | 0 |
| PO10 | Acts in accordance with ethical principles and possesses knowledge of professional and ethical responsibilities. | 0 |
| PO11 | Knows the standards used in software engineering practices. | 0 |
| PO12 | Knows about business practices such as project management, risk management and change management. | 0 |
| PO13 | Gains awareness about entrepreneurship and innovation. | 0 |
| PO14 | Gains knowledge on sustainable development. | 0 |
| PO15 | Has knowledge about the universal and societal impacts of software engineering practices on health, environment, and safety, as well as the contemporary issues reflected in the field of engineering. | 0 |
| PO16 | Acquires awareness of the legal consequences of engineering solutions. | 0 |
| PO17 | Applies knowledge and skills in identifying user needs, developing user-focused solutions and improving user experience. | 5 |
| PO18 | Gains the ability to apply engineering approaches in the development of software systems by carrying out analysis, design, implementation, verification, validation, and maintenance processes. | 3 |
Weekly Topics
| Week | Topic |
|---|---|
| 1 | Introduction to Compiling |
| 2 | A Simple One-Pass Compiler |
| 3 | Lexical Analysis |
| 4 | Syntax Analysis |
| 5 | Syntax Directed Translation |
| 6 | Syntax Directed Translation |
| 7 | Type Checking |
| 8 | Run-time Environments |
| 9 | Run-time Environments |
| 10 | Run-time Environments |
| 11 | Intermediate Code Generation |
| 12 | Code Generation |
| 13 | Code Generation |
| 14 | Code Optimization |
Assessment
| Method | Number | Weight |
|---|---|---|
| Midtermexam | 1 | %25 |
| Homework | 2 | %15 |
| Project | 1 | %30 |
| Finalexam | 1 | %30 |
| Total | %100 | |
ECTS Workload
| Activity | Number | Duration (hours) | Total |
|---|---|---|---|
| Out-of-Class Study Time | 16 | 2 | 32 |
| Projects | 1 | 15 | 15 |
| Final Exam Preparation | 1 | 15 | 15 |
| Lecture Hours (Including exam week: 16 x lecture hours) | 16 | 3 | 48 |
| Assignments | 2 | 5 | 10 |
| Midterm Exam Preparation | 1 | 10 | 10 |
| Total workload (hours) | 130 | ||
| ECTS equivalent (workload / 30) | 4.3 | ||
Resources
- Textbook Alfred V. Aho, Monica S. Lam, Ravi Sethi, Jeffrey D. Ullman, Compilers: Principles, Techniques, and Tools (2nd Edition), 2006, ISBN: 0321486811. (Dragon Book)
- Other 1. Steven Muchnick, Advanced Compiler Design and Implementation, 1997, Morgan Kaufmann Publishers, ISBN:1-55860-320-4.
- Other 2. Doug Brown, John Levine, Tony Mason, UNIX Programming Tools: Lex & Yacc, O’Reilly, 1992.
- Other 3. Dick Grune, Henri E. Bal, Ceriel J.H. Jacobs, and Koen Langendoen VU University Amsterdam, Amsterdam, The Netherlands. John Wiley & Sons, Ltd., pp. 736 + xviii; ISBN 0471976970, 2000.
- Other 4. http://dinosaur.compilertools.net/yacc/.
- Other 5. Andrew W. Appel, Jens Palsberg, “Modern Compiler Implementation in Java (2nd edition)”, Cambridge Univ. Press, ISBN-13: 9780521820608, 2002.