abdullah's picture
Add files using upload-large-folder tool
0f6bcc1 verified
raw
history blame
53.7 kB
1
00:00:20,910 --> 00:00:23,810
ุจุณู… ุงู„ู„ู‡ ุงู„ุฑุญู…ู† ุงู„ุฑุญูŠู… ุงู„ุณู„ุงู… ุนุดุงู†ูƒู… ุงู„ู…ุณู„ู…ูŠู† ู†ุจุฏุฃ
2
00:00:23,810 --> 00:00:28,590
ุงู„ูŠูˆู… ุฅู† ุดุงุก ุงู„ู„ู‡ ู†ูƒู…ู„ ุจุฑุถู‡ ููŠ ุงู„ syntax analysis
3
00:00:28,590 --> 00:00:35,730
ูƒู†ุง ุงู„ู…ุญุงุถุฑุฉ ุงู„ู…ุงุถูŠุฉ ุญุฏุฏู†ุง ุฅูŠุด ุงู„ู…ูˆุงุถูŠุน ุงู„ู„ูŠ ุจุฏู†ุง
4
00:00:35,730 --> 00:00:40,290
ู†ุบุทูŠู‡ุง ูˆ ุจุฏู†ุง .. ุบุทูŠู†ุง .. ุญุฏุฏู†ุง ุฅู†ู‡ ู†ุญูƒูŠ ููŠ ุงู„
5
00:00:40,290 --> 00:00:42,910
introduction context free grammars ูˆ ุงู„ writing
6
00:00:42,910 --> 00:00:45,110
grammar ูˆ ุงู„ top-down parsing ูˆ ุงู„ bottom-up
7
00:00:45,110 --> 00:00:51,420
parsing ูˆ ู†ุงุฎุฏ introduction ู„ simple LR parserุงู„ุงู†
8
00:00:51,420 --> 00:00:54,760
ุงุญู†ุง ุบุทูŠู†ุง ุณู†ุฉ ูˆ ู…ุฑุงุชูŠู† ุญุชู‰ ุงู„ุงู† ุงู„ู„ูŠ ู‡ูˆ section
9
00:00:54,760 --> 00:00:59,120
4142 ูˆ ุตุฑุชู†ุง ุนู„ู‰ web ุงู„ู„ูŠ ู‡ูˆ 4 3 writing a grammar
10
00:00:59,120 --> 00:01:04,080
ู writing a grammar ุจู†ุดูˆู ู‚ุถูŠุชูŠู† ุฃุณุงุณูŠุงุช ูŠุฌุจ ุฃู†
11
00:01:04,080 --> 00:01:07,980
ู†ุงุฎุฏ .. ุฎุฏูˆุง ููŠ ุนู†ูˆุงู† ุนุทูˆุงุฑ ุนู†ุฏ ูƒุชุงุจุฉ ูƒุชุงุจุฉ ู‡ู†ุง ู…ุด
12
00:01:07,980 --> 00:01:13,100
ุจู…ุนู†ู‰ ูƒุชุงุจุฉ ุงู„ code ุจุณ ุจู…ุนู†ู‰ ุชุตู…ูŠู… ุงู„ grammar ุจุนุฏ
13
00:01:13,100 --> 00:01:17,360
ู‡ูŠ ูƒุจู†ุดูˆู ูƒูŠู ุนู…ู„ูŠุง ุจูŠุตู…ู… .. ุจูŠุดุชุบู„ ุงู„ parts of
14
00:01:17,360 --> 00:01:22,210
top down ูˆ ูƒูŠู ุจูŠุดุชุบู„ bottom upูุจุฏู†ุง ู†ุฑูˆุญ ุนู„ู‰ ุทูˆู„
15
00:01:22,210 --> 00:01:25,610
ุนู„ู‰ section ุฃุฑุจุน ุชู„ุงุชุฉ ูƒุงู† ุขุฎุฑ ุฅุดูŠ ุฌุงุจู„ ุฃุฑุจุน ุชู„ุงุชุฉ
16
00:01:25,610 --> 00:01:28,610
ุงู„ู„ูŠ ุญูƒูŠู†ุง ููŠู‡ ุงู„ู„ูŠ ู‡ูˆ ุงู„ derivation ุงู„ derivation
17
00:01:28,610 --> 00:01:33,830
ุฅุฐุง ุจุชุฐูƒุฑูˆุง ุงู„ derivation ูˆ ุงู„ .. ูˆ building ุงู„ู‚ุงุณ
18
00:01:33,830 --> 00:01:40,170
trees ูˆ ุฑุจู…ุง
19
00:01:40,170 --> 00:01:42,490
ู‡ุฐู‡ ุงู„ู†ู‚ุทุฉ ู…ุงูˆู‚ูู†ุงุด ุนู†ุฏู‡ุง ุฎู„ูŠู†ุง ู†ุญูƒูŠู‡ุง ููŠู‡ุง ุนู„ู‰
20
00:01:42,490 --> 00:01:46,870
ุงู„ุณุฑูŠุน ูˆู‡ูŠ ุฅู† ูƒูŠู ุฃู†ุช ุชุณุชุทูŠุน .. ุงุญู†ุง ุดูˆูู†ุง ู‚ุจู„ ู‡ูŠูƒ
21
00:01:46,870 --> 00:01:53,240
ุงู„ regular expression ูƒูŠู ุจู† ..ุญูˆู„ูˆุง ุงู„ู‰ NFA ุซู…
22
00:01:53,240 --> 00:01:57,880
ุจุนุฏ ุฐู„ูƒ DFA ุงู„ุขู† ุงุญู†ุง ู…ู…ูƒู† ู†ุนู…ู„ ุงู„ุงูƒุณ ู…ู† ุงู„ NFA ู„ู„
23
00:01:57,880 --> 00:02:05,340
grammar ูŠุนู†ูŠ ู„ูˆ ุนู†ุฏูŠ ุงู†ุง NFA ู…ูˆุฌูˆุฏ ูˆ ู…ุด ู…ูˆุฌูˆุฏุฉ ุงู„
24
00:02:05,340 --> 00:02:09,720
grammar ุจู‚ุฏุฑ ู…ู† ุงู„ NFA ุงูƒุชุจ ุงู„ grammar ุงูƒุชุจ ุงู„
25
00:02:09,720 --> 00:02:15,580
grammar ูŠุนู†ูŠ ุนู„ู‰ ุณุจูŠู„ ุงู„ู…ุซุงู„ ุนู†ุฏูŠ ุงู„
26
00:02:15,580 --> 00:02:21,510
NFA ูŠุญุชูˆู‰ ุนู„ู‰ states I1, I2, I3ูƒู„ state ููŠู‡ ู„ู‡ุง
27
00:02:21,510 --> 00:02:27,190
edges ุจุชูˆุฏุน ุนู„ู‰ ุงู„ุฃุฎุฑูŠุงุช ุตุญ ุงู„ edges label ุนู„ูŠู‡ู…
28
00:02:27,190 --> 00:02:29,910
labels ุงู„ labels ู‡ุฐู‡ ุนุจุงุฑุฉ ุนู† alphabet characters
29
00:02:29,910 --> 00:02:34,650
ู…ุธุจูˆุท ู‚ูˆู„ ู…ุซู„ุง a ู‚ูˆู„ ู…ุซู„ุง b ู‚ูˆู„ ุงูŠ ุงุฎุฑ ุชุงู†ูŠ ุงู„ M
30
00:02:34,650 --> 00:02:40,670
you can build ุฃูˆ ุชูƒุชุจ ู„ grammar ู…ุจูŠู† ุนู„ู‰ ุงู„ NFA
31
00:02:40,670 --> 00:02:45,510
ุงู„ู„ูŠ ุนู†ุฏูƒ ูƒู„ state ุนู…ุงู„ ุงู„ states ู‡ู†ุง ู…ุฑู‚ู…ูŠู†
32
00:02:45,510 --> 00:02:52,590
ุจุฃุฑู‚ุงู…ูƒู„ state ุจุชุนู…ู„ ุฅู„ูŠู‡ุง non-terminal ู„ุฅูŠุฏูŠูƒ
33
00:02:52,590 --> 00:02:56,650
state 1, state 2, state 3, state 4 ุฅู„ู‰ ุขุฎุฑู‡ ูุจุชุนู…ู„
34
00:02:56,650 --> 00:03:02,930
non-terminal ู„ู‡ุฐู‡ non-terminal ู„ุฅูŠุฏูŠูƒ ู†ุนู…ู„ non
35
00:03:02,930 --> 00:03:07,610
-terminal ู„ุฅูŠุฏูŠูƒ ุงู„ุฃุฎุฑู‰ ู„ูƒู„ state non-terminal
36
00:03:07,610 --> 00:03:11,510
ุฎู„ูŠู†ุง ุฒูŠ ู…ุง ู‡ูˆ ู‡ู†ุง ู…ุงุดูŠ ุนู…ู„ ุงู„ุฃุณุงู…ูŠ ุงู„ states
37
00:03:11,510 --> 00:03:14,770
ุณู…ูŠู‡ู…
38
00:03:14,770 --> 00:03:24,630
ุงูŠู‡1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14
39
00:03:24,630 --> 00:03:28,470
a15 a16 a16 a17 a18 a19 a21
40
00:03:28,470 --> 00:03:31,570
a22
41
00:03:31,570 --> 00:03:33,730
a23 a22 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23
42
00:03:33,730 --> 00:03:34,390
a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23
43
00:03:34,390 --> 00:03:36,650
a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23
44
00:03:36,650 --> 00:03:41,110
a23 a23 a23 a23 a23
45
00:03:41,110 --> 00:03:41,790
a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23
46
00:03:41,790 --> 00:03:45,130
a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23 a23
47
00:03:45,130 --> 00:03:48,320
a23 aุจุชุฎูŠู„ ุงู†ูƒ ุชุดุชุบู„ ูƒ algorithm ุงู„ diagram ู…ุด
48
00:03:48,320 --> 00:03:51,080
ู…ุถุฑูˆุฑ ูŠุจู‚ู‰ ู…ูˆุฌูˆุฏ ุงู„ู„ูŠ ู…ูˆุฌูˆุฏ ู‡ูˆ ุงู„ table ุชุจุนู‡ ู…ุด
49
00:03:51,080 --> 00:03:56,180
ู…ูˆุฌูˆุฏ ุจูŠู‡ ุฃู†ู‡ ุงู„ table ุงู„ transition table ู‡ู†ุง ุงู„
50
00:03:56,180 --> 00:04:00,080
states ุตุญุŸ
51
00:04:00,080 --> 00:04:10,520
ูˆ ู‡ู†ุง ุงู„ alphabet symbols ูุงู†ุช ู„ูƒู„ state ู„ูƒู„ state
52
00:04:10,520 --> 00:04:16,230
ุฏู„ูˆู‚ุชูŠ for each state we createุงู„ุงู†ุชุธุงุฑ ุงู„ู‰ if
53
00:04:16,230 --> 00:04:21,010
state i ู‡ุฐุง ุงู„ transition to state j ุฅุฐุง ููŠ ู…ู†
54
00:04:21,010 --> 00:04:25,470
state i transition ุจูŠูˆุฏูŠู†ูŠ ุนู„ู‰ state ุฃุฎุฑู‰ ุนุจุฑ ูˆุงุญุฏ
55
00:04:25,470 --> 00:04:29,650
ู…ู† ุงู„ alphabet characters ุงูุชุฑุถ ู‡ู†ุง ู‡ุฐุง ู…ุซู„ุง ุงู„ c
56
00:04:29,650 --> 00:04:35,530
ุจูŠู‚ูˆู„ูŠ ุงุฐุง ุงู†ุช ุนู„ู‰ one ูˆุฌู‡ูƒ c ุจุชุฑูˆุญ ุนู„ู‰ ุชู„ุงุชุฉ ูŠุจู‚ู‰
57
00:04:35,530 --> 00:04:40,150
ุงู„ุขู† ููŠ transition ู…ู† ูˆุงุญุฏ ุฅู„ู‰ ุชู„ุงุชุฉ ุนุจุฑ c ู‡ุฐุง ุงู„
58
00:04:40,150 --> 00:04:46,340
transition ูŠุธู‡ุฑ ุนู†ู‡ ุนู„ู‰ ุดูƒู„ ruleif state a has a
59
00:04:46,340 --> 00:04:50,540
transition into state j on input a ุงู„rule ู‡ูŠ ุงู„ู„ูŠ
60
00:04:50,540 --> 00:04:56,160
ุจุชูƒูˆู† ู‡ูŠ ุงู„ non terminal ai ูŠุคุฏูŠ ุฅู„ู‰ ุงูˆ can have
61
00:04:56,160 --> 00:05:04,000
the form ุจู†ุญุท ุจู†ุญุท ุงู„ character ุซู… ุงู„ non terminal
62
00:05:04,000 --> 00:05:11,080
ุชุจุน ุงู„ state ุงู„ู„ูŠ ูŠุคุฏูŠ ุงู„ูŠู‡ุง ุงู„ู„ูŠ ู‡ูŠ aj okay
63
00:05:11,650 --> 00:05:15,710
ู‡ู†ุง ู‡ูˆ ููŠ ุงู„ู…ุซุงู„ ู‡ุฐุง ุฌุงูŠ small a ุงู†ุง ุนู†ุฏูŠ ู‡ู†ุง
64
00:05:15,710 --> 00:05:21,590
small c okay ูŠู…ูƒู† ุจุญุท ุงู„ .. ุจุญุท ุงู„ character ุงู„
65
00:05:21,590 --> 00:05:26,190
input symbol ูƒhead ู„ู„ body ุชุจุน ุงู„ production ูˆ
66
00:05:26,190 --> 00:05:32,450
ุจุงู‚ูŠ ุงู„ body ู‡ูˆ ู…ูŠู† ุงุณู… ุงู„ non terminal ุชุจุน ุงู„
67
00:05:32,450 --> 00:05:37,030
state ุงู„ูˆุฌู‡ุฉ ุงู„ destination ูˆ ุงู„ state ุงู„ู…ุตุฏุฑ ุงู„ู„ูŠ
68
00:05:37,030 --> 00:05:40,610
ู‡ูŠ ุงู„ source state ู‡ูŠ ุงู„ head ุชุจุน ุงู„ production
69
00:05:41,180 --> 00:05:49,960
ุงู„ู‡ูŠุฏ ุจุชุจุน ุงู„ production ุงู„ุขู†
70
00:05:49,960 --> 00:05:53,540
ุฅุฐุง ููŠ ุนู†ุฏู‰ ู‡ู†ุง ููŠ ุงู„ table ุฅุจุณู„ูˆู† ูˆ ุจู‚ูˆู„ ู…ู† ุงุชู†ูŠู†
71
00:05:53,540 --> 00:06:00,000
ู…ู…ูƒู† ุฃุฑูˆุญ ุนู„ู‰ ุฃุฑุจุน ุนุจุฑ ุฅุจุณู„ูˆู† ุจู‚ูˆู„ a2 ุฅู„ู‰ a4 ุนู„ู‰
72
00:06:00,000 --> 00:06:05,740
ุทูˆู„ a2 can have the form a4 ู„ูŠุด
73
00:06:05,740 --> 00:06:10,360
ูˆุงุถุญ ุงู„ุฅุจุณู„ูˆู†ุทูŠุจ ู‡ุฐู‡ ู„ูŠู‡ .. ู…ุด ูˆุงุถุญุฉ ู‡ุฐู‡ .. ู‡ุฐู‡
74
00:06:10,360 --> 00:06:17,700
ุชุนุงุฏู„ ู‡ุฐู‡ ุจุณ ุงู†ุง ุญุงุทุท C ูˆ ู‡ูˆ ุญุงุทุท A ููŠ ุงู„ุขุฎุฑ ุงูŠู‡
75
00:06:17,700 --> 00:06:20,780
ุงู„ character ุงู„ู„ูŠ ุนู†ุฏูƒ ุงู„ input character AI ุงู„ู„ูŠ
76
00:06:20,780 --> 00:06:25,020
ู‡ูŠ ูˆุงุญุฏ ู…ู† ู‡ู†ุง ู…ู† ุงู„ states AI ุจุงู„ุธุจุท ุชุคุฏูŠ ุฅู„ู‰ AJ
77
00:06:25,020 --> 00:06:33,020
ุนุจุฑ ุงู„ character ู‡ุฐุง ุชููƒุฑ ููŠู‡ุง ู‡ุงูŠ ูˆุงุญุฏ ุงูุฑุถ ุงู†ู‡
78
00:06:33,020 --> 00:06:38,620
ุชู„ุงุชุฑ ู‡ุงูŠ ุชู„ุงุชุฑุนู„ู‰ ุญุณุจ ู‡ุฐุง ุงู„ diagram ู„ุง ูŠูˆุฌุฏ ุดูุฑุฉ
79
00:06:38,620 --> 00:06:46,380
ูุงู†ุง ุงุนู…ู„ู‡ุง ู…ู† 1 ุงู„ู‰ 3 ุนุจุฑ ุงู„ C ููŠู‡ edge ู…ุงุดูŠ ุงู„ุงู†
80
00:06:46,380 --> 00:06:52,200
ุงู„ C ุงู„ุชู„ุงุชุฉ ูุงูƒุฑ ุงู†ู‡ ู„ุณู‡ ููŠ ุจุงู‚ูŠ ู„ู„ NFA ูˆ states
81
00:06:52,200 --> 00:06:58,320
ุฃุฎุฑู‰ ูˆ ุฑุจู…ุง symbols ุฃุฎุฑู‰ ูˆ ุจุนุฏูŠู† ููŠ ุงู„ุฃุฎุฑ ุฑุจู…ุง ู‡ู†ุง
82
00:06:58,320 --> 00:07:02,560
states ู‡ุฐูŠ ุฃุฑุจุนุฉ ูˆ ู‡ุฐูŠ ุฃุฑุจุนุฉ ูˆ ู‡ุฐูŠ ุฎู…ุณุฉ ูˆ ู‡ุฐูŠ ุณุชุฉ
83
00:07:02,560 --> 00:07:03,560
ูˆ ู‡ุฐูŠ ุณุชุฉ final
84
00:07:07,730 --> 00:07:15,730
ุงู„ุฃู…ุฑ ู‡ู†ุง ุฃู†ุช ุจุชู‚ูˆู„ AI ุงู„ู„ูŠ ู‡ูˆ ู‡ุฐู‡ can have a form
85
00:07:15,730 --> 00:07:22,150
CAJ ู„ุฃู† ู„ุงุญุธ ุฃู† ู‡ุฐู‡ ุงู„ุชู„ุงุชุฉ ู‡ูŠ ุฃุณุทุญุงุช ุงู„ body ุชุจุน
86
00:07:22,150 --> 00:07:25,630
ุงู„ production ุงู†ุช ุชุฎูŠู„ ุงู„ body ุชุจุน ุงู„ production
87
00:07:25,630 --> 00:07:31,990
ุนูŠู†ูŠู‡ ู‡ูˆ ุงู„ B ูˆ ุงู„ D ุฃู…ุง ุชุฎูŠู„ ุฃู† ู‡ุฐุง ุงู„ู†ู…ุท ูŠุฑู…ุฒ
88
00:07:31,990 --> 00:07:35,510
ุฅู„ู‰ ู…ุฌู…ูˆุนุฉ ุงู„ input signals ุงู„ู„ูŠ ู…ู…ูƒู† ู†ุชูˆู‚ุนู‡ุง ุจุนุฏ
89
00:07:35,510 --> 00:07:40,880
ู‡ุฐุง ุงู„ stateูู‡ุฐุง ู‡ูˆ ุนุจุงุฑุฉ ุนู† ู…ุฌู…ูˆุนุฉ ุงู„ุณูŠู…ุจูˆู„ุฒ ุงู„ู„ูŠ
90
00:07:40,880 --> 00:07:45,780
ุฌุงูŠูŠู† ุจุนุฏ ุงู„ state ู‡ุฐู‡ ูˆุตูˆู„ู‡ุง ุฅู„ู‰ ุงู„ f ุฅู„ู‰ final
91
00:07:45,780 --> 00:07:54,100
ูˆุฅู† ู‡ุฐุง ู‡ูˆ ุงู„ู…ู‚ุฏู…ุฉ ู„ู‡ุฐู‡ ุงู„ sequence ูƒู…ุง ู†ู‚ูˆู„ ุฅู†
92
00:07:54,100 --> 00:07:59,120
ูˆุฌูˆุฏู†ุง ู‡ู†ุง ู…ูˆู‡ุฌ ู„ุฅู†ู‡ ูŠุฌูŠู†ุง ู‡ุฐุง ุงู„ input
93
00:08:02,690 --> 00:08:06,350
ุงู„ุณุคุงู„ ุงูŠู‡ุŸ ุทุจ ุงู†ุง ุฌูŠุช ู„ูˆ ูƒุงู† ู…ุซู„ุง ู…ู† ูˆุงุญุฏ ู„ุงุชู†ูŠู†
94
00:08:06,350 --> 00:08:11,030
ุน ุทุฑูŠู‚ ุงู„ a ู…ู† ูˆุงุญุฏ ู„ุงุชู†ูŠู† ุน ุทุฑูŠู‚ ุงู„ a ุนุงุฏูŠ ู‡ุนู…ู„
95
00:08:11,030 --> 00:08:17,510
ุงูŠุดุŸ a ูˆุงุญุฏ ูŠูˆุฏูŠ ุงู„ู‰ can have the form a ุงุชู†ูŠู†
96
00:08:17,510 --> 00:08:21,150
ูุฌูŠุช ู…ู†ู‡ู… ุงุชู†ูŠู† ูˆ ุบุฑุถู‡ ู‡ูƒู…ู„ ุงู†ู‡ ูŠูˆุฏูŠ ุงู„ู‰ ุชู„ุงุชุฉ ุงู†ุง
97
00:08:21,150 --> 00:08:26,890
ู„ูƒู„ ุงู„ู†ู…ุท ุฏู‡ ุจุณ ู‡ุนู…ู„ ู„ู‡ู… productions ุงู†ุง ุจู‚ูˆู„ ู‡ู†ุง
98
00:08:26,890 --> 00:08:30,910
if said I has a transition ูู‡ุฃู„ู ุนู„ูŠู‡ู… ูƒู„ู‡ my
99
00:08:30,910 --> 00:08:34,510
statesู‡ุฐุง ุงู„ states ูˆ ุงุดูˆู ูƒู„ ูˆุงุญุฏุฉ ู…ู† ุงู„ states
100
00:08:34,510 --> 00:08:38,230
ุงูŠุด ุงู„ transitions ุงู„ู„ูŠ ุชุจุนุชู‡ุง ุงูŠุด ุงู„ edges ุงู„ู„ูŠ
101
00:08:38,230 --> 00:08:46,690
ุจุชูˆุฏูŠ ุนู„ูŠ ู…ูŠู† ูˆ ุงุนู…ู„ ุงู„ุงู† ุงุฐุง ุนู†ุฏูŠ if a if
102
00:08:46,690 --> 00:08:52,210
i is an accepting state ุฒูŠ ู‡ุฐู‡ ู…ุซู„ุง ุงูŠุด ุจุณ ุงูˆูŠ
103
00:08:52,210 --> 00:08:57,590
ุงุนู…ู„
104
00:08:57,590 --> 00:09:04,060
production a6 an accepting stateุงู„ู†ู…ุท ุงู„ุชุจุนู‡ุง a6
105
00:09:04,060 --> 00:09:09,900
a6 ูŠู…ูƒู† ุฃู† ูŠูƒูˆู† ู…ุตู…ู… ุฃุจุณู„ูˆู† ูˆ ุทุจุนุง ุงู„ start state
106
00:09:09,900 --> 00:09:18,220
ุจุนู…ู„ ุงูŠุด ุจุนู…ู„ ุงู„ start
107
00:09:18,220 --> 00:09:25,800
symbol ุงู„ node ุงู„ู„ูŠ ู‡ูŠ start node ุงู„ู†ู…ุท ุงู„ุชุจุนู‡ุง
108
00:09:25,800 --> 00:09:27,080
start symbol
109
00:09:30,320 --> 00:09:35,980
ูุจุชูƒูˆู† ู…ุนุงูŠุง ู…ุฌู…ูˆุนุฉ productions ุนู„ู‰ ุฃุณุงุณ ู‡ุฐุง ุงู„
110
00:09:35,980 --> 00:09:43,380
NFA ุทูŠุจ ู†ู‡ุงูŠุฉ ุฃุฑุจุนุฉ ุงุชู†ูŠู† ุงุญู†ุง ู„ุงู† ุฌุงูŠูŠู† ุนุดุงู† ู†ูุถู‰
111
00:09:43,380 --> 00:09:45,480
ููŠ ุฃุฑุจุนุฉ ุชู„ุงุชุฉ ู†ู‡ุงูŠุฉ ุฃุฑุจุนุฉ ุงุชู†ูŠู† ููŠ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„
112
00:09:45,480 --> 00:09:53,020
exercises ุถุฑูˆุฑูŠ ุชุชุงุจุน ุนู„ูŠู‡ุง ู„ุฃู†ู‡ู… ู…ู…ูƒู†
113
00:09:53,020 --> 00:09:58,420
ุชูŠุฌูŠ ู…ู†ู‡ุง ุงูˆ ู…ุซู„ู‡ุง ููŠ ุงู„ุงู…ุชุญุงู† ุงู„ุงู† ู…ูˆุถูˆุนู†ุง ุงู„ุฃูˆู„
114
00:09:58,420 --> 00:10:02,550
ุงู„ูŠูˆู… ู‡ูˆ writing a grammarwriting a grammar ููŠู‡ุง
115
00:10:02,550 --> 00:10:05,610
ุนู„ู‰ ุทูˆู„ ุจุฏุฃ ุฃุฏุฎู„ ุนู„ู‰ ู…ุณุฃู„ุฉ ุงู„ ambiguity ูˆ how we
116
00:10:05,610 --> 00:10:10,030
eliminate ุงู„ ambiguity ุงู„ ambiguity ู‡ู†ุง ู„ุฏูŠู†ุง ู…ุซุงู„
117
00:10:10,030 --> 00:10:15,430
ุงู„ production ู‡ุฐู‡ ุงูˆ ุงู„ non terminal ู‡ุฐุง statement
118
00:10:15,430 --> 00:10:20,630
ู…ู…ูƒู† ุชุจู‚ู‰ f statement ุงูˆ ุบูŠุฑ ุฐู„ูƒ ุจุณ ุงุญู†ุง ุจุฏู†ุง ู†ุทู„ุน
119
00:10:20,630 --> 00:10:27,210
ุจุณ ุนู„ู‰ ุญุงู„ุฉ ู„ู…ุง ู†ูƒูˆู† f statement ุงู„ุขู† ุงู„ุตูŠุบุฉ ู‡ุฐู‡
120
00:10:27,210 --> 00:10:34,210
ุงู„ุตูŠุบุฉ ู‡ุฐู‡ููŠ ู‡ุฐู‡ ุณูŠุฑุฉ then ุณูŠุฑุฉ then ู…ุนุงู‡ุง else
121
00:10:34,210 --> 00:10:40,370
ู…ุงุดูŠ ุงู„ statement ู…ู…ูƒู† ุชุฌูŠู„ู‡ุง ุญู„ู‚ุฉ ุฃุฎุฑู‰ F ูˆู„ุง ู…ุด F
122
00:10:40,370 --> 00:10:45,750
ูŠุนู†ูŠ ูุงู„ุงู† ู„ู…ุง ูŠูƒูˆู† ููŠ ู‡ู† ุฏูŠ input ุฌุงูŠุจ ุจุงู„ุดูƒู„ ู‡ุฐุง
123
00:10:45,750 --> 00:10:53,370
F expression one then ูุงู„ past three ุชุจุน ู‡ุฐุง ุงู„ ..
124
00:10:53,370 --> 00:10:56,410
ู‡ุฐุง
125
00:10:56,410 --> 00:11:00,710
ุงู„ statement ู‡ุชูƒูˆู† ุนู„ู‰ ู‡ุฐุง ุงู„ุดูƒู„ ุตุญุŸู‡ู†ุง ููŠ ุนู†ุฏูŠ
126
00:11:00,710 --> 00:11:06,430
ู‡ุฐุง ุงู„
127
00:11:06,430 --> 00:11:11,230
f ูˆ ุงู„ e ูˆุงุญุฏ ูˆ ุงู„ then ูˆ ุงู„ s ูˆุงุญุฏ ูˆ ุงู„ else ุชู…ุงู…
128
00:11:11,230 --> 00:11:17,150
ู‡ุฏูˆู„ุฉ ู‡ู… ุงู„ children ุชู…ุนูˆู† statement ุงู„ุดุงู…ู„ุฉ ูƒู„ูŠุง
129
00:11:17,150 --> 00:11:21,910
ูˆ ุจุนุฏ ูŠูƒู…ู„ ู‡ู†ุง ู‡ุฏูˆู„ุฉ ูŠุนุจู‚ูˆุง ุนู† sub statement ุฌูˆุง
130
00:11:21,910 --> 00:11:26,590
ุฌุงูŠูŠู† ุฌูˆุงุจ ุงู„ else ูˆู‡ูŠ ุงู„ parsing ุทุจุนุง
131
00:11:31,680 --> 00:11:36,280
ุงู„ุงู† ููŠ ุงูŠ ู…ุดูƒู„ุฉ ู‡ู†ุง ู„ุฃ ูŠุนู†ูŠ logically ูˆ
132
00:11:36,280 --> 00:11:39,920
syntactically ุงู„ุฃู…ุฑ ุตุญูŠุญ ู„ุฃู†ู‡ ุฎู„ุงุต ู‡ุฐู‡ ุงู„ else
133
00:11:39,920 --> 00:11:44,860
ู…ุฎุฏุฉ ุงู„ F ู…ุนุฑูˆู ุงู„ F ุชุจุนู‡ุง ูˆู…ุนุฑูˆู ู…ุนุงู‡ุง ูƒู„ู‡ ู‡ูˆ
134
00:11:44,860 --> 00:11:47,860
ุฌูˆุงุจ ุงู„ else ุงู„ู„ูŠ ู‡ูŠ ู‡ุฐุง ุงู„ else ุชุจุนุช ุงู„ F ูŠุนู†ูŠ
135
00:11:47,860 --> 00:11:51,020
ู„ูƒู† ุงุญู†ุง ู…ู…ูƒู† ู†ุจู‚ู‰ ููŠ ุนู†ุง ุงุดูŠ ุฒูŠูƒ ุงู‡
136
00:11:58,920 --> 00:12:04,000
ููŠ ุดูŠ ุฒูŠ ู‡ูŠูƒ ุงู‡
137
00:12:04,000 --> 00:12:08,100
ุจู„ุง ุงุญุณ ุงู†ู‡ ุงุญู†ุง ู…ุนุงู†ุง ุงู„ grammar ู‡ุงุฏู‰ ู…ุนุงู†ุง ุงู„
138
00:12:08,100 --> 00:12:14,160
grammar ู‡ุงุฏู‰ ุงูŠูˆุฉ a statement can have the form if
139
00:12:14,160 --> 00:12:23,940
expression then statement ูˆ if expression then
140
00:12:23,940 --> 00:12:28,180
statement else statement
141
00:12:29,910 --> 00:12:34,150
ุทุจุนุง ุฃูƒุจุฑ ูุงู†ุง ุงู„ุขู† ู‡ุฐุง ุงู„ grammar ู„ู…ุง ูŠุฌูŠู†ูŠ ุงูŠุด
142
00:12:34,150 --> 00:12:38,190
ุฒูŠ ู‡ูŠูƒ ุงู expression ูˆ ุจุนุฏูŠู† ุซุงู†ูŠ ูˆ ุงู expression
143
00:12:38,190 --> 00:12:42,250
ุซุงู†ูŠ ูˆ then ูˆ ุงุณ ูˆ statement ูˆ else ูˆ statement
144
00:12:42,250 --> 00:12:49,090
ูŠุนู†ูŠ two if ูˆ else ูˆุงุญุฏ ู…ู…ูƒู† ุฃู†ุธุฑ ุฅู„ู‰ ุงู„ grammar
145
00:12:49,090 --> 00:12:58,210
ุนู„ู‰ ุฃุณุงุณ ุฃู†ู‡ ูƒู„ ู‡ุฐุง ู‡ูˆ ุฌูˆุงุจ ุงู„ then ู‡ุฐู‡ุฌู…ู„ุฉ F
146
00:12:58,210 --> 00:13:02,830
ู…ูƒุชู…ู„ุฉ ูˆู‡ูŠ ุงู„ F ูˆู‡ูŠ ุงู„ุฐู† ุชุจุนู‡ุง ูˆู‡ูŠ ุงู„ S ุชุจุนู‡ุง ุตุญ
147
00:13:02,830 --> 00:13:09,050
ู‡ุฐุง ูˆุงุถุญ ูˆู…ู…ูƒู† ุงู‚ุถู‡ุง ุนู„ู‰ ุงุณุงุณ ุงู†ู‡ ุงู„ ุงู„ S ุฏูŠ ุชุงุจุนุฉ
148
00:13:09,050 --> 00:13:18,970
ู‡ู†ุง ูˆุจุงู„ุชุงู„ูŠ ู‡ุฐู‡ ู‡ูŠ ุฌูˆุงุจ ุงู„ุฐู† ุงู„ S ุงู„ F ุงู„ุฃุตู„ูŠุฉ
149
00:13:18,970 --> 00:13:27,270
ูˆุงู„ statement S2 ุฌูˆุงุจ ุงู„ S ู‡ุฐุง ุงู„ุขู†ู‡ูˆ ุงู„ option
150
00:13:27,270 --> 00:13:30,670
ุงู„ุฃูˆู„ู‰ ุงู„ุฎูŠุงุฑ ุงู„ุฃูˆู„ุงู†ูŠ ูˆู‡ุฐุง ุงู„ุฎูŠุงุฑ ุงู„ุชุงู†ูŠ ุงู„ู„ูŠ ู‡ูˆ
151
00:13:30,670 --> 00:13:36,990
ุฃูŠู‡ ูุฃุฌู‡ ู‡ุฐุง ุงู„ if ูˆ ุงู„ then ุงู„ if ูˆ ุงู„ expression
152
00:13:36,990 --> 00:13:40,790
ูˆ ุงู„ then ูˆ ุงู„ statement ุฃุฌูˆุง ุฌูˆุงู… ุงู„ then ูˆ
153
00:13:40,790 --> 00:13:44,430
ุงู„ุจุงู‚ูŠ ุชูƒู…ู„ ู„ู„ statement ุงู„ุฃุตู„ูŠ ู‡ุฐูŠ ambiguity ูˆู„ุง
154
00:13:44,430 --> 00:13:51,870
ู„ุฃ ู‡ุฐูŠ ambiguity ุงู„ grammar ุณู…ุญุช ุจุฐู„ูƒ ุฃุนุทุช ู…ุณู„ูƒูŠู†
155
00:13:51,870 --> 00:13:55,710
ู„ู†ูุณ ุงู„ input string
156
00:14:00,610 --> 00:14:06,630
ุงู„ Grammar ุฏูŠ ุชุนุฏูŠู„ ุนู„ู‰ ุงู„ุฃุตู„ูŠุฉ ุนุดุงู† ูŠู…ู†ุน ุงู„
157
00:14:06,630 --> 00:14:11,370
ambiguity ุจู†ุญุณ ุฃู†ู‡ ุงุฌู‡ุฒ ุงุญู†ุง ุจุฏู†ุง .. ุจุฏู†ุง ุฏุงูŠู…ุง
158
00:14:11,370 --> 00:14:16,590
ู†ู„ุณ ู…ุน
159
00:14:16,590 --> 00:14:21,670
ุงู„ F ุงู„ู„ูŠ ูˆุฑุงู‡ ูƒูŠูุŸ ู‡ู†ุง ููŠ ุงู†ุฏูŠ ุงู†ุง match
160
00:14:21,670 --> 00:14:26,330
statement ูˆ open statement ุชูู‡ู…ู‡ู… ูƒุชุงุฑูŠ open ูŠุนู†ูŠ
161
00:14:26,330 --> 00:14:38,120
ู…ูุชูˆุญุฉ ูŠุนู†ูŠ ุฅูŠุดุŸno is ุงูู‡ู…ู‡ุง ูƒุชุฑ ูŠุนู†ู‰ ูˆ ุงู„ matched
162
00:14:38,120 --> 00:14:49,940
ุงู„ู„ู‰ ู‡ู‰ with is ุงู„ is ู…ุนุงู‡ุง ุทุจุนุง ุงู„ ุงู„ ุงู„ ูŠุนู†ู‰ if
163
00:14:49,940 --> 00:14:54,960
then ูˆ else ูุงู„ุงู† ุงุฐุง ูƒุงู† ุนู†ุฏูŠ ุงู†ุง ุงุณุชูŠุฏ ุงู„
164
00:14:54,960 --> 00:15:05,100
expression ู‡ูŠ ุฏู‡ ูˆูŠู†ู‡ ู‡ูŠุชู‡ ุฏู‡ ุงูƒุชุจูˆุง ุชุญุช ู‡ู†ุงif E1
165
00:15:05,100 --> 00:15:20,240
then if E2 then S1 else S2 ุจู†ุงุก ุนู„ู‰ ู‡ุฐุง ุงู„ู€
166
00:15:20,240 --> 00:15:24,920
definition ุงู„ุขู† ุจู†ุงุก ุนู„ู‰ ู‡ุฐุง ุงู„ grammar
167
00:15:29,980 --> 00:15:33,540
ุฃู†ุง ู‡ุฐู‡ ุงู„ุจู†ุฏูˆุฑูŠุฉ ุงู„ู„ูŠ ู‡ูŠ ูƒ statement ู‡ุชูƒูˆู† ุฅู…ุง
168
00:15:33,540 --> 00:15:38,800
matched ุฃูˆ open ุนุดุงู† ุชูƒูˆู† matched ู„ุงุฒู… ุชู†ุทุจู‚ ุนู„ู‰
169
00:15:38,800 --> 00:15:47,500
ู‡ุฐุง ุงู„ุตูŠุบุฉ ูˆุฅู„ุง ูู‡ูŠ open ุนุดุงู† ุชู†ุทุจู‚ ุนู„ู‰ ู‡ุฐู‡ ุงู„ุตูŠุบุฉ
170
00:15:47,500 --> 00:15:51,500
ู„ุงุฒู… ูŠุญุชูˆูŠ ุนู„ู‰ else ูˆุงู„ู„ูŠ ุฌุงุจู†ูŠ ุงู„ else ู„ุงุฒู… ูŠูƒูˆู†
171
00:15:51,500 --> 00:15:52,220
matched
172
00:15:58,310 --> 00:16:00,890
ูˆุงู„ู„ูŠ ุจุนุฏ ุงู„ else ูŠุจู‚ู‰ ุฃูŠุถุง match ุฅูŠุด ูŠุนู†ูŠ matched
173
00:16:00,890 --> 00:16:05,890
ูŠุนู†ูŠ ู…ุนุงู‡ ุงู„ else ุชุจุนู‡ ู…ุง ุฅุญู†ุง ุฅูŠุด ู…ูŠุฒู†ุง ุงู„ match
174
00:16:05,890 --> 00:16:11,330
ููŠ else ูˆ ุงู„ open ู…ุงููŠ ุดูŠ ููŠ else okay ูุฅุฐุง ูˆุงู„ู„ู‡
175
00:16:11,330 --> 00:16:17,650
ุฃู†ุง ุจุฏูŠ ุฃุฌุฑุจ ู‡ุฐู‡ ุฃุฎุด okay if ู…ูˆุฌูˆุฏุฉ expression
176
00:16:17,650 --> 00:16:23,050
ู…ูˆุฌูˆุฏ then ู…ูˆุฌูˆุฏ okay ู„ุงุฒู… ูŠูƒูˆู† express ู…ูˆุฌูˆุฏุฉ ุฅุฐุง
177
00:16:23,050 --> 00:16:28,190
ุจุฏู†ุง ู†ูƒู…ู„ ููŠ ู‡ุฐุง ุงู„ุงุชุฌุงู‡ ู„ุงุฒู…ุงู„ู„ูŠ ุจุนุฏ ุงู„ else ูŠุฌูŠ
178
00:16:28,190 --> 00:16:33,930
statement ูˆ ุชุจู‚ู‰ matched ูˆ ุงู„ู„ูŠ ุฌุงุจ ู„ู„ else ู…ุง ุจูŠู†
179
00:16:33,930 --> 00:16:36,850
ุงู„ else ูˆ ุงู„ then ูŠุจู‚ู‰ statement ูˆ ุฃูŠุถุง ูŠุจู‚ู‰
180
00:16:36,850 --> 00:16:41,270
matched ู„ูˆ
181
00:16:41,270 --> 00:16:45,670
ู…ุง ุญุตู„ ู‡ุฐุง ุงู„ูƒู„ุงู… ูŠุจู‚ู‰ ู‡ุฐุง ุงู„ option ุบูŠุฑ valid
182
00:16:45,670 --> 00:16:51,530
ูŠุจู‚ู‰ ุฅู„ู†ุงุด ุฅู„ุง ู…ุงู„ู†ุงุด ุฅู„ุง ุงู„ุฅุญุชู…ุงู„ ูˆุงู„ุงุฎุฑ ูุชุทู„ุน
183
00:16:51,530 --> 00:16:58,850
ุนู„ู‰ ู‡ุฐุง ู‡ู„ ู‡ุฐุง ูŠู„ุจูŠ ุงู„ definition ุชุจุนู‡matched ู„ุง
184
00:16:58,850 --> 00:17:05,670
ูŠู„ุจู†ู‰ ู„ุฃู† ุงู„ match ุจุฏู‡ุง else ูˆู‡ู†ุง fe2 then s1
185
00:17:05,670 --> 00:17:11,750
ูˆู…ุงููŠ else ุงู„ else ุจุชุงุน ุฎู„ุช ุงู„ุฎู„ู‚ ุตุญ ูˆู„ุง ู„ุฃ ุงุญู†ุง
186
00:17:11,750 --> 00:17:18,530
ู‡ู†ุง ุงุชุณูƒุฑ ุงู„ู…ุณู„ูƒ ุงู„ู„ู‰ ูƒุงู† ุญุงู…ู„ ambiguity ูˆุงุญุฏ ู…ู†
187
00:17:18,530 --> 00:17:22,330
ุงู„ู…ุณู„ูƒูŠู† ูŠุนู†ู‰ ูˆุจุงู„ุชุงู„ูŠ ู…ุงุถู„ุด ุงู„ุง ุงู„ู…ุณู„ูƒ ูˆุงุญุฏ
188
00:17:22,330 --> 00:17:27,580
ูˆุจุงู„ุชุงู„ูŠ ู…ุงููŠุด ambiguityุฃุตุจุญ ู‡ุฐุง ุงู„ rule ู„ุง ุชู†ุทุจู‚
189
00:17:27,580 --> 00:17:33,900
ุนู„ู‰ ู‡ุฐุง ุงู„ rule ู…ุงู‡ูˆ ุงู„ุจุฏูŠู„ ุนู†ู‡ุงุŸ ู…ุงููŠุด ุงู„ู„ูŠ ู‡ู…
190
00:17:33,900 --> 00:17:37,280
ุงู„ุซุงู†ูŠุฉ ุฏูˆู„ุฉ ูƒ statement ู…ุงููŠ ุฅู„ุง matched ุฃูˆ open
191
00:17:37,280 --> 00:17:42,940
ุงู„ุจุฏูŠู„ ุฃู†ู‡ ุฃุฎุฏู‡ุง ู„ูˆ ุฃุฎุดู‡ุง open ู‡ู„ ู‡ุฐุง ู‡ูŠู†ุทุจู‚ุŸ ู„ุฃ
192
00:17:42,940 --> 00:17:47,500
ู…ุด ู‡ูŠู†ุทุจู‚ ู„ุฃู† ููŠ end else ูŠุจู‚ู‰ ู‡ุฐุง ู„ุงุฒู… ูŠู†ุทุจู‚
193
00:18:07,760 --> 00:18:11,660
open ู„ุฃ ู‡ูˆ ู‡ุฐุง ุงู„ู„ูŠ ู‡ูŠู†ุทุจู‚ ุนุงุฑู ู„ูŠุด ู‡ุฐุง ุงู„ู„ูŠ
194
00:18:11,660 --> 00:18:18,680
ู‡ูŠู†ุทุจู‚ ู„ุฃู† ู‡ุฐุง ุงู„ู„ูŠ ู‡ุชูŠุฌูŠ ูƒู„ู‡ุง ู‡ุงูŠ ุงู„ if ูˆ ู‡ุงูŠ ุงู„
195
00:18:18,680 --> 00:18:22,440
expression ูˆ ู‡ุงูŠ ุงู„ then ูˆ ุงู„ statement ู‡ุฐูŠ ู‡ุชูŠุฌูŠ
196
00:18:22,440 --> 00:18:28,440
ูƒู„ู‡ุงุดูˆู ุงุฑุฌุน ุชุงู†ูŠ ู„ูˆ ู‡ุฐุง ู…ุถูŠุด ูŠู†ุทุจู‚ ูŠู†ุฌุญ ู‡ุฐุง ุงู„ู„ูŠ
197
00:18:28,440 --> 00:18:33,060
ู„ุงุฒู… ูŠู†ุทุจู‚ ุทุจ ู‡ุฐุง ุนุดุงู† ูŠู†ุทุจู‚ ุจุฏู‡ S ุฌูŠุฏ ู‡ูŠ ุงู„ู…ูˆุฌูˆุฏุฉ
198
00:18:33,060 --> 00:18:36,520
ู„ูƒู† ุงู„ุฌุงู…ุนู‡ ุงู„ S ู„ุงุฒู… ูŠู…ุงุดูŠ ูˆู‡ุฐุง ู…ุด ู…ุชุญู‚ู‚ ูุงุญู†ุง
199
00:18:36,520 --> 00:18:40,380
ุงู„ุขู† ู…ุงุจู†ุงุด ู„ู‡ุฐุง ูˆู‡ุฐุง ูุนู„ุง ุญูŠุซุจุช ู„ุณู‡ ู„ุฃู†ู‡ ู‡ุชุฌู‡ู„ูƒู…
200
00:18:40,380 --> 00:18:43,900
ู„ู‡ุฐุง ุงู„ statement ูˆ ุงู„ statement ู‡ุฐู‡ ู‡ูŠ ุฃุจู‚ู‰ match
201
00:18:43,900 --> 00:18:50,820
statement match statement match
202
00:18:50,820 --> 00:19:00,590
statement ุชุญุชูˆูŠ ุนู„ู‰ุชุญุชูˆูŠ ุนู„ู‰ F ูˆุชุญุชูˆูŠ ุนู„ู‰ else ุตุญุŸ
203
00:19:00,590 --> 00:19:09,270
ูุฃุญุฏ ู‡ูŠูƒ ุจุงู„ุทุฑูŠู‚ุฉ ู‡ุฐู‡ ู…ุง ุฃุบู„ู‚ ุฃุญุฏ ุงู„ู…ุตุงุฑู…ูŠู† ุงู„ู„ูŠ
204
00:19:09,270 --> 00:19:13,050
ุฏูŠ ูƒุงู† ูˆ ุจุงู„ุชุงู„ูŠ ุถุงู„ ูˆุงุญุฏ ูˆ ุจุงู„ุชุงู„ูŠ ู…ุงููŠุด
205
00:19:13,050 --> 00:19:19,570
ambiguity ุชู…ุงู… ู‡ุฐุง ุจุงู„ู†ุณุจุฉ ู„ู„ ambiguity ูุงู†ุช ุงู„ุขู†
206
00:19:19,570 --> 00:19:24,370
ุนู„ู‰ ุฃุญุฏ ุงู„ู‚ุถุงูŠุง ุงู„ู„ูŠ ุงู†ุช ูˆ ู…ุด ู‡ุชู„ุงู‚ูŠSoftware tool
207
00:19:24,370 --> 00:19:32,810
ุงู„ู„ู‰ ุชุฑูŠุญูƒ ู…ู† ู‡ุฐุง ุงู„ุชุญุฏูŠ ุงู†ุช ุตูŠุงุฌุฏูƒ ู„ู„ rules ู„ู„
208
00:19:32,810 --> 00:19:36,110
grammar ุฃุณู ู„ู„ grammar ุจุชุจู‚ู‰ ุฎุงู„ูŠุฉ ู…ู† ุงู„ ambiguity
209
00:19:36,110 --> 00:19:41,110
ุจุนุฏ ู…ุง ุชุตูŠุบุฑ ุงู„ grammar ุจุชุฑูˆุญ ุจุชุฏุฎู„ู‡ุง ุนู„ู‰ ุงู„
210
00:19:41,110 --> 00:19:47,010
generator tool ุนุดุงู† ุงู„ generator ูŠุนู…ู„ ู„ูƒ ุงู„ parser
211
00:19:47,010 --> 00:19:51,350
ู†ู‚ุทุฉ ุชุงู†ูŠุฉ ู‡ุฐู‡ ุงู„ู†ู‚ุทุฉ ุงู„ุฃูˆู„ู‰ ูƒุงู†ุช ูŠุงุด ambiguity
212
00:19:57,600 --> 00:20:09,780
ุงู„ู†ู‚ุทุฉ ุงู„ุชุงู†ูŠุฉ ุงู„ู„ูŠ ู‡ูŠ left recursion left
213
00:20:09,780 --> 00:20:13,860
recursion ุงู†ู‡ ุงุญู†ุง ู†ู„ุงู‚ูŠ ุงู† ูŠุจู‚ู‰ ููŠ ุนู†ุฏูƒ ููŠ ุงู„ ..
214
00:20:13,860 --> 00:20:16,380
ูˆู‡ุฐุง .. ูˆู‡ุฐุง ูƒุงู† ู…ูˆุฌูˆุฏ ู…ุนุงู†ุง ุทูˆู„ ุงู„ูˆู‚ุช ุจุณ ุงุญู†ุง
215
00:20:16,380 --> 00:20:20,540
ู…ุงูƒู†ุงุด ู†ุฏุฌูƒ ุทูˆู„ ุงู„ูˆู‚ุช ูƒุงู† ูŠุจู‚ู‰ ููŠ ูƒู„ ุงู„ grammar
216
00:20:20,540 --> 00:20:26,720
ุงู„ู„ูŠ ู…ุฑุช ุนู„ูŠู†ุง ูƒุงู† ููŠู‡ุง left recursionู„ู…ุง ูŠุจุฌู‰ ุงู„
217
00:20:26,720 --> 00:20:33,160
non terminal ู†ูุณู‡ ูŠุธู‡ุฑ ูƒู‡ุฏ ู„ู„ body ุชุจุนุชู‡ ุงู„ body
218
00:20:33,160 --> 00:20:35,900
ุชุจุนุชู‡ ุงู„ production ุชุจุนุชู‡ ู‡ุฐุง ุงุณู…ู‡ left recursion
219
00:20:35,900 --> 00:20:43,380
ุญูŠุซ ุงู„ E ู‡ู†ุง ูŠุธู‡ุฑ ู‡ูˆ ู†ูุณู‡ ูˆ ุงู„ู„ูŠ ุชุญุชู‡ ูˆ ุงู„ู„ูŠ ุชุญุชู‡
220
00:20:43,380 --> 00:20:48,380
ุชู…ุงู…ุŸ ู‡ุฐุง ู…ุดูƒู„ุฉ ู„ูŠุด ู…ุดูƒู„ุฉุŸ ู„ุฃู†ู‡ ุงุชุฎูŠู„ ุงู†ุช ุนุงู…ู„ ู„ูƒู„
221
00:20:48,380 --> 00:20:53,200
ูˆุงุญุฏ ู…ู† ุงู„ non terminals ู‡ุฏู‡ ุนุงู…ู„ู‡ู… ุงู„ recursive
222
00:20:53,200 --> 00:20:57,900
descent function ุชุจุนุชู‡recurse of descent ูŠุนู†ูŠ ุงู„
223
00:20:57,900 --> 00:21:03,400
function ุจุชุณุชุฏุนูŠ ู†ูุณู‡ุง ุจู†ุดูˆู ุงุญู†ุง ุงูŠ E ุจุฑูˆุญ ู†ุณุชุฏุนูŠ
224
00:21:03,400 --> 00:21:07,540
ุงู„ function ุชุจุน ุงู„ E ุงู„ E ู‡ุฐู‡ ุจุชุจุฏุฃ ุชุงุฎุฏ ุงู„
225
00:21:07,540 --> 00:21:12,940
children ุชุจุนู‡ ู…ู† ุงู„ E ู‡ุชุดูˆู ุงูˆู„ child ู…ูŠู† ุงู„ E
226
00:21:12,940 --> 00:21:17,520
ู‡ุชุฑูˆุญ ุชุณุชุฏุนูŠ ู†ูุณู‡ุง ุจุนุฏ ู…ุง ุชุณุชุฏุนูŠ ู†ูุณู‡ุง ู‡ุชุฑูˆุญ ุนู„ู‰
227
00:21:17,520 --> 00:21:21,160
ุจุฑุถู‡ ุงู„ production ู‡ูŠ ุชุนู…ู„ ุนู„ูŠู‡ุง children ูˆุชู„ุงู‚ูŠ
228
00:21:21,160 --> 00:21:25,620
ุฏุงูŠู…ุง ุนู†ุฏูŠ ุจุงู„ุบุฑุจ ุงู„ Eุฃูˆู„ ูˆ ุฃุญุฏ ูู‡ุฐุง ุงุณุชุฏุงุก ุฐุงุชูŠ ูˆ
229
00:21:25,620 --> 00:21:31,980
infinite ู…ุธู„ูˆู… ุจุชู†ู…ูŠุฉ ุจุงู„ู…ุนู†ู‰ ูู„ุงุฒู… ูŠุฒุงู„ ุงู„ left
230
00:21:31,980 --> 00:21:37,900
recursion ู‡ุฐุง okay ูุงู„ู‚ุงุนุฏุฉ ุงู„ุนุงู…ู„ุฉ ุงู„ู„ูŠ ู‡ูŠ ุฃู†ู‡
231
00:21:37,900 --> 00:21:42,320
ู„ู…ุง ูŠู…ูƒู† ููŠ ุฃู†ุฏูŠ left recursion ุฒูŠ ู‡ูŠูƒุง ู‡ูŠ ุงุชูˆุง a
232
00:21:42,320 --> 00:21:51,540
has the form a ู…ุทุจูˆุนุฉ ุจุตู… .. ู…ุทุจูˆุนุฉ ุจุตู… ุงูŠุดsome
233
00:21:51,540 --> 00:21:56,660
sequence of symbols ุงู„ุฃู„ูุฉ ู‡ู†ุง ุจุชุชุฐูƒุฑูˆุง ู„ู…ุง ูƒู†ุง
234
00:21:56,660 --> 00:22:03,820
ุจู†ุญูƒูŠ ููŠ ุงู„ convention ูƒู†ุง ุจู†ู‚ูˆู„ ุฃู†ู†ุง
235
00:22:03,820 --> 00:22:08,960
ุจู†ุณุชุฎุฏู… ุงู„ Greek letters small small case ุฃูˆ lower
236
00:22:08,960 --> 00:22:14,620
case Greek letters ู„ู„ุฅุดุงุฑุฉ ุฅู„ู‰ ุฅูŠุด ุฅู„ู‰ ู…ุฌู…ูˆุนุงุช ุงู„
237
00:22:14,620 --> 00:22:19,670
symbols ุฃูˆ ุณู„ุณู„ ุงู„ symbols ูŠุนู†ูŠ ุงู„ sequenceุงู„ู„ูŠ ู‡ูˆ
238
00:22:19,670 --> 00:22:24,310
ูƒูŠุณ ูƒุฑูŠุช ูƒู„ุชุฑุฒ Alpha ูˆ Beta ูˆ Gamma to represent
239
00:22:24,310 --> 00:22:30,750
ุงู„ู„ูŠ ู‡ูˆ strings of symbols ูˆ ู‡ุงุฏ ุงู„ strings of
240
00:22:30,750 --> 00:22:35,830
symbols ู‡ุงุฏ
241
00:22:35,830 --> 00:22:40,950
ุงู„ strings of symbols ู…ู…ูƒู† ุชุจู‚ู‰ ุงูŠุงุด terminals ูˆ
242
00:22:40,950 --> 00:22:47,090
non terminals ุฎู„ูŠุท ูุงู†ุง ูƒุงู† ุงู†ุง ู‡ู†ุง ู„ู…ุง ุงู‚ูˆู„ ุงูŠู‡
243
00:22:47,090 --> 00:22:54,610
capitalุงู„ูุฉ ูŠู‚ุตุฏ ุจูŠู‡ุง ุฃูŠ ุดูŠุก ุงูŠ sequence of
244
00:22:54,610 --> 00:23:06,010
symbols ุตุญ ูŠุนู†ูŠ
245
00:23:06,010 --> 00:23:09,550
ู‡ู†ุง ุชุทุจู‚
246
00:23:09,550 --> 00:23:13,890
ู‡ุฐุง ุงู„ุตูŠุบุฉ ุนู„ู‰ ู‡ุฐุง ุงู„ูƒู„ุงู… E can have the form E
247
00:23:13,890 --> 00:23:14,890
plus T
248
00:23:17,940 --> 00:23:30,160
ูˆู‡ูŠ ุงูŠู‡ุŸ ูˆูŠู† ุงู„ูุฉุŸ ุงู„ูุฉ ู‡ูŠ plus ุตุญุŸ ูŠู‚ุตุฏ ู‡ูŠ
249
00:23:30,160 --> 00:23:33,680
sequence of ุฃูŠ combination of terminals ูˆ non
250
00:23:33,680 --> 00:23:38,160
terminals ู„ูˆ ุฅุฐุง ููŠ ุนู†ุฏูŠ ุฅูŠุด ุฒูŠ ู‡ุฐุง ุงู„ุญุงู„ุฉ ุฃุณุชุทูŠุน
251
00:23:38,160 --> 00:23:41,520
ุฃู† ุฃุตู„ุญ ู‡ุฐุง ุงู„ู…ุดูƒู„ุฉ ู‡ุฐุง ุงู„ู…ุดูƒู„ุฉ ู„ูŠุดุŸ ู„ุฃู† ุงู„ non
252
00:23:41,520 --> 00:23:47,350
terminal ุฌุงูŠููŠ ุฑุฃุณ ุงู„ body ุชุจุน ุงู„ production ุชุจุน
253
00:23:47,350 --> 00:23:51,670
ุงู„ุชุฑู…ูŠู„ุงู†ูŠ ุชุฎูŠู„
254
00:23:51,670 --> 00:23:56,790
ุฃูŠุถุง ุฃู† ู‡ูˆ ู†ูุณู‡ another production ู„ูŠุณ ููŠู‡ุง ู…ุดูƒู„ุฉ
255
00:23:56,790 --> 00:24:02,230
ู†ุณู…ูŠู‡ุง ู†ุฑู…ุฒ ู„ู„ body ุชุจุน ุงู„ production ุงู„ุฃุฎุฑู‰ ุจ
256
00:24:02,230 --> 00:24:05,590
Beta Beta ู‡ูˆ ุงู„ body ุชุจุน ุงู„ production ุชุจุน ุงู„
257
00:24:05,590 --> 00:24:09,070
production ุงู„ุฃุฎุฑู‰ ู„ุฃ ู†ูุณ ุงู„ non terminal ู…ุงููŠู‡ุงุด
258
00:24:09,070 --> 00:24:15,040
left recursionุงุณุชู†ุงุฏ ุงู„ู‰ ูˆุฌูˆุฏ ู‡ุฐู‡ ุงู„ production
259
00:24:15,040 --> 00:24:19,020
ุงู„ุฃุฎุฑู‰ ุฃุณุชุทูŠุน ุฃู† ุฃุนุงู„ุฌ ู…ุดูƒู„ุฉ left recursion ุจุฅู†ู‡
260
00:24:19,020 --> 00:24:30,000
ุฃุณุชุญุฏุซ ู†ู…ุท ู…ู† ุงู„ุขุฎุฑ ุฃุณู…ูŠู‡ A' ูˆ ุฃู‚ูˆู„ ุงู„ A ุงู„ A ุฃุญูˆู„
261
00:24:30,000 --> 00:24:35,440
ู‡ุฐู‡ ุฅู„ู‰ ุฅูŠุด ุฅู„ู‰ ูˆุงุญุฏุฉ ุฃุฎุฑู‰ ุจุฌูŠุจ ุงู„ beta ุงู„ู„ูŠ ู…ุงููŠุด
262
00:24:35,440 --> 00:24:41,220
ููŠู‡ุง ุฃูŠ ู…ุดูƒู„ุฉ ูˆ ุจุญุท A' ุจุนุฏู‡ุงุจุนุฏูŠู† a prime ุจุนุฑูู‡
263
00:24:41,220 --> 00:24:49,380
ุนู„ู‰ ุฃู†ู‡ ู‡ูˆ ุงู„ alpha ู…ุทุจูˆุนุฉ ุจ a prime ูˆ
264
00:24:49,380 --> 00:24:56,540
ุจุญุท ุงู„ production ุฌุฏูŠุฏุฉ epsilon ูŠุนู†ูŠ
265
00:24:56,540 --> 00:24:59,940
ุจุงู„ุฒู…ู†
266
00:24:59,940 --> 00:25:04,340
ูŠูƒูˆู† ููŠ production ุฃุฎุฑู‰ ู…ุงููŠุด ููŠู‡ุง ู…ุดูƒู„ุฉ ู‡ุฐู‡ ุงู„
267
00:25:04,340 --> 00:25:07,600
production ููŠู‡ุง ู…ุดูƒู„ุฉ ุจุงู„ุฒู…ู† ูŠูƒูˆู† ููŠ ูˆุงุญุฏุฉ ุฃุฎุฑู‰
268
00:25:07,600 --> 00:25:12,180
ู…ุงููŠุด ููŠู‡ุง ู…ุดูƒู„ุฉ ุนุดุงู† ุฃู‚ุฏุฑ ุฃู‚ุงู„ุฌุทุฑูŠู‚ุชูŠ ู„ู„ู…ุนุงู„ุฌุฉ ุงู†
269
00:25:12,180 --> 00:25:17,940
ุงู†ุง ุจุงุณุชุญุฏุซ non terminal ุฌุฏูŠุฏ ู„ุงู† ุงู„ production
270
00:25:17,940 --> 00:25:26,800
ุงู„ุฃุตู„ูŠุฉ ุงู„ู„ู‰ ุจุชุจุฏุฃ ุจุงู„ A ุจุฌูŠุจ ุงู„ A ูˆ ุจุฌูŠุจ ุงู„ body
271
00:25:26,800 --> 00:25:33,460
ุงู„ุณู„ูŠู… ูˆ ุจุงุชุจุนู‡ ุจุงู„ non terminal ู…ุณุชุญุฏุซ ู‡ุฐุง ูˆ ู‡ุฐุง
272
00:25:33,460 --> 00:25:39,180
ุงู„ู…ุณุชุญุฏุซ ุจุฑูˆุญ ุจู‚ุฑูู‡ ุนู„ู‰ ุงู† ู‡ูˆุงู„ู€ body ุงู„ู€
273
00:25:39,180 --> 00:25:44,120
remainder ุงู„ู€ remainder ูŠุนู†ูŠ ุงู„ุฌุฒุก ุงู„ุจุงู‚ูŠ ู…ู† ุงู„
274
00:25:44,120 --> 00:25:50,680
production ุงู„ู„ูŠ ููŠู‡ุง ู…ุดูƒู„ุฉ ู…ุน ู‡ูˆ ู†ูุณู‡ ุซู… ููŠ ุงู„ุขุฎุฑ
275
00:25:50,680 --> 00:25:55,620
ุจุถูŠู production epsilon ูŠุนู†ูŠ ู‚ุจู„ุช ุงู„ูƒู„ุงู… ู‡ุฐุง ุนู„ู‰
276
00:25:55,620 --> 00:26:02,740
ุงู„ E ู‚ุจู„ุช ุงู„ูƒู„ุงู… ู‡ุฐุง ุนู„ู‰ ู‡ุฐู‡ ุงู„ E ูƒู†ุจุฉ form E plus
277
00:26:02,740 --> 00:26:08,210
T ุงุชูู‚ู†ุง ุนู„ู‰ ุงู†ู‡ ู‡ุฐุง ู‡ูˆ ุงู„ A ูˆู‡ุฐุง ู‡ูˆ ุงู„ Aูˆู‡ุฐุง ู‡ูˆ
278
00:26:08,210 --> 00:26:17,130
ุงูŠุด ุงู„ alpha ูˆูŠู† ุงู„ betaุŸ
279
00:26:17,130 --> 00:26:23,890
ูˆูŠู† ุงู„ betaุŸ ุงู„ beta ู„ุงุฒู… ูŠูƒูˆู† ููŠู‡ production ุฃุฎุฑ
280
00:26:23,890 --> 00:26:28,150
ู„ู„ E ู…ุงููŠุด ููŠู‡ุง left recurrent ุทุจ ู†ูุชุฑุถ ุฃู†ู‡ ู…ุงููŠุด
281
00:26:28,150 --> 00:26:34,800
ููŠู‡ุง ู…ุงู‚ุฏุฑุด ุทุจุนุง ู…ุงู‚ุฏุฑุด ุชู…ุงู…ุŸุงู„ุงู† ู‡ู†ุง ููŠ ุงู„ู€
282
00:26:34,800 --> 00:26:41,260
Grammar ุงู„ุฃู…ุงู…ูŠ ููŠ ุงู†ุฏู‰ production ููŠ Beta ููŠ ุงู„ู€
283
00:26:41,260 --> 00:26:47,620
T ู†ุนู… ุงู„ู€ T ู‡ุฐุง ุงู„ู€ T ู„ุญุงู„ุฉ ู‡ูŠ ุงู„ Beta ุฎู„ุงุต ุงู„ุงู†
284
00:26:47,620 --> 00:26:54,320
ูƒูŠู ุจุชุนุงู„ุฌ ุจุฌูŠุจ ุงู„ E ูˆ ุจู‚ูˆู„ E ุจุญุท ุงู„ Beta ู…ุทู…ูˆุนุฉ
285
00:26:54,320 --> 00:27:01,100
ุจุงู„ู…ุณุชุญุฏุซ ุงู„ู„ูŠ ู‡ูˆ E Prime ุงู„ู…ุณุชุญุฏุซ ู‡ุฐุง ูŠุงุฎุฏ Alpha
286
00:27:01,100 --> 00:27:08,230
ุงู„ู„ูŠ ู‡ูŠ ุฅูŠุด Alphaูู‡ูŠ ุนู†ุฏูƒ Z ูˆ T ุงูŠูˆุฉ Z ูˆ T ุจุงุชุจุนู‡
287
00:27:08,230 --> 00:27:15,110
ุจุงู„ E Prime ุซู… ููŠ ุงู„ุขุฎุฑ ุงูˆ
288
00:27:15,110 --> 00:27:23,210
ุจุญุทู‡ ุงูˆ ุจุญุทู‡ ู‡ูŠุงุชู‡ ุนุงู…ู„ ุงู„ูƒู„ู…ุฉ ู‡ุฐุง ู„ุฃ ุงู„ E Prime
289
00:27:23,210 --> 00:27:29,410
ูู‡ูŠุงุชู‡ ุงู„
290
00:27:29,410 --> 00:27:37,030
E Prime ุงู„ E Primeุฃู‡ ุงู†ุง ุญุงุทุท ุงูŠู‡ ู‡ุงุฏ ู„ุงุฒู… ุชุจู‚ูŠ
291
00:27:37,030 --> 00:27:40,810
ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡
292
00:27:40,810 --> 00:27:44,970
ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡
293
00:27:44,970 --> 00:27:45,090
ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡
294
00:27:45,090 --> 00:27:45,310
ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡
295
00:27:45,310 --> 00:27:50,690
ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡ ุงูˆู‡
296
00:27:50,690 --> 00:27:55,330
ุงูˆู‡
297
00:27:55,330 --> 00:27:59,730
ุงูˆู‡ ุงูˆ
298
00:27:59,960 --> 00:28:03,860
ู…ุด ุฌุงู‡ุฒ ูƒุจุฏุงูŠุฉ ุงู„ body ูƒุจุฏุงูŠุฉ ุงู„ body ุฏู‡ ุฃูŠู‡ ุจู‚ู‰
299
00:28:03,860 --> 00:28:09,220
okay ูƒูˆูŠุณ okay ู‡ุฐุง ุงู„ุฃู† ุงู„ left recursion in
300
00:28:09,220 --> 00:28:15,160
general ุจู‚ุฏุฑ ุฃุนู…ู… ุงู„ู‚ุถูŠุฉ ู‡ุฐู‡ ู„ูŠู‡ ุจู‚ุฏุฑ ุฃุนู…ู…ู‡ุง ูŠุนู†ูŠ
301
00:28:15,160 --> 00:28:21,660
ุบุงู„ุจุง ุบุงู„ุจุง ุจุบูŠุฑ ุฃู† ุงู†ูŠ ุจุณ ู…ุฌุฑุฏ ูˆุงุญุฏ ูู‚ุท ุงู„ู„ูŠ ููŠู‡ุง
302
00:28:21,660 --> 00:28:25,740
left recursion ุงู„ non terminal ูŠู„ูˆ ุฎู…ุณุฉ ุณุชุฉ ุนุดุฑุฉ
303
00:28:25,740 --> 00:28:30,550
productions ุจุนุถ ู…ู†ู‡ู… ููŠ left recursionูˆ ุจุนุถ ..
304
00:28:30,550 --> 00:28:33,750
ูŠุนู†ูŠ ู…ู…ูƒู†ุด ููŠู‡ ุฃุฏู‰ Beta ูˆุงุญุฏุฉ ุฃูƒุชุฑ ู…ู† Beta Beta
305
00:28:33,750 --> 00:28:37,350
ู‡ุฏูˆู„ ุงู„ู„ูŠ ู…ุงููŠุด ููŠู‡ู… left recursion ู†ูุณ ุงู„ู„ูŠ ู…ุงุช ูˆ
306
00:28:37,350 --> 00:28:42,510
ุจุนุถ ุฃุฎุฑ ููŠู‡ู… left recursion ู in general ู„ูˆ ุนู†ุฏู‰
307
00:28:42,510 --> 00:28:46,250
ุฃู†ุง non terminal ูˆ ููŠู„ู‡ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ productions
308
00:28:46,250 --> 00:28:49,790
ู‡ุฐู‡ one production another production ูˆ ู‡ุฏูˆู„ ุงู„
309
00:28:49,790 --> 00:28:56,110
productions ููŠู‡ู… left recursion ูˆ ุฃุฎุฑูŠุงุช ู…ุงููŠุด
310
00:28:56,110 --> 00:29:04,770
ููŠู‡ู… ุจู‚ุฏุฑ in generalุนู…ู‘ู… ุงู„ู…ุนุงู„ุฌุฉ ุจู‚ูˆู„ ุงู†ู‡ ุจุฌูŠุจ ุงู„
311
00:29:04,770 --> 00:29:11,650
betas ูƒู„ู‡ู… ูˆุจุงู„ุญู… ุจูŠู‡ู… ุจู„ุตู‚ ุจูŠู‡ู… ุงู„ู…ุณุชู‡ุฏู ุงูŠ beta
312
00:29:11,650 --> 00:29:16,090
ูˆุงุญุฏ ู…ุนุงู‡ุง a prime beta ุงุชู†ูŠู† a prime ู„ู‡ุง ุงุฎุฑ beta
313
00:29:16,090 --> 00:29:25,130
ุซู… a prime ู‡ุฐุง ุงู„ู…ุณุชู‡ุฏู ุจุฌูŠุจ ุงู„ุงู„ูุฒ ูˆุจุญุทู‡ ุญุณุจ ุงู„
314
00:29:26,510 --> 00:29:32,630
ูˆุฑุงู‡ู… ู‡ู… ุทุจุนุง ุนุฏุฏู‡ู… ู…ุฎุชู„ู ู†ู‚ูˆู„ ุนู† ุนุฏุฏ ุงู„ betas ุตุญุŸ
315
00:29:32,630 --> 00:29:37,910
ูˆู‡ูŠ ุงู„ .. okay ู‡ุฐุง ุงู„ุณู„ูˆุจ ู…ุนุงู„ุฌุฉ ุงู„ู„ูŠ ู‡ูˆ ุงู„ left
316
00:29:37,910 --> 00:29:45,530
recurge ุงูŠูˆุฉ ููŠ ุงู„ุฃุฎุฑ ุจุงู„ุธุจุท ููŠ ุงู„ .. okay ูุงู„ุงู†
317
00:29:45,530 --> 00:29:51,990
ู‡ุฐุง ุงู„ูƒู„ุงู… ู„ุณู‡ ุฌุฒุก ู…ู† ู…ุดูƒู„ุฉ ุงู„ left recurge ู‡ุฐุง
318
00:29:51,990 --> 00:29:55,900
ุจู†ุณู…ูŠู‡ immediate left recurgeู…ู…ูƒู† ุงู„ left
319
00:29:55,900 --> 00:30:02,380
recursion ูŠุจู‚ู‰ ู…ุชุฎุจูŠุŒ
320
00:30:02,380 --> 00:30:08,660
ู…ุจุทู†ุŒ ู…ุคุฌู„ุŒ ูƒูŠู ูŠุนู†ูŠุŸ ูŠุนู†ูŠ ู…ุซู„ุง ู‡ู†ุงุŒ ุงู„ grammar
321
00:30:08,660 --> 00:30:13,980
ู‡ุฐู‡ุŒ ููŠ ุนู†ุฏูŠ left recursion ูˆุงุถุญ ุญูŠุงุชู‡ุŒ ู‡ุฐุง
322
00:30:13,980 --> 00:30:21,260
immediateุŒ ุตุญุŸ ู„ูƒู† ููŠ left recursion ุฃุฎุฑ ู…ุจุทู†ุŒ
323
00:30:21,260 --> 00:30:27,030
ุงู„ู„ูŠ ู‡ูˆ ู„ูˆ ุฃุญู†ุง ุฌูŠู†ุง ูˆู‚ู„ู†ุง ุงู„ Swe derive ู…ู† S we
324
00:30:27,030 --> 00:30:35,170
derive A capital A plus ุซู… ุจุนุฏ ุฐู„ูƒ ู‡ุฐุง non
325
00:30:35,170 --> 00:30:39,570
terminal ุจู†ุณุชุจุฏู„ู‡ ุจูˆุงุญุฏ ู…ู† ุงู„ production ุณุจุนุชูŠู†
326
00:30:39,570 --> 00:30:43,890
ุงู„ู„ูŠ ู‡ูŠ ู‡ุฐู‡ ุดูŠู„ู†ุง
327
00:30:43,890 --> 00:30:49,610
ุงู„ A ูˆ ุญุทูŠู†ุง S D ุฃุตุจุญ ุนู†ุฏูŠ S D ูˆ ุจุนุฏูŠู† ุงู„ A small
328
00:30:49,610 --> 00:30:53,570
ู†ุฒู„ุช ู‡ุฐุง lift recursion ูˆู„ุง ู…ุด lift recursion
329
00:31:09,280 --> 00:31:13,020
ุงู„ู€ S ุชุณุชุฏุนูŠ ู†ูุณู‡ุง ู…ุฑุฉ ูˆ ู…ุฑุฉ ูˆ ู…ุฑุฉ
330
00:31:23,330 --> 00:31:27,750
ุฃู†ุง ู„ุงุฒู… ุฃุฎุฏ ุจุงู„ูŠ ู…ู†ู‡ ู‡ุฐุง ุงู„ุฎููŠ ุงู„ left recursion
331
00:31:27,750 --> 00:31:38,530
ุงู„ุฎููŠ ูˆ ุฃุนุงู„ุฌู‡ ูููŠ ุฃู† ู‡ู†ุง ุงู„
332
00:31:38,530 --> 00:31:43,190
algorithm ู‡ุฐู‡ ู„ eliminating left recursion ุนู…ูˆู…ุง
333
00:31:43,190 --> 00:31:51,410
ุจุตูุฉ ุนุงู…ุฉ ุจุตูุฉ ุนุงู…ุฉ ูุฅุฐุง ูƒุงู† ูˆุฌุฏ immediate ูˆู„ุง ุฅุฐุง
334
00:31:51,410 --> 00:31:51,890
ูˆุฌุฏ
335
00:31:57,590 --> 00:32:01,210
ุงู„ุฃูŠุฌุงุฑูˆูู… ู‡ุฐู‡ ุจุชุงุฎุฏ ุงู„ grammar ุนู„ู‰ ุนู„ู‘ุงุชู‡ุง ูˆ
336
00:32:01,210 --> 00:32:05,410
ุจุชุทู„ุน ู„ู†ุง grammar ุฎุงู„ูŠุฉ ู…ู† left recursion ุงู„
337
00:32:05,410 --> 00:32:09,650
output is an equivalent grammar with no left
338
00:32:09,650 --> 00:32:16,190
recursion ุงู„ุฃู„ูŠู‡ ุชุจุนุชู‡ุง ุฃู†ู†ุง ุจู†ุงุฎุฏ ุงู„ non
339
00:32:16,190 --> 00:32:20,220
terminals ูƒู„ู‡ุง ุงู„ู„ูŠ ููŠ ุงู„ grammarุงู„ grammar ุชุจุนุชู†ุง
340
00:32:20,220 --> 00:32:22,820
ู‡ูŠ ู†ุงุฎุฏ ู‡ุฐู‡ ุนู„ู‰ ุณุจูŠู„ ุงู„ู…ุซุงู„ ู‡ุงูŠ ุงู„ grammar ู‡ุฐู‡
341
00:32:22,820 --> 00:32:32,720
ู†ูƒุชุจู‡ุง ู‡ู†ุง ุนู„ู‰ ุฌุงู†ุจ ู‡ุงูŠ ุงู„ S S
342
00:32:32,720 --> 00:32:38,840
can have a form ุงูŠุด A capital A small ูˆ
343
00:32:38,840 --> 00:32:44,540
ุจุฑุถู‡ ุงู„ S can have a form ุงูŠุด B ุจุนุฏูŠู† A can have a
344
00:32:44,540 --> 00:32:51,560
form A capital CA can have the form S D ูˆ A can
345
00:32:51,560 --> 00:32:55,760
have the form Epsilon ู†ุดู„ู‡ุง ู„ุฃู† ุงู„ algorithm ู‡ุฐู‡
346
00:32:55,760 --> 00:32:59,600
ุจุชู‚ูˆู„ ู„ูŠ ุฎุฏ ูƒู„ ุงู„ non terminal ุงู„ู„ูŠ ุนู†ุฏูƒ ูˆ ุฑุตู‡ู… ููŠ
347
00:32:59,600 --> 00:33:03,020
ู„ูŠุณุชุฉ ุงูƒู… non terminal ุนู†ุฏูŠ ุงู†ุง ู‡ู†ุง ููŠ ู‡ุฐู‡ ุงู„
348
00:33:03,020 --> 00:33:11,700
grammar ุฎู…ุณุฉ ุณุชุฉ ุงู‚ู„ ุงูƒุชุฑ ุงู‚ู„ ู…ู† ุฎู…ุณุฉ ุงุชู†ูŠู† ุงู„ S ูˆ
349
00:33:11,700 --> 00:33:17,380
ุงู„ A ุงู„ S capital ูˆ ุงู„ A capitalู‡ุคู„ุงุก ุงู„ู„ูŠ ู„ู…
350
00:33:17,380 --> 00:33:21,640
ุงู†ุชู‡ู‰ ู…ู† ุนุฒูŠุฒูŠ ุนู†ุฏูŠ ุจุฑุตู‡ู… ู…ู† ุงู„ุทุจูŠุนูŠ ู†ุจุฏุฃ ุจุงู„
351
00:33:21,640 --> 00:33:26,320
start symbol ูˆ ุจุนุฏูŠู† ุงูŠุด ุงู„ู„ูŠ ุจุนุฏู‡ ููŠู‡ ุบูŠุฑ ู…ููŠุด
352
00:33:26,320 --> 00:33:34,820
ูŠุนู†ู‰ ุจุชู‚ูˆู„ูŠ ุงู„ุฃู† ุชุงุฎุฏ ุงู„ุฃูˆู„ุงู†ูŠ ูˆ
353
00:33:34,820 --> 00:33:39,960
ุชุจุต ุนู„ู‰ ุงู„ู„ูŠ ุฌุงุจู„ู‡ ุงู„ุฃูˆู„ุงู†ูŠ ู‡ุฐุง ู…ููŠุด ูŠุฌุงุจู„ู‡ ุงู†ุณู‰
354
00:33:39,960 --> 00:33:46,770
ุงู„ุญูƒุงูŠุฉ ุชูƒู„ู‡ุง ุฎุฏ ุงู„ุชุงู†ูŠ ูˆ ุจุต ุนู„ู‰ ุงู„ู„ูŠ ุฌุงุจู„ู‡ุฅุฐุง
355
00:33:46,770 --> 00:33:49,990
ูˆุฌุฏุช ุงู„ุชุงู†ูŠ ู‡ุฐุง ุงู„ู„ูŠ ุฃู†ุช ูˆุงู‚ู ุนู„ูŠู‡ ู‡ู„ ุงู„ู„ูŠ ุฃู†ุช
356
00:33:49,990 --> 00:33:59,470
ูˆุงู‚ู ุนู„ูŠู‡ ุจู†ุณู…ูŠู‡ I ูˆุงู„ู„ูŠ ุฌุงุจู„ู‡ ู‚ุฏ ูŠูƒูˆู† ุนู†ุฏูŠ ุฃุฑุจุนุฉุŒ
357
00:33:59,470 --> 00:34:02,490
ุชู„ุงุชุฉุŒ ุงุชู†ูŠู†ุŒ ูˆุงุญุฏุŒ ุฎู…ุณุฉุŒ ุนุดุฑุŒ ุนุดุฑูŠู†ุŒ ูƒู„ ูˆุงุญุฏ ู…ู†ู‡ู…
358
00:34:02,490 --> 00:34:11,790
ุจู†ุณู…ูŠู‡ J ุฃู†ุง ุนู†ุฏูŠ ุจุณ ู‡ุฐุง ู‡ุฐุง J ู‡ุฐุง J ุฅุฐุง ุจุฏูƒ ุชุทู„ุน
359
00:34:11,790 --> 00:34:19,790
ุนู„ู‰ ุงู„ production ุณุจุนุฉ Iุฅุฐุง ู„ุฌูŠุช ูˆุงุญุฏุฉ ู…ู†ู‡ู… ุฌุงูŠ
360
00:34:19,790 --> 00:34:31,950
ุจู‡ุฐุง ุงู„ุดูƒู„ ุฌุงูŠ
361
00:34:31,950 --> 00:34:37,630
ุจู‡ุฐุง ุงู„ุดูƒู„ ู„ุฅู†ู‡ A ู„ุฅู†ู‡
362
00:34:37,630 --> 00:34:44,090
J ุฌุงูŠ head ู„ู„ุจู‚ูŠุฉ ุชุจุนู‡ุง ุฃู†ุง ู‚ู„ุช ู„ู‡ ุจุฏูƒ ุชุฌู‡ุŒ ููŠู‡
363
00:34:44,090 --> 00:34:49,980
ุนู†ุฏูƒ ู…ุดูƒู„ุฉุงู„ู€ a, j ูˆ ุงู„ a, a, a, a, a, a, a, a, a,
364
00:34:49,980 --> 00:34:50,020
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
365
00:34:50,020 --> 00:34:50,860
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
366
00:34:51,180 --> 00:34:54,300
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
367
00:34:54,300 --> 00:34:58,220
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
368
00:34:58,220 --> 00:34:58,280
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
369
00:34:58,280 --> 00:35:12,700
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a
370
00:35:16,710 --> 00:35:29,090
ุฅุฐุง ูˆุฌุฏุช ูˆุงุญุฏุฉ ู…ู†ู‡ู… ูŠุธู‡ุฑ ู‡ุฐุง ููŠ ุนู„ู‰ ุฑุฃุณู‡ุง ูู‡ู†ุงูƒ
371
00:35:29,090 --> 00:35:37,290
ู…ุดูƒู„ุฉ ูˆู‡ุฐุง ู…ุชุญู‚ู‚ ู‡ู†ุง ู„ุฃู†
372
00:35:37,290 --> 00:35:43,610
ู‡ุฐู‡ ู…ุดูƒู„ุฉ lift recursion ู…ุจุทู† ุฃูˆ ู…ุคุฌู„ุจุฏุงูƒ ุชุนุงู„ุฌู‡ุง
373
00:35:43,610 --> 00:35:47,890
ูƒุฏู‡ ุจุฏุงูƒ ุชุนุงู„ุฌู‡ุง ู‡ุงูŠ ุงู„ู…ุนุงู„ุฌ ุชุจุนู‡ุง ุจุณ ุงุญู†ุง ู…ุชูู‚ูŠู†
374
00:35:47,890 --> 00:35:52,410
ุนู„ู‰ ุงู†ู‡ AI ู‡ุฐุง ูŠุฑู…ุฒ ุงู„ู‰ ุงู„ู„ูŠ ู†ุทู„ู‚ ู…ู† ู‡ู†ุง ูˆู†ูุนู„ ุงู„
375
00:35:52,410 --> 00:35:56,250
M ูˆAJ ู‡ูˆ ูˆุงุญุฏ ู…ู† ุงู„ู„ูŠ ุฌุงุจู„ู‡ ูˆุงุญุฏ ู…ู† ุงู„ู„ูŠ ุฌุงุจู„ู‡
376
00:35:56,250 --> 00:35:59,870
ุงู„ู„ูŠ ุงุญู†ุง .. okayุŸ ูˆ ุฌุงูŠ .. ู‡ุฐุง ุงู„ู„ูŠ ุฌุงุจู„ู‡ ุฌุงู‰
377
00:35:59,870 --> 00:36:07,150
ู„ู„ูˆุงุณ body ู„ production ู„ .. ู…ู† ุชุงุจูˆู†ู‡ุง ู‡ุฐุง AI ู‡ุฐุง
378
00:36:07,150 --> 00:36:11,880
AI ู…ู…ูƒู† ูŠูƒูˆู† ู„ู‡ ุฒูŠ ู…ุง ู‚ู„ุช ุงุฏู‡ ู…ู† ุงู„ productionsูˆ
379
00:36:11,880 --> 00:36:15,740
ูŠุจู‚ู‰ ู‡ุฐุง ุฌุงูŠ ููŠ ูˆุงุญุฏ ู…ู†ู‡ู… ุงูˆ ููŠ ุงูƒุซุฑ ูƒูŠู ู†ุชุนุงู„ุฌ
380
00:36:15,740 --> 00:36:24,880
ุงุนุชุจุฑ ุงู„ุงู† ุงุนุชุจุฑ ุงู„ุงู† ุงู†ู‡ ู‡ุงูŠ ุงู„ a ู‚ูˆู„ู†ุง ูˆ ูƒุงู† ู‡ุฐุง
381
00:36:24,880 --> 00:36:28,460
form S ูˆ ุงู„ุจุงู‚ูŠ ุงุนุชุจุฑูˆุง ู‡ุฐุง ุงูŠุด ู‚ูˆู„ู†ุง ุฌุงู…ุน ุฌุงู…ุน
382
00:36:28,460 --> 00:36:35,860
ุงู„ุงู† ุงู„ S ู†ูุณู‡ ุจู„ู‘ู‡ ุนู„ู‰ ุงู„ production ุณุจุนูˆู†ู‡ ุงู„
383
00:36:35,860 --> 00:36:44,670
production ุณุจุนูˆู†ู‡ุงุนุชุจุงุฑู‡ู… ูƒู„ู‡ sigma small 1 sigma
384
00:36:44,670 --> 00:36:49,990
small 2 sigma small 3 ุฏูˆุฑ ูƒู„ production ุณุจุจ ุงู„ S
385
00:36:49,990 --> 00:36:58,170
ู‡ุฐุง ุงู†ุง ู‡ู†ุง ุงู†ุง ุงูƒู„ ูˆุงุญุฏ ุงู†ู‡ูŠุฃุชู‡ู… ู‡ุฐูŠ sigma
386
00:36:58,170 --> 00:37:07,270
small 1 ูˆ ู‡ุฐูŠ sigma small 2 ุตุญุŸ
387
00:37:07,270 --> 00:37:09,590
ุฏุนูˆู†ูŠ ุงู‚ูˆู„ ุงูŠู‡ ุงูŠู‡
388
00:37:15,210 --> 00:37:21,530
ู…ุธุจูˆุท ุงู„ูƒู„ุงู…ุŸ ุจุฏูƒ ุชุฌูŠุจ ุงู„ุขู† ุงู„ู€Sigmas ูƒู„ูŠุงุชู‡ู… ูˆ
389
00:37:21,530 --> 00:37:25,530
ุชุญุท ูˆุฑุงู‡ู… ุงู„ู€Gamma ู‡ุฐู‡ ุงู„ production ุงู„ู„ูŠ ููŠู‡ุง
390
00:37:25,530 --> 00:37:29,350
ุงู„ู…ุดูƒู„ุฉ ุตุญุŸ ู‡ุฐู‡ ุงู„ production ุงู„ู„ูŠ ููŠู‡ุง ุงู„ู…ุดูƒู„ุฉ ูˆ
391
00:37:29,350 --> 00:37:35,390
ู„ุง ู‡ุฏูˆู„ุฉุŸ ู‡ุฏูˆู„ุฉ ู‡ูŠ ู‡ุฏูˆู„ุฉ ุจุฏูƒ ุชุฑูˆุญ ุชุณุชุจุฏู„ู‡ุง ุจุนุฏุฏ
392
00:37:35,390 --> 00:37:40,470
ูŠุณุงูˆูŠ ู‡ุฏูˆู„ุฉ ุจุนุฏุฏ ู…ู† ุงู„ production ู‡ูŠ ุงู„ู„ูŠ ุจุชู„ุชุฌ ูˆ
393
00:37:40,470 --> 00:37:48,490
ุชุณุชุจุฏู„ ุจู€A can have the formุจุชุฌูŠุจ ุงู„ุณูŠุฌู…ุง ุงู„ุฃูˆู„ู‰ ูˆ
394
00:37:48,490 --> 00:37:53,330
ุชู„ุญู‚ู‡ุง ุจุฌุฑุงู… ุงู„ุณูŠุฌู…ุง ุงู„ุซุงู†ูŠ ูˆ ุชู„ุญู‚ู‡ุง ุจุฌุฑุงู… ุฌุฑุงู…
395
00:37:53,330 --> 00:37:58,950
ุฎู„ุงุต ู‡ุงู„ู„ูŠ ุชุฑูˆุญ ูˆ ุชุณุชุจุฏู„ ุจ .. ุจู‚ุฏุงุด ุฑูŠุงู„ู†ุง
396
00:37:58,950 --> 00:38:09,470
productions ู„ู„ S ูู‡ูˆ
397
00:38:09,470 --> 00:38:13,910
ุจูŠู‚ูˆู„ ู„ูƒ replace each production of the form ูƒุฐุง
398
00:38:13,910 --> 00:38:20,060
ูƒุฐุง ู‡ุงู„ production ุฅูŠู‡ุŸูƒุงู…ู† ููŠู‡ุง ุงู„ุฎู„ุฏ replace it
399
00:38:20,060 --> 00:38:25,040
by the productions ู‡ุฏูˆู„ุฉ ุญูŠุซ ุงู† .. ุทุจ ุงู„ sigma ..
400
00:38:25,040 --> 00:38:28,280
ูŠู‚ูˆู„ ูŠุญุท sigma ุทุจ ู…ู† ุงู†ุง ุงุฌูŠุจ ุงู„ sigma ุงู„ gamma
401
00:38:28,280 --> 00:38:33,700
ู‡ูŠุชู‡ุง ุงู„ sigma ู…ู† ุงูŠู†ุŸ ุจุชุฌูŠุจู‡ุง ู…ู† ุงู„ bodies ุชุจุนูˆู†
402
00:38:33,700 --> 00:38:44,940
AJ AJ ู‡ูˆ ู…ูŠู†ุŸ ุงู„ S ุตุญุŸ ุฎู„ุงุตุŸ ุทูŠุจุŸูุงุณุชุจุฏู„ ู‡ุชู†ุทุจู‚
403
00:38:44,940 --> 00:38:48,860
ู‡ุฐุง ุงู„ูƒู„ุงู… ุนู„ู‰ ู‡ุงุฏูŠ ู…ุด ุงุญู†ุง ู‚ู„ู†ุง ู‡ุงุฏูŠ ูŠู†ุทุจู‚ ุนู„ูŠู‡ุง
404
00:38:48,860 --> 00:38:54,000
ุงู„ุฃู…ุฑ ุงู„ุงู† ู‡ุงูŠ ุงู„ S ูˆ ู‡ุงูŠ ุงู„ุฌุงู…ุนู‡ ุงู„ D ู„ุญุงู„ู‡ุง ู‡ู‰
405
00:38:54,000 --> 00:38:59,120
ุงู„ุฌุงู…ุนู‡ ุฌุงู…ุนู‡ ู…ุณุชูˆู‰ ุงู„ D ู„ูŠุด ุจู‚ูˆู„ูŠ ุจู‚ูˆู„ูŠ ุงุณุชุจุฏู„
406
00:38:59,120 --> 00:39:06,440
ู‡ุงุฏูŠ ุจู…ุฌู…ูˆุนุฉ ุนุฏุฏ ุฌุฏูŠุด ุนุฏุฏ ุงุชู†ูŠู† ุงู„ุฃูˆู„ู‰ ุญุท sigma
407
00:39:06,440 --> 00:39:13,720
ูˆุงุญุฏ ู‡ูŠ A capital A small ุซู… ุงุชุจุนู‡ุง ุจD ูˆุงู„ุชุงู†ูŠุฉุงู„ู€
408
00:39:13,720 --> 00:39:23,240
B ูˆ ุงุชุจุงุนู‡ุง ุจุงู„ู€ D ุญู„ูˆุŸ ุญู„ูˆุŸ ู…ุด ุญู„ูˆ ุนู„ู‰ ุงู„ุขุฎุฑ ู„ูŠุดุŸ
409
00:39:23,240 --> 00:39:26,820
ููŠ ู‡ู† ุฏูŠ ุงู„ุงู† immediate left recursion ุจู‚ูˆู„ ู„ูŠ
410
00:39:26,820 --> 00:39:30,420
ุฎู„ุงุตุŒ ุจุจุณุงุทุฉ ุดุฏูŠุฏุฉ eliminate ุงู„ immediate ุจุงู„ุทุฑูŠู‚ุฉ
411
00:39:30,420 --> 00:39:37,300
ุงู„ู„ูŠ ุงุชูˆุง ุญูƒูŠู†ุง ููŠู‡ุง ู‚ุถูŠุฉ ุงู„ Alpha ูˆ ุงู„ Beta ุฎู„ุงุตุŸ
412
00:39:37,300 --> 00:39:42,500
ุจุณ ุงู„ุฃูˆู„ ู„ุงุฒู… ุฃู†ุชุจู‡ ุนู„ู‰ ุงู„ non immediate left
413
00:39:42,500 --> 00:39:47,020
recursionุนู„ุดุชู‡ ู†ุชุฌ ุนู†ู‡ immediately ุฎู„ุงุต ุจู†ุนุงู„ุฌู‡
414
00:39:47,020 --> 00:39:51,460
ุงุญู†ุง ุงู„ู‚ู„ู… ุงู„ุฐุฑุน ุงู„ู„ูŠ ุชุจู‚ู‰ ู†ู‡ุงุฑ ุจุณูŠุท ู„ุฃู†ู‡ ู…ุงููŠุด
415
00:39:51,460 --> 00:39:54,080
ููŠู‡ ุงู„ุง two non-terminals ุฏู‡ ูƒุฏู‡ ุฅุฐุง ุนู†ุฏูƒ grammar
416
00:39:54,080 --> 00:39:58,200
ูƒุจูŠุฑุฉ ู‡ุชุจู‚ู‰ ููŠู‡ุง ุนุดุฑุงุช ุงู„ non-terminals ูˆ ุจุฏูƒ ุชู„ู
417
00:39:58,200 --> 00:40:06,600
ุนู„ูŠู‡ู… ุจุงู„ู‚ุงู„ูŠุฉ ู‡ุฐู‡ ูˆ ู…ุด ุฃู†ุช ุทุจุนุง ุงู„ generator ู‡ูˆ
418
00:40:06,600 --> 00:40:09,160
ุงู„ู„ูŠ ู‡ูŠุณูˆูŠ ู‡ุงู„ูƒู„ุงู… ุงู†ุช ูƒู„ ุงู„ู„ูŠ ุนู„ูŠูƒ ุชูƒุชุจ ุงู„
419
00:40:09,160 --> 00:40:09,500
grammar
420
00:40:16,500 --> 00:40:21,680
ู„ุฃู† ู‡ูˆ ุจุนุฏ ู…ุง ู‡ูˆ ู…ุณูˆูŠ ุงู„ูƒู„ุงู… ู‡ุฐุง ู„ู…ุง ุฃู†ุง ุฃุฌูŠุจ ูˆ
421
00:40:21,680 --> 00:40:24,580
ุฃุนุงู„ุฌ ุงู„ left recursion ู‡ู†ุง ุนุงุฏุฉ ุฃุณุฌู„ ุงู„ immediate
422
00:40:24,580 --> 00:40:29,280
left recursion ู‡ุงูŠ ุฎุฏ ุนู†ุฏูƒ ู‡ุฐู‡ ุณู„ูŠู…ุฉ ู‡ุฐู‡ okay
423
00:40:29,280 --> 00:40:33,920
ู…ุงููŠุด ููŠู‡ุง ู…ุดูƒู„ุฉ ู‡ุฐู‡ ุฃุชุจุนู‡ุง ุงู„ุขู† beta ู„ุฅู† ุฃู†ุง
424
00:40:33,920 --> 00:40:40,780
ุฃุนุงู„ุฌ ุงู„ immediate left recursion ู‡ุฐู‡ ุงู„ุฃู„ูุฉ
425
00:40:40,780 --> 00:40:48,750
ุตุญ ูˆู‡ุฐู‡ ุงู„ beta ูƒูŠู ู†ุนุงู„ุฌู‡ู…ุŸุจู†ู‚ูˆู„ a can have the
426
00:40:48,750 --> 00:40:54,750
form beta ู…ุทุจูˆุนุฉ ุจ alpha prime a prime ุจูŠ ุฏูŠ a
427
00:40:54,750 --> 00:41:05,730
prime ูˆ ุจุนุฏูŠู† a prime ุจูŠุณุงูˆูŠ ุจูŠุณุงูˆูŠ
428
00:41:05,730 --> 00:41:07,810
ุงู„ alpha ุจูŠุณุงูˆูŠ ุงู„ beta
429
00:41:19,400 --> 00:41:24,520
ุตุญ ุจุนุฏูŠู† Beta A'
430
00:41:24,720 --> 00:41:32,220
A ุตุบูŠุฑ ุจุนุฏูŠู† Epsilon ุฎู„ู‘ูŠ
431
00:41:32,220 --> 00:41:38,540
ุจุงู„ูƒ ุงู†ู‡ ุงุญู†ุง ุงู„ A,C,H,D ุงุตู„ุง ู…ูˆุฌูˆุฏุฉ ููŠ ุงู„ grammar
432
00:41:38,540 --> 00:41:42,940
ุจูŠู‚ูˆู„ู‡ุง ุนู„ู‰ ุญูŠุงุชู†ุง ุตุญ ุจุณ ุชุฎุฏู…ู„ู‡ุง ุนุดุงู† .. ุงู‡ ู„ุฃ ู„ุฃ
433
00:41:42,940 --> 00:41:48,530
ุงุดูŠ ุงู„ู„ูŠ ุจูŠุตูŠุฑูŠุตูŠุฑ ุงู†ู‡ ู„ู…ุง ุงุญู†ุง ูˆูŠู† ุงู„ู…ุดูƒู„ุฉ ูƒุงู†ุชุŸ
434
00:41:48,530 --> 00:41:57,210
ูƒุงู†ุช ููŠ ู‡ุงุฏูŠ ูƒุงู†ุช ุงู†ุชูŠุฌุฉ ู…ู† ุงู„ a ู‡ุงุฏูŠ ูˆ ู‡ุงุฏูŠ ุฑุงุญุช
435
00:41:57,210 --> 00:42:03,990
ู‡ุงุฏูŠ ู…ุญู„ ูˆ ู…ุญู„ ุงู„ุงุชู†ูŠู† ู‡ุฏูˆู„ู‡ ุตุญุŸ ุงู†ุชุธุฑ
436
00:42:03,990 --> 00:42:13,170
ุดูˆูŠุฉ ูƒุงู† ููŠ ุงุชุงุฑ ุงุจุณู„ูˆู† ููŠ ุงู„ุงุตู„ ุงู‡ ูƒุงู† ู…ูˆุฌูˆุฏ ู‡ูŠุชู‡
437
00:42:13,170 --> 00:42:20,700
ุตุญุŸุชู…ุงู… ูŠุจู‚ู‰ ู‡ู… ุงู„ุฃุตู„ ุชู„ุงุชุฉ ูˆุงุญุฏ ุซุงู†ูŠ ูˆุฌุฑู… ุซู„ุงุซุฉ
438
00:42:20,700 --> 00:42:25,480
ู‡ุฏูˆู„ ุงุชู†ูŠู† ูˆูŠุจู‚ู‰ ุตุงุฑ ุนู†ู‡ุง ุงู„ู…ุฌู…ูˆุนุฉ ุงู„ุขู† ู…ุฌู…ูˆุนุฉ ุงู„
439
00:42:25,480 --> 00:42:31,060
production ุณู…ุนูˆู†ูŠ ุงู„ A ู‡ู… ู‡ุฏูˆู„ุฉ ุงู„ุฑุงุจุนุฉ ู‡ุฏูˆู„ุฉ ุฑุงุญ
440
00:42:31,060 --> 00:42:33,140
ูˆุงุญุฏ ูƒุงู†ูˆุง ุชู„ุงุชุฉ ุฑุงุญ ูˆุงุญุฏ ูˆุฌุฑู… ุซู„ุงุซุฉ ู‡ุฏูˆู„ ุงุชู†ูŠู†
441
00:42:33,140 --> 00:42:37,720
ุตุงุฑ ุงู„ุฑุงุจุนุฉ ุงู„ุขู† ุฃู†ุง ููŠ ุนู†ุฏูŠ .. ุจุชุทุจู‚ ุงู„ general
442
00:42:37,720 --> 00:42:44,680
case ุงู„ immediate case ุจุชู†ุชู‡ูŠ ุนู†ุฏูŠุชู†ุชู‚ู… ููŠู‡ู…
443
00:42:44,680 --> 00:42:53,200
immediately ูู‡ุฐุง ุฃู„ู ูˆุงุญุฏ ูˆู‡ุฐุง ุฃู„ู ุงุชู†ูŠู† ูˆู‡ุฐุง beta
444
00:42:53,200 --> 00:43:03,520
ูˆุงุญุฏ ูˆู‡ุฐุง beta ุงุชู†ูŠู† ุงูŠุด ุฃุณูˆูŠ ู‡ุงูŠ ุงู„ a ุฃุญุท ุงู„
445
00:43:03,520 --> 00:43:09,480
alphas ูˆ ุจุนุฏู‡ุง ุงู„ a prime ุชู…ุงู… ู‡ุงูŠ ุงู„ alpha ุงู„ุฃูˆู„ู‰
446
00:43:09,480 --> 00:43:12,440
ูˆ ุจุนุฏู‡ุง ุงู„ a prime ุตุญูŠุญ
447
00:43:13,580 --> 00:43:19,520
ุจุนุฏูŠู† ุงู„ A' ู„ุฃ
448
00:43:19,520 --> 00:43:25,700
ุงุญู†ุง ุจู‚ูˆู„ู† ุงู„ betas ูˆ ุจุนุฏูŠู† ุงู„ A' ุงู„ betas ูˆ ุจุนุฏูŠู†
449
00:43:25,700 --> 00:43:32,140
ุงู„ A' ุงู„ BD A' ุจุนุฏูŠู† ุงู„ beta ุงู„ุชุงู†ูŠ ุงู„ู„ูŠ ู‡ูˆ ู‡ุฐุง ูˆ
450
00:43:32,140 --> 00:43:40,840
ุจุนุฏูŠู† ุงู„ A' epsilon ุจุนุฏูŠู† A' A' ุตุญุŸ okay
451
00:43:40,840 --> 00:43:47,410
ุจุนุฏูŠู† ุงู„ A'ูŠุงุฎุฏ ุงู„ form ุงูŠุด ุงู„ alpha ุจุนุฏู‡ู… a prime
452
00:43:47,410 --> 00:43:53,770
ุงู„ alpha ู‡ูŠ ุงู„ alpha ุงู„ุฃูˆู„ู‰ ุจุนุฏู‡ุง a prime ุจุนุฏูŠู† ุงู„
453
00:43:53,770 --> 00:44:00,830
alpha ุงู„ุชุงู†ูŠุฉ ุงู„ d a prime ุจุนุฏูŠู†
454
00:44:00,830 --> 00:44:08,610
ู…ุน ุงู„ a prime ุจู†ุณุงุด ุฃุญู‚ ููŠ ุงู„ุขุฎุฑ ุงู„ุฃูุตู„ ู…ุตุจูˆุท ู‡ุฐุง
455
00:44:08,610 --> 00:44:11,330
ุงู„ N ู‡ูˆ ู‡ุฐุง
456
00:44:16,180 --> 00:44:30,440
ุตุญ ุงู„ production ุณุจุนุช ุงู„ S ุจู„ุบู‡ู… ุฒูŠ ู…ุง ู‡ู… ู…ุฑุฉ
457
00:44:30,440 --> 00:44:35,360
ุฃุฎุฑู‰ ุงู„ A ุฌุจู†ุง ุงู„ betas ูˆ ุญุทูŠู†ุง ุงู„ beta ุงู„ุฃูˆู„ู‰ ูˆ
458
00:44:35,360 --> 00:44:38,200
ุญุทูŠู†ุง ุจุนุฏู‡ุง A prime ุงู„ beta ุงู„ุชุงู†ูŠุฉ ุงู„ู„ูŠ ุงู„
459
00:44:38,200 --> 00:44:41,040
epsilon ูˆ ุจุนุฏู‡ุง A prime ุฎู„ุงุต ุงู„ epsilon ู„ู…ู‡ูŠุดูŠ ููŠ
460
00:44:41,040 --> 00:44:41,500
ุงู„ุฃูˆู„
461
00:45:03,760 --> 00:45:09,260
ุงู„ุฃูˆู„ู‰ ูƒุงู†ุช ุงู„ ambiguity ุงู„ู†ู‚ุทุฉ
462
00:45:09,260 --> 00:45:10,920
ุงู„ุชุงู†ูŠุฉ ุงู„ู„ูŠ ู‡ูŠ lift
463
00:45:14,940 --> 00:45:40,680
recursion ู…ูุช ุงู„ุชุงู„ุชุฉ left factoring left
464
00:45:40,680 --> 00:45:47,390
factoringุฃุจุณุท .. ุฃุจุณุท ุญุงุฌุฉ ููŠ ุงู„ุชู„ุงุช ู†ู‚ุทุฉ ูŠู‚ุตุฏ ุจูŠ
465
00:45:47,390 --> 00:45:51,790
ุฃู†ู‡ ู„ู…ุง ูŠูƒูˆู† ููŠู‡ุง Indiana statement ู‡ูŠ ู†ูุณู‡ุง ุงู„ู„ูŠ
466
00:45:51,790 --> 00:45:55,830
ุดูˆูู†ุงู‡ุง ููŠ ุงู„ุฃูˆู„ ุงู„ู„ูŠ ู‡ูŠ ุทุจุนุง ุงู„ F statement ู…ุงููŠุด
467
00:45:55,830 --> 00:45:58,890
ููŠู‡ุง ambiguity ูˆู„ุง ููŠู‡ุง left recursion ูˆู„ุง ููŠู‡ุง
468
00:45:58,890 --> 00:46:02,550
left recursion ุนู†ุฏู‡ุง ูŠุนู†ูŠ ู‡ูŠ statement ู…ุด ุฌุงูŠุฉ
469
00:46:02,550 --> 00:46:06,570
ูƒุจุฏุงูŠุฉ ู„ู„ู‡ุฏู ุฅู†ู…ุง ููŠู‡ุง left factory
470
00:46:10,060 --> 00:46:12,620
ู†ูุณ ุงู„ prefix ู‡ุฐุง ุธุงู‡ุฑ ู…ุนุงูƒ ููŠ ุงู„ production
471
00:46:12,620 --> 00:46:20,440
ุงู„ุฃุฎุฑู‰ ููŠ ู‚ุงุณู… ู…ุดุชุฑูƒ ู…ุง ุจูŠู† two productions ู†ูุณ ุงู„
472
00:46:20,440 --> 00:46:23,180
symbols if if expression expression then then
473
00:46:23,180 --> 00:46:28,580
statement statement ุจู‚ู‰ ุงู„ู‡ุฏู ุงู„ู…ุฎุชู„ู ูุจู†ุงุฎุฏ ู‚ุงุณู…
474
00:46:28,580 --> 00:46:33,780
ู…ุดุชุฑูƒ factoring ู„ู…ุง ู†ุนู…ู„ factoring ู†ุงุฎุฏ ู‚ุงุณู… ู…ุดุชุฑูƒ
475
00:46:33,780 --> 00:46:40,020
ูุงู„ุณูŠุฆุฉ ู„ุฃู†ู‡ ู„ูˆ ุนู†ุฏูŠ ุฃู†ุง ู†ู†ุทู‚ ู…ู† ุงู„ุงู„ูˆ two
476
00:46:40,020 --> 00:46:43,440
productions ูˆุงุญุฏ ู…ู† ุงู„ู…ุดุชุฑูƒูŠู† ู…ุน ุจุนุถ ููŠ ุฌุฒุก
477
00:46:43,440 --> 00:46:48,040
ูˆู…ุฎุชู„ููŠู† ููŠ ุฌุฒุก ุงู„ุฃุฎุฑ Alpha ู…ุชูƒุฑุฑ ููŠ ุงู„ two bodies
478
00:46:48,040 --> 00:46:51,300
ูˆ ุงู„ Beta ูˆุงุญุฏ ูˆ ุจุนุฏู‡ุง Beta ุงุชู†ูŠู† ูˆ ู…ุฎุชู„ูุฉ ุนู† ุฏู‡
479
00:46:51,300 --> 00:46:56,540
ูุจุจุณุงุทุฉ ุดุฏูŠุฏุฉ ุจู‚ูˆู„ ุงูŠู‡ ุจุนูŠุฏ ุณูŠุงุฑุฉ ุจู‚ูˆู„ ุงูŠู‡ ุจุญุท
480
00:46:56,540 --> 00:47:01,660
Alpha ูˆ ุจุนุฏูŠู† ุจุณุชุญุฏุซ non
481
00:47:01,660 --> 00:47:07,580
terminal ู„ู„ุดู‚ ุงู„ู…ุฎุชู„ู A' ู‡ุฐุง ุงู„ end can have the
482
00:47:07,580 --> 00:47:15,720
formู…ุฑุฉ beta ูˆุงุญุฏ ูˆู…ุฑุฉ beta ุฌู…ูŠู„ุฉ
483
00:47:15,720 --> 00:47:25,900
ุชู…ุงู…
484
00:47:25,900 --> 00:47:30,420
ูุจุตูˆูุฉ ุงู…ุง ุงู„
485
00:47:30,420 --> 00:47:33,540
alpha ู‡ุฐุง ุชุตู„ ู„ู…ุดุชุฑูƒ ู…ุด ู„ุงุฒู… ูŠูƒูˆู† epsilon ู„ุงุฒู…
486
00:47:33,540 --> 00:47:37,740
ูŠูƒูˆู† ููŠู‡ ูุนู„ุง symbols ุงุฐุง
487
00:47:38,590 --> 00:47:42,510
there is
488
00:47:42,510 --> 00:47:46,530
a non-trivial common prefix replace all of the A
489
00:47:46,530 --> 00:47:51,070
productions ุทุจุนุง ุงู„ A ูƒู„ู‡ู… ุฏูˆู„ุฉ ุบูŠุฑู‡ู… ุทุจุนุง ุฅุฐุง ูƒุงู†
490
00:47:51,070 --> 00:47:56,630
ุงู„ุฌุงู…ุนุฉ ูƒู…ุง ู‡ุฐู‡ ู…ุงููŠุด ููŠู‡ุง ุฃุตู„ุง ู‚ุงุตุฉ ู…ุดุชุฑูƒุฉ ูŠุนู†ูŠ
491
00:47:56,630 --> 00:48:04,110
ู…ุฎุชู„ูุฉ ุชู…ุงู…ุง ุชุบูŠุฑ ุจุณ ุงู„ productions ุทุจุนุง ุงู„ ุงู„
492
00:48:04,110 --> 00:48:10,260
ู…ุงููŠุด ููŠู‡ุง ุฃู„ูุฉุจู†ุบูŠู‘ุฑ ุจุณ ุงู„ู„ูŠ ููŠู‡ ุฃู„ูุฉ ุจุฅู†ู‡ ุฅูŠุด
493
00:48:10,260 --> 00:48:16,740
ูŠุนู†ูŠ
494
00:48:16,740 --> 00:48:21,460
ู‡ุฐู‡ ุงู„ production ุถู„ุช ู‡ุฐู‡ ุงู„ุฌู‡ุฉ ุถู„ุช ุจุณ ู†ุบูŠู‘ุฑ ู…ูŠู†
495
00:48:21,460 --> 00:48:28,340
ู‡ุฏูˆู„ุฉ ู†ุญุท ุฃู„ูุฉ ููŠ ุงู„ู‚ุงุณ ุงู„ู…ุดุชุฑูƒ ูˆ ู†ุนู…ู„ a' ูˆ ุงู„ a'
496
00:48:28,760 --> 00:48:34,460
ุจูŠุตูŠุฑ ุงู„ waiters ูƒุฏู‡ุด ููŠ ู‚ุฏ ู…ู†ู‡ู… ู‡ุฏูˆู„ุฉ
497
00:48:37,890 --> 00:48:45,470
Okay ู‡ุฐู‡ ู†ูุณู‡ุง ุงู„ F ู†ูุณู‡ุง ุจุณ ุจุฏู„ ู…ุง ู†ู‚ูˆู„ F ูˆ
498
00:48:45,470 --> 00:48:51,910
expression ูˆ then ุงุณุชุจุฏู„ statement ุจ S ู…ุฌุฏุฏุง
499
00:48:51,910 --> 00:48:55,990
ุงุณุชุจุฏู„ู†ุง statement ุจ S ูƒุงู† ู‡ุงู… ุฏู‡ form ุงู„ F
500
00:48:55,990 --> 00:49:02,590
ุงุณุชุจุฏู„ู†ุงู‡ุง ุจsmall I ูˆ expression ุจุงู„ E ูˆ
501
00:49:02,590 --> 00:49:08,880
then ุจุงู„ุงุด T capital ูˆู„ุง T small ุงูƒุชุจุฃู†ุง ุจุงุฎุชุตุฑ
502
00:49:08,880 --> 00:49:14,240
ูŠุนู†ูŠ ุจุญุท ุงุฎุชุตุงุฑุงุช ุงู„ F ุญุทูŠุชู‡ุง ุจุงู„ I small ูˆ
503
00:49:14,240 --> 00:49:19,780
expression ุญุทูŠุชู‡ุง ุจุงู„ E capital then ุฃุญุทู‡ุง capital
504
00:49:19,780 --> 00:49:24,800
T ูˆ ู„ุง small t ู„ุง ุชูุฑู‚ ุงุญู†ุง ู„ูŠุด ูˆู‚ูู†ุง ุนู„ู‰ ุงู„
505
00:49:24,800 --> 00:49:27,820
convention ู‚ูˆู„ู†ุง ุงู„ small letters ุจูŠุณุชุฎุฏู…ู‡ุง ู„ู„
506
00:49:27,820 --> 00:49:30,540
terminals ูˆ ุงู„ capital letters ุจูŠุณุชุฎุฏู…ู‡ุง ู„ู„ non
507
00:49:30,540 --> 00:49:33,240
terminals ูู‡ุฐู‡ expression non terminal
508
00:49:57,620 --> 00:50:03,840
ุงู„ู‚ุณู… ุงู„ู…ุดุชุฑูƒ ู‡ูˆ
509
00:50:03,840 --> 00:50:04,820
ุงู„ูˆุธุงุฆู ุงู„ูˆุทู†
510
00:50:07,630 --> 00:50:14,130
ุงู„ู„ูŠ ู‡ูŠ ุงู„ A ุงู„ production ุฃุฎุฑุฉ ูŠุนู†ูŠ A ู‡ุฐุง ุงุฎุชุตุงุฑ
511
00:50:14,130 --> 00:50:19,150
ู„ other ูŠุนู†ูŠ ู„ุฃูŠ ุญุงุฌุฉ ูู‡ุฐุง ููŠ left factoring ุตุญ
512
00:50:19,150 --> 00:50:24,010
ู…ุณุชุจุฏู„ู‡ ูˆ ู…ุณุชูุฏู„ู‡ ุฃุฎุฐ ู‡ุฐุง ุงู„ูƒู„ู‡ ู„ู„ู‚ุงุณ ุงู„ู…ุดุชุฑูƒ ู‡ุฐุง
513
00:50:24,010 --> 00:50:32,450
ุงู„ูƒู„ู‡ ูˆ ุฃุชุจุนู‡ ุจุงุด ุจ S' ูˆ ู†ุฒู„ ุงู„ A ุฒูŠ ู…ุง ู‡ูŠ ุงู„ S'
514
00:50:32,770 --> 00:50:41,380
ุงู„ุขู† ู‡ูˆ ู…ุง ุชุจู‚ู‰ ESุฃุจุณู„ุฑ ู‡ุฐุง ู…ู† ุฃูŠู† ุฃุชูŠุช ูˆ ุฃุญุธ ุฃู†ู‡
515
00:50:41,380 --> 00:50:48,640
ุฃู†ุง ุนู†ุฏูŠ ู‡ุฐุง ู‡ูˆ beta 1 ูˆ ู‡ุฐุง beta 2 ู‡ูˆ ุงู„ epsilon
516
00:50:48,640 --> 00:50:56,760
ุตุญ ุงู„
517
00:50:56,760 --> 00:51:03,100
E ู‡ุฐู‡ ู…ุงููŠุด ููŠู‡ุง ู…ุดูƒู„ุฉ ุชู†ุฒู„ ุฒู…ุงู†ุฎู„ุงุต ุงุญู†ุง ู‡ูŠูƒ
518
00:51:03,100 --> 00:51:07,900
ุนู…ูˆู…ุง ุจู†ูƒูˆู† ุงู†ู‡ูŠู†ุง ุงู„ู„ูŠ ุญุงูƒูŠู‡ ุนู† section ุชู„ุงุชุฉ
519
00:51:07,900 --> 00:51:13,440
ุงุฑุจุน ุงุฑุจุน ุชู„ุงุชุฉ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู‚ุถุงูŠุง ุงู„ู„ูŠ ูŠุฌุจ ุงู†ูƒ ุงู†ุช
520
00:51:13,440 --> 00:51:17,720
ุชุงุฎุฏ ุจุงู„ูƒ ู…ู†ู‡ุง ุนู†ุฏ ูƒุชุงุจุฉ writing ุงูˆ grammar ู…ุงุญุฏุด
521
00:51:17,720 --> 00:51:23,110
ู…ุงููŠุด tool ุงู„ู„ูŠ ุชุบุทูŠ ุชุณุฏ ุนู†ูƒ ููŠ ู‡ุฐุง ุงู„ุฃู…ุฑุจุนุฏ ู‡ูŠูƒ
522
00:51:23,110 --> 00:51:27,330
ุงู„ุขู† ููŠ ุงู„ 4.4.4.5 ุจุดูˆู ุงู„ top-down 4.4.4.5 ุจุดูˆู
523
00:51:27,330 --> 00:51:32,430
ุงู„ top-down parsing ูƒูŠู ุจูŠุชู… ู‚ุงู„ูŠุชู‡ ูŠุนู†ูŠ ุงุญู†ุง ุดูู†ุง
524
00:51:32,430 --> 00:51:38,230
ู…ู‚ุฏู…ุฉ ุฅู„ู‡ุง ููŠ ุงู„ุณุงุจู‚ ุจุดูˆูู‡ุง ุนู…ู„ูŠุง ูˆ ุจุนุฏูŠู† ุจุดูˆู ุงู„
525
00:51:38,230 --> 00:51:40,350
bottom-up ุงู† ุดุงุก ุงู„ู„ู‡ ูŠุนุทูŠูƒู… ุงู„ุนุงููŠุฉ