abdullah's picture
Add files using upload-large-folder tool
a6daeb8 verified
raw
history blame
71.9 kB
1
00:00:20,690 --> 00:00:22,990
ุจุณู… ุงู„ู„ู‡ ุงู„ุฑุญู…ู† ุงู„ุฑุญูŠู… ุงู„ุตู„ุงุฉ ูˆุงู„ุณู„ุงู… ุนู„ูŠูƒู… ูˆุฑุญู…ุฉ
2
00:00:22,990 --> 00:00:23,270
ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡
3
00:00:23,270 --> 00:00:23,770
ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ
4
00:00:23,770 --> 00:00:25,610
ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡
5
00:00:25,610 --> 00:00:26,470
ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ
6
00:00:26,470 --> 00:00:30,370
ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡
7
00:00:30,370 --> 00:00:35,950
ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ
8
00:00:35,950 --> 00:00:38,230
ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡
9
00:00:38,230 --> 00:00:40,890
ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ
10
00:00:40,890 --> 00:00:49,330
ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡ ูˆุฑุญู…ุฉ ุงู„ู„ู‡
11
00:00:49,330 --> 00:00:53,450
ูˆู…ูˆุถูˆุน ุงู„ู€ parse trees ูƒูŠู ุฃู†ู†ุง ู†ุดูƒู„ parse tree ู…ู†
12
00:00:53,450 --> 00:00:58,550
ุฎู„ุงู„ ุจุนุถ ุงู„ู€ derivation ูˆุฃูŠุถุง ู†ุดูˆู ุงู„ู…ูู‡ูˆู… ุงู„ู€
13
00:00:58,550 --> 00:01:04,550
ambiguity ุงู„ู„ูŠ ู‡ูˆ ุงู„ู„ุจุณ ูŠุนู†ูŠ ุจู…ุนู†ู‰ ุฃู† ู†ูุณ ุงู„ู€ input
14
00:01:04,550 --> 00:01:09,290
ู…ู…ูƒู† ูŠุชุนู…ู„ ุฃูƒุชุฑ ู…ู† ุงู„ู€ derivation ูˆูƒู„ derivation
15
00:01:09,290 --> 00:01:13,570
ุชูุถูŠ ุฅู„ู‰ parse tree ู…ุฎุชู„ูุฉ ูˆูƒูŠู ุฃู† ู‡ุฐุง ุงู„ูƒู„ุงู… ูŠู†ุชุฌ
16
00:01:13,570 --> 00:01:18,810
ุนู†ู‡ semantics ู…ุฎุชู„ูุฉุŒ ูŠูุณุฑู‘ู‡ ุฅุฐุง ููุณู‘ุฑ ู‡ูŠูƒ ุจูŠู†ุชุฌ
17
00:01:18,810 --> 00:01:23,330
value ุชุจุนู‡ ุดูŠุก ู…ุฎุชู„ู ุนู† ู„ูˆ ุชู… ุชูุณูŠุฑู‡ ุจุดูƒู„ ุขุฎุฑ ุจุนุฏ
18
00:01:23,330 --> 00:01:25,710
ุฐู„ูƒ ุจุฑุถู‡ ูƒู…ุงู† ุงุชู†ุงูˆู„ู†ุง ุงู„ู…ูˆุถูˆุน ุงู„ู€ associativity of
19
00:01:25,710 --> 00:01:29,510
operators ูˆ ุงู„ู€ precedence of operators ูุนู…ู„ูŠุฉ ุงุญู†ุง
20
00:01:29,510 --> 00:01:33,810
ุงู†ุชู‡ูŠู†ุง ู…ู† section 2.2 ูŠุนู†ูŠ ุงู„ุดูŠุก ุจุฏู†ุง ู†ุชุฌู‡ ุงู„ุขู†
21
00:01:33,810 --> 00:01:37,790
ุฅู„ู‰ section 2.3 ู‡ูˆ syntax-directed translation
22
00:01:37,790 --> 00:01:41,930
syntax-directed translation ุจู†ุดูˆู ู…ุซุงู„ ู…ุจุณุท ุฌุฏุง
23
00:01:41,930 --> 00:01:47,550
ุนู„ู‰ ูƒูŠู ุจุนุฏ ุงู„ู€ syntax analysis ุจูŠุชู… ุฃูˆ ุฃุซู†ุงุก ุจุฑุถู‡
24
00:01:47,550 --> 00:01:51,170
ุงู„ู€ syntax analysis ู…ู…ูƒู† ูŠู†ุนู…ู„ ุดูƒู„ ู…ู† ุฃุดูƒุงู„
25
00:01:51,170 --> 00:01:56,710
translationุŒ translation ุจู…ุนู†ู‰ ุชุญูˆูŠู„ ุงู„ู€ input ุฅู„ู‰
26
00:01:56,710 --> 00:02:03,990
ุงู„ู€ output ุงู„ู…ุทู„ูˆุจุŒ ู…ุงุดูŠ ุจุณ ู‡ุฐุง ุดูŠุก ู…ุจุณุท ุฌุฏุง ุจุณ ุนุดุงู†
27
00:02:03,990 --> 00:02:07,930
ูŠูˆุถุญ ู„ูƒ ุงู„ููƒุฑุฉ ุฅู†ู…ุง ุนู…ู„ูŠุฉ ุงู„ู€ compilation ููŠู‡ุง
28
00:02:07,930 --> 00:02:13,050
ุชุนู‚ูŠุฏุงุช ุฃูƒุซุฑ ู…ู† ู‡ูŠูƒุŒ ูุงู†ุง ุงู„ุขู† ุจุฏูŠ ุฃู…ุฑ ุนู„ู‰ ุงู„ู„ูŠ ู‡ูˆ
29
00:02:13,050 --> 00:02:19,250
ุจุฏูŠ ุฃู†ุชู‚ู„ ุฅู„ู‰ section 2.3 ุงู„ู„ูŠ ูƒู„ู‡ ู…ุฑู…ูŠู† ุนู„ูŠู‡
30
00:02:19,250 --> 00:02:22,230
ุงู„ู…ุญุงุถุฑ ุงู„ู…ุงุถูŠ ููŠ ู†ู‡ุงูŠุฉ ุงู„ู€ section 2.2 ููŠ
31
00:02:22,230 --> 00:02:27,590
exercises ุงู†ุง ู‡ู†ุง ุจุณ ุญุงุทุท ุจุณ ุงุชู†ูŠู† ู…ู†ู‡ุง two two
32
00:02:27,590 --> 00:02:33,170
one ูˆ two two twoุŒ ููŠ ู„ุบุงูŠุฉ ุงู„ู€ 2.2.6 ุจู†ุตุญูƒู… ุชุทู„ุนูˆุง
33
00:02:33,170 --> 00:02:38,370
ุนู„ูŠู‡ุง ููŠ ูˆู‚ุชูƒู… ุนู„ู‰ ุณุจุจ ุฅู†ู‡ ุชู…ุงุฑู†ูˆุง ุนู„ู‰ ู…ุณุงุฆู„ ู…ู…ูƒู†
34
00:02:38,370 --> 00:02:43,290
ูŠุฌูŠ ู…ุซู„ู‡ุง ููŠ ุงู„ุงู…ุชุญุงู†ุงุชุŒ ุงู„ุขู† ุงู„ู€ section 2.3 ุงู„ู„ูŠ
35
00:02:43,290 --> 00:02:47,490
ู‡ูˆ syntax directed translationุŒ ู†ุดูˆู ู…ุซู„ุง ุฒูŠ ู…ุง ู‚ู„ุช
36
00:02:47,490 --> 00:02:51,330
ุนู„ู‰ translation ุจูŠูƒูˆู† syntax directed ุจู…ุนู†ู‰ ุฅู†ู‡
37
00:02:51,330 --> 00:02:57,630
ู…ูˆุฌู‡ ุฃูˆ based ุนู„ู‰ ุงู„ู€ syntax analysisุŒ ุญู†ุดูˆู ู…ุซู„ู‡ุง
38
00:02:57,630 --> 00:03:02,440
ุนู„ู‰ ุฏุฑุฌุฉุŒ ู„ูˆ ุฃู†ุง ุนู†ุฏูŠ ู‡ู†ุง ู‡ุฏูŠ ุงูŠุด production ุตุญ ุงู„ู€
39
00:03:02,440 --> 00:03:05,420
production ุจุชู‚ูˆู„ ุฅู†ู‡ ุงู„ู€ expression can have the
40
00:03:05,420 --> 00:03:11,260
form expression ุฒูŠ ุงู„ู€ term ุตุญุŒ okayุŒ ุงู„ุงู† ู‡ุฏุง ุงู„ู€ ..
41
00:03:11,260 --> 00:03:16,940
ู‡ุฏุง ุงู„ู€ expression ุงุญู†ุง .. ุงูˆ ู‡ุฏุง ุงู„ู€ translator
42
00:03:16,940 --> 00:03:20,460
ุงู„ู„ูŠ ุจุฏูˆ ูŠุชุฑุฌู…ุŒ ุนุงู…ู„ ุงูŠุด ุจุชุณูˆูŠุŸ ุจุช .. ุจุช .. ุงุฐุง
43
00:03:20,460 --> 00:03:26,440
ุจุชุนุฑู ุญุงู„ูŠุง ุงุณู…ู‡ุง post-fixed notation ู‡ูŠ ูƒู„ ูˆุงุญุฏุฉ
44
00:03:26,440 --> 00:03:33,060
ุงู†ุง ู…ุด ุนุงุฑู ุงุณุฃู„ูƒู…ุŒ ูˆููŠ ุงู†ููƒุณ ู†ุธุฑูˆุง ุงู†ููƒุณ ู„ูˆ ุงู†ุง ุฌูŠุช
45
00:03:33,060 --> 00:03:42,100
ุนู†ุฏูŠ ุงุดูŠ ุฒูŠ .. ุฒูŠ
46
00:03:42,100 --> 00:03:45,940
ู‡ูŠูƒ ุฏูŠ ุงุถุบุทู‡ ููŠ ุงู„ุตู„ุงุฉ ุฏุงู„ูŠ ููŠ ุนู†ุฏูŠ expression ุฒูŠ
47
00:03:45,940 --> 00:03:53,520
ู‡ุฐุง ูˆ ุจุฏูŠ ุงุญูˆู„ู‡ ู‡ู„ุงู‚ุงุด ุงู†ููƒุณ ูˆู„ุง postfix ู‡ุฐุง a
48
00:03:53,520 --> 00:03:56,860
fixedุŒ ู…ู† ุฃูŠู† ุฌุงุก ุงู„ู…ุตุทู„ุญ ู‡ุฐุงุŒ ุงู† ุงู„ู€ operator ุงู„ู„ูŠ
49
00:03:56,860 --> 00:04:01,300
ู‡ูˆ ุงู„ู†ุงู‚ุต ูˆุงู„ุฒุงุฆุฏ ุฌุงุก inside ู…ุง ุจูŠู† ุงู„ู€ operands
50
00:04:01,300 --> 00:04:05,500
ุงู„ู„ูŠ ู‡ู… ุงู„ุชุณุนุฉ ู…ู† ู†ุงุญูŠุฉ ูˆุงู„ุฎู…ุณุฉ ู…ู† ู†ุงุญูŠุฉ ูˆุงุถุญ ู„ูˆ
51
00:04:05,500 --> 00:04:11,280
ุจุฏูŠ ุงุญูˆู„ู‡ ู„ู€ post fixed ุจุญุท ุงู„ู€ operator ุจุนุฏ ุงู„ู€
52
00:04:11,280 --> 00:04:14,360
operandsุŒ ูŠุนู†ูŠ ุจุชุฌูŠุจ ุงู„ุชุณุนุฉ ูˆ ุจุญุท ูˆุฑุงู‡ุง ุงู„ุฎู…ุณุฉ ูˆ
53
00:04:14,360 --> 00:04:20,980
ุจุนุฏูŠู† ุงูŠุด ุงู„ู†ุงู‚ุต ุฒูŠูƒ ุนู…ู„ูŠุง ู‡ุฐุง ุงู„ู€ expression ูƒู„ู‡
54
00:04:21,290 --> 00:04:26,190
ุจุชุญูˆู„ ุฅู„ู‰ ุชุณุนุฉ ูˆุฎู…ุณุฉ ู†ุงู‚ุตุŒ ุงุชู†ูŠู† ุฒุงุฆุฏุŒ ุชู…ุงู… ุชุณุนุฉ ูˆ
55
00:04:26,190 --> 00:04:30,430
ุฎู…ุณุฉ ู†ุงู‚ุต ู‡ุฏูˆู„ ุงู„ู†ุงุชุฌ ุชุจู‚ู‰ ู‡ูˆู† ุจูŠุตูŠุฑ ู‡ูˆ ุงู„ู€ over
56
00:04:30,430 --> 00:04:35,710
end ุงู„ุซุงู†ูŠ ู…ุน ุงู„ุงุชู†ูŠู† ู„ุนู…ู„ูŠุฉ ุงู„ุฌู…ุนุŒ okayุŒ ูุงู„ุงู†
57
00:04:35,710 --> 00:04:39,770
ูุงูƒุฑูŠู† ุจุฏู†ุง ู†ุนู…ู„ translator ุงู„ู„ูŠ ุชู„ู‚ุงุฆูŠ ุงู„ู„ูŠ ุญูŠุนุทูŠู‡
58
00:04:39,770 --> 00:04:44,330
infix expression ุจุฏูŠุด ูŠุญุณุจู„ูŠ ูƒุฏู‡ ู‚ูŠู…ุชู‡ ุฅู†ู‡ ุชุณุนุฉ ูˆ
59
00:04:44,330 --> 00:04:50,150
ู†ุงู‚ุต ูˆุฎู…ุณุฉ ุฒุงุฆุฏ ู„ุฃุŒ ุจุฏูŠ ุงุญูˆู„ู‡ ู„ู€ postfix ู„ูŠุดุŸ ู„ุฃ
60
00:04:50,150 --> 00:04:53,690
ูŠุนู†ูŠ ู„ุฃุŒ ุฑุจู…ุง ู†ุนุทูŠู‡ุง stack ู…ุงุดูŠูŠู† ุนู„ุดุงู† ุชุญุณุจูˆุง
61
00:04:53,690 --> 00:04:57,450
ุงู„ู„ูŠ ู„ุฃุŒ ุงู„ู…ู‡ู… ุงู† ุงุญู†ุง ุจูˆุธูŠูุฉ ุงู„ู€ translator ุงู„ู„ูŠ
62
00:04:57,450 --> 00:05:02,310
ุจุฏู†ุง ู†ุญูƒูŠ ุนู†ู‡ ู‡ูŠ ุฅู†ู‡ ูŠุญูˆู„ ู…ู† ุงูŠุด ุฅู„ู‰ postfix
63
00:05:02,310 --> 00:05:07,150
ุจุงู„ุธุจุทุŒ ูุงู„ุงู† ุงู†ุง ุจุฑุฌุน ุฌูˆุง ููŠ ุงู„ู€ slides ุงู„ู€ slide
64
00:05:07,150 --> 00:05:12,820
ุงู„ุงูˆู„ู‰ ุงู„ู„ูŠ ูƒู†ุง ููŠู‡ุง ุงู„ุงู†ุŒ expression ู†ูุณู‡ ุงู„ู€
65
00:05:12,820 --> 00:05:16,820
Definition ุชุจุนู‡ ู‡ูˆ ุนุจุงุฑุฉ ุนู† expression ุฒูŠ ุงู„ู€ term
66
00:05:16,820 --> 00:05:22,280
ุฃูˆ expression ู†ุงู‚ุต term ู…ุธุจูˆุทุŒ ูู„ูˆ ูƒุงู† ุนู†ุฏูŠ ุงู„ู€ rule
67
00:05:22,280 --> 00:05:25,920
ู‡ุฐู‡ ุงู„ู€ production ู‡ุฐู‡ุŒ expression ุฒูŠ ุงู„ู€ term ู„ูˆ ูƒุงู†
68
00:05:25,920 --> 00:05:31,640
ุนู†ุฏูŠ expression ูˆูƒุงู† ูุนู„ุง ุงุดูŠ ุฒูŠ ู‡ูŠูƒ ู…ุซู„ุง ูู‡ูˆ
69
00:05:31,640 --> 00:05:35,080
expression ุฒูŠ ุงู„ู€ termุŒ ุตุญุŒ ุงู„ุชุณุนุฉ ุงู„ู„ูŠ ุจุชุชุงุฎุฏ ุนู„ูŠู‡ุง
70
00:05:35,080 --> 00:05:39,340
term ูˆุงู„ู€ term ุจุชุชุงุฎุฏ ุนู„ูŠู‡ุง ุชุณุนุฉุŒ ุงู„ุชุณุนุฉ ู‡ูŠ ุงู„ู€
71
00:05:39,340 --> 00:05:42,040
expression ูˆุงู„ู€ expression ู‡ูŠ ุงู„ู€ term ูˆุงู„ู€ term ู‡ูŠ
72
00:05:42,040 --> 00:05:46,920
ุงู„ู€ digit ูˆุงู„ู€ digit ู‡ูŠ ุงู„ุชุณุนุฉุŒ ูˆุงู„ุฎู…ุณุฉ ู‡ูŠ ุงู„ู€
73
00:05:46,920 --> 00:05:50,240
digit ูˆุงู„ู€ digit ู‡ูŠ ุงู„ุฎู…ุณุฉุŒ ูุงู„ู€ rule ู‡ุฐู‡ ุฃูˆ ุงู„ู€
74
00:05:50,240 --> 00:05:57,580
production ู‡ุฐู‡ ุจุชุทุงุจู‚ ู‡ุฐุง ุงู„ู€ inputุŒ ุฅุฐุง ุนู†ุฏูŠ ู‡ุฐุง ุงู„ู€
75
00:05:57,580 --> 00:06:01,480
input ูŠุฑูŠุฏ ุฃู† ูŠุชุฑุฌู… ูƒูŠูุŸ ูŠุฑูŠุฏ ุฃู† ูŠุชุฑุฌู… ุฅู„ู‰ ุชุณุนุฉ
76
00:06:01,480 --> 00:06:05,320
ุฎู…ุณุฉุŒ ุฐุงุช ุงูŠุดุŸ ู…ุนู†ุงู‡ ู‡ุฐุงุŸ ู…ุนู†ุงู‡ ุฃู†ู†ุง ู†ุญุท ุงู„ู€
77
00:06:05,320 --> 00:06:10,360
expression ุงู„ุงูˆู„ุงู†ูŠุŒ ุงู„ู€ expression ุจู†ุญุท ุงู„ู€ term ุซู…
78
00:06:10,360 --> 00:06:20,380
ุจุนุฏ ูƒุฏู‡ ุจู†ุญุท ุงู„ุฒุงุฆุฏุŒ ู…ุธุจูˆุทุŸ ู‡ุฐู‡ ุงู„ุงู† ู‡ุฐู‡
79
00:06:20,380 --> 00:06:23,680
ุงู„ู€ expression ู‡ุฐู‡ ู‚ุฏ ูŠูƒูˆู† ุดูŠุก ุจุณูŠุท ุฒูŠ ุชุณุนุฉ ูˆู‚ุฏ
80
00:06:23,680 --> 00:06:32,220
ูŠูƒูˆู† ุดูŠุก ู…ุฑูƒุจ ูŠุนู†ูŠ ู…ู…ูƒู† ูŠุฌูŠ ุชุณุนุฉ ู†ุงู‚ุต ุงุชู†ูŠู† ูˆ
81
00:06:32,220 --> 00:06:37,250
ุจุนุฏูŠู† ุฒุงุฆุฏ ูˆุจุนุฏูŠู† ุงู„ุฎู…ุณุฉุŒ ููŠ ู‡ุฐู‡ ุงู„ุญุงู„ุฉุŒ ููŠ ู‡ุฐู‡
82
00:06:37,250 --> 00:06:42,690
ุงู„ุญุงู„ุฉ ุงู„ู€ expression ู„ุงุฒู… ุงุฑุฌุน ุงุญู„ู„ู‡ ุฃูˆ ุงู„ู€
83
00:06:42,690 --> 00:06:46,810
translator ู„ุณู‡ ููŠ ุงู„ุงูˆู„ ูŠุญู„ู„ู‡ ูˆูŠุทู„ุน ุงู„ุชุฑุฌู…ุฉ ุชุจุนุชู‡
84
00:06:46,810 --> 00:06:54,290
ูˆู†ุงุชุฌ ุงู„ุชุฑุฌู…ุฉ ุชุจุนุชู‡ ูŠูŠุฌูŠ ุซู… ุจุนุฏูŠู† ู†ุงุชุฌ ุงู„ุชุฑุฌู…ุฉ
85
00:06:54,290 --> 00:06:59,130
ุชุจุน ุงู„ู€ term ูŠูŠุฌูŠ ูˆุฑุงู‡ ุซู… ุจุนุฏูŠู† ุงู„ุงุดุงุฑุฉ ุฒุงุฆุฏ ุชูŠุฌูŠ
86
00:06:59,130 --> 00:07:02,450
ููŠ ู‡ุฐู‡ ุงู„ุญุงู„ุฉุŒ ูƒู„ู…ุฉ translate expression ู‡ู†ุง
87
00:07:02,450 --> 00:07:11,370
ู…ุนู†ุงุชู‡ุง ุงุฐุง ุนู†ุฏูŠ ู‡ุฐู‡ ุงู„ู€ rule ู…ุทุจู‚ุงุช ุงูŠุด ู‡ุฐุง ุงู„ุดู‚
88
00:07:11,370 --> 00:07:17,090
ุงู„ู„ูŠ expression one ุนุงู„ุฌู‡ ุจุดูƒู„ recursive ุฃูˆ ุจุดูƒู„
89
00:07:17,090 --> 00:07:21,870
nested ูŠุนู†ูŠ ุนุงู„ุฌู‡ ุงู„ู€ output ุชุจุนู‡ ู„ู„ุชุฑุฌู…ุฉ ุชุจุนุช ู‡ุฐุง
90
00:07:21,870 --> 00:07:27,270
ุชู†ุญุท ุซู… ุฎุด ุนู„ู‰ ู‡ุฐุง ุนุงู„ุฌู‡ ุงู„ุชุฑุฌู…ุฉ ุชุจุนุชู‡ ุชู†ุญุทู‡ุง
91
00:07:27,270 --> 00:07:31,570
ุจุนุฏูŠู† ูˆุจุนุฏูŠู† ุญุญุท ุงู„ู€ .. ูˆุงุถุญ ู…ู† ุงู„ู€ recursion ุงู„ุงู†ุŸ
92
00:07:31,570 --> 00:07:37,250
okay ูู‡ุฐุง ุงู„ุฃู…ุฑ ุงุญู†ุง ุงู„ุงู† ุจุฏู†ุง ู†ุตูŠุบู‡ ุจุดูƒู„ุŒ ุงู„ู„ูŠ ูŠู‚ุฏุฑ
93
00:07:37,250 --> 00:07:41,990
ุงู„ู€ system ู‡ุฐุง ุงู„ู€ translator ู‡ุฐุง ุงู†ูุธู‡ ุจุฑุถู‡ ุงู„ู€
94
00:07:41,990 --> 00:07:44,690
attributes ุญุชุฑุฌุน ู„ู‡ุง ูƒู…ุงู† ุดูˆูŠุฉ ูˆุงู„ู€ slide ุญุชุฑุฌุน ู„ู‡ุง
95
00:07:44,690 --> 00:07:52,230
ูุงุญู†ุง ุงู„ุขู† ุนู…ู„ูŠุฉ ุงู„ุชุฑุฌู…ุฉ ู‡ุฐู‡ ุจุชุฎูŠู„ู‡ุง ุนู…ู„ูŠุฉ ุงู„ุชุฑุฌู…ุฉ
96
00:07:52,230 --> 00:07:56,490
ู…ู† infix ู„ู€ postfix ุชุฎูŠู„ู‡ุง ูƒุงู„ุชุงู„ูŠ ุงู† ุงู†ุง ุฌูŠู†ุง ู„ู„ู€
97
00:07:56,490 --> 00:08:00,150
expression ุงู„ู„ูŠ ู‡ูˆ ุชุณุนุฉ ู†ุงู‚ุต ุฎู…ุณุฉ ุฒุงุฆุฏ ุงุชู†ูŠู† ูˆ
98
00:08:00,150 --> 00:08:05,450
ุนู…ู„ู†ุง ู„ู‡ parsing ุณูŠุจู†ุง ู…ู† ุงู„ู€ tree ู‡ุฐู‡ุŒ ุงู†ุง ุจุฏูŠ ุฃูƒุซุฑ
99
00:08:05,450 --> 00:08:09,070
.. ุจุฏูŠ ุงุนู…ู„ ุทุฑูŠู‚ุฉ ุงุจุณุท ู…ู†ู‡ุง ุงู„ู„ูŠ ู‡ูŠ ุฅู†ู‡ ุงู„ู€ .. ุงู„ู€
100
00:08:09,070 --> 00:08:13,810
.. ุงู„ู€ .. ุงู„ู€ .. ูƒู„ู‡ ู‡ุฐุง ูƒู€ expression ุงุชุญู„ู„ ุฅู„ู‰ ุงูŠุด
101
00:08:13,810 --> 00:08:20,950
ุฅู„ู‰ expression ู†ุงู‚ุต ุฒุงุฆุฏ termุŒ ู…ุธุจูˆุทุŒ ุงู„ู€ expression
102
00:08:20,950 --> 00:08:23,970
ุงู„ุงูˆู„ู‰ ูŠุนู†ูŠ ุงู„ู„ูŠ ู‡ูˆ ู‡ู„ุฃ ุชุณุนุฉ ู†ุงู‚ุต ุฎู…ุณุฉ ุงุชุญู„ู„ ุฅู„ู‰
103
00:08:23,970 --> 00:08:29,390
ุงูŠุด expression ู†ุงู‚ุต termุŒ ู…ุธุจูˆุทุŒ ุงู„ู€
104
00:08:29,390 --> 00:08:33,310
expression ู‡ุฐุง ุงุชุญู„ู„ ุฅู„ู‰ termุŒ ุงู†ุง ู…ู† ูˆูŠู† ุฌุงูŠุจ ุจุฌูŠุจ
105
00:08:33,310 --> 00:08:37,710
ุงู„ูƒู„ุงู… ู‡ุฐุง ู…ุด ู…ู† ู…ุฎูŠุŒ ู…ู† ุงู„ู€ definition ู‡ุฐุง ุงู„ู„ูŠ ู‡ูˆ
106
00:08:37,710 --> 00:08:43,710
ุงุญู†ุง ู…ุฑ ุนู„ูŠู†ุง ู…ุญุงุถุฑุฉ ู…ุงุถูŠุฉ ุงู„ู„ูŠ ู‡ูˆ ูˆูŠู† ูƒุงู† ูˆูŠู† ุฑุงุญ
107
00:08:43,710 --> 00:08:50,510
ุจุนูŠุฏุŒ ุงุชุนู†ู‰ ูƒุชูŠุฑ ุฌุจู„
108
00:08:50,510 --> 00:08:55,790
ุฌุจู„ ุตุญุŒ ู‡ูŠ ุงุชูˆู„ุฏ ู‡ุฐุง ู…ุธุจูˆุทุŒ ู‡ูŠ rules ู‡ุฐูŠ ุงู†ุง ู…ุด
109
00:08:55,790 --> 00:08:58,850
ุฌุงูŠุจู‡ุง ู…ู† ู…ุฎูŠุŒ ุจุณ ุงู†ุง ุชู‚ุฑูŠุจุง ูŠุนู†ูŠ ุฐุงูƒุฑู‡ุงุŒ special is a
110
00:08:58,850 --> 00:09:01,520
term special is not a termุŒ ูˆุงู„ู€ term ู‡ูŠ ุนุจุงุฑุฉ ุนู†
111
00:09:01,520 --> 00:09:03,780
term ุฏู‡ ูˆุงู„ู€ factor term ู‡ู†ุง ู…ุงู‚ู„ู†ุงุด ุงุญู†ุง ููŠ
112
00:09:03,780 --> 00:09:10,040
ุงู„ุญุงู„ุฉ ูˆู‚ุชู†ุง ู…ุด ุญู†ุชู‚ู„ุจ ู„ุงูŠ ู…ู† ู‡ุฐุงุŒ ุงู„ู€ term is a
113
00:09:10,040 --> 00:09:14,120
factor ูˆุงู„ู€ factor can be a digitุŒ ู‡ู†ุง ุงู„ู€ term is a
114
00:09:14,120 --> 00:09:20,140
factor ูˆุงู„ู€ factor is a digit ูˆุงู„ู€ digit is 9ุŒ ู‡ู†ุง
115
00:09:20,140 --> 00:09:26,480
ุจุฑุถู‡ factor is a digit ูˆุงู„ู€ digit is 5 ูˆู‡ู†ุง ุงูŠุด
116
00:09:26,480 --> 00:09:35,430
ุจุฑุถู‡ factor is a digit 2ุŒ ุงู„ุงู† ุจุฑุฌุน ู„ู€ slide ุงู„ู„ูŠ ูƒู†ุง
117
00:09:35,430 --> 00:09:41,050
ููŠู‡ุง ู†ูุณ
118
00:09:41,050 --> 00:09:46,470
ุงู„ุดูŠุก ุจุณ ุงู„ู„ู‡ู… ุงู„ู€ term ุนู„ู‰ ุทูˆู„ ู…ุฎุชุตุฑ ู‡ูˆ ุงู„ู€ term
119
00:09:46,470 --> 00:09:52,610
ูˆู…ุนุทูŠู‡ุง digital ูŠุนู†ูŠ ูƒุฃู†ู‡ ุชุฌุงูˆุฒ ุนู† ุงู„ุชุญู„ูŠู„ ู‡ุฐุง
120
00:09:52,610 --> 00:09:59,190
ุจุณูŠุท ุจุณูŠุท ุฒูŠ ู…ุง ู‡ูˆ ุจุณูŠุทุŒ ูˆ term ุนู„ู‰ ุทูˆู„ู‡ุง
121
00:10:02,230 --> 00:10:05,770
ู„ุฃ ุชุจุณูŠุท ู‡ุฐุง ุงู„ูƒู„ุงู… ู…ุด .. ุชุณุนุฉ .. ู…ุด ุงู†ู‡ ูŠุนู†ูŠ ุชุณุนุฉ
122
00:10:05,770 --> 00:10:08,110
ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู†
123
00:10:08,110 --> 00:10:08,710
.. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ
124
00:10:08,710 --> 00:10:12,610
ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† ..
125
00:10:12,610 --> 00:10:18,590
ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ
126
00:10:18,590 --> 00:10:20,010
ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† ..
127
00:10:20,010 --> 00:10:27,570
ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ
128
00:10:27,570 --> 00:10:35,150
ุงุชู†ูŠู† .. ุชุณุนุฉ ุฎู…ุณุฉ ุงุชู†ูŠู† attributes ูˆmethodsุŒ ุงุนุชุจุฑ
129
00:10:35,150 --> 00:10:40,470
ุนู†ุฏูƒ attribute ุงุณู…ู‡ุง TุŒ T ู‡ุฐุง ุงุฎุชุตุงุฑ ู„ู„ุชุฑุฌู…ุฉ ูƒู„
130
00:10:40,470 --> 00:10:46,570
node ุนู†ุฏูƒุŒ ูƒู„ node ู„ู€ non-terminal ุงุนุชุจุฑู‡ุง object ูˆุงู„ู€
131
00:10:46,570 --> 00:10:55,510
object ู‡ุฐุง ุงูŠู‡ุŸ ู„ู‡ dot T attribute dot
132
00:10:55,510 --> 00:11:01,300
T attribute ู‡ุฐู‡ ุจุชุญู…ู„ ู‚ูŠู…ุฉ ู„ู€ Translation ุชุจุน ู…ุง
133
00:11:01,300 --> 00:11:08,100
ุชุญุชู‡ุง ูŠุนู†ูŠ ุงู„ุชุฑู… ู‡ุฐุง ุงู„ู„ูŠ ู‡ูˆ ุงู„ุฎู…ุณุฉุŒ ุงูŠุด ุงู„ู€
134
00:11:08,100 --> 00:11:15,140
translation ุชุจุน ุงู„ุฎู…ุณุฉ ู„ุญุงู„ู‡ุง ู‡ูŠ ุงู„ุฎู…ุณุฉ ู†ูุณู‡ุงุŒ ุงูŠุด
135
00:11:15,140 --> 00:11:19,880
ุงู„ู€ translation ุชุจุน ุงู„ุชุณุนุฉ
136
00:11:19,880 --> 00:11:24,920
ู†ูุณู‡ุงุŒ ู…ุง ููŠ translation ู„ู„ุชุณุนุฉ ุฅู„ุง ู‡ูŠ ู†ูุณู‡ุง ุจุชุชุฒู†
137
00:11:24,920 --> 00:11:30,660
ุฒูŠ ู…ุง ู‡ูŠุŒ ู‡ุฐุง ุงู„ุขู† ุงู„ู€ expressionุŒ ุงู„ู€ T ุชุจุนู‡ ู‡ูŠ ุงู„ู€
138
00:11:30,660 --> 00:11:33,700
translation ุชุจุน ู…ุง ุชุญุชู‡ุงุŒ ุทุจ ุงูŠุด ู…ุง ุชุญุชู‡ุง ู‡ูˆ ุจุณ ู‡ุฐุง
139
00:11:33,700 --> 00:11:39,100
ูŠุจู‚ู‰ ู‡ูŠ ู†ูุณู‡ุงุŒ ุจูŠู†ู…ุง ู‡ุฐุง ุงู„ู€ T ุงู„ุชุฑุงู†ุณู„ูŠุดู† ุชุจุน ุงู„ู„ูŠ
140
00:11:39,100 --> 00:11:47,420
ุชุญุชู‡ุง ุนุจุงุฑุฉ ุนู† ุงู„ุชุฑุงู†ุณู„ูŠุดู† ุชุจุน ู‡ุฐุงุŒ ู…ุทุจูˆุนุฉ ุจุงู„ุงุดุงุฑุฉ
141
00:11:47,420 --> 00:11:54,000
ุงู„ู†ู‚ุต ู…ุทุจูˆุนุฉ ุจุงู„ุฅุดุนุฉ ุงู„ู†ู‚ุต ู…ุธุจูˆุท ูŠุจู‚ู‰ ุงู„ู€ T ุจุชุณุงูˆูŠ
142
00:11:54,000 --> 00:12:00,290
ุงู„ู€ expression.T ู‡ู†ุง ุจุถุน one ุนุดุงู† ุฃู…ูŠุฒ ู…ุง ุจูŠู† ุงู„ู€
143
00:12:00,290 --> 00:12:03,710
parent ูˆ ู…ุง ุจูŠู† ุงู„ู€ child ุฏู‡ ุจู‚ูˆู„ expression one
144
00:12:03,710 --> 00:12:07,110
expression
145
00:12:07,110 --> 00:12:16,090
one ูˆ .T ูˆุงู„ุญู…ู‘ ูˆุฑุงู‡ุง ุฅูŠุด ู‡ุฐุง ุงู„ู€ double bar
146
00:12:16,090 --> 00:12:22,590
concatenation ูŠุนู†ูŠ ุงู„ุญู…ู‘ ูˆุฑุงู‡ุง ุฅูŠุด ุงู„ู†ู‚ุต ูˆู„ุง ุงู„ุฎู…ุณุฉ
147
00:12:22,590 --> 00:12:29,490
ุงู„ู€ term.T ูˆุงู„ุญู…ู‘ ุจุนุฏู‡ุง ู†ู‚ุต ุงู„ู†ู‚ุต ูƒู…ุง ู‡ูˆ ุนู„ู‰ ุดูƒู„
148
00:12:29,490 --> 00:12:36,430
ุงู„ู€ string ุฃูˆ ุงู„ู€ character ู†ูุณ ุงู„ุดูŠุก ู‡ู†ุง
149
00:12:36,430 --> 00:12:43,150
ุจุณ ุจุฏู„ ุงู„ู†ู‚ุต ุงู„ุฒุงุฆุฏ ุจุฑุถู‡ ู‡ู†ุง ุจุญุท expression one
150
00:12:43,150 --> 00:12:45,410
ุชู…ูŠูŠุฒ ุฅู† ุฃู†ุง ุจุญูƒูŠ ุนู† ุงู„ู€ child
151
00:13:09,550 --> 00:13:16,130
ุฎุทูˆุฉ ู…ู…ุชุงุฒุฉ ุงู„ุขู† ู†ุฃุฎุฐ ู‡ุฐุง ุงู„ูƒู„ุงู… ูˆ ู†ุถุนู‡ ู…ุน ุงู„ู€
152
00:13:16,130 --> 00:13:22,170
production ุจุญูŠุซ ุฅู† ุงู„ู€ parser ูŠู‚ูˆู… ุจุชุฑุฌู…ุฉ ูˆูŠู‚ูˆู…
153
00:13:22,170 --> 00:13:25,270
ุจุชุฑุฌู…ุฉ ููŠ ุฃู†ู‡ูŠ ุงู„ู…ุนุงู‡ุฏ ู†ูุณ ุงู„ูˆุงุฌู‡ุฉ ุงู„ู„ูŠ ู‡ูˆ ุงู„ูƒุชู„
154
00:13:26,420 --> 00:13:34,180
ุฃู…ุณุญ ู‡ุฐุง ุงู„ูƒู„ุงู… ุฎู„ุงุต ูˆุงุถุญ ู‡ุฏูˆู„
155
00:13:34,180 --> 00:13:38,740
productions ุชู…ุงู… ู‡ุฏูˆู„ ุดุบู„ ุงู„ู€ parser ุงู„ู„ูŠ ุจูŠุณูˆูŠู‡
156
00:13:38,740 --> 00:13:42,900
ุจุชู†ุงูˆู„ู‡ู… ุนุดุงู† ูŠุนู…ู„ parsing ููŠ ู†ูุณ ุงู„ูˆู‚ุช ุงู„ู„ูŠ ุจูŠุตูŠุฑ
157
00:13:42,900 --> 00:13:45,360
ููŠ ุงู„ู€ parsing ุจุฏู†ุง ุจุฑุถู‡ ูƒู…ุงู† ูŠุตูŠุฑ translation
158
00:13:45,360 --> 00:13:49,440
ู‡ุฏูˆู„ productions ู‡ุฏูˆู„ ุฅูŠุด ุงุณู…ู‡ู… semantic rules
159
00:13:49,440 --> 00:13:54,220
rules ุฅู† ู‡ุฐุง ุงู„ู€ rule ุชุนู†ูŠ ุฅู† ุงู„ู€ ู†ุงุฏุด ู„ู„ู€
160
00:13:54,220 --> 00:13:59,010
translation ุจุฏูŠ ูŠูƒูˆู† ู‡ูŠูƒ ู…ุงุดูŠ .. ุงู…ุชู‰ ุจูŠุชุทุจู‚ ู‡ุฐู‡ ..
161
00:13:59,010 --> 00:14:02,870
ู‡ุฐู‡ ุจุฏุฃุช ุชุชู†ูุณ ุงู…ุชู‰ ุจุชุชู†ูุณ .. ู„ู…ุง ูŠูƒุชู…ู„ ุงู„ู€ parsing
162
00:14:02,870 --> 00:14:06,810
ุชุจุน ู‡ุฐุง ุงู„ู€ non-terminal ุจู†ุงุก ุนู„ู‰ ู‡ุฐู‡ ุงู„ู€ production
163
00:14:06,810 --> 00:14:12,110
ู‡ุฐุง ุงู„ู€ non-terminal ุจู†ุงุก ุนู„ู‰ ู‡ุฐู‡ ุงู„ู€ production ู„ู…ุง
164
00:14:12,110 --> 00:14:18,750
ูŠูƒุชู…ู„ู‡ุง ูˆุฌุฏุช ุจุชุชู†ูุณ ู‡ุฐู‡ ุงู„ู€ rule ุชุชู†ูุณ .. ุจู…ุนู†ู‰ ุฅู†ู‡
165
00:14:18,750 --> 00:14:24,010
ุจู†ุนุทูŠ ุงู„ู€ top T attribute ุชุจุน ุงู„ู€ expression ู„ุฃูŠ
166
00:14:24,010 --> 00:14:27,330
expression ุงู„ู„ูŠ ู‡ูˆ ู‡ุฐุง ุงู„ู€ non-terminal ู†ุนุทูŠู‡ ู‚ูŠู…ุฉ
167
00:14:27,330 --> 00:14:33,310
ุงู„ู€ .T ู…ุทุจูˆุนุฉ
168
00:14:33,310 --> 00:14:37,370
ุจุงู„ุฅุดุงุฑุฉ ุงู„ุฒุงุฆุฏุฉ
169
00:14:41,020 --> 00:14:46,560
ุจุงู„ู€ syntax-directed translation Translation ุนู„ู‰
170
00:14:46,560 --> 00:14:52,460
ุฃุณุงุณ ุงู„ู€ syntax analysis ู‡ุฐุง ู„ู…ุง ุฃู†ุง ุจุฌูŠุจ ุงู„ู€
171
00:14:52,460 --> 00:14:55,480
productions ูˆ ุจุญุท ู…ู‚ุงุจู„ ูƒู„ production ุงู„ู€ rule
172
00:14:55,480 --> 00:15:02,520
ุงู„ู…ุตุงุญุจุฉ ู„ู‡ุง ู„ุชุชู†ูุณ ุนู†ุฏ ุงุฌุชู…ุงุน ุชุทุจูŠู‚ู‡ุง ู‡ุฐุง ุจูŠุตูŠุฑ
173
00:15:02,520 --> 00:15:08,160
syntax-directed definition ู‡ูˆ ุจุงู„ุฃุตู„ definition ุฏู‡
174
00:15:08,160 --> 00:15:13,290
ุงู„ู€ grammar ุฃุณู‡ู„ ุงู„ุขู† ู‡ูŠ ุนุจุงุฑุฉ ุนู† syntax directed
175
00:15:13,290 --> 00:15:20,610
definition ู„ู„ุฌุฑุงู… ูˆู„ู„ุชุฑุฌู…ุฉ syntax
176
00:15:20,610 --> 00:15:25,250
directed definition for infix to postfix
177
00:15:25,250 --> 00:15:29,530
translation ู„ู„ุชุญูˆูŠู„ ู…ู† infix to postfix ุงู„ุขู† ุฑุงุญ ู†ุฒูŠ
178
00:15:29,530 --> 00:15:35,370
ุฅู† ู‡ูŠ ุงู„ู€ rules ุฃูˆ ุงู„ู€ production ุณุจุนุฉ ุงู„ู€ term ูƒุงู†
179
00:15:35,370 --> 00:15:39,510
ููŠ ุงู„ุฃูˆู„ ูŠูˆู… ุนู„ู‰ ุณุทุฑ ูˆุงุญุฏ ูˆูุตู„ู‡ู… ุงู„ุขู† ูƒู„ ูˆุงุญุฏ ุนู„ู‰
180
00:15:39,870 --> 00:15:43,890
ุณุทุฑ ู„ุญุงู„ู‡ ูˆุฌุงุก ุฅู†ู‡ ุฅุฐุง ู‡ูˆ zero ูุนู„ู‰ ุทูˆู„ ุทู„ุน ุงู„ู€
181
00:15:43,890 --> 00:15:48,810
zero ุฒูŠ ู…ุง ู‡ูŠ ุฅุถุงูุฉ T ู„ุชุฃุฎุฐ ุดูƒู„ ุงู„ู€ zero ุงู„ู€
182
00:15:48,810 --> 00:15:54,530
character ูุงุญู†ุง ุงู„ุขู† ุจุฏู†ุง ู†ุฑุฌุน ุดูˆูŠุฉ ุจุณ ุนุดุงู† ู†ุชุจุน
183
00:15:54,530 --> 00:15:58,510
ุงู„ุญุงุฌุฉ ุงู„ู„ูŠ ุณู‚ู†ุงู‡ุง ุงู„ู„ูŠ ุงู„ุฃูˆู„ ุฃุตุจุญุช ุงู„ู…ูู‡ูˆู… ู„ู†ุง
184
00:15:58,510 --> 00:16:03,750
ู‡ุงูŠ ุจุฏุงูŠุฉ ุงู„ู€ section ุงุชู†ูŠู† ุชู„ุงุชุฉ ู…ูู‡ูˆู… ุงู„ู€
185
00:16:03,750 --> 00:16:08,840
attribute ูˆู…ูู‡ูˆู… ุงู„ู€ translation scheme Translation
186
00:16:08,840 --> 00:16:12,540
Scheme Translation Scheme ู‡ูˆ ุนุจุงุฑุฉ ุนู† ุงู„ุฌุฏูˆู„ ู‡ุฐุง
187
00:16:12,540 --> 00:16:14,540
ุงู„ู„ูŠ ุดูู†ุงู‡ ู‡ูˆ ุนุจุงุฑุฉ ุนู† Translation Scheme ู‡ูˆ
188
00:16:14,540 --> 00:16:21,200
ุนุจุงุฑุฉ ุนู† Rules ู…ุตุงุญุจุฉ ู„ุฅูŠุดุŸ ู„ู€ Productions ุงู„ู€
189
00:16:21,200 --> 00:16:24,260
Attributes Attributes is any quantity associated
190
00:16:24,260 --> 00:16:27,880
with a programming construct Programming Construct
191
00:16:27,880 --> 00:16:33,060
ุฅู† ู‡ู†ุง ู‡ูˆ ุงู„ู€ non terminal ูˆ ุฃูŠุถุง ูƒู…ุงู† ุนู„ู‰ ููƒุฑุฉ
192
00:16:33,060 --> 00:16:35,780
ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ terminals ุงู„ู€ one ูˆ ุงู„ู€ zero ุงู„ุชุฑุงู†ุณู„ูŠุดู†
193
00:16:35,780 --> 00:16:39,710
ุชุจุนู‡ู… ู‡ูˆ ุงู„ู„ูŠ ู‡ูˆ ุงู„ุชุฑุงู†ุณู„ูŠุดู† ุจุณ ุฃู… ุงู„ู€ 1 ูˆ ุงู„ู€ 0
194
00:16:39,710 --> 00:16:43,930
ู‡ุคู„ุงุก ู…ุนุจุฑ ุนู†ู‡ู… ุจู€ non-terminal ุงุณู…ู‡ term ุตุญุŸ non
195
00:16:43,930 --> 00:16:47,870
-terminal ุงุณู…ู‡ term an attribute is any quantity
196
00:16:47,870 --> 00:16:51,810
associated with a programming construct ู‡ุฐุง
197
00:16:51,810 --> 00:16:53,970
ุงู„ุชุนุฑูŠู ุงู„ุนุงู… ู„ู„ู€ attribute ุนู†ุฏู†ุง ููŠ ุงู„ุญู„ู‚ุฉ .. ููŠ
198
00:16:53,970 --> 00:16:57,090
ุงู„ู€ example ู‡ุฐุง ุดูˆูู†ุง attribute ุงู„ู„ูŠ ู‡ูŠ ุงู„ุฎุงุตุฉ ุจุงู„ู€
199
00:16:57,090 --> 00:17:01,210
translation ููŠ attributes ุชุงู†ูŠุฉ ู‚ุฏุงู… ู†ุญูƒูŠ ุนู† ุงู„ู€
200
00:17:01,210 --> 00:17:04,970
parsing ุจุดูƒู„ ู…ูุตู„ ู‡ู†ุดูˆู ุฃู†ูˆุงุน attribute ุงู„ู„ูŠ ู‡ูŠ
201
00:17:04,970 --> 00:17:10,460
ูˆุธุงุฆู ุฃุฎุฑู‰ ุบูŠุฑ ุฃู†ู‡ุง ุชุญู…ู„ ุงู„ู‚ูŠู…ุฉ ุงู„ู€ Translation ุฅู†
202
00:17:10,460 --> 00:17:15,840
ู‡ูŠ ููŠู‡ุง attributes ู„ู„ู€ data type ู‡ุฐุง ุงู„ู€ non
203
00:17:15,840 --> 00:17:23,580
terminal ูŠู…ุซู„ ู…ุชุบูŠุฑ ูˆู„ุง ูŠู…ุซู„ identifier ุจู„ุฒู…ู†ูŠ
204
00:17:23,580 --> 00:17:27,960
ุฃุนุฑู ุงู„ู€ data type ู‡ูˆ ุงู†ุชุฌุฑ ุฃูˆ float ุฃูˆ ูƒุฏู‡ ูุจูŠูƒูˆู†
205
00:17:27,960 --> 00:17:33,680
ููŠู‡ attribute ุฎุงุตุฉ ู„ุฃู†ู‡ุง ุชุญู…ู„ ุงู„ู€ data type ุชุจุน ุงู„ู€
206
00:17:33,680 --> 00:17:38,480
construct ู‡ุฐุง ู ุฃู†ุช ุจุชุงุฎุฐ ุงู„ู€ object ู…ุง ู„ู‡ูˆุด ุจุณ ุงู„ู€
207
00:17:38,480 --> 00:17:41,960
.T attribute ู„ุฃ ู…ู…ูƒู† ูŠุฌูŠู„ู‡ ุงู„ู€ .T ูŠุนู†ูŠ
208
00:17:41,960 --> 00:17:45,720
translate ูˆุงู„ู€ .T is the type ูˆุงู„ู€ .T ูˆุงุญุฏุฉ
209
00:17:45,720 --> 00:17:48,600
ุชุงู†ูŠุฉ ูŠุนู†ูŠ ุงู„ู€ value ุงู„ู€ value ุทุจุนุง ุฅุฐุง ู‡ูˆ
210
00:17:48,600 --> 00:17:51,740
expression ู…ู…ูƒู† ุงู„ู€ value ุงู„ู†ู‡ุงุฆูŠ ูŠุนู†ูŠ ุชุณุนุฉ ู†ุงู‚ุต
211
00:17:51,740 --> 00:17:56,560
ุฎู…ุณุฉ ูŠุณุงูˆูŠ ุฃุฑุจุนุฉ ุฒุงุฆุฏ ุงุซู†ูŠู† ูŠุณุงูˆูŠ ุณุชุฉ ุงู„ุณุชุฉ ู‡ุฐู‡ ุจุชุงุฎุฐู‡ุง
212
00:17:56,560 --> 00:18:00,080
ููŠ attribute ุงุณู…ู‡ุง ุงู„ู€ .value ูู‡ุฐุง ูƒู„ ูƒู„ุงู… ุฌุฏุง
213
00:18:00,080 --> 00:18:04,420
ุจู†ุดูˆูู‡ ุจุดูƒู„ ู…ูุตู„ ู‡ุฐุง ู‡ูˆ ู…ูู‡ูˆู… ุงู„ู€ Attribute ูˆู‡ุฐุง ู‡ูˆ
214
00:18:04,420 --> 00:18:07,360
ู…ูู‡ูˆู… ุงู„ู€ Translation Scheme Translation Scheme ู‡ูˆ
215
00:18:07,360 --> 00:18:13,840
ู…ูู‡ูˆู… ู„ู€ Attaching Program fragments Program
216
00:18:13,840 --> 00:18:21,480
fragments ูŠุนู†ูŠ ุฌุฒุก ู…ู† ุงู„ู€ code ุจุฑู…ุฌูŠ ู…ุน ู…ู†ุŸ ู…ุน ุงู„ู€
217
00:18:21,480 --> 00:18:28,180
production ู‡ุฐุง ุงู„ุขู† ูƒุฃู†ู‡
218
00:18:29,380 --> 00:18:32,720
code fragment ู„ุฃู†ู‡ ุจู‚ู‰ ูŠู‚ูˆู„ ู„ูŠ ุงู„ู€ attribute ู‡ูŠ ู‡ุฐู‡
219
00:18:32,720 --> 00:18:36,660
ุงู„ู€ value ุชุจู‚ู‰ ู‡ูŠูƒ ู‡ุฐู‡ ูƒุฃู†ู‡ ุณุทุฑ ููŠ ุจุฑู†ุงู…ุฌ ุจูŠุนุทูŠ
220
00:18:36,660 --> 00:18:44,440
ู‚ูŠู…ุฉ ู„ู€ attribute ุชู…ุงู…
221
00:18:44,440 --> 00:18:50,300
ูุฅุฑูุงู‚
222
00:18:50,300 --> 00:18:54,600
ุฃูˆ attaching program fragments ู…ุน productions
223
00:18:54,600 --> 00:19:03,270
ุจูŠุดูƒู„ ู„ูŠ ุงู„ู€ translation scheme ูˆุขุฎุฑ ุดูŠุก ุฅู† ุงู„ู€
224
00:19:03,270 --> 00:19:08,470
production ูˆุงุญุฏุฉ ู…ู…ูƒู† ูŠุตุญุจู‡ุง rule ูŠุนู†ูŠ fragment
225
00:19:08,470 --> 00:19:14,510
ุณุทุฑ ูˆุงุญุฏ ุฃูˆ ุฃูƒุซุฑ ู…ู…ูƒู† ุชุจู‚ู‰ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ู€ fragments
226
00:19:14,510 --> 00:19:22,950
ุงู„ู„ูŠ ุชุชู†ูุฐ ุนู†ุฏ ุงูƒุชู…ุงู„ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ parsing
227
00:19:26,770 --> 00:19:31,870
ุจุนุฑููƒ ุฅูŠุด ู‡ูŠ post-extension ูˆุชุญูˆูŠู„ู‡ุง ูˆู‡ูŠ example
228
00:19:31,870 --> 00:19:40,870
ูˆู‡ูŠ ุงู„ู€ tree ูˆู‡ูŠ ุงู„ู€ syntax directed definition ุงู„ุขู†
229
00:19:40,870 --> 00:19:45,930
ุงู„ู€ tree ู‡ุฐู‡ ุฒูŠ ู…ุง ุฃู†ุชู… ุดุงูŠููŠู† ุงู„ู€ value ุชุจุน ุงู„ู€ .
230
00:19:45,930 --> 00:19:52,250
T ู‡ุฐุง ู…ุง ุจุญุตู„ ุนู„ูŠู‡ ุฅู„ุง ู…ู† ุจุนุฏ ู…ุง ุงุชุญุฏู‰ ุงู„ู€ value ุชุจุน
231
00:19:52,250 --> 00:19:56,930
ุงู„ู„ูŠ ุชุญุชู‡ุง ูˆู‡ุฐู‡ ุงู„ูƒุงู…ูŠุฑุง ูƒุญุงู„ุฉ ุงู„ู€ tree ุงู„ู€
232
00:19:56,930 --> 00:20:03,270
traversal ู„ุงุฒู… ูŠุชู… depth first ุตุญุŸ ู„ุฃู† ู„ุงุฒู… ุฃู†ุง ุฃุฎุด
233
00:20:03,270 --> 00:20:08,290
ู‡ูŠูƒ ุฃุทู„ุน ุงู„ู€ value ุชุจุน ุงู„ู€ T ู‡ุฐู‡ ุฃุฑุญู„ู‡ุง ุฅู„ู‰ ู‡ู†ุง ุนู„ูŠู†ุง
234
00:20:08,290 --> 00:20:15,010
ุฃุฎุด ู‡ูŠูƒ ู‡ุฐู‡ ู…ุง ููŠุด ู„ู‡ุง T ุฃุฎุด ู‡ูŠูƒ ู…ุธุจูˆุทุŸ ุงู‡ ุจุนุฏ ูƒุฏู‡
235
00:20:15,010 --> 00:20:18,730
ุฃุฌู…ุน ุงู„ู€ value ุชุจุน ุงู„ู€ T ู‡ุฐู‡ ู…ู† ุงู„ู€ T ู‡ุฐู‡ ู…ู† ุงู„ู€ T ู‡ุฐู‡
236
00:20:18,730 --> 00:20:22,980
ู…ู† ู‡ุฐุง ู…ุธุจูˆุทุŸ ุงู‡ ูƒู„ู…ุฉ ุฃุฌู…ุน ุงู„ู€ value ุจุงู„ู€
237
00:20:22,980 --> 00:20:27,940
concatenation ุจุงู„ุฅู†ุฌู„ูŠุฒูŠุฉ synthesize ุจุฌู…ุน ุฃูˆ ุจุฑูƒุจ
238
00:20:27,940 --> 00:20:32,840
.. ุงู‡ .. synthesize ุนุดุงู† ู‡ูŠูƒ ู‡ุฐุง ุงู„ู€ attribute
239
00:20:32,840 --> 00:20:37,880
ุจู†ุนุชุจุฑู‡ุง synthesized attribute ุทูŠุจ ู…ุง ู‡ูŠ ูƒู„ ุงู„ู€
240
00:20:37,880 --> 00:20:40,740
attributes synthesized ุจุชูŠุฌูŠ ุงู„ู€ value ุชุจุนู‡ุง ู…ู†
241
00:20:40,740 --> 00:20:43,560
ุงู„ุชุญุชุŸ ู…ุธุจูˆุทุŸ ู„ุฃ ู…ุด ูƒู„ู‡ู…ุŒ ููŠ ุฃู†ูˆุงุน ู…ู† ุงู„ู€
242
00:20:43,560 --> 00:20:46,400
attributes ู‚ุฏุงู…ู‡ุง ู†ุดูˆู ุงุณู…ู‡ู… inherited attributes
243
00:20:46,400 --> 00:20:52,940
ุจูŠุฌูŠ ุงู„ู€ value ุชุจุนู‡ุง ู…ู† sibling ุฃูˆ ู…ู† parent ุจุณ ุงู„ู„ูŠ
244
00:20:52,940 --> 00:20:55,060
ุจูŠุฌูŠ ุงู„ู€ value ุชุจุนู‡ุง ู…ู† ุชุญุช ู‡ูŠ ุงู„ู„ูŠ ุจูŠู‚ูˆู„ ุนู†ู‡ุง
245
00:20:55,060 --> 00:20:58,060
synthesized ุบูŠุฑ ู‡ูŠ ุงู„ู„ูŠ ุจูŠู‚ูˆู„ ุนู†ู‡ุง inherited ุงู„ู…ู‡ู…
246
00:20:58,060 --> 00:21:02,160
ุงุญู†ุง ุจู‚ู‰ ู„ู†ุง ุฅู† ุจุณ ูŠุนู†ูŠ ู„ูˆ ุฃุฌูŠ ูˆุงุญุฏ ู‚ุงู„ ุทูŠุจ ู‡ูŠ
247
00:21:02,160 --> 00:21:04,420
attribute ู„ูŠุด ุณูŠู‚ูˆู…ูˆู‡ุง ุงู„ู€ synthesized ู‡ูŠ attribute
248
00:21:04,420 --> 00:21:11,160
ูุจุณ ุฅุฐุง ุญุฏ ุนู†ุฏู‡ ู‡ุฐุง ุงู„ุชุณุงุฑุน ุญุงุจุจ ูŠุนู„ู† ุนู†ู‡ okay
249
00:21:11,160 --> 00:21:18,230
ุงู„ุขู† ู‡ุฐุง simple syntax directed definition ูˆู‡ูŠ ุงู„ู€
250
00:21:18,230 --> 00:21:21,130
tree traversal ุงู„ู€ tree traversal ูƒู†ุง ู†ุฏู„ ููŠ ุงู„ู€
251
00:21:21,130 --> 00:21:29,910
first ุฅู†ู‡ ูˆุฃู†ุง ูˆู‚ุนุฏุช ุนู„ู‰ node N ู‡ูŠ procedure ุงุณู…ู‡ุง
252
00:21:29,910 --> 00:21:33,550
visit visit ูŠุนู†ูŠ ู…ู† ุฃุฒูˆุฑู‡ุง ูˆุฃุฒูˆุฑ ูƒู„ ู…ุง ุฃุชููŽุฑู‘ุฌ ุนู†ู‡ุง
253
00:21:33,550 --> 00:21:38,810
for each child C of N ู‡ุงูŠ N ู‡ุฐุง child ูˆู‡ุฐุง child
254
00:21:38,810 --> 00:21:41,710
from left to right visit C
255
00:21:46,170 --> 00:21:50,110
ุฃูˆ recursive call ุฅู„ู‰ ู†ูุณู‡ุง ุทุจ ุงู„ุขู† ุฃู†ุง ูƒู†ุช ุนู„ู‰
256
00:21:50,110 --> 00:21:53,890
ู‡ุฐู‡ ุตุฑุช ุงู„ุขู† ู‡ู†ุง visit ู‡ุฐู‡ ู…ุนู†ุงุชู‡ ุดูˆู ุงู„ู€ children
257
00:21:53,890 --> 00:21:58,350
ุชุจุนู‡ุง ูˆ visit ุงู„ู„ูŠ ู‡ู… ู…ู† left to right ูˆุฌูุช ุนู„ูŠุง
258
00:21:58,350 --> 00:22:04,550
child ุฅุฐุง ุฅู„ู‡ ู„ุณู‡ children ุจุฏู‡ ุฃุถู…ู†ูŠ ุงู„ุขู† ู„ู…ุง ุฎู„ุงุต
259
00:22:04,550 --> 00:22:09,390
ู…ุง ููŠุด ุดูŠุก ู„ู…ุง ุฃุฎู„ุต visiting ุงู„ู„ูŠ ุฃู†ุง ู…ูˆุฌูˆุฏ ุนู„ู‰ ุงู„ู€
260
00:22:09,390 --> 00:22:12,790
node ูˆู…ุง ู„ู‡ุงุด ุงู„ู€ children ู evaluate ุงู„ู€ semantic
261
00:22:12,790 --> 00:22:16,610
rules at node n ุงู„ู„ูŠ ุฃู†ุง ุนุงุฑู ุนู„ูŠู‡ุง evaluate ูˆุจุนุทูŠ
262
00:22:16,610 --> 00:22:20,510
ู‚ูŠู…ุฉ ูˆุจุฃุทู„ุน ู…ู†ู‡ุง ุนู„ู‰ ุงู„ู„ูŠ ุจุนุฏู‡ุง ูˆุงู„ู„ูŠ ุจุนุฏู‡ุง ู„ุฃู†
263
00:22:20,510 --> 00:22:26,030
ู„ู…ุง ุฃุฑุฌุน ู„ููˆู‚ ุจู‚ู‰ ุงู„ู‚ูŠู… ุชุจุนุช ุงู„ู„ูŠ ุชุญุช ุจูŠุฌู…ุนูˆู„ูŠ
264
00:22:26,030 --> 00:22:32,450
ุงู„ู‚ูŠู… ุชุจุนุช ุงู„ู†ูˆุฏ ุงู„ู„ูŠ ู…ู† ููˆู‚ ุงู„ู€ translation
265
00:22:32,450 --> 00:22:37,150
schemes ุงู„ู„ูŠ ู…ู…ูƒู† ุชูŠุฌูŠ ุนู„ู‰ ุดูƒู„ ุฅูŠุดุŸ ุฅู† ุงู„ู€ rule
266
00:22:37,150 --> 00:22:43,330
ู†ูุณู‡ุง ู‡ูŠ ุนู†ุฏูŠ rule rest can
267
00:22:43,330 --> 00:22:51,510
have a form plus ูŠุชุจุนู‡ุง term ูŠุชุจุนู‡ุง rest ูˆุงุญุฏ ู‡ุฐู‡
268
00:22:51,510 --> 00:22:55,890
ู…ุซุงู„ ุนู„ู‰ production production ู‡ุฐู‡ ุงู„ู€ production
269
00:22:55,890 --> 00:23:04,790
ู‡ุฐู‡ ุฃู†ุง ู…ู…ูƒู† ุฃุณู‚ู‘ ุจู‡ุง code ู‡ุฐุง code ู‡ุฐุง ุงู„ู„ูŠ ุจูŠู†
270
00:23:04,790 --> 00:23:09,850
ุงู„ู€ curly braces ุฏูˆู„ code ุฃุณู‚ุชู‡ ุจู†ูุณ ุงู„ู€
271
00:23:09,850 --> 00:23:16,520
production ููŠู‡ุง ู†ูุณู‡ุง ู…ุด ุฅู† ุนู…ู„ุช rule ู…ุตุงุญุจุฉ ู…ุด ุฅู†
272
00:23:16,520 --> 00:23:21,260
ุฃู†ุง ุนู…ู„ุช rule ู…ุตุงุญุจุฉ ู„ุฃ ุงู„ุณูƒุชุฑ ุฃุจู‡ุจ ูˆุญุทูŠุช ุงู„ู€ code
273
00:23:21,260 --> 00:23:27,480
ู‡ุฐุง ููŠ ุงู„ู…ุต ู‡ู†ุง ู…ุง ุจูŠู† term ูˆู…ุง ุจูŠู† rest ุงุตูุญ ุงู„ู€
274
00:23:27,480 --> 00:23:32,880
parser ู„ูˆ ุฏุฎู„ ุนู„ู‰ ู‡ุฐุง ุงู„ู€ production ู‡ุดูˆู ุงู„ู€ plus
275
00:23:32,880 --> 00:23:37,200
ู‡ุดูˆู ุงู„ู€ term ูŠุนู…ู„ู‡ analysis ู„ู…ุง ูŠุทู„ุน ู‚ุจู„ ู…ุง ูŠุดูˆู
276
00:23:37,200 --> 00:23:42,380
ุงู„ู€ rest ุฑุงุญ ูŠู†ูุฐ ู‡ุฐุง ู‡ุฐุง ุดูŠุก ุจูŠู†ูุฐ ุงู„ู„ูŠ ู‡ูˆ print
277
00:23:42,380 --> 00:23:51,360
plus ู‡ุฑูˆุญ ูŠุทุจุน ุงู„ู€ plus ุซู… ูŠูƒู…ู„ ุญู„ู„ ุงู„ู€ rest ูุฌุงุกุช
278
00:23:51,360 --> 00:23:58,320
ุจุชุฑุฌู… ููŠ ู†ุต ู…ุง ู‡ูˆ ุจูŠุญู„ู„ ูู‡ุฐู‡ ุงู„ุขู† ู„ู…ุง ุงุญู†ุง ุจู†ุนู…ู„
279
00:23:58,320 --> 00:24:04,240
code fragment ู‡ุฐู‡ code fragment ูˆุณู‚ู†ุงู‡ุง
280
00:24:04,240 --> 00:24:10,580
ุจุงู„ู€ production ู…ู…ูƒู† ุชูŠุฌูŠ ููŠ ูˆุณุท ุงู„ู€ body ู…ู…ูƒู† ุชูŠุฌูŠ
281
00:24:10,580 --> 00:24:14,730
ููŠ ุจุฏุงูŠุชู‡ ู…ู…ูƒู† ุชูŠุฌูŠ ููŠ ุขุฎุฑู‡ ููŠ ุญุงู„ุงุช ู…ุฎุชู„ูุฉ ุงู„ู…ู‡ู…
282
00:24:14,730 --> 00:24:19,250
ุฃู†ู†ุง ู†ู„ุชู‚ุทู‡ุง
283
00:24:19,250 --> 00:24:24,490
ู…ุน ุงู„ู€ body ุชุจุน ุงู„ู€ production ุฅูŠุด
284
00:24:24,490 --> 00:24:27,410
ุจูŠุชุฑุชุจ ุนู„ู‰ ู‡ุฐุง ุงู„ูƒู„ุงู… ู„ูˆ ุฃู†ุง ุนู†ุฏูŠ ุงู„ู€ productions
285
00:24:27,410 --> 00:24:34,770
ุฒูŠ ู‡ูŠูƒุฉ ู‡ุนู†ุฏูŠ ุจู€ grammar ุจุงู„ุฃุตู„ expression ูƒู†ุง
286
00:24:34,770 --> 00:24:38,210
ู†ุฏูุนู‡ expression ุฒูŠ ุงู„ู€ term ู‡ุฐุง ุฌุฏูŠุฏ ุนู„ูŠู†ุง ู„ุฃ
287
00:24:38,210 --> 00:24:41,180
expression ูƒู†ุง ู†ุฏูุนู‡ expression ู†ุงู‚ุต ุงู„ู€ term
288
00:24:41,180 --> 00:24:44,400
expression is a term ูˆ ุงู„ู€ term ูˆุงุญุฏ ู…ู† ุงู„ู€ digits
289
00:24:44,400 --> 00:24:50,980
ุงู„ุขู† ุนู†ุฏูŠ expression ุฒูŠ ู‡ุฐุง ุชุณุนุฉ ู†ู‚ุต ุฎู…ุณุฉ ุฒูŠ
290
00:24:50,980 --> 00:24:56,440
ุงู„ุงุซู†ูŠู† ูˆ ุจุฏูŠ ุฃุนู…ู„ู‡ parsing ุจุงุณุชุฎุฏุงู… ุงู„ู€ translation
291
00:24:56,440 --> 00:25:03,720
scheme ู‡ุฐุง ุฌุงูŠ ู„ู„ู€ print ู…ุฑุงุณู‚ุฉ ู„ู„ู€ body ุชุจุน ุงู„ู€
292
00:25:03,720 --> 00:25:09,220
production ูˆ ุฌุงูŠ ุฏุงุฆู…ุงู‹ ููŠ ุงู„ุขุฎุฑ ู…ุง ููŠุด ุญุงุฌุฉ ููŠ
293
00:25:09,220 --> 00:25:13,590
ุงู„ูˆุณุท ุฃูˆ ููŠ ุงู„ุจุฏุงูŠุฉ ุชุฎูŠู„ ุฅูŠุด ุงู„ู„ูŠ ู‡ูŠุญุตู„ ุงู„ุขู† ุฃู†ุง
294
00:25:13,590 --> 00:25:19,510
ุนู…ู„ุช ุฏุฎู„ุช ุนู„ู‰ ุงู„ู€ input ุฃุฎุฏุช ุงู„ู€ input ูˆุญู„ู„ุชู‡ ุนู„ู‰
295
00:25:19,510 --> 00:25:23,450
ุฃุณุงุณ ุฃู†ู‡ูŠุงุด expression ุฒุงุฆุฏ term ู‡ูŠ expression ูˆู‡ูŠ
296
00:25:23,450 --> 00:25:31,210
ุฒุงุฆุฏ ูˆู‡ูŠ term ุฎู„ุตุช ู…ู† ุชุญู„ูŠู„ ุงู„ู€ expression ู‡ุฐุง ู„ุฃ
297
00:25:31,210 --> 00:25:34,030
ู„ุณู‡ ุฏุฎู„ุช ุนู„ู‰ ุชุญู„ูŠู„ ุงู„ู€ expression ู‡ุฐุง ุงู„ู„ูŠ ู‡ูŠ 9
298
00:25:34,030 --> 00:25:40,290
ู†ุงู‚ุต ุงู„ุฎู…ุณุฉ ุตุญ ุฃุฎุฏุช ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ูŠุงุด rule ุฑู‚ู… ุงุซู†ูŠู†
299
00:25:40,290 --> 00:25:41,030
ุตุญ
300
00:25:46,230 --> 00:25:49,070
Okay ูุฃุฎุฏุชู‡ุง ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ุง ู‡ุฐู‡ ุงู„ุชุณุนุฉ expressions
301
00:25:49,070 --> 00:25:52,950
ูˆุงู„ุฎู…ุณุฉ ุฅูŠุด term ู„ุฃู† ู‡ุฐุง ุงู„ู€ expression ู‡ุฐู‡ ุงู„ู„ูŠ ู‡ูŠ
302
00:25:52,950 --> 00:25:55,950
ุงู„ู€ expression ุฃุฎุฏุชู‡ุง ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ุง term ูŠุนู†ูŠ
303
00:25:55,950 --> 00:26:00,310
expressions is a term ุนู†ุฏู†ุง ู†ุฑูˆุญ ุฑู‚ู… ุซู„ุงุซุฉ okay
304
00:26:00,310 --> 00:26:06,090
ุงู„ุขู† ุฎู„ุตุช term ู„ุฃ ู…ุฎู„ุตุชุด ุงู„ู€ term ู‡ูŠ ุงู„ู„ูŠ ุจุฏูŠ ุฃุฎุฏู‡ุง
305
00:26:06,090 --> 00:26:09,790
ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ุง ุฅูŠุด ุชุณุนุฉ ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ุง ุชุณุนุฉ ุตุญ ูŠุฌุจ
306
00:26:09,790 --> 00:26:14,120
ู†ุฑูˆุญ ุฑู‚ู… ู‡ุงูŠ ุนุดุฑุฉ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
307
00:26:14,120 --> 00:26:15,080
ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
308
00:26:15,080 --> 00:26:18,220
ุซู„ุงุซุฉ ูˆ
309
00:26:18,220 --> 00:26:25,640
ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
310
00:26:25,640 --> 00:26:26,300
ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
311
00:26:26,300 --> 00:26:27,600
ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
312
00:26:27,600 --> 00:26:30,240
ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
313
00:26:30,240 --> 00:26:39,560
ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ ุซู„ุงุซุฉ ูˆ
314
00:26:39,560 --> 00:26:41,220
ุซู„ุงุซุฉ
315
00:26:42,970 --> 00:26:52,930
ุงู„ุขู† ุฑุฌุนุช ุนู„ู‰ ุงู„ู†ุงู‚ุต ูˆ ุจุฏูŠ ุฃุดูˆู ู‡ุฐู‡ ุงู„ุฎู…ุณุฉ ุฃุฎุฏุชู‡ุง
316
00:26:52,930 --> 00:26:59,070
ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ุง term ุชู…ุงู… ู‡ุงูŠ term ูˆ ุงู„ู€ term ู‡ูˆ
317
00:26:59,070 --> 00:27:04,390
ุนุจุงุฑุฉ ุนู† ู…ูŠู† ุจุงู„ุขู† ุนู„ู‰ ุงู„ู€ rule ุงู„ู„ูŠ ู‡ุชูƒูˆู† ู‡ู†ุง ุงู„ู€
318
00:27:04,390 --> 00:27:10,090
term can have four terms ุตุญ ู„ุฃู† ู‡ุฐู‡ ุจุฑุถู‡ ู‡ูŠูˆุฌู‡
319
00:27:10,090 --> 00:27:15,170
ููŠู‡ุง code fragment ุจูŠู‚ูˆู„ูŠ ุฃุชุจุงุน ุฎู…ุณุฉ ู ุฃู†ุง ู‡ูŠ ุงุซู†ูŠู†
320
00:27:15,170 --> 00:27:20,870
ุฎู„ุตุชู‡ ุฏุฑุฌุฉ ู‚ุจู„ ู…ุง ุฃุชุฌู‡ ุจุฃุชุจุงุน ุฎู…ุณุฉ ุจู†ูุฐ ู‡ุฐุง ุงู„ุขู†
321
00:27:20,870 --> 00:27:28,250
ุงูƒุชู…ู„ ุชุญู„ูŠู„ ุงู„ู€ production ู‡ุฐู‡ ุงู„ู„ูŠ ู‡ูŠ ุฑู‚ู… ุงุซู†ูŠู†
322
00:27:28,250 --> 00:27:33,250
ุจุนุฏ ู…ุง ุงูƒุชู…ู„ุช ุฌุฒุก ู‡ุฐุง ูƒู€ expression one ูˆ ุจุนุฏูŠู† ู†ู‚ุต
323
00:27:33,250 --> 00:27:37,610
ูˆ ุจุนุฏูŠู† term ุฅูŠุด ุจุฏูŠ ุฃุนู…ู„ู‡ ุจู†ูุฐ ุงู„ู€ fragment ุงู„ู„ูŠ
324
00:27:37,610 --> 00:27:42,180
ุจูŠู‚ูˆู„ูŠ ู†ู‚ุต ุงูƒุชู…ู„ ู‡ุฐุง ุงู„ูƒู„ุงู… ุงู„ุขู† ุฃู†ุง ุงูƒุชู…ู„ ู‡ุฐุง ุงู„ุขู†
325
00:27:42,180 --> 00:27:47,780
ุฃู†ุง ุจุฑุฌุน ุฑุงุฌุน ุนู„ู‰ ุฑู‚ู… ูˆุงุญุฏ ุฃูƒู…ู„ ุขู‡ ู‡ุฐุง ุฎู„ุต ุฎู„ุต
326
00:27:47,780 --> 00:27:52,000
ุงู„ุฒุงุฆุฏ ุถุงูŠู„ ู‡ุฐุง ู‡ุฐุง ุฅูŠุด ุจุณ ุฃูˆู„ ุดูŠุก ุจุฑูˆุญ ุนู„ู‰ ุงุซู†ูŠู†
327
00:27:52,000 --> 00:27:58,040
ุตุญูŠุญ ุฃู†ุง ู‡ุฐุง ู…ุง ู†ู†ูˆุด ุฃูŠ ู†ูˆุน ู…ู† ุงู„ู€ analysis ุฅู† ุฎู„ุต
328
00:27:58,040 --> 00:28:00,940
ุงู„ุฒุงุฆุฏ ุฃู†ุง ุจุฑูˆุญ ุนู„ู‰ ุงู„ู€ term ุงู„ู€ term ุจุฃุฎุฏ ุนู„ู‰ ุฃุณุงุณ
329
00:28:00,940 --> 00:28:06,200
ุฅู† ุงุซู†ูŠู† ุงุซู†ูŠู† ู‡ูŠู‚ูˆู„ูŠ ุงุทุจุน ูู‡ุทุจุน ุงุซู†ูŠู† ุตุญ ุจุนุฏ ู…ุง
330
00:28:06,200 --> 00:28:11,020
ุฃุทุจุน ุงุซู†ูŠู† ุจุฑุฌุน ุซุงู†ูŠ ุงู„ุขู† ุฎู„ุตุช ุฃู†ุง ุงู„ุขู† ู…ู† ู‡ุฐุง ุงู„ุขู†
331
00:28:11,020 --> 00:28:15,920
ูˆุตู„ุช ู‡ู†ุง ูุจู‚ูˆู„ ุงุทุจุน ุงุฒุงูŠ ุงุทุจุน ุงุฒุงูŠ ุตุญูŠุญ ู„ุฃ ูู‡ุฏูˆู„
332
00:28:15,920 --> 00:28:20,040
ุฃุณู„ูˆุจูŠู† ููŠ ุงู„ุชุนุงู…ู„ ู…ุน ุนู…ู„ูŠุฉ ุงู„ุชุฑุฌู…ุฉ ุงู„ุฃุณู„ูˆุจ ุงู„ุฃูˆู„
333
00:28:20,040 --> 00:28:28,100
ูƒุงู† ุฅู† ุฃู†ุง ุจุฃุฌู…ุน ุงู„ู€ translation ุชุฑุงูƒู…ูŠุงู‹ ุจูˆุงุณุทุฉ ุงู„ู€
334
00:28:28,100 --> 00:28:33,020
attributes ูˆุงู„ุชุฑุฌู…ุฉ ุงู„ู†ู‡ุงุฆูŠุฉ ุจุชูƒูˆู† ุงู„ุชุฌู…ุนุช ู„ุฏูŠ ููŠ
335
00:28:33,020 --> 00:28:36,920
ุงู„ู€ root node ููŠ ุงู„ู€ dot T attribute ุชุจุน ุงู„ู€ root
336
00:28:36,920 --> 00:28:40,800
node ุจุนุฏ ู‡ูŠูƒ ุจุณ ุฎู„ุงุต ุจุฑูˆุญ ู…ุฑุฉ ูˆุงุญุฏุฉ ุจุฃุทุจุนู‡ุง ุฃูˆ
337
00:28:40,800 --> 00:28:47,720
ุจุตุฏุฑู‡ุง ูŠุนู†ูŠ ู„ู„ุงุณุชุฏุนุงุก ุจูŠู†ู…ุง ููŠ ุงู„ู€ .. ููŠ
338
00:28:47,720 --> 00:28:54,920
translation schemes ุฃู†ุง ุจุทู„ุน output ุฃุซู†ุงุก ุนู…ู„ูŠุฉ ุงู„ู€
339
00:28:54,920 --> 00:29:03,440
parsing ู„ุฃู† ุงู„ู€ actions ู…ุฏู…ุฌุฉ ุจุฏุงุฎู„ ุงู„ู€ body ุจุฏุงุฎู„
340
00:29:03,440 --> 00:29:07,240
ุงู„ู€ productions ูˆุงุถุญุฉ ุจุช ู‡ูŠุฃ ู„ูŠ ู‡ุฐูˆู„ ุฃุณู„ูˆุจูŠู† ู…ุฎุชู„ููŠู†
341
00:29:07,240 --> 00:29:15,210
ููŠ ุนู…ู„ูŠุฉ ุงู„ู€ translation ูˆ ูƒู„ุง ู‡ู…ุง .. ูƒู„ุง ู‡ู…ุง ุฅูŠุดุŸ
342
00:29:15,210 --> 00:29:23,150
syntax directed ู„ุฃู†ู‡ ูƒู„ุง ู‡ู…ุง ุฃู†ุง ุฃุฏู…ุฌุช ุนู…ู„ูŠุฉ ุงู„ู€
343
00:29:23,150 --> 00:29:27,290
translation ุฃุซู†ุงุก ุนู…ู„ูŠุฉ ุงู„ู€ parsing ุจุณ ูˆุงุญุฏุฉ ู…ู†
344
00:29:27,290 --> 00:29:30,910
ุฎู„ุงู„ ุงู„ู€ attributes ูˆ ูˆุงุญุฏุฉ ู…ู† ุฎู„ุงู„ ุงู„ู„ูŠ ู‡ูŠ ุงู„ู€ code
345
00:29:30,910 --> 00:29:31,530
fragments
346
00:29:42,720 --> 00:29:47,700
ู‡ุฐุง ุงู„ุฑุณู… ูŠุนุชุจุฑ ุนู† ู…ุง ู‡ูˆ ู…ูุฑูˆุถ ุงู„ู€ code fragments
347
00:29:47,700 --> 00:29:54,200
ุงู„ู„ูŠ ุจุชูŠุฌูŠ ููŠ ูˆุณุท ุงู„ู€ code ู‡ุฐู‡ ุงู„ุฎุทุฉ ุงู„ู…ุชู‚ุทุนุฉ ู…ุนู†ุงุชู‡
348
00:29:54,200 --> 00:29:57,700
ุฃู†ู‡ ู…ุด ุนู…ู„ูŠุฉ passing ู‡ูŠ ุนู…ู„ูŠุฉ action ุจุชุชู†ูุณ ุงู„ู„ูŠ
349
00:29:57,700 --> 00:30:03,240
ู‡ูˆ ุงู„ู€ printing ูˆู‡ู†ุง ู‡ูŠ ุทุจุนุงู‹ ู†ูุณ ุงู„ูƒู„ู…ุฉ ุงู„ู„ูŠ
350
00:30:03,240 --> 00:30:09,700
ุณูˆูŠู†ุงู‡ุง ู…ุนุจุฑูƒ ุฃู†ู‡ ุจุนุฏ ู…ุง ุงู†ุชู‡ู‰ ุงู„ู€ analysis ู‡ุฐุง ุฃุฎุฐุช
351
00:30:09,700 --> 00:30:14,100
ุชุณุนุฉ ูˆุงู†ุชู‡ูŠู†ุง ู…ู† ู‡ุฐุง ุงู„ูƒู„ุงู… ุชู… ุชู†ููŠุฐ ุงู„ุทุจุงุนุฉ ุจุนุฏ
352
00:30:14,100 --> 00:30:20,300
ุชุณุนุฉ ุซู… ุทุจุงุนุฉ ุฎู…ุณุฉ ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู…
353
00:30:20,300 --> 00:30:21,060
ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู†
354
00:30:21,060 --> 00:30:21,980
ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู…
355
00:30:21,980 --> 00:30:22,480
ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู†
356
00:30:22,480 --> 00:30:26,580
ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู…
357
00:30:26,580 --> 00:30:36,360
ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุซู†ูŠู† ุซู… ุงุช
358
00:30:37,090 --> 00:30:39,530
ุงู„ุนู…ู„ูŠุฉ ุงู„ู€ syntax-directed translation ุดูู†ุง ุงู„ู€
359
00:30:39,530 --> 00:30:44,450
post-augmentation ููŠู‡ุง ุงู„ู€ syntax ุงู„ู€ synthesizer
360
00:30:44,450 --> 00:30:47,010
attribute ุจุชุนุฑูู†ุง ุนู„ูŠู‡ุง ุงู„ู€ simple syntax-directed
361
00:30:47,010 --> 00:30:49,750
definition ุจุชุนุฑูู†ุง ุนู„ูŠู‡ุง ุงู„ู€ tree traversal ู‡ูˆ ุงู„ู€
362
00:30:49,750 --> 00:30:53,570
.. ุงู„ .. ุงู„ button ููŠ ุงู„ .. ุงู„ depth first ูˆ ุงู„ู€
363
00:30:53,570 --> 00:30:57,230
translation schemes ุงู„ู„ูŠ ู‡ูŠ ุจูŠูƒูˆู† ููŠู‡ุง ุงู„ู€ code
364
00:30:57,230 --> 00:31:02,970
fragments ู…ุฏู…ุฌุฉ ู…ุน ุงู„ .. ุงู„ .. okay ู…ุน ุงู„ุงุด .. ู…ุน
365
00:31:02,970 --> 00:31:08,200
ุงู„ู€ productions ุฎู„ู‘ูŠ ุจุงู„ูƒ ุฅู† ู‡ู†ุง ุชุจุฏุฃ ู‡ุฐุง ูˆ ู‡ุฐุง
366
00:31:08,200 --> 00:31:12,380
ุจูŠุตูŠุจ ูˆูŠูƒูˆู† ููŠ ุนู†ุฏูŠ table ูŠุญุชูˆูŠ ุนู„ู‰ ุนู…ูˆุฏูŠู† ุนู…ูˆุฏ
367
00:31:12,380 --> 00:31:16,100
ุงู„ู€ productions ูˆ ุนู…ูˆุฏ ุงู„ู€ rules ูˆ ุงู„ู€ rules ุจูŠู†ู…ุง
368
00:31:16,100 --> 00:31:20,660
ู‡ู†ุง ุนู…ูˆุฏ ูˆุงุญุฏ ุจุชูƒูˆู† ุงู„ู€ fragments ุงู„ู€ semantic
369
00:31:20,660 --> 00:31:25,960
actions ุงุณู…ู‡ุง ุฅุฐุง ู„ุงุญุธุชู‡ ููŠ ุงู„ู€ slide ุชูƒูˆู† ู…ุฏู…ุฌุฉ
370
00:31:25,960 --> 00:31:29,220
ุจุฏุงุฎู„
371
00:31:29,220 --> 00:31:33,020
ุงู„ู€ productions
372
00:31:33,020 --> 00:31:39,130
ุตุญุŸ ู…ุฏู…ุฌุฉ ุฅู…ุง ููŠ ู†ุต ุงู„ู€ body ุฃูˆ ุนู„ู‰ ุขุฎุฑู‡ ุฃูˆ ุญุชู‰ ู…ู…ูƒู†
373
00:31:39,130 --> 00:31:43,430
ุชูŠุฌูŠ ููŠ ุจุฏุงูŠุชู‡ ููŠ ุจุนุถ ุงู„ุญุงู„ุงุช ูŠุนู†ูŠ ุฎู„ุตู†ุง ุงุญู†ุง ุงู„ุขู†
374
00:31:43,430 --> 00:31:47,490
ุนู„ู‰ ุจุงุจ ุงู„ู„ูŠ ู‡ูˆ ู…ุดุงุฑู ุงู„ู€ parsing ุงู„ู€ parsing ุงู„ู„ูŠ
375
00:31:47,490 --> 00:31:53,170
ู‡ูŠ ุฅูŠุด ุจุฑุถู‡ ูƒู…ุงู† syntax analysis ููŠู‡ุง ุงู„ู€ top-down
376
00:31:53,170 --> 00:31:56,650
parsing ูˆ ูˆุงุญุฏ ู…ู†ู‡ู…ุง ุงู„ู„ูŠ ู‡ูˆ predictive parsing
377
00:31:56,650 --> 00:32:03,470
ูˆุจุนุฏูŠู† ูƒุฏู‡ ุจูŠุดูˆู ุจูŠูƒู…ู„ designing a predictive
378
00:32:03,470 --> 00:32:09,210
parser ูˆุจุนุฏู‡ุง ู†ู†ุธุฑ ุฅู„ู‰ ุฃุณุฆู„ุฉ ุงู„ู€ recursion ู‡ู†ุงูƒ ู†ูˆุน
379
00:32:09,210 --> 00:32:11,930
ู…ู† ุงู„ู€ recursion ุงุณู…ู‡ left recursion ู‡ุฐุง ููŠ ุงู„ู€
380
00:32:11,930 --> 00:32:16,970
grammar ู…ู…ูƒู† ูŠู…ุฑ ุนู„ูŠูƒู… ู„ู…ุงุฐุงุŸ ููŠ ุงู„ู…ุจุงุฏุฆุŸ ู„ุฃ ุนู…ูˆู…ุงู‹
381
00:32:16,970 --> 00:32:23,210
ุฅุฐุง ุฏู„ุช ู…ุนุงู†ุง ูˆุฌู‡ุฉ ู†ุญู† ู†ุฌูŠู„ู‡ุง ูˆุจุชุดูˆู ุฅูŠุด ุถุฑุฑ ุชุจุนู‡ุง
382
00:32:23,210 --> 00:32:27,090
ูˆูƒูŠู ู…ู…ูƒู† ุฃู† ู†ุนุงู„ุฌู‡ ุจุชุบูŠูŠุฑ ุงู„ู€ grammar ุจุญูŠุซ ุฃู†ู‡ุง
383
00:32:27,090 --> 00:32:33,490
ุชุตุจุญ ู…ุด left recursion ู„ุฃู† ุงุญู†ุง ุจู†ุฑูˆุญ ุนู„ู‰ 2.4 ุงู„ู„ูŠ
384
00:32:33,490 --> 00:32:33,810
ู‡ูˆ
385
00:32:40,050 --> 00:32:50,730
ุงู„ู€ Top-Down Parsing 2.4 ูˆ 2.4.1 ู‡ู„
386
00:32:50,730 --> 00:33:04,930
ูŠูˆุฌุฏ ุฃุญุฏ ุนู†ุฏู‡ ุณุคุงู„ ููŠ ุงู„ูุงุชุฑุŸ ู†ุชูู‚ู†
387
00:33:04,930 --> 00:33:12,300
ุนู„ู‰ ุฃู† ุงู„ู€ Parsing ู‡ูˆ ุงู„ู€ process of How the input
388
00:33:12,300 --> 00:33:16,980
string can be generated by a grammarุŸ ุงู„ู€ grammar
389
00:33:16,980 --> 00:33:20,540
ุดูˆ ู‡ูŠุŸ ุงู„ู…ุฌู…ูˆุนุงุช ุงู„ู„ูŠ ุฅูŠุดุŸ ู‡ูŠ ุงู„ู€ definition ุงู„ู„ูŠ
390
00:33:20,540 --> 00:33:23,360
ูŠุชูƒูˆู† ู…ู† ู…ุฌู…ูˆุนุงุช ุงู„ู€ productions ูƒูŠู ุฃู†ุง ุจุฃุณุชุฎุฏู… ู‡ุฐู‡
391
00:33:23,360 --> 00:33:27,240
ุงู„ู€ definitions to generate ุงู„ู€ inputุŸ ูƒูŠู ุฃู†ุง ู‡ูˆ
392
00:33:27,240 --> 00:33:31,120
ุฃู†ุง ุฃุตู„ุงู‹ ู…ู‡ู…ุชูŠ ุฃู†ุง ุฃุทู„ุน ุงู„ู€ inputุŸ ู„ุฃ ุงู„ู€ input
393
00:33:31,120 --> 00:33:35,340
ู‡ูŠุฏุฎู„ูŠ ุจุณ ุฅุฐุง ุฃู†ุง ุงู„ู„ูŠ ุฏุฎู„ูŠู‡ุง ู„ุฃ I could generate
394
00:33:35,340 --> 00:33:41,750
it ุฅุฐุง ุฃู†ุง ู‚ุฏุฑุช ุฅู† ุฃุนู…ู„ ู…ุทุงุจู‚ ู„ู‡ ู…ุน ุฅู† ุฏุงู„ูƒ ู‡ุฐุง
395
00:33:41,750 --> 00:33:47,230
ุงู„ู„ูŠ ุฏุฎู„ ุณู„ูŠู… ู‚ูˆุงุนุฏูŠุงู‹ Gramatically ูŠุนู†ูŠ ููŠ ุงู„ู€
396
00:33:47,230 --> 00:33:51,970
parsing ู‡ูˆ ูˆุธูŠูุชู‡ ุงู„ุชุฃูƒุฏ ู…ู† ุณู„ุงู…ุฉ ุตุญุฉ ุงู„ู€ input
397
00:33:51,970 --> 00:33:54,570
ุนุดุงู† ูŠุชุฃูƒุฏ ู…ู† ุตุญุชู‡ ูˆูŠุดูˆู ู‡ู„ ุฃุณุชุทูŠุน ุฅู†ู‡ ุฃ
398
00:33:54,570 --> 00:34:00,070
regenerate it ุจู†ุงุก ุนู„ู‰ rules ุจู†ุงุก ุนู„ู‰ productions
399
00:34:00,070 --> 00:34:04,090
ุจุฃุจุฏุฃ ู…ู† ุงู„ุงุด ู…ู† ุงู„ู€ star symbol ูˆ ู…ู† ุฎู„ุงู„ ุนู…ู„ูŠุฉ
400
00:34:04,090 --> 00:34:11,140
ุงู„ุงุณุชุจุฏุงู„ ุจุดูˆู ู‡ู„ ูŠู…ูƒู† ุงู„ูˆุตูˆู„ ุฅู„ู‰ form ู…ุทุงุจู‚ ู„ู„ู€ form
401
00:34:11,140 --> 00:34:17,940
ุชุจุนูŠู† okay ู how a string of terminals ุงู„ู€ input ู‡ูˆ
402
00:34:17,940 --> 00:34:21,460
ุนุจุงุฑุฉ ุนู† string of terminals ู„ูˆ ุชุณุนุฉ ู†ู‚ุต ุฎู…ุณุฉ ุฒูŠ
403
00:34:21,460 --> 00:34:24,620
ุงุซู†ูŠู† ู‡ุฏูˆู„ symbols ู‡ูŠ ุนุจุงุฑุฉ ุนู† terminals ู„ูˆ if
404
00:34:24,620 --> 00:34:28,600
statement if goes expression ูƒุฏู‡ ูŠูˆุฌู‡ ู…ุด ุญุงุฌุฉ ุฅู†
405
00:34:28,600 --> 00:34:32,420
ู…ุบุงุฑุฉ ู…ุด ูƒุงุชุจ ู„ูŠ ูƒู„ู…ุฉ expression ุตุญ ู‡ูŠู…ูƒู† ุชุญุท ู„ูŠ
406
00:34:32,420 --> 00:34:34,400
expression ูุนู„ูŠู‘
407
00:34:37,690 --> 00:34:41,310
ู‡ุฐุง ูˆู‡ุฐุง ุงู„ู€ expression ุงู„ูุนู„ ู‡ูˆ ุนุจุงุฑุฉ ุนู† symbols ูˆ
408
00:34:41,310 --> 00:34:45,090
ุงู„ู€ symbols ู‡ุฐู‡ terminals ูู‡ูˆ ุงู„ู‡ุฏู ููŠ ุงู„ู€ parsing
409
00:34:45,090 --> 00:34:48,190
is the process of determining how a string of
410
00:34:48,190 --> 00:34:51,390
terminals can be generated by a grammar ุฃูˆ
411
00:34:51,390 --> 00:34:55,170
regenerated by a grammar ุทูŠุจ ุงู„ุขู† ุงุญู†ุง ู‡ูŠ ู…ุซู„ุงู‹
412
00:34:55,170 --> 00:34:58,690
ู…ุซุงู„ ุจุณูŠุทุฉ ุนู†ุฏู†ุง ุงู„ู„ูŠ ู‡ูˆ ูˆู‡ุฐุง ุงู„ู„ูŠ ูƒุงู† ุงุณู…ุน ู…ุด
413
00:34:58,690 --> 00:35:02,770
ุฌุฏูŠุฏ ุนู„ูŠู†ุง ู‡ุฐุง definition a grammar for some
414
00:35:02,770 --> 00:35:06,050
statements in C and Java a statement is an
415
00:35:06,050 --> 00:35:13,640
expression ุฃูˆ if ุฃูˆ for ุฃูˆ some other ุดูƒู„ ุขุฎุฑ ู…ู†
416
00:35:13,640 --> 00:35:19,880
ุฃุดูƒุงู„ ุงู„ู€ statements ูˆุนู†ุฏูŠ ู‡ู†ุง ุงู„ู€ for ู…ุซู„ุงู‹ ุงู„ุงุณู… ุงู„ู€
417
00:35:19,880 --> 00:35:23,560
if ุชุญุชูˆูŠ ุนู„ู‰ ุฃู‚ุตู‰ ูˆ expression ูˆ statement ุฅุฐุง
418
00:35:23,560 --> 00:35:26,640
ุงุชุญู‚ู‚ ู‡ุฐุง ุงู„ู€ expression ุชุชู†ูุฐ ู‡ุฐุง ุงู„ู€ statement
419
00:35:26,640 --> 00:35:31,280
ุทุจุนุงู‹ ุงู„ู€ for ุงู„ู€ if ู„ู‡ุง ุดูƒู„ ุขุฎุฑ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ else ุงู„ู€
420
00:35:31,280 --> 00:35:37,020
if else ุจุณ ู‡ู†ุง ุงุญู†ุง ู‡ุฐุง ุชุจุณูŠุท ู…ุด ุฏุงุฎู„ุงู„ู€ four
421
00:35:37,020 --> 00:35:40,520
ุนุจุงุฑุฉ ุนู† ุจูุณ ููŠู‡ ู‡ุฏูŠ ุงู„ initialization ููŠู‡ ู‡ุฏูŠ ุงู„
422
00:35:40,520 --> 00:35:44,080
condition ูˆููŠู‡ ู‡ุฏูŠ ุงู„ action ุงู„ู„ูŠ ุจูŠุชู†ูุฐ ููŠ ูƒู„ ุฏูˆุฑุฉ
423
00:35:44,080 --> 00:35:48,660
ุฏูˆุฑุชู‡ ูˆููŠู‡ ู‡ุฏูŠ ุงู„ู„ูŠ ู‡ูˆ ุงู„ statement ุฃูŠุถุง ุงู„ู„ูŠ
424
00:35:48,660 --> 00:35:51,540
ุจุชู†ูุฐ ู‡ุฐุง ุงู„ู„ูŠ ุจูŠูƒูˆู† implementation ุงูˆ decrement
425
00:35:51,540 --> 00:35:54,580
ูˆู‡ุฏูˆู„
426
00:35:54,580 --> 00:35:58,040
ุงู„ expressions ุงู„ู„ูŠ ู‡ู†ุง ุจุณู…ูŠู‡ู… ุฃูˆ ุฃุนุงู…ู„ู‡ู… non
427
00:35:58,040 --> 00:36:01,180
-terminal ุงุณู…ู‡ optional expression optional
428
00:36:01,180 --> 00:36:02,980
expression optional expression optional expression
429
00:36:03,540 --> 00:36:10,520
ุงู„ุฃุนุถุงุก ู‡ุฐู‡ ุญุงุทุทู‡ุง ุจุณ ูŠุนู†ูŠ ุนุดุงู† ูƒู†ุงูŠุฉ ุนู† ูƒู„ ุงู„
430
00:36:10,520 --> 00:36:13,720
other forms of the statement ู„ุฃู† ู‡ุฐุง ุงู„ optional
431
00:36:13,720 --> 00:36:16,820
expression ู…ู…ูƒู† ูŠุจู‚ู‰ ุฅุจุณูŠู„ูˆู† ุฅุจุณูŠู„ูˆู† ูŠุนู†ูŠ ุฅูŠุด ูˆู„ุง ุฅูŠุด
432
00:36:16,820 --> 00:36:22,300
ูˆู„ุง ุดูŠุก ุจุงู„ุธุจุท ุฃูˆ ูŠุจู‚ู‰ expression ูู‡ูŠ ู‡ุฐู‡ ุงู„ูˆุณูŠู„ุฉ
433
00:36:22,300 --> 00:36:26,780
ุงู„ุชุงุจุนุฉ ู„ู†ุง ูŠุนู†ูŠ ุฑุงุญู†ุง ุจู†ุญุท ุงู„ุฅุจุณูŠู„ูˆู† ุจู†ุญุทู‡ ูƒูˆุณูŠู„ุฉ
434
00:36:26,780 --> 00:36:32,890
ู„ู„ูƒู†ุงูŠุฉ ุนู† ุฃูˆ ู„ู„ุชุฎุตูŠุต ุฃู†ู‡ ู‡ุฐุง ุงู„ุดูŠุก optional
435
00:36:32,890 --> 00:36:36,410
ุงู„ู…ูุงุถู„ุฉ ูŠุง ุฅู…ุง ูƒุฏู‡ ูŠุจู‚ู‰ ู‡ุฐุง ุงู„ุดูŠุก ูŠูƒูˆู† ุฃูˆ ู‡ุฐุง
436
00:36:36,410 --> 00:36:40,910
ุงู„ู…ู†ุชุฌ ูŠูƒูˆู† optional ุงู„ุขู† ุฃู†ุง ุจูƒูˆู† ููŠู‡ expression
437
00:36:40,910 --> 00:36:46,490
input ุฏุงุฎู„ุฉ ุฒูŠ ูƒุฏู‡ ุทุจุนุง ุฃู†ุง ู‚ู„ุช ู…ุฑุฉ ุฃุฎุฑู‰ ุจู‚ูˆู„ ู…ุฑุฉ
438
00:36:46,490 --> 00:36:49,870
ุฃุฎุฑู‰ ุฃู† ุงู„ programmer ู…ุด ู‡ูŠูƒุชุจ ูƒู„ู…ุฉ expression
439
00:36:49,870 --> 00:36:54,150
expr ู‡ูŠุจู‚ู‰ ุญุงุถุฑุฉ ุงู„ expression ุจุณ ุงุญู†ุง ุชุฌุงูˆุฒุง ุนุดุงู†
440
00:36:54,150 --> 00:36:57,990
ู†ูˆุถุญ ุงู„ููƒุฑุฉ ููƒุฑุฉ ุงู„ top-down parsing ุจุฃู†ู†ุง ู†ุนุชุจุฑ
441
00:36:57,990 --> 00:37:01,990
ุฃู† ุงู„ุฃุญุฑู ู‡ุฐู‡ ูุนู„ุง ู‡ูŠ ุงู„ู„ูŠ ุฏุงุฎู„ุฉ ููŠ ุงู„ input EXPR
442
00:37:01,990 --> 00:37:08,150
EXPR ูˆูƒู„ู…ุฉ other ูˆุฅูŠู‡ ุงู„ู„ูŠ ู„ุงุฒู… ุฃุถุนู‡ุŸ ุฃูŠ ุญุงุฌุฉ ุฒูŠ
443
00:37:08,150 --> 00:37:12,850
ุฐู„ูƒ ู‡ูŠูุดู„ ุนู…ู„ูŠุฉ ุงู„ parsing ู„ุฃู† ุงู„ grammar ู„ู‡ุง ุชุฏุนู…
444
00:37:12,850 --> 00:37:21,310
ุณูˆุงุก ู‡ู„ุฃ ูƒุฏู‡ ุงู„ parser
445
00:37:21,310 --> 00:37:27,470
should be able to build a parse tree parse tree
446
00:37:28,340 --> 00:37:32,660
ุงู„ุชูŠ ุชุชูƒูˆู† ู…ู† ู†ูˆุฏ ูˆ ุฃุทูุงู„ ุจุฏุงูŠุฉ ู…ู† ุงู„ู€ star
447
00:37:32,660 --> 00:37:39,100
symbol ุฅู„ู‰ ุงู„ .. ูุงู„
448
00:37:39,100 --> 00:37:46,120
process ู‡ุฐู‡ ุชุจุนุฏ building ุงู„ tree ุชุจุฏุฃ
449
00:37:46,120 --> 00:37:50,620
ุฃู† ุงู„ node in ู†ุนู…ู„
450
00:37:50,620 --> 00:38:01,990
node ู†ุฑู…ุฒ ุฅู„ูŠู‡ุง ูˆู†ุนุทูŠู‡ุง label ุงู„ label ุชุจุนู‡ุง
451
00:38:01,990 --> 00:38:08,050
ุจูŠูƒูˆู† ุงุณู… ุงู„ non terminal ุงู„ู„ูŠ ูˆุงู‚ููŠู† ุนู„ูŠู‡ ูˆุงู‚ููŠู†
452
00:38:08,050 --> 00:38:13,530
ุนู„ูŠู‡ ููŠ ุงู„ input ูˆุงู„ู„ูŠ ูˆุงู‚ููŠู† ุนู„ูŠู‡ ููŠ ุงู„ rule ู‡ูˆ
453
00:38:13,530 --> 00:38:17,630
ุงู„ input ู…ุด ู‡ูŠุฌูŠู†ูŠ ุจุฏุงุฎู„ู‡ ุงุณู… ุงู„ non terminal ู…ุด
454
00:38:17,630 --> 00:38:24,400
ู‡ุชูŠุฌูŠ ูƒู„ู…ุฉ statement ูˆู„ุง ูƒุฏู‡ ุฃู†ุง ุนู†ุฏูŠ ุงู„ input ู…ู†
455
00:38:24,400 --> 00:38:28,100
ู†ุงุญูŠุฉ ูˆุนู†ุฏูŠ ุงู„ rules ู…ู† ู†ุงุญูŠุฉ ุฃูˆู„ ู…ุง ุฃุจุฏุฃ ุจุจุฏุฃ ุจู…ูŠู†
456
00:38:28,100 --> 00:38:34,580
ุจุงู„ start symbol ูุฃู†ุง ุงู„ุขู† ุงู„ start symbol ุฃู†ุง
457
00:38:34,580 --> 00:38:39,580
ูˆุงู‚ู ุนู„ูŠู‡ ูู‡ูˆ ุงู„ current node ุงู„ุชุงุจุนุฉ ู„ูŠ ูู„ุงุฒู… ุฃุนู…ู„ ู„ู‡
458
00:38:39,580 --> 00:38:43,840
node ู„ุงุฒู… ุฃุนู…ู„ ู„ู‡ ุงู„ statement ู„ุงุฒู… ุฃุนู…ู„ ู„ู‡ node ูู‡ูŠ
459
00:38:43,840 --> 00:38:47,600
ุงู†ุนู…ู„ุช node ุงู„
460
00:38:47,600 --> 00:38:52,250
node in labelled with non terminal aู†ู†ุชุฑู†ุงู„ A ุงู„ุขู†
461
00:38:52,250 --> 00:38:56,870
ููŠ ุงู„ุจุฏุงูŠุฉ ู‡ูˆ ุงู„ start symbol STMT ุชู…ุงู… ูŠุนู†ูŠ
462
00:38:56,870 --> 00:39:00,570
select one of the productions ุงู„ุชุงุจุนุฉ ู„ู‡ุฐุง ุงู„ู†ุชุฑู†ุงู„
463
00:39:00,570 --> 00:39:12,970
ุฅูŠู‡ ุงู„ production ุงู„ุขู† ู‡ู†ุง ุฃุฑุจุนุฉ ู…ุด ุซู„ุงุซุฉ ู‡ู…
464
00:39:12,970 --> 00:39:19,010
ุฃุฑุจุนุฉ ุตุญ ุงู„ุณู†ุฉ ุจุชู†ุชู‡ูŠ ุตุญ ุตุญ ู‡ู… ุฃุฑุจุนุฉ ู‡ูŠ ูˆุงุญุฏุฉ ู‡ูŠ ุงุซู†ุชูŠู†
465
00:39:19,010 --> 00:39:24,270
ู‡ูŠ ุซู„ุงุซุฉ ู‡ูŠ ุฃุฑุจุนุฉ Okay Select one ูƒู„ู…ุฉ select one
466
00:39:24,270 --> 00:39:30,790
ู‡ุฐุง ุญุท ุชุญุชู‡ุง ุนุดุฑูŠู† ุฃู„ู ุฎุท Okay ู„ุฃู†ู‡ุง ู‡ุฐู‡ ู‚ุถูŠุฉ
467
00:39:30,790 --> 00:39:37,070
ู…ุญูˆุฑูŠุฉ ู…ูุฑู‚ูุฉ ู„ุฃู†ู‡ุง ุจุชุฃุซุฑ ุนู„ู‰ ุฃุฏุงุก ุงู„ parser ุฅุฐุง
468
00:39:37,070 --> 00:39:44,430
ุงุฎุชุงุฑุช ูˆุงุญุฏุฉ ูˆู…ุดูŠุช ููŠ ุงู„ุชุญู„ูŠู„ ูˆุทู„ุนุช ู…ุด ุดูŠุก ุตุญูŠุญุฉ ุจุฏูŠ
469
00:39:44,430 --> 00:39:48,070
ุฃุฑุฏ ูˆุฃุฑุฌุน ุฃุฎุชุงุฑ ุงู„ู„ูŠ ุจุนุฏู‡ุง ุนู…ู„ุช ุงู„ุงุฎุชูŠุงุฑ ู‡ุฐุง ุฎุทุฃ
470
00:39:48,070 --> 00:39:53,490
ุฃูˆ ุงู„ุตุญ ุจุชุงุฎุฏ budget ุงู„ู…ูุฑูˆุถ ูŠูƒูˆู† ููŠู‡ ุดูŠุก ูŠู‚ูˆู„ ู„ู‡
471
00:39:53,490 --> 00:39:57,330
ุฃุฑูˆุญ ุนู„ู‰ ู‡ุฐุง ุงู„ production ุนู„ู‰ ุทูˆู„ ุจุฏูˆู† ู…ุง ูŠุฌุฑุจูˆุง
472
00:39:57,330 --> 00:40:00,890
ูŠุฎุชุงุฑูˆุง ุงู„ู…ู‡ู… select one of the productions for A
473
00:40:00,890 --> 00:40:06,790
ุงู„ู„ูŠ ู‡ูˆ ุฅูŠู‡ ุงู„ู„ูŠ ู‡ูˆ ุงู„ symbol ุงู„ุญุงู„ูŠ and construct
474
00:40:06,790 --> 00:40:11,390
children ุนู†ุฏ ุงู„ node ุงู„ู„ูŠ ุฃู†ุช ุนู…ู„ุชู‡ุง ู„ุง ุงู„ node
475
00:40:11,390 --> 00:40:14,870
ุงู„ู„ูŠ ุฃู†ุช ุนู…ู„ุชู‡ุง ุฏูŠ construct children for the
476
00:40:14,870 --> 00:40:19,750
symbols ุงู„ู„ูŠ ููŠ ุงู„ production body ุงุฎุชูู†ุง ู‡ุฐู‡
477
00:40:19,750 --> 00:40:24,670
ุงู„ู‚ูˆูŠุฉ ู…ุนู†ุงู‡ ุฐู„ูƒ ุฅูŠุดุŸ ู…ุฏู‰ ุฅูŠุด ุฃูˆู„ statementุŸ ุงู„ู„ูŠ
478
00:40:24,670 --> 00:40:28,310
ู‡ูŠ ุงู„ carrot node ูˆุฃุนู…ู„ ูƒู… node ูƒู… childุŸ ุงุซู†ูŠู†
479
00:40:28,310 --> 00:40:32,230
ุฃูˆ ุซู„ุงุซุฉุŸ
480
00:40:32,230 --> 00:40:40,630
ุงุซู†ูŠู† ูˆุงุญุฏุฉ ู„ุฃ ู‡ุฐุง ุงู„ symbol ูˆู‡ุฐุง ู„ุง ูŠูˆุฌุฏ ู‡ู†ุง ุงู„
481
00:40:40,630 --> 00:40:42,750
production ู‡ุฐุง ูƒู… symbol ููŠู‡ุงุŸ ูˆุงุญุฏ ุงุซู†ูŠู† ุซู„ุงุซุฉ
482
00:40:42,750 --> 00:40:48,190
ุฃุฑุจุนุฉ ุฎู…ุณุฉ ูˆุงุญุฏ ุงุซู†ูŠู† ุซู„ุงุซุฉ ุฃุฑุจุนุฉ ุฎู…ุณุฉ .. ุณุชุฉ ..
483
00:40:48,190 --> 00:40:51,470
ุณุจุนุฉ .. ุซู…ุงู†ูŠุฉ .. ุชุณุนุฉ .. ุตุญุŸ ู‡ุฏูˆู„ ุงู„ symbols ุจุนุถ
484
00:40:51,470 --> 00:40:55,410
ู…ู†ู‡ู… terminals ูˆุจุนุถ ู…ู†ู‡ู… non-terminals ุจุณ ูƒู„ ูˆุงุญุฏ
485
00:40:55,410 --> 00:40:59,170
ู…ู†ู‡ู… ุงู„ symbols ุงู„ู„ูŠ ู‚ู„ู†ุงู‡ ุนู…ุงู„ูŠู† ูŠุดูƒู„ูˆุง child ุนู…ู„ู†ุง
486
00:40:59,170 --> 00:41:04,250
ุงู„ุขู† ุฎู„ุตู†ุง ุงู„ุขู† find the next node at which a sub
487
00:41:04,250 --> 00:41:08,290
-tree is to be constructed ู…ูŠู† ุงู„ุขู†ุŸ ู‡ูŠ ุนู…ู„ู†ุง sub
488
00:41:08,290 --> 00:41:11,730
-tree .. ุนู…ู„ู†ุง ุงู„ node ู‡ุฐู‡ sub-tree ุงู„ู„ูŠ ู‡ูŠ ุงู„ ..
489
00:41:11,730 --> 00:41:15,800
ุงู„ children ุงู„ุฏูˆู„ ุจูŠุฌูŠ ุนู„ู‰ ู…ูŠู†ุŸ ู†ุจุฏุฃ ู…ู† ุงู„ูŠู…ูŠู† ู‡ุฐู‡
490
00:41:15,800 --> 00:41:19,840
ุงู„ุขู† ุจุฏู†ุง ู†ุนู…ู„ู‡ุง sub tree ูุจู†ุฑูˆุญ ู‡ุฐุง ุงู„ non
491
00:41:19,840 --> 00:41:25,780
terminal ุฅุฐุง ูˆุงู„ู„ู‡ ูƒุงู† ุฒูŠ ุงู„ F ุฒูŠ ู‡ุฐู‡ ูƒุงู† ุนุจุงุฑุฉ ุนู†
492
00:41:25,780 --> 00:41:29,900
terminal ู…ุง ู„ู‡ sub tree ุจุฑูˆุญ ุนู„ู‰ ุงู„ู„ูŠ ุจุนุฏู‡ ุงู„ุขู†
493
00:41:29,900 --> 00:41:35,660
ุตุญุŸ ูŠุนู†ูŠ ู†ูุชุฑุถ ุฃู† ู‡ุฐู‡ ูƒุงู†ุช F ูˆูƒุงู†ุช ู‡ุฐู‡ course
494
00:41:35,660 --> 00:41:39,860
ูˆูƒุงู†ุช ู‡ุฐู‡ expression ูˆ .. ู„ุฃู† ู‡ุฐุง ุฏู‡ ู‚ุงู„ ุงู„ุฏูˆุฑ ุงู„
495
00:41:39,860 --> 00:41:43,650
Fุจุทู„ุน ู„ู‡ุง sub-treeุŸ ู…ุง ุชุทู„ุนุด ู„ุฃู†ู‡ุง terminal ู„ูŠุด
496
00:41:43,650 --> 00:41:48,170
ุงุณู…ู‡ุง .. ุณู…ูŠู†ุงู‡ุง terminalุŸ ู„ุฃู† ู…ุง ููŠ ุจุชูุฑุน ู…ู†ู‡ุง ุฃูŠ
497
00:41:48,170 --> 00:41:53,170
ุดูŠุก ู‡ุฐุง ุงุญู†ุง ุงู„ุขู† ูˆุงุฎุฏูŠู† ุงู„ู„ูŠ ู‡ูŠ ุงู„ production
498
00:41:53,170 --> 00:41:59,790
ุงู„ุฃูˆู„ู‰ expression ูˆุงู„ุขู† ุจุฏูŠ ุฃุฌูŠุจ ู‡ู†ุง ุงู„ end ุงู„ุชุงุจุนุฉ ู„ูŠ
499
00:41:59,790 --> 00:42:03,930
ุงู„ุขู† ุจูŠุตูŠุฑ ู‡ุฐู‡ ู‡ูŠ ุงู„ pointer ุงุณู…ู‡ M ุจูŠุตูŠุฑ ุฃุดุฑู‡
500
00:42:03,930 --> 00:42:07,780
ู‡ุฐู‡ ู‡ุฐุง ุงู„ุขู† ุจุฏูŠ ุฃุนู…ู„ ู„ู‡ุง sub-tree ุจุงู„ุฏุฑุฌุฉ ุจู†ูุณ
501
00:42:07,780 --> 00:42:11,280
ุงู„ู‚ู„ูŠู„ ุฃุดูˆู ุฅูŠุด ุงู„ production ุงู„ุชุงุจุนุฉ ู„ู‡ุง ุฏุง non
502
00:42:11,280 --> 00:42:17,660
terminal ูˆุฃุฎุชุงุฑ ูˆุงุญุฏุฉ ู…ู†ู‡ู… ูˆุฃุนู…ู„ nodes children
503
00:42:17,660 --> 00:42:23,320
ุจุงุณุชุฎุฏุงู…ู‡ุง ู…ู‚ุงุจู„ ุงู„ symbols ุงู„ุชุงุจุนุฉ ู„ู‡ุง ุงู„ production ุฃูŠ
504
00:42:23,320 --> 00:42:28,340
expression ูˆุฃู† expression ูุดูŠุก ุตุญ ู„ูˆ ููŠู‡ ุจูŠุจู‚ูˆุง
505
00:42:28,340 --> 00:42:35,420
ุนุงู…ู„ูŠู† ู†ูุณ ุงู„ุดูŠุก ุงู„ุขู† ุงุญู†ุง ู‡ู†ูŠุฌูŠ ู†ุนู…ู„ build ุงู„ุขู†
506
00:42:35,420 --> 00:42:36,000
ุฅุฐุง ูƒุงู†
507
00:42:39,490 --> 00:42:43,150
find the next which subtree is to be constructed
508
00:42:43,150 --> 00:42:47,630
typically the leftmost unexplained none terminal
509
00:42:47,630 --> 00:42:50,450
of the tree ู‡ุฐุง ุงู„ูƒู„ุงู… ุงู„ุญูƒูŠู… ุงู„ู„ูŠ ู‡ูˆ ุฃู† ู†ุงุฎุฏ
510
00:42:50,450 --> 00:42:56,610
ุงู„ุดู…ุงู„ ุงู„ุขู† ู‡ุฐุง ุงู„ูƒู„ุงู… expression ู„ูˆ ููŠู‡ ุจู† ุฅูŠุดุŸ
511
00:42:56,610 --> 00:43:01,530
ุจู† ู…ุตุฏุฑ ุงู„ุขู† ุฃู†ุง ู„ุงุฒู… ุฃุฌูŠุจ ุฃู†ุช ุจุนุฏูŠู† ุฃุฌูŠ ุฃู„ุงู‚ูŠ
512
00:43:01,530 --> 00:43:07,210
terminal Fุฅุฐุง ุฃู†ุง ุฌูŠุช ููŠ Terminal F ูˆู„ุง 4 ูˆู„ุง
513
00:43:07,210 --> 00:43:11,430
ูƒุฐุง ุจุฏูŠ ุฃุดูˆู ู‡ู„ ุงู„ Terminal ู‡ูŠ ุฏู‡ ูŠุทุงุจู‚ ุงู„
514
00:43:11,430 --> 00:43:16,250
Terminal ุงู„ู„ูŠ ุฃู†ุง ุนุงุฑู ุนู„ูŠู‡ ุญุงู„ูŠุง ููŠ ุงู„ input ุฅุฐุง
515
00:43:16,250 --> 00:43:20,190
ููŠู‡ ู…ุทุงุจู‚ุฉ ูŠุนู†ูŠ ุฃู†ุง ู„ุบุงูŠุฉ ู…ุง ููŠุด ู…ุฌุงู„ ู„ุฃูƒู…ู„ ูู„ุฃ
516
00:43:20,190 --> 00:43:23,950
ุณุงู„ุจ ูŠู‚ูˆู„ dead end ุฅุฐุง ู‡ุฐุง ุงู„ dead end ุฃูˆ leaf
517
00:43:23,950 --> 00:43:26,670
note ุฅุฐุง ู‡ุฐุง ุงู„ leaf note ูŠุทุงุจู‚ ุงู„ input ุงู„ู„ูŠ
518
00:43:26,670 --> 00:43:30,950
ู…ุนุงูŠุง ูŠู…ูƒู† ุฃู† ุฃู‚ุฏู… ุฎุทูˆุฉ ุฃุฎุฑู‰ ููŠ ุนู…ู„ูŠุฉ ุงู„ matching
519
00:43:30,950 --> 00:43:36,720
Matching ุตุญุŸ ูˆุฅูŠู‡ ู…ุนู†ุงู‡ ุฃู†ุง ูˆุตู„ุช ุฅู„ู‰ error error
520
00:43:36,720 --> 00:43:41,000
ุขู‡ error ู…ุนู†ุงู‡ ุฏู‡ ุงู„ู„ูŠ ุฌูŠุด ุจุฏูŠ ุฃุนู…ู„ backtracking ูˆ
521
00:43:41,000 --> 00:43:47,020
ุฃุชุฑุงุฌุน ุจุฏูŠ ุฃุจุฏู„ ุงู„ production ุฃุฎุฑู‰ ู…ุด ุจุงู„ุถุฑูˆุฑุฉ
522
00:43:47,020 --> 00:43:51,320
ู…ุถุฑูˆุจุฉ ู…ู…ูƒู† ู…ู† ู‡ู†ุง ุงู„ู…ุดูƒู„ุฉ ูƒุงู†ุช ูŠุนู†ูŠ ู‡ุฐุง ุงู„
523
00:43:51,320 --> 00:43:54,840
expression ุงู„ู…ู‡ู… ุฃู†ุง ุงุฎุชุฑุช ุงู„ production ุงู„ุจุฏุงูŠุฉ
524
00:43:54,840 --> 00:43:58,540
ุงู„ุชุงุจุนุฉ ู„ู‡ุง ู„ู… ุชุทุงุจู‚ ูู…ุฏูŠ ุฃุฌูŠุจ ุงู„ production ุฃุฎุฑู‰ ูˆ
525
00:43:58,540 --> 00:44:04,130
ุฃุฌุฑุจ ู„ูˆ ุฌูŠุช ูƒู„ ุงู„ production ุงู„ุชุงุจุนุฉ ู‡ุฐุง ูุดู„ุช ุฅุฐุง ู‡ูˆ
526
00:44:04,130 --> 00:44:08,770
ูุดู„ ุฅุฐุง ุงู„ production ุงู„ู„ูŠ ู‡ูˆ ุฃุฌุง ู…ู†ู‡ุง ุจุฏูŠ ุฃุจุฏู„ู‡ุง
527
00:44:08,770 --> 00:44:13,950
ูˆุฃุฌูŠุจ production ุฃุฎุฑู‰ ูููŠ ุงู„ู†ู‡ุงูŠุฉ ุญุตู„ ุฅู„ู‰ ุจุนุถูƒ ุฃู†
528
00:44:13,950 --> 00:44:20,590
ูˆุงู„ู„ู‡ statement ู‡ุฐู‡ ุจุนุฏ
529
00:44:20,590 --> 00:44:24,790
ู…ุง ุญุงูˆู„ุช ู‡ุฐู‡ ูˆูุดู„ุช ูˆุญุงูˆู„ุช ู‡ุฐู‡ ูˆูุดู„ุช ู‡ู‚ุนุฏุด ุนู„ู‰
530
00:44:24,790 --> 00:44:29,030
ู‡ุฐู‡ ู‡ูŠู‚ูˆู„ ู„ูŠ ุฃู† ู‡ูŠ top ู…ู…ูƒู† ุฃุฑุณู…ู‡ุง ู…ู† ุฌุฏูŠุฏ ู‡ูŠ four
531
00:44:29,030 --> 00:44:36,220
ูˆุจุต ูˆexpression ูˆู‡ุฐุง ุฐู„ูƒ ู…ุทุงุจู‚ุฉ if that I can
532
00:44:36,220 --> 00:44:42,560
move ููŠ ุงู„ matching ูˆู‡ุฐู‡ ู…ุทุงุจู‚ุฉ ูŠุง ุญู„ูˆ ุทูŠุจ ู‡ุฐู‡ ุงู„
533
00:44:42,560 --> 00:44:49,260
semi colon ุฃู†ุง ุดุงูŠู ู‡ู†ุง ุงู„ semi colon ุตุญูŠุญ ู„ูƒู†
534
00:44:49,260 --> 00:44:52,360
ุนู†ุฏูŠ ููŠ ุงู„ parsing ู„ุณู‡ ู…ุด ุดุงูŠู ุงู„ semi colon ุฃู†ุง
535
00:44:52,360 --> 00:45:01,160
ุดุงูŠู ู‡ุฐุง ู‡ู„ ู‡ุฐุง .. ู‡ู„ ู‡ุฐุง ูŠุทุงุจู‚ ุงู„ .. ุงู„ .. ูŠุนู†ูŠ
536
00:45:01,160 --> 00:45:07,410
ู…ู…ูƒู† ุฃุชุฌุงูˆุฒู‡ ุฅุฐุง ู‡ุฐุง ูƒุงู† terminal ู„ู‡ production
537
00:45:07,410 --> 00:45:12,930
ุฅุจุณูŠู„ูˆู† ู…ุนู†ุงู‡ ุฏู‡ ุฃู†ุง ู…ู‚ุฏุฑ ุฃุชุฌุงูˆุฒู‡ ูˆู‡ูˆ ูุนู„ุง ู„ู‡ ุฅุจุณูŠู„ูˆู†
538
00:45:12,930 --> 00:45:17,430
ูŠุนู†ูŠ ุฃู†ุง ู‡ู†ุง ูŠุง ุฅู…ุง ุจู‚ุงุจู„ ู‡ุฐุง ู…ุน ุงู„ู„ูŠ ุฃู†ุง ู…ุง ุฃุนุฑู
539
00:45:17,430 --> 00:45:22,250
ุนู„ูŠู‡ ูŠุง ุฅู…ุง ุจู„ุงู‚ูŠ ู„ู‡ ุฅุจุณูŠู„ูˆู† ุจู…ุนู†ุงู‡ ุฃู†ู‡ ุฃุชุฌุงูˆุฒู‡ ูˆู‡ูˆ
540
00:45:22,250 --> 00:45:25,450
ูุนู„ุง ู„ู‡ ุงู„ epsilon production ูู‡ูˆ ูุนู„ุง ุฃุชุฌุงูˆุฒู‡
541
00:45:25,450 --> 00:45:28,590
ุจูŠุตูŠุฑ ุฃู†ุง ูˆุงู‚ู ู‡ู†ุง ุนู„ู‰ ุงู„ุณูŠู… ูƒูˆุฑู† ุงู„ุณูŠู… ูƒูˆุฑู† ุนู„ู‰
542
00:45:28,590 --> 00:45:31,290
ุงู„ุณูŠู… ูƒูˆุฑู† ูŠุจู‚ู‰ ุจุฌุฏู‘ู… ูˆุฃุญุธ ุฅุฐุง ู…ุง ููŠู‡ matching ุฅูŠุด
543
00:45:31,290 --> 00:45:36,390
ุจุณูˆูŠ ุจุฌุฏู‘ู… ููŠ ุงู„ .. ููŠ ุงู„ two tracks ููŠ ุงู„ู…ุณุงุฑูŠู†
544
00:45:36,390 --> 00:45:45,070
ุจุงุฌุฏู‘ู… ุตุญุŸ ุงุฌุฏู‘ู…ุชุŒ ุงู„ุขู† ุฃู†ุง ุตุฑุช ู‡ู†ุง ูˆุตุฑุช ู‡ู†ุง ู„ุฃู†
545
00:45:45,070 --> 00:45:48,950
ู‡ุฐู‡ optional expression ูˆู‡ู†ุง ุนู†ุฏูŠ terminal
546
00:45:48,950 --> 00:45:54,590
expression ู‡ู„ ููŠ ู„ู„ optional expression ุดูƒู„ ุฃูˆ ..
547
00:45:54,590 --> 00:45:56,770
ุฃูˆ production ูŠุนู†ูŠุŒ ุฅูŠุด production ุชุจุนู‡ุงุŸ ููŠ ุงู„
548
00:45:56,770 --> 00:46:01,970
epsilon ูˆููŠ ุงู„ expression ุงู„ epsilon ู„ุฃ ุงู„
549
00:46:01,970 --> 00:46:08,220
expression ุขู‡ ูุฃุทุงุจู‚ ู‡ุฐุง ู…ุน ู‡ุฐุง ุงู„ุขู† ุจุนุฏูŠ ุนู† ู‡ุฐุง ูˆ
550
00:46:08,220 --> 00:46:12,360
ุจุนุฏูŠ ุนู† ู‡ุฐุง ุตุญ ู‡ู†ุง ุจู†ุชู‚ู„ ู‡ู†ุง ุทูŠุจ ู‡ุฐุง ู„ู…ุง ุฃุณูŠุจู‡ ูˆ
551
00:46:12,360 --> 00:46:17,920
ุฃู†ุง ุฃุฑูˆุญ ู…ุง ููŠุด sibling ุจุฑุฌุน ู„ู„ parent ูˆุจูƒู…ู„ ุงู„
552
00:46:17,920 --> 00:46:23,000
sibling ุงู„ุชุงุจุนุฉ ู„ู„ parent ุตุญุŸ ุจู„ุงู‚ูŠ ููŠู‡ match ุจูƒู…ู„ ู†ูุณ
553
00:46:23,000 --> 00:46:27,940
ุงู„ุนู…ู„ูŠุฉ era and era ู‡ู†ุง ุตุงุฑ .. ุชูƒูˆู† ุชู…ุช ุนู…ู„ูŠุฉ ุงู„
554
00:46:27,940 --> 00:46:33,630
parsing ูˆุจุดูƒู„ top-down ู…ู† ููˆู‚ ุฅู„ู‰ ู…ู† ุฃุนู„ู‰ ุฅู„ู‰ ุฃุณูู„
555
00:46:33,630 --> 00:46:37,290
ูŠุนู†ูŠ ุฅุญู†ุง ุจู†ู…ุดูŠ ู…ู† ู‡ู†ุงูƒ ูˆุจู†ุฏุฎู„ ุนู„ู‰ ุงู„ children ูˆุงู„
556
00:46:37,290 --> 00:46:39,870
children ุงู„ุชุงุจุนุฉ ู„ู„ children ุฅู„ู‰ ุฃู† ู†ุตู„ ู„ leaf
557
00:46:39,870 --> 00:46:47,390
node ูˆู†ุนู…ู„ matching ู‡ุฐู‡ ู‡ูŠ ุงุณุชุฑุงุชูŠุฌูŠุฉ ุงู„ top-down
558
00:46:47,390 --> 00:46:54,470
parsing ุนู…ู„ูŠุง ูˆู‡ุฐู‡ ุงู„ุชูˆุถูŠุญ ุฎุทูˆุฉ ู„ุฎุทูˆุฉ ูŠุนู†ูŠ ู†ูุณ
559
00:46:54,470 --> 00:46:58,570
ุงู„ูƒู„ุงู… ุงู„ู„ูŠ ู‚ู„ุชู‡ ุฃู†ุง ุดุฑุญุชู‡ message ู‡ูˆ ุงุนู…ู„ ู„ูŠ ุฎุทูˆุฉ
560
00:46:58,570 --> 00:47:02,540
ู„ุฎุทูˆุฉ ุฃูˆู„ ุดูŠุก ุฃูˆู„ ุดูŠุก ุฃุนู…ู„ node ูˆุงุญุฏุฉ ู„ู„ statement
561
00:47:02,540 --> 00:47:06,500
non-terminal ูˆ ุงู„ู€ pointer ุนู„ูŠู‡ุง ูˆ ููŠ ุงู„ู€ input ุงู„
562
00:47:06,500 --> 00:47:10,020
pointer ุนู„ูŠ ุงู„ู€ non-terminal ุชุจุน ุงู„ู€ four ุตุญุŸ ููŠ
563
00:47:10,020 --> 00:47:14,060
ุงู„ุฎุทูˆุฉ ุงู„ุชุงู†ูŠุฉ ุทุจุนุง ู‡ูˆ ุจุนุฏ ู…ุง ุฌุฑู‘ุฑ ุฎู„ูŠู†ุง ู†ู‚ูˆู„ ุฃูˆ
564
00:47:14,060 --> 00:47:17,360
ู†ุตุฑู‡ ุฃู† ู‡ูˆ ุนู…ู„ selection ู„ู‡ุง ู…ู† ุงู„ุจุฏุงูŠุฉ ุฏูˆู† ..
565
00:47:17,360 --> 00:47:24,520
ุงู„ุขู† four ู…ุน ุตุงุฑ ุงู„ู€ pointer ู…ุชุฌุฑ ู…ู† ู‡ู†ุง ุฅู„ู‰ ุงู„
566
00:47:24,520 --> 00:47:28,560
four ุชุจุน ุงู„ู€ three ูˆ ุนู„ู‰ ุงู„ู€ input ุนู„ู‰ ุงู„ู€ four ู‡ูˆ
567
00:47:28,560 --> 00:47:33,860
ู‡ุงูŠ ุงู„ู€ input ุตุญุŸูŠุนู†ูŠ ู‡ุฐู‡ ู…ุฑุญู„ุฉ ูˆู‡ุฐู‡ ู…ุฑุญู„ุฉ ูˆู‡ุฐู‡
568
00:47:33,860 --> 00:47:37,500
ู…ุฑุญู„ุฉ ูˆ ู‡ุฐุง ุฒูŠ ู…ุง ุฃู†ุง ุญูƒูŠุชู‡ ุทุจุนุง ูŠุนู†ูŠ ู…ุงููŠุด ุฏุงุนูŠ
569
00:47:37,500 --> 00:47:41,860
ู†ููŠุฏู‡ ู…ู†ูŠ ุงู„ุขู† ุงู„ุฃู…ุฑ
570
00:47:41,860 --> 00:47:48,960
ู‡ุฐุง ุจูŠุทุจู‚ ุนู…ู„ูŠุง ู…ู† ุฎู„ุงู„ ู…ู† ุฎู„ุงู„ ุฅูŠุด ุงู„ู„ูŠ ู‡ูˆ ุงู„
571
00:47:48,960 --> 00:47:52,440
recursive descent parsing ุงู„ู€ recursive descent
572
00:47:52,440 --> 00:47:57,460
parsing ุฅุฐุง top-down ุฎู„ูŠ ุงู„ู€ predictive parsing
573
00:47:57,460 --> 00:48:02,660
ุจุญูƒูŠ ุฅูŠุด ูŠุนู†ูŠ ู„ูŠุด ุงู„ู€ recursive descent ู‚ุงุณูŠ ู…ู†
574
00:48:02,660 --> 00:48:06,920
ุฃู†ูˆุงุน ู…ู† ุฃู†ูˆุงุน ุงู„ู€ predictive ุจุณ recursive descent
575
00:48:06,920 --> 00:48:10,540
ุฅูŠุด ุนู† ุงู„ู€ descent ูŠุนู†ูŠ ู‡ุจูˆุท ู‚ู†ุฒูˆู„ ูˆ recursive ูŠุนู†ูŠ
576
00:48:10,540 --> 00:48:13,780
ุจุงุณุชุฎุฏุงู… ู‚ู„ูŠุฉ ุงู„ู€ recursion ู‚ู„ูŠุฉ ุงู„ู€ recursion ู‡ูŠ
577
00:48:13,780 --> 00:48:17,140
ุงุณุชุฏุนุงุก ุฐุงุชูŠ ูŠุนู†ูŠ ุนู„ู‰ ุทูˆู„ ุจุญุท ููŠ ุฏู…ุงุบูŠ ุฃู†ู‡ ููŠ
578
00:48:17,140 --> 00:48:22,060
function ุจุฏุฃ ุชู‚ูˆู… ุจุงู„ุดุบู„ ูˆ ุจุฏุฃ ุชู‚ูˆู… ููŠ ู‡ุฐุง ุงู„ุดุบู„
579
00:48:22,060 --> 00:48:26,300
ู…ู† ุฎู„ุงู„ ุงุณุชุฏุนุงุก ุฐุงุชูŠ ู„ู†ูุณู‡ุง ูˆ descent ุจู…ุนู†ู‰ ุฅู†ู‡ ู…
580
00:48:26,300 --> 00:48:31,130
top-down descent ูŠุนู†ูŠ ู‡ุจูˆุท and top-down ู‡ูŠ is a top
581
00:48:31,130 --> 00:48:35,010
-down method of syntax analysis in which ู„ุณู‡
582
00:48:35,010 --> 00:48:37,970
analysis ู…ุงููŠุด translation ุนุงู…ุฉ a set of recursive
583
00:48:37,970 --> 00:48:41,890
procedures ู…ุฎุชู„ูุฉ
584
00:48:41,890 --> 00:48:46,690
ูƒู„ ูˆุงุญุฏ ู„ุฏูŠู‡ุง ุฏูˆุฑู‡ุง ูˆุญุชู‰ ู„ูˆ ุจุฏุฃุช ู†ูุณ ุฏูˆุฑู‡ุง ู…ู…ูƒู†
585
00:48:46,690 --> 00:48:51,810
ุชุณุชุฏุนูŠ ู†ูุณู‡ุง ุฃูƒุชุฑ ู…ู† ู…ุฑุฉ is used to process the
586
00:48:51,810 --> 00:48:57,940
input one procedure is associated with each non
587
00:48:57,940 --> 00:49:00,560
-terminal ูŠุนู†ูŠ ูƒู„ non-terminal ููŠ ุงู„ู€ grammar
588
00:49:00,560 --> 00:49:04,420
ุจู†ุจู†ุงู„ู‡ procedure ุฅุฐุง ุนู†ุฏูŠ non-terminal ูŠุณู…ู‡
589
00:49:04,420 --> 00:49:08,580
expression ุญูŠูƒูˆู† ุนู†ุฏูŠ procedure ุฃูˆ function ุงุณู…ู‡ุง
590
00:49:08,580 --> 00:49:13,400
expression ู‡ุฐุง
591
00:49:13,400 --> 00:49:19,280
non-terminal ููŠ ู‡ุฐู‡ method ุฃูˆ procedure ู‡ุฐุง
592
00:49:19,280 --> 00:49:25,720
statement non-terminal ููŠ ุชู…ุงู…ุŸ
593
00:49:26,430 --> 00:49:29,710
one procedure is associated with each non-terminal
594
00:49:29,710 --> 00:49:35,210
of a grammar ู‡ุงูŠ statement a procedure to mean a
595
00:49:35,210 --> 00:49:43,410
statement non-terminal ุฅูŠุด ุจูŠุณุชูˆูŠ ุงู„ุขู†
596
00:49:43,410 --> 00:49:53,870
ู‡ุฏูˆู„ ุงู„ู€ cases ุนู†ุฏูƒ ููƒุฑุฉ ุฅูŠุด ู‡ู…ุŸ ู‡ุฏูˆู„
597
00:49:53,870 --> 00:49:57,390
ู‡ู… children of one statement ู‡ุฐู‡ ุงู„ู€ gossip ุงู„ุฃูˆู„
598
00:49:57,390 --> 00:50:00,510
ู‡ุฏูˆู„
599
00:50:00,510 --> 00:50:06,090
ุงู„ู‚ูŠู…
600
00:50:06,090 --> 00:50:10,450
ุฃุณู ู‡ุฏูˆู„ ุนุจุงุฑุฉ ุนู† ุงู„ู€ .. ุงู„ู€ .. ุงู„ู€ .. ุงู„ู€ .. ุงู„ู€
601
00:50:10,450 --> 00:50:14,470
symbols ุงู„ู„ูŠ ุจูŠุฌูˆุง ููŠ ุจุฏุงูŠุฉ ุงู„ู€ productions ุชุจุน ุงู„ู€
602
00:50:14,470 --> 00:50:19,090
statement ุงู„ุญูŠู† ุตุนุจ ุฃู† ู†ุทู„ุน ูˆ ู†ู†ุฒู„ ุจุณ ุฅุฐุง ุจุชุฐูƒุฑูˆุง
603
00:50:19,090 --> 00:50:20,590
ุงู„ู€ statement ูƒุงู† ู„ุฏูŠ ุนุฏุฉ productions
604
00:50:25,650 --> 00:50:31,270
ูˆ ูˆุงุญุฏุฉ ู…ู†ู‡ู… F ูˆ ุจุนุฏูŠู† ูƒุฏู‡ ูƒุฏู‡ ูˆ ุจุนุฏ ุชุงู†ูŠ four ูˆ
605
00:50:31,270 --> 00:50:36,430
ูƒุฏู‡ ูƒุฏู‡ ูˆ ุจุนุฏ ุชุงู†ูŠ other ุตุญ ู‡ุฏูˆู„ุฉ other ูˆ four ูˆ F
606
00:50:36,430 --> 00:50:41,350
ูˆ expression ู‡ู… ุจุฏุงูŠุงุช ุงู„ู€ bodies ุชุจุนุช ุงู„ู€
607
00:50:41,350 --> 00:50:45,930
productions ุชุจุนุช ุงู„ู€ statement ููƒุฃู†ู‡ ุจูŠู‚ูˆู„ ู„ูŠ ุฅู†ู‡
608
00:50:45,930 --> 00:50:50,210
ุฅุฐุง ุฃู†ุง .. ุฅุฐุง ุฃู†ุช ุงู„ุขู† ูˆุงู‚ู ุนู„ู‰ ุงู„ู€ statement ูุงู„
609
00:50:50,210 --> 00:50:55,050
children ุชุจุนูˆู†ู‡ุง ุงุญุชู…ุงู„ ูŠูƒูˆู† ุฃูˆู„ ูˆุงุญุฏ ููŠู‡ู… ุฃู…ุง
610
00:50:55,050 --> 00:50:59,430
expression ุฃูˆ ุฃูˆู„ ูˆุงุญุฏ ู…ู†ู‡ู… if ุฃูˆ other ุฃูˆ for ุฃูˆ
611
00:50:59,430 --> 00:51:07,750
other ูุฅุฐุง ูƒุงู† if ู…ุนู†ุงู‡ ุฐู„ูƒ ุณูˆูŠ ูƒุฏู‡ ูƒุฏู‡ ุฅุฐุง ูƒุงู†
612
00:51:07,750 --> 00:51:12,130
expression ู…ุนู†ุงู‡ ุฐู„ูƒ ุจุฏูƒ ุชุณุชุฏุนูŠ ุงู„ู€ expression
613
00:51:12,130 --> 00:51:18,590
recursive procedure ุนุดุงู† ุชุดูˆู ุงู„ู€ subtree ุชุจุน ุงู„ู€
614
00:51:18,590 --> 00:51:21,090
expression ุฅุฐุง
615
00:51:22,380 --> 00:51:26,500
ุงู„ู€ Lookahead ู‡ูˆ ุนุจุงุฑุฉ ุนู† ุงู„ู€ pointer ุชุจุน ุงู„ู€ node
616
00:51:26,500 --> 00:51:33,020
.. ุขุณู ู…ุด ุชุจุน ุงู„ู€ node .. ุชุจุน ุงู„ู€ input ุงู„ู€ pointer
617
00:51:33,020 --> 00:51:36,940
ุชุจุน ุงู„ู€ input ุงุณู… ุงู„ู€ lookahead ู‡ุฐุง ุจูŠุดูŠุฑ ุฅู„ู‰ ุงู„
618
00:51:36,940 --> 00:51:39,220
token ุงู„ู„ูŠ ูˆุงู‚ููŠู† ุนู„ูŠู‡ ููŠ ุงู„ู€ input ู…ุง ุฅุญู†ุง ุงู„
619
00:51:39,220 --> 00:51:44,160
input ุชุจุนู†ุง tokens ู…ุด characters ุฅุญู†ุง ู…ุงุฎุฏูŠู† a
620
00:51:44,160 --> 00:51:47,520
sequence of tokens ู…ู† ู…ูŠู†ุŸ ู…ู† ุงู„ู€ Lexical Analyzer
621
00:51:47,520 --> 00:51:50,220
Lexical Analyzer ุจุดูˆู characters ูˆ ุจุณู„ู…ู†ุง ู…ูŠู†
622
00:51:50,220 --> 00:51:54,360
ุจุณู„ู…ู†ุง ู…ูŠู† ุงู„ู€ tokens ูุงู†ุง ูˆุงู‚ู ุนู„ู‰ .. ุฃู…ุงู…ูŠ ููŠ
623
00:51:54,360 --> 00:52:00,340
sequence of tokens ูˆ ุงู„ู€ pointer ุงุณู…ู‡ ุงู„ู€ lookahead
624
00:52:00,340 --> 00:52:05,320
ุจุดุงูˆุฑ ูˆุงุญุฏ ูˆุฑุง ุงู„ุซุงู†ูŠ ุทุจุนุง ูุฅุฐุง ุงู„ู„ูŠ ุฃู…ุงู…ูŠ ุงู„ู„ูŠ
625
00:52:05,320 --> 00:52:07,420
ุฏุงุฎู„ .. ุงู„ู„ูŠ ุฃู†ุง ูˆุงู‚ู ุนู„ูŠู‡ ููŠ ุงู„ู€ input ู‡ูˆ
626
00:52:07,420 --> 00:52:11,660
expression ู‡ุฐู‡ expression ู…ู‡ู…ุฉ ุชุฑู…ู†ุง ูุจุฏุฃ ุฃุณุชุฏุนูŠ
627
00:52:11,660 --> 00:52:16,610
ุทุจุนุง ุฃุณุชุฏุนูŠู‡ุฐุง expression ุจู†ุงุก ุนู„ู‰ ุงู„ู€ grammar
628
00:52:16,610 --> 00:52:22,850
keyword ู„ุฃู† ุงู„ุฐุงูƒุชูŠู† ุฅุญู†ุง ู…ุงู„ูˆุด productions ูˆู…ุนู†ุงู‡
629
00:52:22,850 --> 00:52:26,590
ุงู„ู…ูƒุชูˆุจ ุฃุตู„ุง ูƒุงู† ุจุงู„ู€ bold ู…ุด Italic ูู€ expression
630
00:52:26,590 --> 00:52:30,430
ุจู†ุงุก ุนู„ู‰ ุงู„ู€ grammar ู‡ูˆ terminal ูู€ terminal ู…ุนู†ุงุชู‡
631
00:52:30,430 --> 00:52:33,470
match expression ุฅูŠุด ูŠุนู†ูŠ match expression ุนุดุงู†
632
00:52:33,470 --> 00:52:42,810
ุชุดูˆู ู‡ู„ ุงู„ู€ look a hit ู‡ู„ ุงู„ู€ look
633
00:52:42,810 --> 00:52:51,300
a hit ูŠุทุงุจู‚ ุงู„ู€ current node ููŠ ุงู„ู€ tree ุฅุฐุง ุงู„
634
00:52:51,300 --> 00:52:55,420
lookahead ูŠุทุงุจู‚ ุงู„ู€ current node ู…ุนู†ุงุชู‡ ุงู†ุชู‚ู„ ูˆุนู…ู„
635
00:52:55,420 --> 00:53:00,880
match ู„ู„ู€ semicolon ู‡ู„ ุงู„ู€ next token ููŠ ุงู„ู€ input
636
00:53:00,880 --> 00:53:07,080
ูŠุทุงุจู‚ ุงู„ู€ next child ููŠ ุงู„ู€ tree ูุงู„ู…atch ู‡ุฐู‡
637
00:53:07,080 --> 00:53:10,900
ูˆุธูŠูุชู‡ุง ุฃู†ู‡ุง ุชุดูˆู ุฅุฐุง ููŠ ู…ุทุงุจู‚ุฉ ูˆู„ุง ู„ุง ุฅุฐุง ููŠ
638
00:53:10,900 --> 00:53:17,090
ู…ุทุงุจู‚ุฉ ุจุชู‚ุฏู… ุฅุฐุง ู…ุงููŠุด ู…ุทุงุจู‚ุฉ ุจุชุนุทูŠู„ูŠ error error
639
00:53:17,090 --> 00:53:20,410
ู…ุนู†ุงู‡ ุฐู„ูƒ ุงู„ู€ case ุงู„ู„ูŠ ูุดู„ุช ู…ุนู†ุงู‡ ุฐู„ูƒ ุจุชุชุญูˆู„ ุนู„ู‰
640
00:53:20,410 --> 00:53:26,950
.. ุนู„ู‰ ุญุงุฌุฉ ุชุงู†ูŠุฉ okay ูุงู„ุขู† ู‡ู†ุง ู‡ุชู„ุงู‚ูŠ ุฃู†ู‡ ููŠ
641
00:53:26,950 --> 00:53:32,910
ุญุงู„ุงุช ู‡ุงูŠ ุฒูŠ ู…ุซู„ุง ูˆูŠู† ู‡ู†ุง
642
00:53:32,910 --> 00:53:36,470
ู‡ุชู„ุงู‚ูŠ ุฃู†ู‡ ุฒูŠ ููŠ ุงู„ู€ four ู„ุฃู† ุงู„ู€ four ููŠ ุนู†ุฏูŠ ุฃู†ุง
643
00:53:36,470 --> 00:53:39,870
four ูƒุฐุง four or ูƒุฐุง option ูˆ ุจุนุฏูŠู† ู‡ู†ุง ููŠ
644
00:53:39,870 --> 00:53:45,470
statement ุตุญ ุงู„ู„ูŠ ุจุชุชู†ูุณ ุจูƒู„ู‡ ูุจูŠุฌูŠ ุฃู†ู‡ ุงู„ู€ input
645
00:53:45,470 --> 00:53:50,870
ุงู„ู„ูŠ ุฏุงุฎู„ ุจุนุฏ ุงู„ู€ ghost ุจู†ุนุงู„ุฌู‡ ุจุงุณุชุฎุฏุงู… ุงุณุชุฏุนุงุก
646
00:53:50,870 --> 00:53:55,470
ุฐุงุชูŠ ุขุฎุฑ ู„ุงุณุชุฎุฏุงู… ู†ูุณู‡ุง ุนุดุงู† ู†ุดูˆู ุฅูŠุด ุงู„ู€ statement
647
00:53:55,470 --> 00:53:58,790
ุงู„ู„ูŠ ุจุนุฏ ุงู„ู€ ghost ูƒูŠู ู…ู…ูƒู† ุชุชุนุงู…ู„ ู…ุนุงู‡ ูู‡ุฐุง
648
00:53:58,790 --> 00:54:03,630
recursive ูˆ descent ูˆููƒุฑุชู‡ ุฃู†ู‡ ู„ูƒู„ ูˆุงุญุฏุฉ ู…ู† ุงู„ู€ non
649
00:54:03,630 --> 00:54:09,970
-terminants ููŠ procedure ูˆ ุงู„ู€ procedure ู‡ุฐู‡ ุจุชุดุชู…ู„
650
00:54:09,970 --> 00:54:14,220
ุนู„ู‰ code ุงู„ู€ code ู‡ุฐุง ู‡ูˆ ุชุฑุฌู…ุฉ ู„ุฅูŠุด ู„ู„ู€ productions
651
00:54:14,220 --> 00:54:20,000
ุชุจุนุช ุงู„ู€ non-terminal ุฏู‡ ุจู…ุนู†ู‰ ู…ุญุฏุฏ ูˆ ู‡ูˆ ุฃู†ู‡ ูƒู„
652
00:54:20,000 --> 00:54:23,780
production ุชุจุนุช ู„ู‡ุฐุง ุงู„ู€ non-terminal ุจู†ุดูˆู ุฑุงุณู‡ุง
653
00:54:23,780 --> 00:54:30,080
ุฃูˆ ุงู„ู€ first element ุชุจุนู‡ุง ูˆ ู†ุนู…ู„ check ู„ู‡ ูˆ ู„ูƒู„ ู…ุง
654
00:54:30,080 --> 00:54:34,660
ูŠุชุจุนู‡ ุจุนุฏ ู‡ูŠูƒ ุฅุฐุง ู†ุฌุญ ุฅุฐุง ู‡ูˆ ุงู„ู„ูŠ ูุนู„ุง ู…ูˆุฌูˆุฏ ููŠ ุงู„
655
00:54:34,660 --> 00:54:42,670
input ูุจุฏู†ุง ู†ุนู…ู„ matching ู„ู„ู€ input ุนู„ู‰ ุฃุณุงุณ ุงู„ู€ rule
656
00:54:42,670 --> 00:54:48,150
ุชุจู‚ู‰ ูˆู‡ุฐุง ุฑุงุณ ู„ู€ role ุฃูˆ ู„ู€ body ูุฅุฐุง ุตุงุฑ ููŠ
657
00:54:48,150 --> 00:54:51,830
matching ุจูŠู†ู‡ ูˆ ุจูŠู† ุงู„ู€ input ูŠุจู‚ู‰ ู„ุงุฒู… ุงู„ู„ูŠ ูŠุชุจุนู‡
658
00:54:51,830 --> 00:54:56,870
ููŠ ุงู„ู€ input ูŠูƒูˆู† ุฒูŠ ู‡ูŠูƒ ูƒู„ู‡ ู‡ุฐุง ูŠุนุทูŠู‡ true true
659
00:54:56,870 --> 00:55:01,910
true true ุจุชูƒูˆู† ุงูƒุชู…ู„ ุงู„ู€ task ูˆุงุญุฏุฉ ู…ู†ู‡ู… ุชุนุทูŠู†ูŠ
660
00:55:01,910 --> 00:55:06,990
false ูˆ ุจุทู„ุน ูˆ ุจุฌุฑุจ ูˆุงุญุฏุฉ ุชุงู†ูŠุฉ ู„ุฃู† ูƒู„ ูˆุงุญุฏุฉ ู…ู†
661
00:55:06,990 --> 00:55:12,220
ู‡ุฏูˆู„ุฉ ู…ู…ูƒู† ุชุดุชู…ู„ ุนู„ู‰ ุงุณุชุฏุนุงุก ุฐุงุชูŠ ู„ู†ูุณู‡ุง ุฃูˆ ุฃูŠุถุง ู„
662
00:55:12,220 --> 00:55:17,600
.. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„
663
00:55:17,600 --> 00:55:17,620
.. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„
664
00:55:17,620 --> 00:55:17,880
.. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„
665
00:55:17,880 --> 00:55:18,040
.. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„
666
00:55:18,040 --> 00:55:22,900
.. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ ..
667
00:55:22,900 --> 00:55:25,000
ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ ..
668
00:55:25,000 --> 00:55:27,760
ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ ..
669
00:55:27,760 --> 00:55:32,240
ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ .. ู„ ..
670
00:55:32,240 --> 00:55:35,540
ู„ .. ู„
671
00:55:39,600 --> 00:55:44,520
ุงู„ุขู† ุฃู†ุง ุจู†ูƒู…ู„ ู…ู† ุงู†ุฏูŠุงู† ู„ุฃู† ู‡ุฐู‡ ู‚ุถูŠุฉ ู…ู‡ู…ุฉ ุฌุฏุง ุฃู†
672
00:55:44,520 --> 00:55:51,040
ุฃู†ุง ูŠูƒูˆู† ููŠ ู‡ู†ุฏูŠ ู‚ู„ูŠุฉ ู„ุชุญุฏูŠุฏ ู…ู†ู‡ู… ุงู„ู€ firsts ุชู…ู‡ุงุช
673
00:55:51,040 --> 00:55:54,140
ุงู„ู€ productions ุชู…ู‡ุงุช ูƒู„ ูˆุงุญุฏ ู…ู† ุงู„ู€ non-terminal
674
00:55:54,140 --> 00:55:58,360
ูŠุนู†ูŠ ุนู„ู‰ ุฃุณุงุณ ู‡ุฐุง ุงู„ู€ first ุฃู†ุง ุจู‚ุฏุฑ ุฃุจู†ูŠ ุงู„
675
00:55:58,360 --> 00:55:59,660
recursive function