ascii table 4 ASCII Code Set l l
![](https://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-1.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-2.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-3.jpg)
![ascii table 4 ascii table 4](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-4.jpg)
ascii table 4
![基本定義 ¡ ASCII Code Set l l American Standard Code for Information Interchange 的縮寫 基本定義 ¡ ASCII Code Set l l American Standard Code for Information Interchange 的縮寫](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-5.jpg)
基本定義 ¡ ASCII Code Set l l American Standard Code for Information Interchange 的縮寫 標準的 ASCII Code 有7個位元 ¡ l l 可表示 27 = 128 種不同的字元 一般使用在 IBM PC 及Apple II上 現今使用的 ASCII Code 已經擴充為 8個位 元,稱之為 ASCII-8 5
![基本定義 EBCDIC Code Set ¡ Extended Binary Code Decimal Interchange Code 的縮寫 ¡ 標準的EBCDIC 基本定義 EBCDIC Code Set ¡ Extended Binary Code Decimal Interchange Code 的縮寫 ¡ 標準的EBCDIC](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-6.jpg)
基本定義 EBCDIC Code Set ¡ Extended Binary Code Decimal Interchange Code 的縮寫 ¡ 標準的EBCDIC Code有8個位元 ¡ l ¡ 可表示 28=256 種不同的字元 一般使用在IBM 360及FACOM機器上 6
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-7.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-8.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-9.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-10.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-11.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-12.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-13.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-14.jpg)
![基本定義 ¡ L+ 的定義 l l 又稱為“Transitive Closure of L” L+=L 1 L 2 基本定義 ¡ L+ 的定義 l l 又稱為“Transitive Closure of L” L+=L 1 L 2](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-15.jpg)
基本定義 ¡ L+ 的定義 l l 又稱為“Transitive Closure of L” L+=L 1 L 2 L 3. . . Ln. . . 15
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-16.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-17.jpg)
![文法的分類 ¡ Type 0 l ¡ Type 1 l ¡ Context sensitive grammar Type 文法的分類 ¡ Type 0 l ¡ Type 1 l ¡ Context sensitive grammar Type](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-18.jpg)
文法的分類 ¡ Type 0 l ¡ Type 1 l ¡ Context sensitive grammar Type 2 l ¡ 無任何限制 Context free grammar Type 3 l 正規文法 (regular grammar) 18
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-19.jpg)
![B. N. F. 文法 ¡ B. N. F. grammar l l l Backus Naur B. N. F. 文法 ¡ B. N. F. grammar l l l Backus Naur](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-20.jpg)
B. N. F. 文法 ¡ B. N. F. grammar l l l Backus Naur Form grammar type 2 grammar context-free grammar 20
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-21.jpg)
![範例 ¡ Using the following B. N. F. grammar to construct a parse tree 範例 ¡ Using the following B. N. F. grammar to construct a parse tree](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-22.jpg)
範例 ¡ Using the following B. N. F. grammar to construct a parse tree for the statement below A: =B DIV 10 + C×D l <assign>: : =id: =<exp> l <exp>: : =<term>∣<exp>+<term>∣<exp>-<term> l l <term>: : =<factor>∣<term>×<factor >∣<term> DIV <factor>: : =id∣int∣(<exp>) 22
![推導過程 ¡ <assign> : : = id : = <exp> + <term> : = 推導過程 ¡ <assign> : : = id : = <exp> + <term> : =](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-23.jpg)
推導過程 ¡ <assign> : : = id : = <exp> + <term> : = <term> DIV <factor> + <term> : = <factor> DIV <factor> + <term> : = id DIV int + <term> : =id DIV int + <term> * <factor> : =id DIV int + <factor> * <factor> : = id DIV int + id * id 23
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-24.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-25.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-26.jpg)
![模擬兩可的文法 ¡ Draw 2 different parse tree for id+id+id, using the grammar E→E+E∣id 對id+id+id可畫出二個不同的剖析樹如下 模擬兩可的文法 ¡ Draw 2 different parse tree for id+id+id, using the grammar E→E+E∣id 對id+id+id可畫出二個不同的剖析樹如下](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-27.jpg)
模擬兩可的文法 ¡ Draw 2 different parse tree for id+id+id, using the grammar E→E+E∣id 對id+id+id可畫出二個不同的剖析樹如下 故此文法是模擬兩可的 27
![模擬兩可的文法 ¡ Is the following grammar ambiguous? Describe your response carefully? S→a. Sb. S∣b. 模擬兩可的文法 ¡ Is the following grammar ambiguous? Describe your response carefully? S→a. Sb. S∣b.](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-28.jpg)
模擬兩可的文法 ¡ Is the following grammar ambiguous? Describe your response carefully? S→a. Sb. S∣b. Sa. S∣ε 如 abab 1. S a 2. S b S ε b a S ε S S a S ε b S a S b S ε ε 28
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-29.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-30.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-31.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-32.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-33.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-34.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-35.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-36.jpg)
![語意的描述 semantics) ¡ 動態語意(dynamic semantics) ¡ 靜態語意(static l l l 解釋型語意(interpretive semantics) 公理型語意(axiomatic semantics) 語意的描述 semantics) ¡ 動態語意(dynamic semantics) ¡ 靜態語意(static l l l 解釋型語意(interpretive semantics) 公理型語意(axiomatic semantics)](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-37.jpg)
語意的描述 semantics) ¡ 動態語意(dynamic semantics) ¡ 靜態語意(static l l l 解釋型語意(interpretive semantics) 公理型語意(axiomatic semantics) 符號型語意(denotational semantics) 37
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-38.jpg)
![動態語意 解釋型語意(interpretive semantics) ¡ 公理型語意(axiomatic semantics) ¡ 符號型語意(denotational semantics) ¡ 39 動態語意 解釋型語意(interpretive semantics) ¡ 公理型語意(axiomatic semantics) ¡ 符號型語意(denotational semantics) ¡ 39](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-39.jpg)
動態語意 解釋型語意(interpretive semantics) ¡ 公理型語意(axiomatic semantics) ¡ 符號型語意(denotational semantics) ¡ 39
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-40.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-41.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-42.jpg)
![](http://slidetodoc.com/presentation_image_h/8c8b01c574a72e690847295154dbe82a/image-43.jpg)
- Slides: 43