COURSE INFORMATION
Course Title: FORMAL LANGUAGES & COMPILERS
Code Course Type Regular Semester Theory Practice Lab Credits ECTS
CEN 813 C 99 3 2 0 4 7.5
Language: English
Compulsory/Elective: Elective
Classroom and Meeting Time:
Course Description: Foundamental notions of formal languages and their application for the construction of algorithms used by compilers.
Course Objectives: This course discusses formal languages and their models. Based on these models, it explains the construction of compilers. The lectures are organized as follows: (I) Basic notions: formal languages and their models, grammars, automata; compilers. (II) Regular languages and lexical analysis: regular languages and expressions, finite automata and transducers, lexical analyzer; Lex; symbol table. (III) Context-free languages and syntax analysis: context-free grammars, pushdown automata and transducers, deterministic top-down syntax analysis (recursive descent), the essence of deterministic bottom-up syntax analysis; Yacc. (IV) Semantic analysis and code generation: intermediate code generation, optimization, code generation.
COURSE OUTLINE
Week Topics
1 Formal languages.
2 Translation of languages and the structure of a compiler.
3 Regular languages and their models: regular expressions and finite automata.
4 Lexical analysis: lexical analyzer; Lex; symbol table.
5 Context-free languages and their models: context-free grammars and pushdown automata.
6 Syntax analysis: deterministic syntax analysis, FIRST and FOLLOW, LL and LR grammars.
7 Deterministic top-down syntax analysis: recursive descent.
8 Deterministic bottom-up syntax analysis: simple precedence analysis, LR analysis; Yacc.
9 Semantic analysis and intermediate form generation.
10 Optimization
11 Code generation.
12 Chomsky hierarchy and the corresponding models.
13 Remarks and summary. Preliminary discussion of the VYP contents.
14 Course overview
Prerequisite(s):
Textbook: Parsons, T. W.: Introduction to Compiler Construction. Freeman, New York, 1992.
Other References:
Laboratory Work: Yes
Computer Usage: Yes
Others: No
COURSE LEARNING OUTCOMES
1 Analyze and develop an ability to develop and implement appropriate algorithms
2 Understand the strengths and requirements of distributed and parallel systems
COURSE CONTRIBUTION TO... PROGRAM COMPETENCIES
(Blank : no contribution, 1: least contribution ... 5: highest contribution)
No Program Competencies Cont.
Doctorate (PhD) in Computer Engineering Program
1 Engineering graduates with sufficient theoretical and practical background for a successful profession and with application skills of fundamental scientific knowledge in the engineering practice.
2 Engineering graduates with skills and professional background in describing, formulating, modeling and analyzing the engineering problem, with a consideration for appropriate analytical solutions in all necessary situations
3 Engineering graduates with the necessary technical, academic and practical knowledge and application confidence in the design and assessment of machines or mechanical systems or industrial processes with considerations of productivity, feasibility and environmental and social aspects.
4 Engineering graduates with the practice of selecting and using appropriate technical and engineering tools in engineering problems, and ability of effective usage of information science technologies.
5 Ability of designing and conducting experiments, conduction data acquisition and analysis and making conclusions.
6 Ability of identifying the potential resources for information or knowledge regarding a given engineering issue.
7 The abilities and performance to participate multi-disciplinary groups together with the effective oral and official communication skills and personal confidence.
8 Ability for effective oral and official communication skills in foreign language.
9 Engineering graduates with motivation to life-long learning and having known significance of continuous education beyond undergraduate studies for science and technology.
10 Engineering graduates with well-structured responsibilities in profession and ethics.
11 Engineering graduates who are aware of the importance of safety and healthiness in the project management, workshop environment as well as related legal issues.
12 Consciousness for the results and effects of engineering solutions on the society and universe, awareness for the developmental considerations with contemporary problems of humanity.
COURSE EVALUATION METHOD
Method Quantity Percentage
Midterm Exam(s)
1
40
Quiz
2
10
Final Exam
1
40
Total Percent: 100%
ECTS (ALLOCATED BASED ON STUDENT WORKLOAD)
Activities Quantity Duration(Hours) Total Workload(Hours)
Course Duration (Including the exam week: 16x Total course hours) 16 5 80
Hours for off-the-classroom study (Pre-study, practice) 16 5 80
Mid-terms 1 12 12
Assignments 0
Final examination 1 15.5 15.5
Other 0
Total Work Load:
187.5
Total Work Load/25(h):
7.5
ECTS Credit of the Course:
7.5