http://desc.ithu.tw/107/2/8114
8114編譯器 115/11/29 04:54:23
107學年第二學期東海大學教師授課計劃表
Course Plan of Tunghai University
一、課程基本資料 Course Information
開課系所
Department
(進)資工系Department of Computer Science
課程名稱
Course Title
中文 (Chinese) : 編譯器
英文 (English) : Compiler
必選修類別
Required/Elective
必修Required 先修課程
Prerequisites
計算機概論/程式語言/系統程式與組合語言
學分數
Credits
0 - 3
先修課程說明
Prerequisites instruction
課程概述
(系所共同性目標)
Course Description
A compiler is a program that translates programs written in a source language into programs written in a target language. This course introduces the principles, techniques and tools for constructing a compiler. An emphasis is also placed on a programming project that applies the techniques and tools learned from the course to implement a compiler for a small language.
本課程是否為
英語授課
否
二、教師相關資料 Instruction Information
授課教師資料
授課教師
Instructor
張啟中 / johnaxer@thu.edu.tw /
行動電話 0930-073233 常用聯絡方式 johnaxer@thu.edu.tw
上課時間、地點
Class Time And Classroom
一/11,12,13[C101]
晤談時間、地點
Office Hours And Classroom
每星期一課程間隔或結束後,另可透過 email 方式
三、課程大綱 Syllabus (本課程大綱教師得依實際教學進度及學生學習情況進行調整)
■  課程目標及內涵 (Course Objectives and Contents)
本課程旨在介紹編譯器(Compilers)的工作原理與實作方式,本課程的學習者應可達到以下的目標:
1. 瞭解編譯器產生器的技術與原理,並能實作。
2. 瞭解語彙分析方法,對於簡易的程式語言,能夠實作出相關的語彙分析器.
3. 瞭解語法分析方法,對於簡易的程式語言,能夠實作出相關的語法分析器.
4. 瞭解語意分析方法,對於簡易的程式語言,能夠構建出抽象的語法分析樹,並能實作出由下而上的翻譯產生器.
5. 瞭解中介碼的產生方式,對於簡易的程式語言,可以實作出相關的中介碼產生器.
6. 瞭解目的碼的產生方式,對於簡易的程式語言,可以實作出相關的目的碼產生器.

學習本課程能夠瞭解程式語言的編譯過程,包括
1.語彙如何形成。
2.語法如何檢查。
3.語意如何產生。
本課程的知識也可以充分運用在不同的地方,例如:
1.因瞭解編譯原理,可以加快程式語言的學習。
2.語彙檢查方式,可以運用在字串比對。
■  總結式課程目標 

  課程目標
Assessment Item
1 瞭解編譯器產生器的技術與原理,並能實作。
2 瞭解語彙分析方法,對於簡易的程式語言,能夠實作出相關的語彙分析器.
3 瞭解語法分析方法,對於簡易的程式語言,能夠實作出相關的語法分析器.
4 瞭解語意分析方法,對於簡易的程式語言,能夠構建出抽象的語法分析樹,並能實作出由下而上的翻譯產生器.
5 瞭解中介碼的產生方式,對於簡易的程式語言,可以實作出相關的中介碼產生器.
6 瞭解目的碼的產生方式,對於簡易的程式語言,可以實作出相關的目的碼產生器.
■  多元教學方式 (Muliti-Teaching Methods)
說明:除了課堂講授與考試測驗之外,本課程在學期中可能會運用到以下哪些教學方式,以期能進一步提升學生學習成效
1.小組討論Group Discussion
2.實作示範或演示Demonstration or Practice
3.配合使用數位教學平台(tMoodle)、愛學網(iLearn)Incorporation with digital learning platform (Moodle) or with other multimedia instruction
■  主要參考書籍/資料 (Textbooks and References) (教科書遵守智慧財產權觀念不得非法影印)
Compilers: Principles, Techniques, and Tools. 2nd edition
(ISBN-10: 0321486811 and ISBN-13: 9780321486813)
本書有中文版
■  本課程是否有使用原文書 
是
■  教學進度(Course Schedule) - 期中考前後(2 Stage)
週次
Week
日期Date
1 108/02/17 ~ 108/02/23
2/18第2學期上課開始
一、為加強同學程式設計能力,將視情形進行簡單的C程式語言教學。
二、期中考前教授範圍為 Chapter 1-2,3(部分)
三、作業至少一次。
四、每次課程教授前,會抽測前次課程的內容,列入學期成績計算。
五、Lex 工具程式的練習,作為專題實作的成績。
2 108/02/24 ~ 108/03/02
2/27特殊加選及網路退選截止,2/28放假一天,3/1調整放假
3 108/03/03 ~ 108/03/09
4 108/03/10 ~ 108/03/16
3/15特殊退選申請截止
5 108/03/17 ~ 108/03/23
6 108/03/24 ~ 108/03/30
7 108/03/31 ~ 108/04/06
4/3溫書假放假,4/4-4/5放假二天
8 108/04/07 ~ 108/04/13
4/13-4/20期中考週
9 108/04/14 ~ 108/04/20
4/13-4/20期中考週
10 108/04/21 ~ 108/04/27
一、期中考後教授範圍為 Chapter 3-5。
二、作業至少1-2次。
三、每次課程教授前,會抽測前次課程的內容,列入學期成績計算。
四、Yacc 工具程式的練習,作為專題實作的成績。。
五、期中考後至期末考前,可能會有一次正式的小考或小組討論分享。

11 108/04/28 ~ 108/05/04
12 108/05/05 ~ 108/05/11
13 108/05/12 ~ 108/05/18
5/13申請停修課程開始,5/17停修課程申請截止(畢業考科目)
14 108/05/19 ~ 108/05/25
5/20-5/24畢業考試週
15 108/05/26 ~ 108/06/01
5/31停修課程申請截止(期末考科目)、下午全校勞作日停課,6/1停課、照常上班
16 108/06/02 ~ 108/06/08
6/7放假一天
17 108/06/09 ~ 108/06/15
6/10-6/26(108-1)課程預選,6/14第2學期上課終了
18 108/06/16 ~ 108/06/22
6/15-6/22學期考試週
■  教學進度(Course Schedule) - 18週次(Weeks)
週次
Week
日期
Date
內容主題
Course Topics and Contents

指定閱讀資料
Course Reading Materials
1 108/02/17 ~ 108/02/23 課程簡介及編譯器介紹Textbook Chapter 1: Introduction
2 108/02/24 ~ 108/03/02 編譯器介紹Textbook Chapter 1: Introduction
3 108/03/03 ~ 108/03/09 簡章的語法導向翻譯器Textbook Chapter 2: A Simple Syntax-Directed Translator
4 108/03/10 ~ 108/03/16 簡章的語法導向翻譯器Textbook Chapter 2: A Simple Syntax-Directed Translator
5 108/03/17 ~ 108/03/23 語彙分析Textbook Chapter 3: Lexical Analysis
6 108/03/24 ~ 108/03/30 語彙分析Textbook Chapter 3: Lexical Analysis
7 108/03/31 ~ 108/04/06 語彙分析Textbook Chapter 3: Lexical Analysis
8 108/04/07 ~ 108/04/13 Lex 實作練習(上課地點在電腦教室)
9 108/04/14 ~ 108/04/20 期中考試考試範圍:Textbook Chapter 1-3
10 108/04/21 ~ 108/04/27 語法分析Textbook Chapter 4: Syntax Analysis
11 108/04/28 ~ 108/05/04 語法分析Textbook Chapter 4: Syntax Analysis
12 108/05/05 ~ 108/05/11 語法分析Textbook Chapter 4: Syntax Analysis
13 108/05/12 ~ 108/05/18 語法分析 (小考)Textbook Chapter 4: Syntax Analysis
14 108/05/19 ~ 108/05/25 語法分析Textbook Chapter 4: Syntax analysis
15 108/05/26 ~ 108/06/01 Yacc 實作練習(上課地點在電腦教室)
16 108/06/02 ~ 108/06/08 語法導向的翻譯Textbook Chapter 5: Syntax-Directed Translation
17 108/06/09 ~ 108/06/15 語法導向的翻譯Textbook Chapter 5: Syntax-Directed Translation
18 108/06/16 ~ 108/06/22 期末考試

■  學習活動與作業說明 (Learning Activities and Assignments)
1.本學期作業2-3次,作業請一定要交喔。
2.作業均有交且上課出席率佳者(無任意缺課且經常遲到者),學期成績一定會及格。
■  評分方式 (Grading Policy)

  評分項目
Assessment Item
配分比例
Percentage
相關說明
Description
1 期中考試 25%
2 期末考試 30%
3 作業 30% 作業2-3次
4 課程表現 15% 上課出席率、隨堂測驗、上課問答等
■  課程其他要求 (Other Requirements)
1.請假應事先告知(email或電話),勿任意缺課。
2.作業一定要交,作業有缺交且考試成績不佳者,學期成績將很難及格。
■  相關參考書目 (Other Useful Readings)
Engineering a Compiler. Second Edition. Keith Cooper & Linda Torczon.
(ISBN-13: 978-0-12-088478-0)
■  本課程具有如下意涵:
序
No.
課程意涵
1 服務學習Service Learning  
2 生涯規劃Career Planning  
3 性別平等教育Gender Equality  
4 人權教育Human Rights  
5 保護智慧財產權Protection of Intellectual Property Rights  
6 藝術與美感教育Art and Aesthetic Education  
7 健康醫療照護Health and Medical Caring  
8 生命教育Life Education  
9 食品安全Food Safety  
10 環境教育Environmental Education  
■  本課程可做為學生職涯發展之準備 
是
四、課程內涵與學生核心能力之對應
Correspondence Between Course Contents and Core Competency
序
No.
課程內涵與學生核心能力之對應
Correspondence Between Course Contents and Core Competency>
1 運用數學、科學、工程與資訊科技知識的能力
2 分析問題與定義需求的能力
3 設計與實作元件或系統所需的技術能力
4 業界應用所需的工具使用能力  
5 具備團隊合作的能力並理解專業倫理  
6 吸收工程管理與產業動態的能力  
7 建立科技語文的能力  
五、課程內涵與學生就業力之對應
Correspondence Between Course Contents and Employability
序
No.
課程內涵與學生就業力之對應
Correspondence Between Course Contents and Employability
1 學習意願強、可塑性高Strong learning motivation and high adaptability
2 穩定度與抗壓性高High stability and stress resistance  
3 培養團隊合作或領導統御能力Cultivate teamwork collaboration or leadership skills  
4 專業知識與技術Professional knowledge and expertise skills
5 具有發現、分析、解決問題能力Capabilities in problem identification, analysis, and resolution
6 具有國際觀與外語能力International perspectives and foreign language abilities  
7 具有創新創業能力Entrepreneurial and innovative capabilities  
8 融會貫通能力Ability for comprehensive integration and mastery of knowledge
9 具有口語表達與人際溝通能力Possession of oral expression and interpersonal communication skills  
10 跨領域整合與多元適應能力Cross-disciplinary integration and diverse adaptation capabilities  
11 具有中/英文報告書寫能力Possession of Chinese/English report writing  
12 具有實作/實習或就業接軌能力Ability to implement/practice or transition into employment  
13 具有社會服務學習能力Capacity for learning social service  
14 具有邏輯運算思維能力Logical / computational thinking ability
15 培養數位科技應用能力Cultivation of application abilities digital technology
115/11/29 04:54:23