abdullah's picture
Add files using upload-large-folder tool
0f6bcc1 verified
raw
history blame
64.7 kB
1
00:00:21,410 --> 00:00:24,030
ุจุณู… ุงู„ู„ู‡ ุงู„ุฑุญู…ู† ุงู„ุฑุญูŠู… ุงู„ุณู„ุงู… ุนู„ูŠูƒู… ูˆุฑุญู…ุฉ ุงู„ู„ู‡
2
00:00:24,030 --> 00:00:27,550
ูˆุจุฑูƒุงุชู‡ ุงู„ูŠูˆู… ุฅู† ุดุงุก ุงู„ู„ู‡ ุงุญู†ุง ุจู†ุจุฏุฃ ููŠ ุงู„ู€ chapter
3
00:00:27,550 --> 00:00:30,990
ุฑู‚ู… ุฃุฑุจุนุฉ ุงู„ู„ูŠ ู‡ูˆ syntax analysis ููŠ ุงู„ู€ syntax
4
00:00:30,990 --> 00:00:35,070
analysis ุชุฑูƒูŠุฒู†ุง ู‡ูŠูƒูˆู† ุนู„ู‰ ุงู„ู…ู‡ุงู… ุงู„ู„ูŠ ุจูŠุณูˆูŠู‡ุง ุงู„ู€ parser
5
00:00:35,070 --> 00:00:40,330
ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ syntax analyzer ููŠ ุงู„ุจุฏุงูŠุฉ
6
00:00:40,330 --> 00:00:44,110
ู‡ูŠูƒูˆู† ููŠู‡ุง ู„ู†ุง ุฎู„ูŠู†ุง ู†ุทู„ุน ุนู„ู‰ ุงู„ู€ table of contents
7
00:00:44,110 --> 00:00:47,530
ููŠู‡ุง ู„ู†ุง discussion ูƒุชูŠุฑุฉ ููŠ ุงู„ู€ chapter ู‡ู†ุง ููŠ
8
00:00:47,530 --> 00:00:50,750
ุฃุฑุจุนุฉ ูˆุงุญุฏ introductionุŒ ุฃุฑุจุนุฉ ุงุซู†ูŠู† context free
9
00:00:50,750 --> 00:00:53,830
grammars ูˆุจุชุนุฑู ุนู„ู‰ ุงู„ู€ grammar ูˆุจุนุฏ ุฐู„ูƒ ุฃุฑุจุนุฉ
10
00:00:53,830 --> 00:00:57,310
ุซู„ุงุซุฉ writing a grammar ู†ุดูˆู ุนู…ู„ูŠุฉ ูƒุชุงุจุฉ ุงู„ู€
11
00:00:57,310 --> 00:01:02,470
grammar ู„ุฃูŠ ู„ุบุฉ ุงุญู†ุง ุจุฏู†ุง ุฅูŠุงู‡ุงุŒ ุฅูŠุด ู…ู…ูƒู† ุฃู…ูˆุฑ
12
00:01:02,470 --> 00:01:08,020
ุชูˆุฌู‡ู†ุงุŒ ู…ุดุงูƒู„ ู†ุชุนุงู…ู„ ู…ุนุงู‡ุงุŒ ุจุนุฏ ุฐู„ูƒ ู†ุดูˆู ุนู…ู„ูŠุฉ ุงู„ู€
13
00:01:08,020 --> 00:01:13,680
parsing ูŠุนู†ูŠ ุงู„ู€ parser ุฅูŠุด ุจูŠุณูˆูŠ ููŠ ุดุบู„ู‡ ูƒู€
14
00:01:13,680 --> 00:01:18,360
analyzer ูŠุญู„ู„ ู„ู…ุง ุจูŠุฌูŠ ูŠุญู„ู„ ุงู„ู€ input ุจู†ุงุก ุนู„ู‰ ุงู„ู€
15
00:01:18,360 --> 00:01:23,280
grammar ุงู„ู„ูŠ ุงุญู†ุง ูƒุชุจู†ุงู‡ุง ู…ู…ูƒู† ูŠุนู…ู„ ุงู„ูƒู„ุงู… ู‡ุฐุง top
16
00:01:23,280 --> 00:01:26,680
-down ุฃูˆ bottom-upุŒ ูˆู†ุดูˆู ุฅูŠุด ุงู„ูุฑู‚ ู…ุง ุจูŠู† ุงู„ุงุซู†ูŠู†
17
00:01:26,680 --> 00:01:32,720
ุจุนุฏ ุฐู„ูƒ introduction to LR parsingุŒ simple LR ูˆู‡ุฐุง
18
00:01:32,720 --> 00:01:36,810
ู…ุชู‚ุงู„ ุนู„ูŠู‡ ู„ูƒู† ู…ู† ุจุนุฏ ู‡ูŠูƒ ุงู„ู€ more powerful ุงู„ู€ are
19
00:01:36,810 --> 00:01:41,490
parts ุฑุณู…ูŠ ู…ุด ู‡ูŠุถู„ ู…ุนุงู†ุงุŒ ูˆุฌุฏ ุฃู† ู†ูƒู…ู„ ููŠู‡ุง ู .. ูˆ
20
00:01:41,490 --> 00:01:45,510
ูƒุฏู‡ ูƒุงู„ุญุงู„ ุงู„ .. ุงู„ู€ succession ุงู„ู„ูŠ ุจุนุฏ ู„ุฅู†ู‡ ุจุฏู†ุง
21
00:01:45,510 --> 00:01:51,050
ุงู„ู„ูŠ ู‡ูˆ ู†ุฏุฎู„ ุนู„ู‰ ุงู„ู€ generation ุงู„ู€ code generation
22
00:01:51,050 --> 00:01:55,890
ูุงุญู†ุง ุนู…ู„ูŠุง ุฃุตุจุญ ุจุฏู†ุง .. ุจุฏู†ุง ุงู„ู€ introduction ุจุฏู†ุง
23
00:01:55,890 --> 00:01:59,270
ุงู„ุฃุฑุจุนุฉ ุงุซู†ูŠู† context free grammarsุŒ ูˆุจุฏู†ุง writing
24
00:01:59,270 --> 00:02:01,510
grammars ูˆุจุนุฏูŠู† ุงู„ู€ top down parsing ูˆุงู„ู€ bottom
25
00:02:01,510 --> 00:02:06,820
up ูˆุงู„ู€ LR parsing ุงู„ูŠูˆู… ุฅู† ุดุงุก ุงู„ู„ู‡ ุฑุจู…ุง ู†ู‚ุฏุฑ
26
00:02:06,820 --> 00:02:12,540
ู†ุถุทุฑ one ูˆ two ูˆุงุชู†ูŠู† ูˆู†ุจุฏุฃ ููŠ ุฃุฑุจุนุฉ ุซู„ุงุซุฉ ุฃูŠุถุงู‹
27
00:02:12,540 --> 00:02:20,500
ุทูŠุจ ุฃุฑุจุนุฉ ูˆุงุญุฏ ู‡ูˆ ุงู„ู€ introduction ููŠ
28
00:02:20,500 --> 00:02:25,500
ุงู„ู€ slide ู‡ุฐู‡ ู…ุด ุญุงุฌุฉ ููŠ ุนู†ุฏู‡ุง ูƒุชูŠุฑ ุจุณ ู†ู‚ุงุท ุงู„ู„ูŠ
29
00:02:25,500 --> 00:02:30,460
ุจุชุฏู„ู„ ุนู„ู‰ ุฃูˆ ุจุชุฑูƒุฒ ุนู„ู‰ ุฃู‡ู…ูŠุฉ ูˆุฌูˆุฏ ุงู„ู€ grammar ุทุจุนุงู‹
30
00:02:30,460 --> 00:02:34,380
ุงู„ู€ grammar ู…ุด ู…ู†ู‡ ุฅูŠุด ุฃู‡ู…ูŠุชู‡ุง ูˆู…ุด ุฃู‡ู…ูŠุชู‡ุง ุงู„ู€
31
00:02:34,380 --> 00:02:39,940
grammar ู‡ูŠ ูˆุณูŠู„ุชู†ุง ุงู„ูˆุญูŠุฏุฉ ู„ุฅู†ู‡ ูŠูƒูˆู† ููŠ ุนู†ุฏู†ุง
32
00:02:39,940 --> 00:02:46,440
parserุŒ parser ุจุฏูˆู† grammar ุจูŠุตูŠุฑ ุงู„ุญูƒุงูŠุฉ ุจูŠุจู†ูŠ ุงู„ู€
33
00:02:46,440 --> 00:02:50,520
compiler ุจูŠุตูŠุฑ ูŠุจู†ูŠ ุนู„ู‰ ูƒูŠูู‡ ุฅู†ู…ุง ู„ู…ุง ูŠูƒูˆู† ููŠ
34
00:02:50,520 --> 00:02:54,340
grammarุŒ ุงู„ู€ grammar ุจูŠุตูŠุฑ ุงู„ุขู† ู‡ูŠ ุงู„ู„ูŠ ุจุชุญูƒู… ุนู…ู„ูŠุฉ
35
00:02:54,340 --> 00:02:58,500
ุจู†ุงุก ุงู„ู€ parser ูˆุงุญู†ุง ุฒูŠ ู…ุง ุดูˆูู†ุง ููŠ ุงู„ู€ lexical
36
00:02:58,500 --> 00:03:04,130
analysis ุงู„ู€ regular expressions ู‡ูŠ ุงู„ุฃุณุงุณ ู„ุจู†ุงุก
37
00:03:04,130 --> 00:03:08,330
ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ finite automata ูˆุจุนุฏ ุฐู„ูƒ ุงู„ู€ finite
38
00:03:08,330 --> 00:03:12,030
automata ู‡ูŠ ุฃุณุงุณ ุงู„ุจู†ุงุก ู„ู„ู€ lexical analyzer ู†ูุณู‡
39
00:03:12,030 --> 00:03:17,490
ูˆู‡ู†ุง ู†ูุณ ุงู„ุดูŠุก ุงู„ู€ grammar ู‡ูŠ ุฃุณุงุณ ู„ุจู†ุงุก ุงู„ู€ parser
40
00:03:23,560 --> 00:03:27,560
ุงู„ุฏูˆุฑ ุงู„ู€ role of the parser ูˆุงุถุญ ุฅู† ู‡ูˆ ุจูŠุณุชู„ู… ุงู„ู€
41
00:03:27,560 --> 00:03:31,920
tokens ู…ู† ุงู„ู€ lexical analyzer ุงู„ู„ูŠ ุจูŠุงุฎุฏ ุงู„ู€ source
42
00:03:31,920 --> 00:03:37,420
program ูˆุจูŠุณู„ู… tokens ู„ู„ู€ parserุŒ ุงู„ู€ parser ุจูŠุดุชุบู„
43
00:03:37,420 --> 00:03:43,860
ูˆุจูŠุจู†ูŠ parse tree ุงู„ู„ูŠ ุจุชุฑูˆุญ ุจุนุฏ ู‡ูŠูƒ ุงู„ู€ next ุฃูˆ
44
00:03:43,860 --> 00:03:48,260
ุชู…ุงู… ุงู„ู€ role of the parser ุฅู† ู‡ูˆ ุจูŠุงุฎุฏ ู…ู† ุงู„ู€
45
00:03:48,260 --> 00:03:52,720
lexical analyzer ู„ูˆูƒ ุงู„ู€ tokens ูˆุจูŠุณู„ู… part3
46
00:03:52,720 --> 00:03:57,160
ู„ู„ู…ุฑุงุญู„ ุงู„ู„ุงุญู‚ุฉ ุงู„ู„ูŠ ู‡ูŠ ุจุงู„ุฃุณุงุณ ููŠ ุนู†ุฏูƒ ุงู„ู€
47
00:03:57,160 --> 00:04:01,840
semantic analysisุŒ ูˆ ุซู… ู„ุงุญู‚ุงู‹ ุงู„ู€ code generation ูˆ
48
00:04:01,840 --> 00:04:08,300
ู‡ุฐุง ุฏูˆุฑู‡ ุจูŠู‚ูˆู… ุจุงู„ุชุฒุงูˆุฌ ู…ุน ุงู„ู€ lexical analyzer ู„ุฃู†
49
00:04:08,300 --> 00:04:14,260
ู‡ูˆ ุจูŠุงุฎุฏ ูƒู„ token ุจูŠุญุชุงุฌู‡ ูˆุจูŠุทู„ุจ ู…ุทุงู„ุจ ู…ู† ุงู„ู€
50
00:04:14,260 --> 00:04:18,080
lexical analyzer ุจูŠุฑูˆุญ ูŠุฌูŠุจ ูˆูŠุนุทูŠู‡ ูƒุฐู„ูƒ ุงู„ุญุงู„ุฉ
51
00:04:18,080 --> 00:04:21,340
ุงู„ู„ูŠ ุจุญุชุงุฌ AttributesุŒ Attributes ุนู† ู‡ุฐุง ุงู„ู€ token
52
00:04:21,340 --> 00:04:27,280
ุจูŠุฑูˆุญ ูˆุจุฌูŠุจู‡ุง ู…ู† ุงู„ู€ symbol table ูู‡ูˆ ุจูŠุงุฎุฏ ู…ู†ู‡ ูˆ
53
00:04:27,280 --> 00:04:31,520
ุจูŠุนุทูŠ ู„ู‡ ุฃูŠุถุงู‹ ุงู„ู€ symbol table ูุงู„ุฏูˆุฑ ุงู„ุฃุณุงุณูŠ ุงู„ู€
54
00:04:31,520 --> 00:04:36,180
role of the parser ุฅู† ู‡ูˆ ูŠุชุญู‚ู‚ ู…ู† ุฅูŠุด ู‡ุฐู‡ ุงู„ู€
55
00:04:36,180 --> 00:04:39,860
tokensุŒ ุงู„ู€ string of tokens ุงู„ู„ูŠ ุจูŠุฌูŠู„ู‡ ู…ู† ุงู„ู€
56
00:04:39,860 --> 00:04:45,800
lexical analyzer ูˆูŠุชุฃูƒุฏ ุฅู† ู‡ุฐุง ุงู„ุชุณู„ุณู„ ูุนู„ุงู‹ ูŠุดูƒู„
57
00:04:45,800 --> 00:04:51,000
ุฌู…ู„ุฉ ู…ู† ุฌู…ู„ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ grammar ุจู…ุนู†ู‰ ุฅู† ู‡ุฐูŠ
58
00:04:51,000 --> 00:04:57,940
syntactically ุณู„ูŠู…ุฉ ูู‡ูˆ verifies that the string
59
00:04:57,940 --> 00:05:03,380
of tokens ุฃูˆ token names can be generated by the
60
00:05:03,380 --> 00:05:06,540
grammarุŒ can be generated by the grammar ูู†ู‚ูˆู„ can
61
00:05:06,540 --> 00:05:08,760
be generated by the grammar ู‡ูˆ ุฃุตู„ุงู‹ string of
62
00:05:08,760 --> 00:05:12,760
tokens ุฃุฌุง ู…ู† ุงู„ู€ programmer ุจุณ ุงุญู†ุง ุจู†ู‚ูˆู„ can be
63
00:05:12,760 --> 00:05:15,900
generated by the grammar ู„ุฃู† ุนู…ู„ูŠุฉ ุงู„ู€ verification
64
00:05:16,730 --> 00:05:21,250
ุชู†ุทูˆูŠ ุนู„ู‰ ุฃู† ุฅุฐุง ูƒุงู†ุช ุงู„ู€ grammar ุชูˆู„ุฏ ู†ูุณ ุงู„ู€
65
00:05:21,250 --> 00:05:24,890
string ู‡ุฐุง ูŠุจู‚ู‰ ุงู„ู€ string ู‡ุฐุง ุณู„ูŠู… ุฃุณู„ูˆุจู†ุง ููŠ
66
00:05:24,890 --> 00:05:29,430
ุงู„ุชุญู‚ู‚ ู…ู† ุณู„ุงู…ุฉ ุงู„ู€ string of tokens ู‡ูˆ ุฃู† ู†ุดูˆู ู‡ู„
67
00:05:29,430 --> 00:05:33,190
ู„ูˆ ุงุญู†ุง ุจุฏุฃู†ุง ู…ู† ุงู„ู€ start symbol ููŠ derivation
68
00:05:33,190 --> 00:05:38,380
ุชูˆุตู„ู†ุง ุฅู„ู‰ ู†ูุณ ุงู„ู€ sequence of tokens ุฅุฐุง ูƒุงู† ู‡ู†ุงูƒ
69
00:05:38,380 --> 00:05:41,240
ู…ุนู„ูˆู…ุงุช ุนู† ุงู„ู€ sequence of tokens ู‡ุฐู‡ ุงู„ุชูŠ ุฃุชูŠุช ู…ู†
70
00:05:41,240 --> 00:05:46,040
ุงู„ู€ source ู‡ูŠ ุตุญูŠุญุฉ ู‡ุฐุง ุงู„ุฃุณุงุณ ุชุจู‚ู‰ to verify ุงู„ู€
71
00:05:46,040 --> 00:05:53,620
syntaxุŒ ู‡ุฐุง ุฏูˆุฑ ุงู„ุฃุณุงุณูŠุŒ ุงู„ุฏูˆุฑ ุงู„ุซุงู†ูˆูŠ ุงู„ู„ูŠ ู‡ูˆ ุฅู†ู‡
72
00:05:53,620 --> 00:05:57,960
ู„ูˆ ููŠ ู…ุดูƒู„ุฉ ู„ูˆ ุงู„ู€ verification ู‡ุฐู‡ ู„ู… ุชุชูˆุงุญู‚ู‚ ูŠุจู‚ู‰
73
00:05:57,960 --> 00:06:03,900
ููŠ errorุŒ ูุฏูˆุฑู‡ ุงู„ุชุงุจุน ุฅุฐุง ุฐู„ูƒ ูƒุงู† ุงู„ุฏูˆุฑ ุงู„ุฃุณุงุณูŠ
74
00:06:04,180 --> 00:06:08,580
ุงู„ุฏูˆุฑ ุงู„ุซุงู†ูŠ ู‡ูˆ to report ุงู„ู€ errors ูŠุจู„ุบ ุนู† ุงู„ู€
75
00:06:08,580 --> 00:06:13,240
errorsุŒ any syntax errors ุตุญุŸ ู…ุงู„ูˆุด ุนู„ุงู‚ุฉ ุจุงู„ู€
76
00:06:13,240 --> 00:06:18,220
lexical errors ุฃูˆ ุงู„ู€ semantic errorsุŒ report any
77
00:06:18,220 --> 00:06:22,100
syntax errors ููŠ ู‡ุฐู‡ ุงู„ูˆุธูŠูุฉ ุฑู‚ู… ูˆุงุญุฏ ูˆู‡ุฐู‡
78
00:06:22,100 --> 00:06:26,220
ุงู„ูˆุธูŠูุฉ ุฑู‚ู… ุงุซู†ูŠู† to report ูˆุงู„ู„ู‡ ุฅู† ูŠุจู„ุบ ุนู† error
79
00:06:26,220 --> 00:06:31,480
ุดูŠุก ูƒูˆูŠุณ ุฅู„ุง ุฃุญุณู† ู…ู† ุฐู„ูƒ ุฅู†ู‡ ูŠุญุงูˆู„ to recover ุฅู†ู‡
80
00:06:31,480 --> 00:06:35,940
ูŠุนุงู„ุฌ ู‡ุฐุง ุงู„ู€ error ู‚ุฏุฑ ุงู„ู…ุณุชุทุงุน ุฅู…ุง completely ุฃูˆ
81
00:06:35,940 --> 00:06:40,160
partially ุตุญ ุฅู„ู‰ ุงู„ุขู† ูˆู‡ุฐุง ุงู„ู†ู‚ุทุฉ ุฑู‚ู… 3 to recover
82
00:06:40,160 --> 00:06:43,280
ูˆุงุถุญ
83
00:06:43,280 --> 00:06:46,640
ุฏูˆุฑ ุงู„ู€ parserุŒ ุงู„ู€ parser ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ lexical ุงู„ู€
84
00:06:46,640 --> 00:06:52,960
syntax analyzer ุฏูˆุฑ ุงู„ุฃุณุงุณูŠ to verify ุฅู† ุงู„ู€ tokens
85
00:06:52,960 --> 00:06:58,720
ู‡ุฏูˆู„ุฉ ุจู†ูŠุชู‡ู… ุณู„ูŠู…ุฉ ุงู„ู€ syntax ุชุจุนู‡ู… ุณู„ูŠู… ุฅุฐุง ููŠ
86
00:06:58,720 --> 00:07:02,120
error ุจูŠุนู…ู„ report ุฃูˆ ุฅุฐุง ุฃูƒุซุฑ ู…ู† ุฐู„ูƒ ุจูŠุนู…ู„
87
00:07:02,120 --> 00:07:08,770
recover ูƒู„ู…ุฉ parser ูŠุนู†ูŠ ูƒู„ู…ุฉ ู…ุฎุชู„ูุฉ ุฃูˆ ู…ุฎุชู„ูุฉ ุงู„ู€
88
00:07:08,770 --> 00:07:15,390
parsers ูŠุนู…ู„ูˆุง ุดุบู„ู‡ู… ุฃูˆ ูŠุชุตุฑููˆุง ุฅู…ุง ุฅู„ู‰ top-down
89
00:07:15,390 --> 00:07:18,610
ุฃูˆ bottom-up ุฃูˆ ุงู„ู€ universal ุงู„ุงุฎุชุตุงุฑุงุช ุงู„ู…ุณุชุฎุฏู…ุฉ
90
00:07:18,610 --> 00:07:22,890
ููŠ ุงู„ูƒู…ุจูŠูˆุชุฑุงุช ูŠู…ูƒู† ุฃู† ุชูƒูˆู† ุฃูŠุถุงู‹ top-down ุฃูˆ bottom
91
00:07:22,890 --> 00:07:26,970
-upุŒ top-down ุฒูŠ ู…ุง ุงุญู†ุง ุดูู†ุงู‡ ู‚ุจู„ ู‡ูŠูƒุฉ ุงู„ู„ูŠ ู‡ูˆ
92
00:07:26,970 --> 00:07:31,110
ุจูŠุญุงูˆู„ ูŠุจู†ูŠ ุงู„ู€ tree ู…ู† ุงู„ู€ rootุŒ ุงู„ู€ root ุงู„ู„ูŠ ู‡ูˆ
93
00:07:31,110 --> 00:07:36,790
ุฅูŠุดุŸ start symbol ุตุญุŒ ู…ุด ุฌุฑุงู…ู‡ ููŠู‡ุง start symbol
94
00:07:36,790 --> 00:07:41,150
start symbol ู‡ูŠ ุฏู‡ ู‡ูˆ ุงู„ู€ rootุŒ ุฅุฐุง ุฌุฏุฑ ูŠุจู†ูŠ tree
95
00:07:41,150 --> 00:07:46,610
ูŠุฎู„ูŠู‡ุง ุงู„ู€ leaves ุงุชุจุงุนูˆู†ู‡ุง ู…ุทุงุจู‚ูŠู† ู„ู„ู€ tokens ุงู„ู„ูŠ
96
00:07:46,610 --> 00:07:51,270
ุฏุฎู„ูˆุงุŒ ูŠุจุฏุฃ ุงู„ู€ tokens ุงู„ู„ูŠ ุฏุฎู„ูˆุง syntactically
97
00:07:51,270 --> 00:07:56,690
correct ู‡ุฐุง bottom upุŒ bottom ุฏู‡ ุงู„ุฃุณูุฉุŒ top down ุงู„ู€
98
00:07:56,690 --> 00:07:59,650
bottom up ุงู„ู„ูŠ ู‡ูˆ ุจูŠุจุฏุฃ ู…ู† ุงู„ู€ leaves ุจูŠุจู†ูŠ leave
99
00:07:59,650 --> 00:08:04,060
nodesุŒ leave nodes ู‡ุฐู‡ ุงู„ู€ tokens ุงู„ู„ูŠ ูˆุตู„ุชู‡ ุงู„ู„ูŠ
100
00:08:04,060 --> 00:08:09,920
ุฃุฎุฏู‡ ู„ู‡ ู‡ุฐุง ุงู„ู€ token ูˆู‡ุฐุง ุงู„ู€ token ุฑุจู…ุง ููŠ ููŠ ุงู„ู€
101
00:08:09,920 --> 00:08:16,780
grammar ู…ุง ูŠุฏุนู… ุฅู†ู‡ ุฌูŠุชู‡ู… ูˆุฑุง ุจุนุถ ุซู… ุจุนุฏ ูƒู„ู…ุฉ ู‡ุฐุง
102
00:08:16,780 --> 00:08:21,500
ูˆุตูˆู„ุงู‹ ุฅู„ู‰ ู…ูŠู†ุŸ ุฅู„ู‰ ุงู„ู€ root ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ start symbol
103
00:08:21,500 --> 00:08:26,530
ู‡ุฐุง bottom up ุงุณู…ู‡ ุงู„ุนูƒุณ ู…ู†ู‡ ุงู„ู„ูŠ ู‡ูˆ top down ุดูู†ุง
104
00:08:26,530 --> 00:08:30,990
ุงุญู†ุง top-down ู„ู…ุง ูƒู†ุง ุจู†ู‚ูˆู„ recursive descent ุงู„ู€
105
00:08:30,990 --> 00:08:35,770
descent ู„ุญุงู„ู‡ุง ุจุชู‚ูˆู„ ุฅู†ู‡ ู†ุฒูˆู„ ูŠุนู†ูŠ top-down ุตุญุŸ ุงู„ู€
106
00:08:35,770 --> 00:08:39,630
universal ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ parser ุงู„ู„ูŠ ุจูŠุดุชุบู„ ุนู„ู‰
107
00:08:39,630 --> 00:08:42,950
ุงู„ูˆุฌู‡ูŠู† ูŠุนู†ูŠ ู…ู…ูƒู† ูŠุนู…ู„ bottom-up ูˆูŠู…ูƒู† ูŠุนู…ู„ top
108
00:08:42,950 --> 00:08:49,330
-down okayุŸ ุงู„ุขู† ู„ู…ุง ุงุญู†ุง ุจู†ุชุญูƒ ุนู† grammars ู‡ุงูŠ
109
00:08:49,330 --> 00:08:51,970
ุฃู…ุซู„ุฉ ู„ู€ grammarsุŒ ุดูู†ุง ุงุญู†ุง ุฌู…ู„ุฉ ูƒุฃู…ุซู„ุฉ ู„ู€
110
00:08:51,970 --> 00:08:57,390
grammars ูˆู‡ุฐุง ู…ุด ู…ุฎุชู„ู ุนู†ู‡ ุงู„ู„ู‡ู… ุฅูŠู‡ุŸ ู„ุฃู† ู‡ูˆ ุจูŠุณุชุฎุฏู…
111
00:08:57,390 --> 00:09:01,310
ุญุฑูˆู ุจุฏู„ ูŠุนู†ูŠ ู„ู„ู€ non-terminals ูƒู†ุง ุงุญู†ุง ุจู†ุดูˆู
112
00:09:01,310 --> 00:09:05,910
expression, term, factor ู…ุด ุนุงุฑู ุฅูŠุด ู‡ู†ุง ุฅูŠุด ุญุฑูˆู
113
00:09:05,910 --> 00:09:09,090
ูˆุญุชู‰ ุงู„ุฃู‚ุงุฑู ู„ุฅูŠู‡ ุงุฎุชุตุงุฑ ุงู„ู€ expression ูˆุงู„ู€ T ู„ู€
114
00:09:09,090 --> 00:09:11,990
term ูˆุงู„ู€ F ู„ู€ factorุŒ ูˆุฃุจู‚ู‰ ุจูŠุญุตู„ ุงู„ุดุงู…ู„ ูุฅุญู†ุง
115
00:09:11,990 --> 00:09:17,210
ู‡ู†ุนุชุงุฏ ู…ู† ุงู„ุขู† ุจุตุงุนุฏู†ุง ุนู„ู‰ ุงุณุชุฎุฏุงู… letter names ู„ู„ู€
116
00:09:17,210 --> 00:09:21,690
non-terminals okay
117
00:09:30,490 --> 00:09:35,190
ุงู„ุขู† ู…ุณุฃู„ุฉ ุงู„ู€ error handling ุงุญู†ุง ุจู†ุนุฑู ุฅู† ููŠ
118
00:09:35,190 --> 00:09:38,330
ู…ุณุชูˆูŠุงุช ุฃูˆ ุชุตู†ูŠูุงุช ู…ู† ุงู„ู€ errors ููŠู‡ lexical errors
119
00:09:38,330 --> 00:09:42,830
ููŠู‡ syntax errorsุŒ ููŠู‡ semantic errors ุงู„ู€ lexical
120
00:09:42,830 --> 00:09:46,830
errors ุฒูŠ ุฅูŠุดุŸ ูŠุนู†ูŠ ุฅูŠุด ุงู„ุญุงุฌุงุช ุงู„ู„ูŠ ู…ู…ูƒู† ูŠุฌุฏู‡ุง ุงู„ู€
121
00:09:46,830 --> 00:09:50,520
lexical analyzerุŸ ู‡ูŠ ููŠ ุงู„ู€ keywords ููŠ ุงู„ู€ keywords
122
00:09:50,520 --> 00:09:53,840
ููŠ ุงู„ู€ variable names ู„ุขุฌูŠ ุจู€ variable ุชู…ุงู… ุงู„ู€
123
00:09:53,840 --> 00:09:57,080
semantic errors ุงู„ู„ูŠ ู‡ูŠ errors ุงู„ู„ูŠ ู‡ูŠ ุนู„ุงู‚ุฉ ุจุงู„ู€
124
00:09:57,080 --> 00:10:01,320
type checking ู…ุซู„ุงู‹ ู„ู…ุง ูŠูƒูˆู† ููŠ ุนู†ุฏูƒ operator ุฃูˆ
125
00:10:01,320 --> 00:10:06,540
function ูˆุงู„ู€ function ู‡ุฐู‡ ู…ุนุฑูุฉ ุฅู† ู‡ูŠ ุชุงุฎุฏ two
126
00:10:06,540 --> 00:10:09,860
variables ูˆุงู„ู€ variables ู‡ุฏูˆู„ุฉ ูˆุงุญุฏ integer ูˆุงุญุฏ
127
00:10:09,860 --> 00:10:14,540
real ุชุนุทูŠู‡ุง ุงู„ุงุซู†ูŠู† real ู‡ุฐุง error ุตุญุŸ ู„ุง ู‡ูˆ
128
00:10:14,540 --> 00:10:18,720
lexical ูˆู„ุง ู‡ูˆ syntax ู‡ุฐุง semantic ุชู…ุงู… ุบุงู„ุจุงู‹ ุจุญุงุฌุฉ
129
00:10:18,720 --> 00:10:23,560
ู†ู‚ูˆู„ semantic errors ุจู†ู‚ุต ุฑุฏ ุญุงุฌุงุชู‡ุง ุนู„ุงู‚ุฉ ุจุงู„ู€ type
130
00:10:23,560 --> 00:10:29,600
type mismatch ุนุฏู… ุชุทุงุจู‚ ุงู„ู€ type ุงู„ู„ูŠ ุฃู†ุง ุงุชุจุน ุงู„ู€
131
00:10:29,600 --> 00:10:33,300
variables ุงู„ู„ูŠ ุฃู†ุง ู…ุงุชูŠู‡ู… ู„ู€ ุงู„ู€ variables ุงู„ู…ุชูˆู‚ุนุฉ
132
00:10:33,300 --> 00:10:38,840
ุงู„ู€ logical errors ุนุงุฏุฉ ุฏูŠ ุนุงุฏุฉ ู…ุด ู…ู†ุทู‚ ุตุฑุงุญุฉ ุงู„ู€
133
00:10:38,840 --> 00:10:43,650
compiler logical issue ุนู„ุงู‚ุฉ ุจุงู„ุฎูˆุงุฑุฒู…ูŠุฉ ู†ูุณู‡ ุงู„ู„ูŠ
134
00:10:43,650 --> 00:10:48,430
ูƒุชุจู‡ ุงู„ู€ programmer ู…ุง ุจุชุญุณุจุด ุตุญ ู…ุง ุจุชุญุณุจุด ุตุญ ูˆู‡ุฐู‡ ุงู„ู€
135
00:10:48,430 --> 00:10:55,490
compiler ู…ุงู„ูˆุด ููŠู‡ุง ุตุญุŸ ุฃูˆูƒูŠ ุงู„ุขู† ุงู„ู€ error
136
00:10:55,490 --> 00:11:00,250
handling ุงู„ู€ error handling ูŠุฌุจ ุฅู† ุงุญู†ุง ุจุฏู†ุง ุงู„ู€
137
00:11:00,250 --> 00:11:04,010
compiler ูŠู‚ูˆู… ุจู€ .. ุฃูˆ ุงู„ู€ parser ูŠู‚ูˆู… ุจูˆุธูŠูุชู‡
138
00:11:04,010 --> 00:11:07,450
ุงู„ุฃุณุงุณูŠุฉ ุฃูˆ ุงู„ู€ compiler ุจุงู„ุตูุญุฉ ุงู„ุนุงู…ุฉ ูŠู‚ูˆู…
139
00:11:07,450 --> 00:11:11,060
ุจูˆุธูŠูุชู‡ ุงู„ุฃุณุงุณูŠุฉ ู„ูŠู‡ to compile ูˆู‡ุฐุง ู…ุนู†ุงู‡ ุฅู†ู‡
140
00:11:11,060 --> 00:11:15,320
ูŠุญุตู„ ููŠู‡ Lexical ูˆSyntax Analysis ูˆุจุฏู†ุง ูƒู…ุงู† Error
141
00:11:15,320 --> 00:11:18,880
Handling ูŠุนู†ูŠ ุจุฏู†ุง ุงู„ compiler ูŠู‚ูˆู… ุจุนู…ู„ Error
142
00:11:18,880 --> 00:11:28,820
Handling ุจุณ ุจุฏู†ุง ุนู…ู„ูŠุฉ Error Handling ุชุถูŠู
143
00:11:30,410 --> 00:11:33,930
overhead ูƒุจูŠุฑ ุนู„ู‰ ุดุบู„ ุงู„ compiler ูŠุนู†ูŠ ู…ุด ุนุดุงู† ุฃู†ุง
144
00:11:33,930 --> 00:11:38,110
ุฃุนุทูŠู„ู‡ ูŠุนู…ู„ ุงู„ compilation ุฃูˆ ุนุดุงู† ูŠูƒุชุดู ู„ูŠ ุงู„
145
00:11:38,110 --> 00:11:42,330
errors ูŠุฑูˆุญ ูŠุงุฎุฏ ุถุนู ุงู„ูˆู‚ุช ุงู„ู„ูŠ ุจูŠุงุฎุฏู‡ ููŠ ุงู„
146
00:11:42,330 --> 00:11:45,850
compilation ุจุฏูˆู† errors ุตุญ ุฃู† ุงู„ error handling
147
00:11:45,850 --> 00:11:54,170
ูŠุชู… ุจุดูƒู„ without overhead ุนู„ู‰ ุงู„ program ุจู†ูŠ to
148
00:11:54,170 --> 00:11:59,660
report ูˆุจู†ูŠู‡ุง to recover ูˆุจู†ูŠู‡ุง record clearly ูˆ
149
00:11:59,660 --> 00:12:03,100
accurately ูŠุนู†ูŠ ู…ุด ูŠู‚ูˆู„ูŠ ููŠ error ููŠ ุณุทุฑ ุฑู‚ู… ูˆุงุญุฏ
150
00:12:03,100 --> 00:12:06,360
ุซู„ุงุซูŠู† ูˆู‡ูˆ ุงู„ error ุญู‚ูŠู‚ุฉ ููŠ ุซู„ุงุซูŠู† ุฃูˆ ููŠ ุงุซู†ูŠู† ูˆ
151
00:12:06,360 --> 00:12:13,260
ุซู„ุงุซูŠู† ูˆุจู†ูŠู‡ุง ูˆุจู†ูŠู‡ุง ุฏู‚ูŠู‚ุฉ ูˆุจู†ูŠู‡ุง ุฏู‚ูŠู‚ ูˆุจู†ูŠู‡ุง
152
00:12:13,260 --> 00:12:17,200
clear ูŠู‚ูˆู„ ู„ูŠ ุงู„ error ูˆุงุถุญ ุฃู† ู‡ูˆ ูƒุงุด ุจุงู„ุธุจุท ุงู„
153
00:12:17,200 --> 00:12:22,820
error ุจู†ุนู…ู„ recovery ุจุณุฑุนุฉ ุจุฏูˆู† ู…ุง ูŠุคุซุฑ ุนู„ู‰ ุนุดุงู†
154
00:12:22,820 --> 00:12:26,600
ู†ู‚ุฏุฑ ูŠุดูˆู ุงู„ู„ูŠ ุจุนุฏู‡ ุงู„ errors ุฅุฐุง ููŠ errors ุจุนุฏู‡
155
00:12:26,600 --> 00:12:32,300
ุชู…ุงู…ุŒ ุงู„ุขู† ู‡ุฏูˆู„ุฉ ุซู„ุงุซ ุฃุณุงู„ูŠุจ ุฃูˆ ุฃุฑุจุน ุฃุณุงู„ูŠุจ ู„ุชุนุงู…ู„
156
00:12:32,300 --> 00:12:38,720
ู…ุน ุงู„ errors ุงู„ syntax errors ููŠ ุงู„ code ููŠ panic
157
00:12:38,720 --> 00:12:43,180
mode ูˆุงู„ phrase level ูˆุงู„ error productions ูˆุงู„
158
00:12:43,180 --> 00:12:46,580
global collection ู‡ุฐุง ุฃู†ุง ุจุฏุฃ ุฃุชุฑูƒ ู„ูƒูŠุง homework
159
00:12:47,270 --> 00:12:50,890
ู…ูˆุฌูˆุฏ ุณูƒุดู† ุฃุฑุจุนุฉ ูˆุงุญุฏ ุฃุฑุจุนุฉ ููŠ ุงู„ูƒุชุงุจ ุชุทู„ุน ุนู„ูŠู‡ู…
160
00:12:50,890 --> 00:12:54,750
ุงู„ุฃุฑุจุน ุฃุณุงู„ูŠุจ ู„ู„ุชุนุงู…ู„ ู…ุน ุงู„ errors error
161
00:12:54,750 --> 00:12:58,490
strategies ูˆููŠ ุงู„ู…ุญุงุถุฑุฉ ุงู„ู‚ุงุฏู…ุฉ ุณู†ุณุฃู„ ุฃุณุฆู„ุฉ
162
00:12:58,490 --> 00:13:04,530
ุนุดูˆุงุฆูŠุฉ ูƒู„ ูˆุงุญุฏ ูŠุฌุจ ุฃู† ูŠุฌู‡ุฒ ู†ูุณู‡ ุฃู†ุช ุชุฌุฑุคู‡ ูˆุชูู‡ู…ู‡
163
00:13:04,530 --> 00:13:09,670
ูˆู„ุง ุชูƒุชุจูˆู‡ ุจุฏุฃ ุฃุณุฃู„ ูˆุงู„ู„ูŠ ุฃุณุฃู„ู‡ ูŠุฌุจ ุฃู† ูŠูƒูˆู†
164
00:13:09,670 --> 00:13:14,690
ู…ูุฌูŽู‡ู‘ุฒ ู†ูุณู‡ ู„ู„ panic mode recovery phrase level
165
00:13:14,690 --> 00:13:18,470
recovery error productionsูˆ global correction OK
166
00:13:18,470 --> 00:13:24,890
ุชู…ุงู… ุงู„ุขู† ู‡ุฐุง ู‡ูˆ ู…ุถู…ูˆู† ุงู„ู…ู‚ุฏู…ุฉ ููŠ section 4.1 ููŠ
167
00:13:24,890 --> 00:13:29,030
section 4.2 ู†ุจุฏุฃ ู†ุญูƒูŠ ุนู† ุงู„ grammar ุนู† ุงู„ context
168
00:13:29,030 --> 00:13:32,450
free grammars context free grammars ุฅุญู†ุง ู…ุด ุฌุฏูŠุฏุฉ
169
00:13:32,450 --> 00:13:36,130
ุนู„ูŠู†ุง ุดูู†ุงู‡ุง ู‚ุจู„ ู‡ูŠูƒ ุดูู†ุงู‡ุง ููŠ ู‡ุฐู‡ ุงู„ู…ุซุงู„ุฉ ุตุญ ู‡ูŠ
170
00:13:36,130 --> 00:13:41,550
ู…ุซุงู„ ุนู„ู‰ grammar production ุตุญ ู‡ูŠ non terminal
171
00:13:41,550 --> 00:13:45,360
ูƒุงู†ุช in the form ูˆู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ symbols ุจุนุถ ู…ู†ู‡ุง
172
00:13:45,360 --> 00:13:53,340
terminals ูˆุจุนุถ ู…ู†ู‡ุง non terminals ุตุญ ู‡ุฐู‡ ุงู„ุณู„ุณู„ุฉ
173
00:13:53,340 --> 00:14:00,000
ุจุชุญุฏุฏ ุงู„ุตูŠุบุฉ ุชุจุน ุงู„ statement ูˆู‡ูŠ ู‚ุฏ ู„ุง ุชูƒูˆู†
174
00:14:00,000 --> 00:14:03,240
ุงู„ุตูŠุบุฉ ุงู„ูˆุญูŠุฏุฉ ู…ู…ูƒู† ุชูƒูˆู† ุตูŠุบุฉ ุฃุฎุฑู‰ ู„ู„ statement ุจุณ
175
00:14:03,240 --> 00:14:08,460
ู‡ุฐุง ู…ุซุงู„ ุนู„ู‰ ุฐู„ูƒ ุงู„ุขู† ุฒูŠ ู…ุง ุดูู†ุง ู‚ุจู„ ุญูƒุงูŠุฉ ุฃูƒุซุฑ
176
00:14:08,460 --> 00:14:11,580
ู…ู† ู…ุฑุฉ ุฃู† ุงู„ formal definition
177
00:14:14,110 --> 00:14:18,630
ุฃูŠ Grammar ุชุดุชู…ู„
178
00:14:18,630 --> 00:14:22,490
ุนู„ู‰ Terminals ุชุดุชู…ู„ ุนู„ู‰ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ Terminals
179
00:14:22,490 --> 00:14:26,770
ูŠุนู†ูŠ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ Non Terminals ูˆููŠ ูˆุงุญุฏ ู…ู† ุงู„ Non
180
00:14:26,770 --> 00:14:31,910
Terminals ุนุจุงุฑุฉ ุนู† Star Symbol ูˆููŠ ู‡ู„ ุงู„ Terms ูˆุงู„
181
00:14:31,910 --> 00:14:36,270
Non Termals ู…ุตุงุจุฉ ุนู„ู‰ ุดูƒู„ Productions ูŠุนู†ูŠ ู„ุฃ
182
00:14:36,270 --> 00:14:39,110
ุตุญ ุฃู† ุฃู†ุง ุฃุฌูŠ ุฃู‚ูˆู„ Context Free Grammar ู‡ูŠ ู…ุฌู…ูˆุนุฉ
183
00:14:39,110 --> 00:14:44,240
ู…ู† ุงู„ Productions ุชุจุฏุฃ ุจStar Symbol ูˆุชุฌุชู…ู„ ุนู„ู‰
184
00:14:44,240 --> 00:14:49,180
terminals ูˆ non-terminals ุตุญ ุงู„ูƒู„ุงุจุŸ ุงู„ุขู† ุฅุญู†ุง ุงู„
185
00:14:49,180 --> 00:14:52,380
terminals ุนุงุฑููŠู† ุฅูŠู‡ ุงู„ terminalsุŸ ุงู„ู„ูŠ ู‡ูŠ ููŠ
186
00:14:52,380 --> 00:14:57,060
ุงู„ุขุฎุฑ basic symbols basic ูŠุนู†ูŠ ู„ุง ูŠู…ูƒู† ุชุญู„ูŠู„ู‡ุง ุฅู„ู‰
187
00:14:57,060 --> 00:15:02,500
... ุฅู„ู‰ symbols ุฃุฎุฑู‰ ูˆู„ุฃ ู„ุฃ ู„ู…ุง ูŠูƒูˆู† ููŠ ู‡ุฐู‡
188
00:15:02,500 --> 00:15:08,680
ุงู„ุฏูŠุงู†ุฉ ุงู„ ... ุงู„ ... ุงู„ ... ุงู„ ... ุงู„ ... ุฅูŠุด ุฒูŠ
189
00:15:08,680 --> 00:15:15,420
ุงู„ุฃู‚ูˆุงุณ ุงู„ F ุงู„ Lุงู„ู€ non-terminals ู…ู…ูƒู† ุชุญู„ู„ ุตุญ
190
00:15:15,420 --> 00:15:21,680
ุฅู„ู‰ ... ุฅู„ู‰ symbols ุจุณ ุงู„ terminals ุฎู„ุงุต ููŠู‡
191
00:15:21,680 --> 00:15:27,220
terminals ููŠ ูˆุงู‚ุน ุงู„ุฃู…ุฑ ุงู„ู€ non-terminals ู‡ูŠ ุฃุณุงู…ูŠ
192
00:15:27,220 --> 00:15:33,500
ู„ู…ุฌู…ูˆุนุงุช ู…ู† ุงู„ terminals ู…ุธุจูˆุท ุงู„ู€ non-terminals
193
00:15:33,500 --> 00:15:38,660
are syntactic variables that denote sets ... sets
194
00:15:38,660 --> 00:15:43,770
of strings ู„ู…ุง ูŠูƒูˆู† ููŠู‡ุง ุงู†ุฏูŠุฃุฉExpression ู…ุด ู‡ุฐุง
195
00:15:43,770 --> 00:15:47,890
ุฅูŠุด ุดูู†ุงู‡ุง ู‚ุจู„ ุฐู„ูƒ ุนู„ู‰ ุฃู†ู‡ non-terminal ู…ุธุจูˆุท ุงู„
196
00:15:47,890 --> 00:15:51,150
expression ุฅูŠุด ุจุชูˆู‚ุน ู…ู…ูƒู† ูŠูƒูˆู† ู…ุซู„ุง identifier
197
00:15:51,150 --> 00:15:57,550
ู…ุทุจูˆุนุฉ ุจ relational operator ู…ุทุจูˆุนุฉ ุจ number ุฒูŠ
198
00:15:57,550 --> 00:16:04,050
ู…ุซู„ุง ุฃู‚ูˆู„ x ุฃู‚ู„ ู…ู† ุฎู…ุณุฉ ู‡ุฐุง expression ุตุญ ู‡ุฐุง ุงู„
199
00:16:04,050 --> 00:16:09,450
expression ู‡ูŠ ุงู„ุตูŠุบุฉ ุชุจุนุชู‡ ุตุญ ู‡ุฐุง ุงู„ุฃู†ูƒุงู„ non
200
00:16:09,450 --> 00:16:17,380
-terminal ู‡ูˆู‡ุฐู‡ ู…ุฌู…ูˆุนุฉ ุตุญุŸ ู…ุฌู…ูˆุนุฉ ู‡ุฐู‡ ุงู„ุณู„ุณู„ุฉ ู‡ุฐู‡
201
00:16:17,380 --> 00:16:22,640
ู…ู† ุงู„ symbols ุณู…ู†ู‡ุง expression ูˆู‚ุฏ ูŠูƒูˆู† ุงู„
202
00:16:22,640 --> 00:16:27,240
expression ุดูƒู„ ุขุฎุฑ ูŠุนู†ูŠ ู…ู…ูƒู† ูŠูƒูˆู† mathematical
203
00:16:27,240 --> 00:16:31,380
expression ู‡ุฐุง logical expression ุตุญุŸ logical ู„ุฃู†
204
00:16:31,380 --> 00:16:33,160
ููŠ logical operator ู…ู…ูƒู† ูŠูƒูˆู† mathematical
205
00:16:33,160 --> 00:16:40,200
expression ุนุจุงุฑุฉ ุนู† ู…ุซู„ุง identifier ุฒุงุฆุฏ term ุฒุงุฆุฏ
206
00:16:40,200 --> 00:16:46,280
number ุตุญุŸ ูุงู„ expression ู‡ูŠ ูƒ non terminal ู‡ูŠ
207
00:16:46,280 --> 00:16:51,080
ุนุจุงุฑุฉ ุนู† ุชุณู…ูŠุฉ ู„ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ symbols ุฅุญู†ุง ุจู†ุงุฎุฏ ู…ู†
208
00:16:51,080 --> 00:16:55,460
ุงู„ lexical analyzer ู†ุงุฎุฏ tokens ... tokens ู‡ุฐู‡
209
00:16:55,460 --> 00:16:58,580
ุจูŠุงุดุฑ
210
00:16:58,580 --> 00:17:04,340
... ุจู†ุดูˆู ู‡ู„ ... ุจู†ุดูˆู ูƒูŠู ูŠู…ูƒู† ุชุดูƒูŠู„ parse trees
211
00:17:04,340 --> 00:17:09,420
ู…ู†ู‡ุง ูƒู„ branch ููŠ ุงู„ parse tree ูˆุงุญุฏ ู…ู† ุงุซู†ูŠู† ูŠุง
212
00:17:09,420 --> 00:17:16,880
ุฅู…ุง leaf ูŠุง ุฅู…ุง ู„ุณู‡ sub-tree ุฅุฐุง ู‡ูˆ sub-tree ูŠุจู‚ู‰
213
00:17:16,880 --> 00:17:23,960
ูƒู„ ุงู„ sub-tree ู‡ุฐู‡ ุจู†ุณู…ูŠู‡ุง ุจุงุณู… ูˆุงุญุฏ ู…ู† ... ู…ู†
214
00:17:23,960 --> 00:17:32,760
ุงู„ non-terminals ุตุญุŸ ู‡ุฐุง expression ุจูŠุฌูŠ ูˆุงุตู„ุง sub
215
00:17:32,760 --> 00:17:36,460
-tree ุตุญูŠุญุŸ
216
00:17:36,460 --> 00:17:41,040
ูุฅู† terminals ู‡ูŠ leaves non-terminals ุนุจุงุฑุฉ ุนู†
217
00:17:41,420 --> 00:17:47,500
ุฃุณุงู…ูŠ ู„ู€ branches ููŠ ุงู„ ... ููŠ ุงู„ parse tree ู„ุฃู†
218
00:17:47,500 --> 00:17:55,080
ูˆุงุญุฏ ู…ู† ุงู„ non-terminers ุงุชูู‚ู†ุง ุนู„ู‰ ุฃู† ู‡ูˆ star
219
00:17:55,080 --> 00:17:58,480
symbol ู„ุงุฒู… ูŠูƒูˆู† ููŠู‡ star symbol ููŠ ุงู„ grammar ุตุญ
220
00:17:58,480 --> 00:18:04,440
ู…ุง ุจู†ู‚ุฏุฑ ู†ุนู…ู„ grammar ูˆู†ู†ุณู‰ ุฃู† ุญุฏุฏ ู…ู† ุงู„ star
221
00:18:04,440 --> 00:18:08,060
symbol ูˆู„ุง ูƒูŠู ุงู„ parser ุจุฏู‡ ูŠุจุฏุฃ ู…ู† ุฃูŠ ู†ู‚ุทุฉ ุจุฏู‡
222
00:18:08,060 --> 00:18:13,350
ูŠุจุฏุฃ ูˆุงุถุญุŸ in a grammar when non terminal is
223
00:18:13,350 --> 00:18:16,970
distinguished as the start symbol and the set of
224
00:18:16,970 --> 00:18:20,410
strings it denotes is the language generated by
225
00:18:20,410 --> 00:18:26,090
the grammar ุทูŠุจ ุงู„ุขู† a production ุฃูˆ the
226
00:18:26,090 --> 00:18:33,950
productions the productions ู‡ูŠ ุนุจุงุฑุฉ ุนู† ุงู„ู…ุดูƒุงู„
227
00:18:33,950 --> 00:18:41,490
ุงู„ู…ุฎุชู„ูุฉ ุงู„ู„ูŠ ุจุชุฃุชูŠ ุนู„ูŠู‡ุง ุงู„ู€ Non-terminals ุฃูˆ
228
00:18:41,490 --> 00:18:44,830
ุจุนุจุงุฑุฉ ุฃุฎุฑู‰ ู„ู…ุง ุฃู‚ูˆู„ ุฃู† ุงู„ุฃุดูƒุงู„ ุงู„ู…ุฎุชู„ูุฉ ุงู„ู„ูŠ
229
00:18:44,830 --> 00:18:48,050
ุจุชุฃุชูŠ ููŠู‡ุง ุงู„ู€ Non-terminals ูŠุนู†ูŠ ูƒู„ Non-terminals
230
00:18:48,050 --> 00:18:52,310
ุดูˆ ุงู„ุฃุดูƒุงู„ ุงู„ู…ุฎุชู„ูุฉ ูŠุนู†ูŠ ู…ุซู„ุง statement ู…ู…ูƒู† ุชุจู‚ู‰
231
00:18:52,310 --> 00:18:54,630
if statement ูˆ while statement ูƒู„ ูˆุงุญุฏ ู…ู† ุฏูˆู„
232
00:18:54,630 --> 00:18:57,790
ุนุจุงุฑุฉ ุนู† ุดูƒู„ ูƒู„ ูˆุงุญุฏ ู…ู† ุฏูˆู„ ุนุจุงุฑุฉ ุนู† production
233
00:18:57,790 --> 00:19:02,450
ูุงู„ productions ู‡ูŠ ุชุญุฏูŠุฏ ู„ู„ุฃุดูƒุงู„ ุงู„ู…ุฎุชู„ูุฉ ุงู„ู„ูŠ ู‚ุฏ
234
00:19:02,450 --> 00:19:04,810
ุชุฃุชูŠ ุนู„ูŠู‡ุง ุงู„ู€ Non-terminals ูˆููŠ ู†ูุณ ุงู„ูˆุฌู‡ุฉ ุงู„
235
00:19:04,810 --> 00:19:07,250
productions ู…ู…ูƒู† ุฃู†ุธุฑ ุนู„ูŠู‡ุง ุนู„ู‰ ุฃู† ู‡ูŠ ุนุจุงุฑุฉ ุนู†
236
00:19:07,250 --> 00:19:09,610
ุทุฑูŠู‚ุฉ
237
00:19:10,270 --> 00:19:18,130
ุงู„ู„ูŠ ุฃุดูƒู„ ู…ุฌู…ูˆุนู†ุง ุงู„ุณูŠู…ุจูˆู„ุฒ ููŠ branch is the
238
00:19:18,130 --> 00:19:21,650
manner in which the terminals and non-terminals
239
00:19:21,650 --> 00:19:27,230
ู…ุฌู…ูˆุนู†ุง ุงู„ุณูŠู…ุจูˆู„ุฒ ูŠู…ูƒู† ุฃู† ู†ู†ุธุฑ ุฅู„ูŠู‡ุง combined to
240
00:19:27,230 --> 00:19:33,110
form a string ูˆstring ู‡ุฐุง ุนุจุงุฑุฉ ุนู† branch ููŠ ุงู„
241
00:19:33,110 --> 00:19:38,570
language ูƒู„ู‡ ููŠ ุงู„ input ูƒู„ู‡ ูŠุนู†ูŠ ุงู„ production
242
00:19:38,570 --> 00:19:44,920
ุงู„ูˆุงุญุฏุฉ ู†ุนุฑูุนู†ุงุตุฑู‡ุง ุซู„ุงุซุฉ ุนู†ุงุตุฑ ุตุญ ู‡ุฐุง left hand
243
00:19:44,920 --> 00:19:48,520
side ุงู„ู„ูŠ ู‡ูˆ ุฏุงุฆู…ุง ุจูŠูƒูˆู† non terminal ุจุนุฏูŠู† ุงู„ุณู‡ู…
244
00:19:48,520 --> 00:19:53,440
ุจุนุฏูŠู† ุงู„ูƒุงุฆุด ุงู„ body ููŠ ุนู†ุฏู†ุง ุงู„ head ู‡ุฐุง ุงู„ head
245
00:19:53,440 --> 00:19:56,960
ุฃูˆ
246
00:19:56,960 --> 00:20:03,400
left side ุจุนุฏูŠู† ุงู„ symbol ุงู„ุณู‡ู… ุฃุญูŠุงู†ุง ููŠ ุจุนุถ ุงู„
247
00:20:03,400 --> 00:20:08,360
notation ูŠุณุชุฎุฏู… ู†ู‚ุทุชูŠู† ู†ู‚ุทุชูŠู† ุฃูˆ ูƒูˆู„ูˆู† ูƒูˆู„ูˆู† ูŠุณุงูˆูŠ ูˆุจุนุฏูŠู† ุงู„ body
248
00:20:08,360 --> 00:20:09,460
ูˆุจุนุฏูŠู† ุงู„ body
249
00:20:12,300 --> 00:20:15,060
ุฃูˆ ุงู„ right side ุงู„ right side left side ูˆ right
250
00:20:15,060 --> 00:20:24,960
side ุตุญุŸ consisting of ุฅูŠุดุŸ zero or more terminals
251
00:20:24,960 --> 00:20:32,460
terminals and non-terminals ุตุญุŸ
252
00:20:32,460 --> 00:20:40,580
okay ู‡ุฐุง example ุนู„ู‰ productions
253
00:20:43,400 --> 00:20:50,760
Questions ู‡ุฐู‡ ุชุดูƒู„ Grammar ู„ุจุนุถ arithmetic expressions
254
00:20:50,760 --> 00:20:56,180
Simple arithmetic expressions ู…ุด ู„ู„ุบุฉ ูƒุงู…ู„ุฉ ุจุณ
255
00:20:56,180 --> 00:20:59,760
ู„ุฃุฑุซู…ุชูƒ expressions expression can have the form
256
00:20:59,760 --> 00:21:04,540
expression ุฒูŠ term ุฃูˆ expression ู†ุงู‚ุต term ุฃูˆ term
257
00:21:04,540 --> 00:21:10,580
ูู‚ุท ุงู„ term ู„ู‡ ุซู„ุงุซ ุฃุดูƒุงู„ term ุถุฏ factor, term ุนู„ู‰
258
00:21:10,580 --> 00:21:14,750
factor ุฃูˆ ู…ุฌุฑุฏ factor ูˆุงู„ู€ factor ู„ู‡ ุดูƒู„ูŠู† ู‚ุฏ ูŠูƒูˆู†
259
00:21:14,750 --> 00:21:20,530
identifier ูู‚ุท ุฃูˆ ู‚ุฏ ูŠูƒูˆู† expression ุจูŠู† ู‚ูˆุณูŠู†
260
00:21:20,530 --> 00:21:23,710
ุงู„ุขู†
261
00:21:23,710 --> 00:21:26,450
ู‡ุฐุง ุงู„ูƒู„ุงู… ุฅุญู†ุง ุนุงุฑููŠู† ู…ู† ุงู„ terminals ูˆู…ู† ุงู„ non
262
00:21:26,450 --> 00:21:29,390
-terminals ููŠ ู‡ุฐู‡ ุงู„ definition ุฃูˆ ููŠ ู‡ุฐู‡ ุงู„
263
00:21:29,390 --> 00:21:33,310
grammar ุตุญุŸ ู‡ุฐู‡ grammar ูƒุงู…ู„ุฉ ูˆู„ุง ู„ุง ุจุณ ูƒุงู…ู„ุฉ ู„ู€
264
00:21:33,310 --> 00:21:37,150
simple mathematical expressions ู…ุด ู„ู„ุบุฉ ุจุฑู…ุฌุฉ ูˆู„ุง
265
00:21:37,150 --> 00:21:41,180
ุฏู„ูˆู‚ุชูŠ ู‡ุฐู‡ ุงู„ grammar ุงู„ู„ูŠ ุฃู†ุง ู…ู†ู‡ุง ุงู„ุญูŠู† ุนุงุฑููŠู† ู…ู†
266
00:21:41,180 --> 00:21:44,160
ุงู„ terminals ูˆู…ู† ุงู„ non-terminals ุงู„ non
267
00:21:44,160 --> 00:21:51,120
-terminals ู‡ูŠ ุงู„ุฃุณุงู…ูŠ ุงู„ู„ูŠ ู…ู† ุงู„ุฎุท ุงู„ู…ุงุฆู„ ูˆุงู„
268
00:21:51,120 --> 00:21:55,520
terminals ู‡ูŠ ุงู„ plus ูˆุงู„ minus ูˆุงู„ู†ุฌู…ุฉ ูˆุงู„
269
00:21:55,520 --> 00:22:03,060
slash ูˆุงู„ guess ุฌูˆุณ ูŠู…ูŠู† ุฌูˆุณ ุดู…ุงู„ ูˆุงู„ ID
270
00:22:08,470 --> 00:22:12,350
ุงู„ุขู† ุฅุญู†ุง ู„ูŠุด ุนุงุฑููŠู† ู‡ุฐุง ุงู„ูƒู„ุงู… ู„ุฃู†ู‡ ุนุงุฑููŠู† ุฃู† ุงู„
271
00:22:12,350 --> 00:22:17,230
italics ุฏุงุฆู…ุง non terminals ุงู„ูƒู„ุงู… ุงู„ู…ุงุฆู„ ุงู„ูƒู„ุงู…
272
00:22:17,230 --> 00:22:19,550
ุงู„ู…ูƒุชูˆุจ ุฎุท ู…ุงุฆู„ ู‡ุฐุง non terminal ูˆู‡ุฐุง convention
273
00:22:19,550 --> 00:22:26,290
ุดูŠุก ู…ุชุนุงุฑู ุนู„ูŠู‡ ุฃุนุชู‚ุฏ ุชู…ุงู… ููŠ conventions ููŠ ุงู„
274
00:22:26,290 --> 00:22:32,350
terminals ุฏุงุฆู…ุง ุฅุญู†ุง ู„ูˆ ุจุดูˆู ุฃุญุฑู
275
00:22:32,350 --> 00:22:35,460
ู…ูƒุชูˆุจุฉ ุจุงู„ small letter ุจุชุดูˆู ุงู„ grammar ูˆุงู„
276
00:22:35,460 --> 00:22:39,780
grammar ุจุชุญุชูˆูŠ ุนู„ู‰ ุฃุญุฑู ู…ู†ูุตู„ุฉ a ู„ุญุงู„ุฉ b ู„ุญุงู„ุฉ c
277
00:22:39,780 --> 00:22:45,760
ู„ุญุงู„ุฉ small letter ูˆู…ุงูŠู„ุฉ ู†ุนุชุจุฑู‡ุง terminal ุชู…ุงู…ุŸ
278
00:22:45,760 --> 00:22:50,880
ุฅูŠุด ูƒู…ุงู† ุงู„ terminalsุŸ ูƒู„ ุงู„ุนู„ุงู…ุงุช ุงู„ operators ูƒู„
279
00:22:50,880 --> 00:22:56,240
ุงู„ุฃุฑู‚ุงู… ูƒู„ ุงู„ punctuation symbols ุฒูŠ ุงู„ุฃู‚ูˆุงุณ ุงู„
280
00:22:56,240 --> 00:23:00,600
comma ุฃูˆู„ู‹ุง ู…ุง ุชุธู‡ุฑ ููŠู‡ grammar ูŠุนู†ูŠ ููŠ ุงู„ body ุฃูˆ
281
00:23:00,600 --> 00:23:05,880
ุงู„ู€ productions ุนู„ู‰ ุทูˆู„ ู…ุง ููŠุด ููŠู‡ุง ูƒู„ุงู… ูƒุฐู„ูƒ ุงู„ุญุงู„ุฉ
282
00:23:05,880 --> 00:23:11,140
strings of characters ุจุณ ุชุจู‚ู‰ ู…ูƒุชูˆุจุฉ ุจุงู„ู€ bold
283
00:23:11,140 --> 00:23:17,000
ู‡ุฐู‡ ุงู„ู€ string ID ูˆ F ู‡ู„ูˆ ู„ุฃ ุฅุฐุง ู…ูƒุชูˆุจูŠู† ุจุงู„ู€
284
00:23:17,000 --> 00:23:22,320
bold ุจู†ูู‡ู…ู‡ ุนู„ู‰ ุฃู†ู‡ ุฅูŠุด terminals ูˆู‡ู†ุง ุงู„ู€ terminal
285
00:23:22,320 --> 00:23:27,080
ู‡ุฐุง ูŠุฑู…ุฒ ุฅู„ู‰ keyword F ูˆู‡ุฐุง ุงู„ู€ terminal ูŠุฑู…ุฒ ุงู„ู‰
286
00:23:27,080 --> 00:23:29,520
ุงุณู… ู…ุชุบูŠุฑ identifier
287
00:23:33,570 --> 00:23:36,550
ุงู„ู€ Non-terminants ููŠ ุงู„ู…ู‚ุงุจู„ ุจู†ูƒุชุจู‡ุง ุจุทุฑูŠู‚ุฉ
288
00:23:36,550 --> 00:23:41,090
ู…ุฎุชู„ูุฉ ูŠุนู†ูŠ ุนุงุฏุฉ ุชุจู‚ู‰ capital ุจุฑุถู‡ a,b,c ูŠุนู†ูŠ
289
00:23:41,090 --> 00:23:45,950
ุฃูˆุงุฆู„ ุงู„ู€ alphabet ู…ู† .. ุงู‡ ู…ู† ุจุฏุงูŠุฉ ุงู„ู€ alphabet ู…ู†
290
00:23:45,950 --> 00:23:56,630
ุจุฏุงูŠุฉ ุงู„ุฃุญุฑู ุงู„ุฃุจุฌุฏูŠุฉ ุจุณ ุจูŠู†ูƒุชุจ capital ูƒุฐู„ูƒ
291
00:23:56,630 --> 00:24:02,560
ุงู„ุญุงู„ุฉ ุจู†ุญุท ุงู„ู€ S ุฏุงูŠู…ุง ูƒู€ start symbol ูˆุจุนุฏ ูƒุฏู‡ ุจู†ุนู…ู„
292
00:24:02,560 --> 00:24:09,260
ุงู„ู€ italics ู„ู…ุง ูŠูƒูˆู† ุนู†ุฏูŠ ุฃู†ุง ุชุณู…ูŠุฉ ุจู†ุนู…ู„ู‡ุง ุจุงู„ู€
293
00:24:09,260 --> 00:24:15,740
italic ุจุงู„ู…ุงูŠู„ ูˆุจุนุฏ ูƒุฏู‡ ุฃุญูŠุงู†ุง ุฃู†ุง ูƒุชูŠุฑ ุบูŠุฑ ุงู„ู€ a
294
00:24:15,740 --> 00:24:20,580
ูˆ ุงู„ู€ b ูˆ ุงู„ู€ c ุจู†ุณุชุฎุฏู… ุฃุนุฑู ุฌุงูŠุฉ ู…ู† ุงุฎุชุตุงุฑุงุช ูŠุนู†ูŠ E
295
00:24:20,580 --> 00:24:27,220
ุฎุณุฑ ุงู„ู€ expression T ุฎุณุฑ ุงู„ู€ term ูˆ F ูุงูƒุชุฑ ุฃุญูŠุงู†ุง
296
00:24:27,220 --> 00:24:28,460
ุจู†ุดูˆู ุฃุดูŠุงุก ุฃุฎุฑู‰
297
00:24:31,280 --> 00:24:38,480
ุบูŠุฑ ู‡ุฐุง ุงู„ูƒู„ุงู… ู†ุญูƒูŠ ุนู†
298
00:24:38,480 --> 00:24:43,560
ู…ุฌู…ูˆุน ู…ู† ุงู„ู€ symbols ุฌุฒุก ู…ู† ุงู„ู€ production ูŠุนู†ูŠ ู…ุซู„ุง
299
00:24:43,560 --> 00:24:50,340
ุงู
300
00:24:50,340 --> 00:24:58,740
ู…ุทุจูˆุนุฉ ุจุฃูŠ ุดูŠุก ุฃูŠ ุดูŠุก ู‡ุฐุง ุจู‚ู‰ ู…ุซู„ู‡ ุจู€ X capital ุฃูˆ
301
00:24:58,740 --> 00:25:04,210
Y capital ุฃูˆ Z capital ู„ู…ุง ุฃู‚ูˆู„ X ูƒุงุจุชู„ ุฃูˆ Y ูƒุงุจุชู„
302
00:25:04,210 --> 00:25:08,670
ุฃูˆ Z ูƒุงุจุชู„ ุฃู‚ุตุฏ Terminals ู…ุน Non Terminals ุฎู„ูŠุท ู…ู†
303
00:25:08,670 --> 00:25:14,830
ุฃูˆ ุณู„ุณู„ุฉ ู…ู† Terminals ูˆ ุฃูŠุถุง ู…ุนุงู‡ู… ูƒู…ุงู† Non
304
00:25:14,830 --> 00:25:19,210
Terminals ูุฅุฐุง ุดูˆูุช ุงู„ุฃุญุฑู ุงู„ู€ X ูˆ Y ูˆ Z ู…ู† ูƒุชุงุจ
305
00:25:19,210 --> 00:25:24,810
ุงู„ูƒุงุจุชู„ ูŠู‚ุตุฏ ุจูŠู‡ุง ุณู„ุณู„ุฉ ู…ู† ุงู„ู€ symbols ู…ุฎู„ุทุฉ
306
00:25:30,160 --> 00:25:33,920
upper case letters late in the alphabet ู…ู† ู†ู‡ุงูŠุฉ
307
00:25:33,920 --> 00:25:38,520
ุงู„ู€ alphabet such as x, y, z represent grammar symbols
308
00:25:38,520 --> 00:25:42,220
ุชุดูƒูŠู„ุฉ ู…ู† ุงู„ู€ grammar symbols that is either non
309
00:25:42,220 --> 00:25:48,200
terminals or terminals ู„ู…ุง ู†ุณุชุฎุฏู… u, v, z ุจุฑุถู‡
310
00:25:48,200 --> 00:25:53,960
ูŠุนู†ูŠ ุฒูŠ ู‡ูŠูƒุฉ ุจุณ small letter ุจูŠูƒูˆู† ู†ุณุชุฎุฏู…ู‡ุง
311
00:25:53,960 --> 00:26:01,430
ู„ู„ุฏู„ุงู„ุฉ ุนู„ู‰ ุฃูŠุถุง symbols ูˆู„ูƒู† ูƒู„ู‡ุง terminals ุงู„ุนูƒุณุŒ
312
00:26:01,430 --> 00:26:04,610
ู„ูˆ ุฃูƒูˆู† ุฃุฏูŠ ุณู„ุณู„ุฉ ู…ู† ุงู„ู€ Symbols ูƒู„ู‡ู… Terminals
313
00:26:04,610 --> 00:26:12,070
ุจุณุชุฎุฏู…ู„ู‡ู… ุชุฑู…ูŠุฒ ู…ู† ุงู„ู€ U ูˆ ุงู„ู€ V ูˆ ุงู„ุฃุญุฑู ุจุงุณู…
314
00:26:12,070 --> 00:26:16,110
Small letter ู„ุฃู† ู…ุง ุฃุณุชุฎุฏู… ุงู„ู€ Alpha ูˆ ุงู„ Beta ูˆ
315
00:26:16,110 --> 00:26:20,730
ุงู„ุฌุงู…ุนุฉ ุฒูŠูƒูŠ ุจุฃู‚ุตุฏ ููŠ ุนุงุฏุฉ ุงู„ู€ body ุชุจุน ุงู„ู€
316
00:26:20,730 --> 00:26:26,310
production production left
317
00:26:26,310 --> 00:26:34,310
hand side ุฃูˆ head implies body ุบุงู„ุจุง ุงู„ู€ body ุชุจุน
318
00:26:34,310 --> 00:26:37,990
productions ู†ุณุชุฎุฏู… ู„ู‡ ุงู„ุฑู…ูˆุฒ alpha, beta, and
319
00:26:37,990 --> 00:26:44,050
gamma ู„ุฃู† ู‡ู†ุง alpha 1, alpha 2, alpha k ูƒู„ ู‡ุฐู‡ ุงู„ู€
320
00:26:44,050 --> 00:26:47,890
alpha ูŠู‚ุตุฏ ุจูŠู‡ุง ุงู„ู€ bodies ุงู„ู…ุฎุชู„ูุฉ ุชุจุน ุงู„ู€
321
00:26:47,890 --> 00:26:53,590
productions ุชุจุน ุงู„ู€ non terminal A ู‡ูˆ ู†ูุณู‡ ุฅูŠู‡ ู„ูˆ
322
00:26:53,590 --> 00:26:57,670
ุนุฏุช productions ูุจู‚ูˆู„ alpha 1, alpha 2, alpha 3
323
00:26:57,670 --> 00:27:00,490
ู‡ุฏูˆู„ุฉ ุงู„ู€ bodies ุชุจุน ุงู„ู€ productions ุชุจุน ุงู„ู€ A
324
00:27:05,470 --> 00:27:09,610
ุงู„ุขู† ุฃูˆู„ production ููŠ ุงู„ู€ grammar ู„ู…ุง ุงุญู†ุง ู†ุณุฑุฏ
325
00:27:09,610 --> 00:27:13,010
grammar ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ู€ productions ุฃูˆู„ production ุงู„ู€
326
00:27:13,010 --> 00:27:18,790
head ุชุจุนู‡ุง ุฅูŠุด ู‡ูˆ ุฏุงูŠู…ุง ุจูŠูƒูˆู† ู‡ูˆ ุงู„ู€ start symbol
327
00:27:18,790 --> 00:27:24,010
ุณูˆุงุก ูƒุงู† ุงุณู…ู‡ S ุณูˆุงุก ูƒุงู† ูŠุณุชุฎุฏู… ุงู„ุญุฑู S ูˆู„ุง ุบูŠุฑ
328
00:27:24,010 --> 00:27:30,650
ุฐู„ูƒ ุฃูˆู„ production ููŠ ุงู„ู€ grammar ุงู„ู€ head ุชุจุนู‡ุง ู‡ูˆ
329
00:27:30,650 --> 00:27:38,710
ุงู„ู€ start symbol ุฅู„ุง ุฅุฐุง ุชู… ุงู„ุฅุดุงุฑุฉ ุฅู„ู‰ ุฎู„ุงู ุฐู„ูƒ ู‡ุฐุง
330
00:27:38,710 --> 00:27:42,950
ู…ุซุงู„
331
00:27:42,950 --> 00:27:48,010
ุนู† ุงู„ูƒู„ุงู… ุงู„ู„ูŠ ุฑุงุญ ุฃุชูƒู„ู… ุนู†ู‡ Stressing ู‡ูˆ E ู„ุฃู†
332
00:27:48,010 --> 00:27:51,250
ุฃูˆู„ ูˆุงุญุฏุฉ ู‡ูˆ ุงู„ู€ production ูƒู„ู‡ู… ุงู„ู€ E ูˆ ุงู„ู€ T ูˆ ุงู„ู€ F
333
00:27:51,250 --> 00:27:56,230
ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ non-terminals ุงู„ู€ ID ู‡ูŠ ุงู„ู€ terminal ูˆ
334
00:27:56,230 --> 00:28:02,110
ู…ุนู‡ุง I ูˆ M ูƒู…ุงู† ูƒู„ ุงู„ู€ operators ุงู„ู€
335
00:28:02,110 --> 00:28:02,670
derivation
336
00:28:16,150 --> 00:28:19,610
ุงู„ููƒุฑุฉ ุงู„ุฃุณุงุณูŠุฉ ู„ู„ู€ parser ู‡ูˆ ุฃู†ู‡ ูŠุจุฏุฃ ู…ู† ุงู„ู€ start
337
00:28:19,610 --> 00:28:25,510
symbol ูˆูŠุฎุชุงุฑ ูˆุงุญุฏุฉ ู…ู† production ุชุจุนุชู‡ ูŠุญูˆู„ ูˆุงุญุฏ
338
00:28:25,510 --> 00:28:31,990
ู…ู† ุงู„ู€ non terminals ุงู„ู„ูŠ ููŠู‡ุง ุฅู„ู‰ ูŠุนู…ู„ replace ุฅู„ู‰
339
00:28:31,990 --> 00:28:39,600
ู…ุฌู…ูˆุนุฉ symbols ุจุฏูŠู„ ุนู†ู‡ ูˆูŠุจุฏุฃ ูŠุชุญูˆู„ ุณูŠู…ุจูˆู„ ูˆุฑุง
340
00:28:39,600 --> 00:28:43,780
ุณูŠู…ุจูˆู„ ุฅู„ู‰ ุฃู† ูŠุตู„ ุฅู„ู‰
341
00:28:43,780 --> 00:28:48,420
ุงู„ู€ input ุงู„ู„ูŠ ุฏุงุฎู„ ุงู„ู„ูŠ ุฃุฌุงู„ู‡ ู…ู† ุงู„ู€ from the
342
00:28:48,420 --> 00:28:53,420
lexical analyzer ูู‡ุฐุง
343
00:28:53,420 --> 00:28:57,500
ุงู„ูƒู„ ุงู„ู€ derivation ู‡ูˆ ุฃุณุงุณ ุงู„ู€ construction ุชุจุน ุงู„ู€
344
00:28:57,500 --> 00:29:02,040
parse tree parse tree ุฒูŠ ู…ุง ูŠู…ูƒู† ุฃู† ุฃู†ุง ู‡ู†ุง ุจุจุฏุฃ
345
00:29:02,040 --> 00:29:07,050
ุจุงู„ู€ ู…ู‚ู„ ุจุงู„ู€ star symbol ูˆุจุดูˆู ุฅูŠุด ู‚ุงู„ ู„ูŠ ู‡ุงูŠ ุฎู„ูŠู†ุง
346
00:29:07,050 --> 00:29:09,910
ู†ุงุฎุฏ ุงู„ู€ grammar ู‡ุฐู‡ ู†ูƒุชุจู‡ุง ู‡ู†ุง ุนู„ู‰ ุงู„ุฌุงู†ุจ
347
00:30:01,830 --> 00:30:07,530
ุจู†ุจุฏุฃ ุจุงู„ู€ start symbol ุชุจุนูŠ ุงู„ู€ start symbol ุงู„ุขู†
348
00:30:07,530 --> 00:30:15,390
ููŠู‡ ุนุฏุฉ productions ุฃุญุฏูŠู† ุชู„ุงุชุฉ ูƒุชุงุจุฉ
349
00:30:15,390 --> 00:30:17,610
ุงู„ู€ grammar ู…ุด ู‡ุฐู‡ ุงู„ู„ูŠ ุจู†ูŠู†ุงู‡ุง
350
00:30:25,480 --> 00:30:35,720
ุจุนุฏูŠู† ู…ูŠู†ุŸ ุจุฏู†ุง ู‡ุฐุง ุงู„ู€ ground ุฎู„ูŠู†ูŠ
351
00:30:35,720 --> 00:30:37,800
ู†ุทู„ุน ู„ู‡ุฐุง ุงู„ู€ ground ุงู†ุณุงู† ุงู„ู€ ground ูˆู†ุทู„ุน ู„ู‡ุฐุง ุงู„ู€
352
00:30:37,800 --> 00:30:42,440
ground ูˆู‡ูŠ ุงู„ู€ E can have four ุฅู„ู‰ ุชู„ุช ุฅู„ู‰ ุฃุฑุจุน ูˆ
353
00:30:42,440 --> 00:30:49,300
ุฎู…ุณ productions ู„ุฃู† ุจุจุฏุฃ ุจุงู„ู€ E ุจุฏุฃุช ุจุงู„ู€ E ู„ุฃู† ู‡ุฐุง
354
00:30:49,300 --> 00:30:52,500
ุงู„ู€ E ุจูŠุณุชุจุฏู„ ูˆุงุญุฏุฉ ู…ู† ุงู„ู€ ุฅูŠุด ู…ู† ุงู„ู€ productions
355
00:30:52,500 --> 00:30:56,410
ุชุจุนู‡ู… ุฃูˆ ู…ู† ุงู„ู€ bodies ุฃุญุฏ ุงุซู†ูŠู† ุซู„ุงุซุฉ ุฃุฑุจุน ุฃุฑุจุน
356
00:30:56,410 --> 00:30:57,770
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
357
00:30:57,770 --> 00:30:59,750
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
358
00:30:59,750 --> 00:31:08,510
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
359
00:31:08,510 --> 00:31:10,530
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
360
00:31:10,530 --> 00:31:10,950
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
361
00:31:10,950 --> 00:31:11,390
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
362
00:31:11,390 --> 00:31:22,250
ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน ุฃุฑุจุน
363
00:31:22,250 --> 00:31:27,880
ุงู„ู€ tokens ุงู„ู„ูŠ .. ุฃู†ุง ู…ุนูƒ ุจุณ ุงุญู†ุง ุงู„ุขู† ุจู†ูˆุถุญ
364
00:31:27,880 --> 00:31:33,320
ููƒุฑุฉ ุงู„ู€ derivation ุฅู†ู…ุง ู„ูŠุด ู‡ุฐู‡ ูˆู…ุด ู…ุด ู‡ุฐู‡ ูŠุชู…
365
00:31:33,320 --> 00:31:37,080
ุฏู„ูˆู‚ุชูŠ ุนู„ู‰ ุฅูŠุด ุงู„ู€ input ุงู„ู„ูŠ ุฌุงูŠู„ูƒ ูุนู„ุง ูˆุฅูŠุด ุงู„ู€
366
00:31:37,080 --> 00:31:41,760
parsing table ุงู„ู„ูŠ ู‡ูŠูƒูˆู† ุฃู…ุงู…ูƒ ูˆู‡ูŠ ุชุฎุชุงุฑ ุงู„ู€
367
00:31:41,760 --> 00:31:45,510
parsing table ู‡ูˆ ู„ูŠู‡ ุจูŠุญุฏุฏ ู„ูƒ ุฅูŠุด ุงู„ู€ production
368
00:31:45,510 --> 00:31:49,310
ุจุชุฎุชูู‰ ุจุณ ููƒุฑุฉ ุงู„ู€ derivation ุฃู†ู‡ ู‡ูŠ ุชุณู„ุณู„ ู…ู† ุงู„ู€
369
00:31:49,310 --> 00:31:53,250
replacements ุณู„ุณู„ุฉ ู…ู† ุงู„ู€ replacements ููŠ ูƒู„ ูˆุงุญุฏุฉ
370
00:31:53,250 --> 00:31:57,290
ุฃู†ุง ุจุฏุฃุช ุฃูˆู„ replacement ูƒุงู†ุช ู‡ูŠ ุงู„ู€ E ู†ูุณู‡ุง ุงู„ู€
371
00:31:57,290 --> 00:32:01,070
start ู†ูุณู‡ุง ุญูˆู„ุชู‡ุง ุฅู„ู‰ ู‡ุฐุง ุงู„ู€ body ุงู„ุขู† ู‡ุฐุง ุงู„ู€
372
00:32:01,070 --> 00:32:05,210
body ูƒุงู†ุช ุงู„ุฃูˆู„ symbol ู…ุชุงุญูŠ ุงู„ู„ูŠ ุญูˆู„ุชู‡ ุจูˆุงุญุฏุฉ
373
00:32:05,210 --> 00:32:09,790
ุฃุฎุฑู‰ ุงู„ู„ูŠ ู‡ูŠ ู‡ุฐู‡ ุจุถุจุท ุงู„ู†ู‚ุต ู†ุฒู„ ุฒูŠ ู…ุง ู‡ูŠ ูˆุจุฏุฃ ู†ุฒู„
374
00:32:09,790 --> 00:32:13,750
ู„ู‡ุง ุงู„ุขู† ุงู„ู€ E ููŠ ุงู„ุฎุทูˆุฉ ุงู„ุฑุงุจุนุฉ ุญูˆู„ุชู‡ุง ุจู€
375
00:32:13,750 --> 00:32:17,030
Identifier ูˆุถุน ูƒู„ ุดูŠุก ุฒูŠ ู…ุง ู‡ูˆ ุงู„ู„ูŠ ุงุชุญูˆู„ ู‡ูˆ ุงู„ู€
376
00:32:17,030 --> 00:32:21,230
Identifier ุงู„ุขู† ุนู†ุฏ ู‡ู†ุง ุฃู†ุง ูˆุตู„ุช ู„ู€ ุงู„ู€ dead end
377
00:32:21,230 --> 00:32:24,830
ุฎู„ุงุต ูƒู„ ุงู„ู€ symbols ุงู„ู„ูŠ ุนู†ุฏู†ุง ู†ุงู‚ุตุฉ ุงู„ู€ ghost ูˆ ุงู„ู€
378
00:32:24,830 --> 00:32:29,430
ID ูˆุงู„ู„ูŠ ู‡ุฏุง ูƒู„ู‡ู… terminals ู…ุง ููŠ ุงู„ุขู† ุฅุฐุง ู‡ุฐุง ู„ุง
379
00:32:29,430 --> 00:32:33,490
ูŠุชูˆุงูู‚ ุงู„ู€ input ุฅุฐุง ู‡ุฐุง ู„ุง ูŠุชูˆุงูู‚ ุงู„ู€ input ูŠุจู‚ู‰
380
00:32:33,490 --> 00:32:38,810
ุฅู…ุง error syntax error ูŠุง ุฅู…ุง ุจุฏูŠ ุฃุฑุฌุน ุชุงู†ูŠ ุฃุฌุฑุจ
381
00:32:41,380 --> 00:32:46,480
ู…ุณุงุฑ ุขุฎุฑ ู…ู† ุงู„ู€ derivation ูˆุงุถุญ ูุฃูˆู„ ู†ูู‡ู… ุฅูŠุด ูŠุนู†ูŠ
382
00:32:46,480 --> 00:32:50,180
ุงู„ู€ derivation ุชุงู†ูŠุง ู†ูู‡ู… ุฅูŠุด ุนู„ุงู‚ุฉ ู‡ุฐุง ุจุงู„ู€ parse
383
00:32:50,180 --> 00:32:54,560
tree ุจุจู†ุงุก ุงู„ู€ parse tree ู‡ุฐุง ุฅูŠู‡ ุนู„ุงู‚ุฉ ู…ุจุงุดุฑุฉ
384
00:32:54,560 --> 00:32:58,940
ุจุจู†ุงุก ุงู„ู€ parse tree ุฅู† ุงุญู†ุง
385
00:32:58,940 --> 00:33:05,300
ุฅู†
386
00:33:05,300 --> 00:33:11,200
ุงุญู†ุง ุฃูˆู„ symbol ูƒุงู† ู…ุนุงู†ุง ู‡ูˆ ู‡ุฐุง ู…ุซุงู„ ุขุฎุฑ ู…ุซู„ ุขุฎุฑ
387
00:33:11,200 --> 00:33:17,060
ุจุณ ุจูŠูˆุถุญ ูŠุทู„ุน ุงู„ู€ series N derivation ุฃูˆู„ ูŠุนู†ูŠ ู‡ุฐุง
388
00:33:17,060 --> 00:33:22,400
ุงู„ู€ N ูƒุงู† ุนู†ุฏูŠ E ุงุณุชุฎุฏู…ุช ุจูŠู‡ ุทุจุนุง ุงู„ู€ derivation ุฏู‡
389
00:33:22,400 --> 00:33:26,220
ุจู†ุฑู…ุฒ ุฅู„ูŠู‡ุง ุจุงู„ู€ double arrow ุจุงู„ู€ double line arrow
390
00:33:26,220 --> 00:33:34,200
ุงู„ุณู‡ู… ุงู„ู„ูŠ ูŠู„ูˆ ู…ุฒุฏูˆุฌ ุงู„ู‚ุทุฉ ุจูŠุนู…ู„ ุชู…ุงู… ุฃูˆู„
391
00:33:34,200 --> 00:33:37,800
replacement ูƒุงู†ุช minus ู…ุน ุงู„ู€ E ุชุงู†ูŠ replacement
392
00:33:38,400 --> 00:33:42,020
ูƒุงู†ุช ุงู„ู€ E ู…ุน ุงู„ุฌูˆุงุณ ู†ุฒู„ ุงู„ู€ minus ุฒูŠ ู…ุง ู‡ูˆ ูˆ
393
00:33:42,020 --> 00:33:48,000
ุจุนุฏูŠู† ุงู„ุฌูˆุงุณ ุชุงู„ุช ุงู„ู€ replacement ุฃู†ู‡ ุงู„ู€ E ุงุณุชูˆุจ ุฏูŠ
394
00:33:48,000 --> 00:33:51,700
ู„ู… ุชุจู‚ุงุด ุงู„ู€
395
00:33:51,700 --> 00:33:58,420
E ุงู„ู„ูŠ ููŠ ุงู„ู…ุตุฏุฑ ุงุณุชูˆุจ ุฏูŠ ู„ุฅูŠู‡ุŸ ู„ุฅูŠู‡ุŸ ู„ุฃ ุจุงู„ู€ I ุฏูŠ
396
00:33:58,420 --> 00:34:02,120
ุงุณุชูˆุจ ุฏูŠ ู„ุฅูŠู‡ุŸ ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ ..
397
00:34:02,120 --> 00:34:02,240
ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡
398
00:34:02,240 --> 00:34:02,520
.. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ ..
399
00:34:02,520 --> 00:34:04,480
ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡
400
00:34:04,480 --> 00:34:10,460
ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุฏู‡ .. ุงุณุชุจุฏู„ุช ู…ู† ุงู„ู€ E
401
00:34:10,460 --> 00:34:19,160
ุงู„ุฃูˆู„ู‰ ุจุงู„ู€ Identifier ุฅุฒุงูŠ
402
00:34:19,160 --> 00:34:22,740
ุงู„ู„ูŠ ูˆุจุงู‚ูŠ ูƒู„ู‡ ุฒู…ู‡ุฑ ุจุนุฏูŠู† ุงุณุชุจุฏู„ุช ุงู„ู€ E ุงู„ุซุงู†ูŠ
403
00:34:22,740 --> 00:34:28,640
ุจุงู„ู€ Identifier ุงู„ู€
404
00:34:28,640 --> 00:34:31,840
relationship
405
00:34:31,840 --> 00:34:34,800
ุจูŠู† ุงู„ู€ derivation ูˆ ุงู„ู€ parts tree building
406
00:34:37,300 --> 00:34:41,200
ูƒู„ start symbol ุงู„ุฃูˆู„ ูŠุนู†ูŠ start symbol ุงู„ู„ูŠ
407
00:34:41,200 --> 00:34:45,560
ุจุฏุฃู†ุง ู†ุงู‚ุจู‡ ู„ู‡ node ู„ุฅู† ู†ุชุดูŠู„ ุงู„ู€ derivation ุชุจุนุชู‡
408
00:34:45,560 --> 00:34:49,540
ู…ุฌู…ูˆุนุฉ ุงู„ู€ symbols ุงู„ู„ูŠ ููŠู‡ุง ูƒู„ ูˆุงุญุฏ ู…ู†ู‡ู… ุจู†ุนู…ู„ู‡
409
00:34:49,540 --> 00:34:53,360
child ู„ุฅู†
410
00:34:53,360 --> 00:34:56,560
ุงู„ู„ูŠ ุฌุงูŠ ุนู„ูŠู‡ ุงู„ุฏูˆุฑ ููŠ ุงู„ู€ replacement ู…ูŠู† ู‡ูˆ ู‡ุฐุง
411
00:34:56,560 --> 00:35:02,080
ูู‡ุฐุง ุจูŠุตูŠุฑ ู‡ูˆ root ู„ู€ sub tree sub tree ู‡ุฐู‡ ุงู„ู„ูŠ
412
00:35:02,080 --> 00:35:06,380
ูŠูˆู… ุงุญู†ุง ุจู†ุดูŠู„ู‡ ูˆุจู†ุญุท ุงู„ู€ production ุชุจุนู‡ ุฃูˆ ุงู„ู€
413
00:35:06,380 --> 00:35:11,110
body ุชุจุนู‡ ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุฃุชู‰ ุจุฏู„ ู…ู†ู‡ุง ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡
414
00:35:11,110 --> 00:35:13,230
ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ
415
00:35:13,230 --> 00:35:16,350
ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู†
416
00:35:16,350 --> 00:35:17,930
ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡
417
00:35:17,930 --> 00:35:24,330
ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ
418
00:35:24,330 --> 00:35:27,570
ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡
419
00:35:27,570 --> 00:35:30,130
ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ
420
00:35:30,130 --> 00:35:30,270
ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู†
421
00:35:30,270 --> 00:35:35,410
ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ ุซู„ุงุซุฉ ู…ู† ู‡ุฐู‡ ุงู„ู…ุดูƒู„ุฉ
422
00:35:35,410 --> 00:35:41,580
ุชูŽู„ Derivation ูˆ ุชุดูƒูŠู„ ุฃูˆ ุจู†ุงุก ุงู„ู€ parse tree ุนู…ู„ูŠุฉ
423
00:35:41,580 --> 00:35:49,380
ูˆุงุญุฏุฉ ุนู…ู„ูŠุฉ ูˆุงุญุฏุฉ ุดูˆูŠุฉ ุจุณ ู†ุฑุฌุน ุซุงู†ูŠ ุนู„ู‰ ุงู„
424
00:35:49,380 --> 00:35:54,080
derivation ู…ุฑุฉ ุฃุฎุฑู‰ ูุงุญู†ุง ู‚ู„ู†ุง the construction of
425
00:35:54,080 --> 00:35:57,820
a parse tree can be made precise ุจู†ุงุก ุงู„ู€ parse
426
00:35:57,820 --> 00:36:04,020
tree by taking a derivational view ุจู†ู…ุดูŠ ุนู„ู‰ ุฃุณุงุณ
427
00:36:04,020 --> 00:36:07,020
derivations ููŠ ูƒู„ ุฎุทูˆุฉ ู…ู† ุฎุทูˆุงุช ุงู„ู€ derivation
428
00:36:07,020 --> 00:36:12,560
ุจู†ุจู†ูŠ ู…ุง ูŠู‚ุงุจู„ู‡ุง ุนู„ู‰
429
00:36:12,560 --> 00:36:18,660
ุงู„ู€ parse tree a replacement of a single e by one
430
00:36:18,660 --> 00:36:22,860
of c will be here ู„ุฃู† ู‡ุฐุง ุงู„ูƒู„ุงู… ู…ู‚ุงุจู„ู‡ ุจุฑูˆุญ ุจุนู…ู„
431
00:36:22,860 --> 00:36:31,180
notes ุนู„ู‰ ุงู„ู€ parse tree ุงู„ู€ derivation ู„ู…ุง ู†ูƒุชุจ ุงู„ู€
432
00:36:31,180 --> 00:36:37,710
derivation ุฃูˆู„ ุญุงุฌุฉ ุณูˆู ู†ุณุชุฎุฏู… ุงู„ุณู‡ู… ู‡ุฐุง ุฅุดุงุฑุฉ ุฅู„ู‰
433
00:36:37,710 --> 00:36:42,270
ุงู„ุงู†ุชู‚ุงู„ ู…ู† ุงู„ู€ string
434
00:36:42,270 --> 00:36:52,750
of symbols ุฅู„ู‰ ุงู„ู„ูŠ ุจุนุฏู‡ ูƒู„ ูˆุงุญุฏ ู…ู†
435
00:36:52,750 --> 00:36:54,350
ู‡ุฐู‡ ุงู„ู€ string of symbols
436
00:37:07,820 --> 00:37:18,840
ู…ู…ูƒู† ุชุฎูŠู„ู‡ ุนู„ู‰ ู‡ุฐู‡ ุงู„ู‡ูŠุฆุฉ ุนู„ู‰
437
00:37:18,840 --> 00:37:24,800
ู‡ุฐู‡ ุงู„ู‡ูŠุฆุฉ ุนุจุงุฑุฉ
438
00:37:24,800 --> 00:37:29,920
ุนู† ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ู€ symbols ูˆ ููŠู‡ุง ุจู†ู†ุชู‚ู„ ู…ู† ุงู„ู€ a ูˆ ูˆุฑุง
439
00:37:29,920 --> 00:37:34,980
ู…ุฌู…ูˆุนุฉ ุฃุฎุฑู‰ ู…ู† ุงู„ู€ symbols ุฃู„ู ู‡ุงู„ูŠ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„
440
00:37:34,980 --> 00:37:41,980
symbols ุงู„ู€ a ู‡ุฐุง
441
00:37:41,980 --> 00:37:46,220
ู‡ูˆ ุงู„ู„ูŠ ุฌุงูŠุฉ ุงู„ุฏูˆุฑ ุนู„ูŠู‡ ููŠ
442
00:37:46,220 --> 00:37:49,540
ุงู„ู€ replacement ูŠุนู†ูŠ ููŠ ุงู„ู€ form ู‡ุฐุง ุฃู†ุง ุจุณุชุจุฏู„ ุงู„ู€ a
443
00:37:49,540 --> 00:37:54,220
ุจุงู„ู€ symbols ุจุฃุญุฏู‰ ุงู„ู€ productions ุชุจุนุชู‡ ูุจู†ุฑูˆุญ
444
00:37:54,220 --> 00:37:58,900
ุจู†ุดูˆู suppose ุงู† ุฃู†ุง ููŠ ุนู†ุฏูŠ production ุงู„ู€ a can have
445
00:37:58,900 --> 00:38:04,810
the form ูŠุจู‚ุงุด ุงู„ุขู† ุจูŠุตูŠุฑ ู‡ุฐุง ุจูŠุชุญูˆู„ ุฅู„ู‰ Alpha
446
00:38:04,810 --> 00:38:13,230
Gamma Beta ูุงุญู†ุง
447
00:38:13,230 --> 00:38:19,310
ุจุนุจุงุฑุฉ ุฃุฎุฑู‰ ูƒู„ form ู‡ุฐุง form ูƒู„ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„
448
00:38:19,310 --> 00:38:24,070
symbols ู†ุจุญุซ ุนู† ุงู„ู€ term ุงู„ู€ non terminal ุงู„ู„ูŠ ุฌุงูŠ
449
00:38:24,070 --> 00:38:27,170
ุนู„ู‰ ุงู„ุฏูˆุฑ ุงู„ู€ non terminal ุงู„ู„ูŠ ุฌุงูŠ ุนู„ู‰ ุงู„ุฏูˆุฑ ู‚ุจู„ู‡
450
00:38:27,170 --> 00:38:31,110
ููŠู‡ symbols ู…ุฎู„ุตูŠู† ูˆ ุจุนุฏู‡ ููŠู‡ symbols ู„ุณู‡ ุจุฏู‡ ูŠุฌูŠ
451
00:38:31,110 --> 00:38:35,810
ุนู„ูŠู‡ู… ุงู„ุฏูˆุฑ ู‡ูˆ ุงู„ู„ูŠ ุฃู†ุง ุฃุฏูˆุฑ ุนู„ูŠู‡ ูุจู†ุจุฏู„ู‡ ูƒูŠูุŸ ู„ุฃู†
452
00:38:35,810 --> 00:38:41,050
ู†ุจุญุซ ุนู† ูˆุงุญุฏ ู…ู† ุงู„ู€ productions ุชุจุนู‡ ุฃู†ู‡ ุฅูŠู‡ุŸ ูู„ู†ู‚ูˆู„
453
00:38:41,050 --> 00:38:45,530
ุฃูŠู‡ ูƒุงู† ููŠ ุงู„ู€ form Gamma ูˆ ุจู†ุดูŠู„ู‡ ู‡ูˆ ูˆ ุจู†ุญุท Gamma
454
00:38:45,530 --> 00:38:50,730
Gamma ู‡ุฐู‡ ู…ุด ุณูŠู…ุจูˆู„ ูˆุงุญุฏ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ุณูŠู…ุจูˆู„ุฒ okay ู‡ูŠ
455
00:38:50,730 --> 00:38:55,090
ุฃู‚ู„ ุนู† production ู‡ูŠ ุฃู‚ู„ ุนู† body ุชุจุนุช ู‡ุฏู ุฅูŠุดุŸ
456
00:38:55,090 --> 00:38:58,730
ุฃุฑุจุนุฉ ู…ู„ูŠูˆู† ู†ูŠุดุŸ ู‡ุฐุง ู‡ูˆ ุงู„ู€ derivation ุชุจุนู†ุง ูˆุตูˆู„ุง
457
00:38:58,730 --> 00:38:58,990
ุฅู„ู‰
458
00:39:02,150 --> 00:39:08,690
ุงู„ู†ู‡ุงูŠุฉ ุฅู„ู‰ form ูŠุทุจู‚ ุงู„ู€ input ุงู„ู„ูŠ ุฏุฎู„ ู„ุฃู† ู„ู…ุง
459
00:39:08,690 --> 00:39:14,070
ุฃู†ุง ุจู‚ู‰ ููŠ ุนู†ุฏูŠ ุณู„ุณู„ุฉ
460
00:39:14,070 --> 00:39:20,190
ู…ู† ู‡ุฐู‡ ุงู„ู€ forms ู…ู…ูƒู† ู†ุนุจุฑ ุนู„ู‰ ูƒู„ ูˆุงุญุฏ ู…ู† ู‡ุฏูˆู„
461
00:39:20,190 --> 00:39:23,950
ุจูŠู‚ูˆู„ alpha one derives alpha two derives alpha
462
00:39:23,950 --> 00:39:26,410
ูƒุฐุง ู„ุฃุฌู‡ุฒุฉ alpha n
463
00:39:30,730 --> 00:39:37,070
ู„ุฃู† ฮฑN ู‡ุฐุง ูŠูุชุฑุถ ุฃู† ู‡ูˆ ุณู„ุณู„ุฉ ุงู„ู€ tokens ุงู„ู„ูŠ ุฏุฎู„ุช
464
00:39:37,070 --> 00:39:45,910
ููŠ ุงู„ู€ input ูุฅุฐุง ูุนู„ุงู‹ ุฃู†ุง ู‚ุฏุฑุช ุฃุตู„ ู…ู† S ู…ูุชุฑุถ
465
00:39:45,910 --> 00:39:56,110
ู…ู† ุงู„ู€ input ู‡ูˆ ฮฑN ุฅุฐุง ูˆุตู„ุช ู…ู† S ุฅู„ู‰ ฮฑN ูŠุจู‚ู‰ ฮฑN ู‡ุฐุง
466
00:39:56,110 --> 00:40:03,220
ุณู„ูŠู…ุงู„ูˆุตูˆู„ ู…ู† S ุฅู„ู‰ ฮฑN ู„ุง ูŠุชู… ุจุฎุทูˆุฉ ูˆุงุญุฏุฉ ูŠุชู…
467
00:40:03,220 --> 00:40:15,860
ุจูˆุงุญุฏุฉ ุฃูˆ ุฃูƒุซุฑ ู…ู† ุงู„ู€ derivations ู…ุธุจูˆุท S
468
00:40:15,860 --> 00:40:24,300
derives ฮฑN in zero or more steps ุณูŠู…ุจูˆู„
469
00:40:24,300 --> 00:40:31,370
ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ double arrow ู…ุน ุงู„ู†ุฌู…ุฉ S Derives Alpha N
470
00:40:31,370 --> 00:40:37,910
In Zero Or More Steps ูƒุฐุง ูƒุงู† ุงู„ุญุงู„ุฉ ู„ูˆ ุจูŠุชุฑ ุฃูˆ
471
00:40:37,910 --> 00:40:41,950
ุฌุงู…ุนุฉ ู„ูˆ
472
00:40:41,950 --> 00:40:46,110
ู„ุงุญุธุช plus ู…ุนู†ุงู‡ ุฐู„ูƒ ุฃู†ู‡ ููŠ ุฎุทูˆุฉ ูˆุงุญุฏุฉ ุนู„ู‰ ุงู„ุฃู‚ู„ ู…ุด
473
00:40:46,110 --> 00:40:51,450
Zero One Or More Steps Derives In One Or More
474
00:40:51,450 --> 00:40:53,130
Steps
475
00:40:55,130 --> 00:40:59,230
ุฅุฐุง ู„ุงุญุธุชู… ูˆ ุฃู†ุง ุจุฃุญูƒูŠ ู‡ุฐุง form ู‡ุฐุง form ู‡ุฐุง form
476
00:40:59,230 --> 00:41:03,830
ู…ู† derivation ุฅู„ู‰ ุงู„ู„ูŠ ุจุนุฏู‡ุง ุฃู†ุง ุจู†ุชู‚ู„ ู…ู† form ุฅู„ู‰
477
00:41:03,830 --> 00:41:07,890
form ุฅู„ู‰ form okay ู†ุณู…ูŠู‡ู… sentential forms
478
00:41:07,890 --> 00:41:19,510
sentence sentential forms ุชู…ุงู… sentential forms if
479
00:41:19,510 --> 00:41:26,620
S derives alpha in zero or more steps ุนู„ู‰ ุฃุณุงุณ ุฃู† S
480
00:41:26,620 --> 00:41:30,240
ู‡ูŠ ุงู„ู€ start symbol ุงู„ู€ start symbol ู„ู„ู…ุนุฑูุฉ ุงู„ู€ G
481
00:41:30,240 --> 00:41:38,200
ู†ู‚ูˆู„ ุฃู† Alpha ู‡ูˆ ุดูƒู„ ู…ุตุทู„ุญ ู…ุตุทู„ุญ ู…ุตุทู„ุญ ู…ู† ุงู„ู…ุนุฑูุฉ
482
00:41:38,200 --> 00:41:41,920
ู„ุง ุฃุนุฑู ู…ุง ู‡ูˆ ุงู„ูุฑู‚ ู…ุง ุจูŠู† ุดูƒู„ ู…ุตุทู„ุญ ูˆู…ุตุทู„ุญ ู„ุญุงู„ู‡ุง
483
00:41:41,920 --> 00:41:48,940
ุงู„ุดูƒู„ ู…ุตุทู„ุญ ู…ุตุทู„ุญ ู…ุตุทู„ุญ ูŠุญุชูˆูŠ ุนู„ู‰ terminals ูˆ non
484
00:41:48,940 --> 00:41:54,010
terminals ุฃู†ุง ู…ุนู†ู‰ sentential form ุงู„ู„ูŠ ูŠุญุชูˆูŠ ุนู„ู‰
485
00:41:54,010 --> 00:41:57,110
ุงู„ู€ terminals ูู‚ุท ู„ุฃู† ุงู„ู€ input ุงู„ู„ูŠ ุฏุงุฎูู„ ุนู„ูŠู‡ ู‡ูˆ ุงู„ู€
486
00:41:57,110 --> 00:42:03,630
terminals ูู‚ุท ูˆ tokens ูู‚ุท okay sentential form
487
00:42:03,630 --> 00:42:12,170
may contain both terminals and non terminals ู‡ุฐุง
488
00:42:12,170 --> 00:42:16,170
ุฅุฐุง ูŠุญุชูˆูŠ ุนู„ู‰ both terminals and non terminals
489
00:42:16,170 --> 00:42:20,570
ุจู†ุณู…ูŠู‡ sentence ูˆู„ุง ุจู†ุณู…ูŠู‡ sentential form ุงุชู†ูŠู†
490
00:42:20,570 --> 00:42:25,630
sentential forms ุจุณ ุฅุฐุง ูŠุญุชูˆูŠ ุนู„ู‰ terminals ูู‚ุท ูู‡ูˆ
491
00:42:25,630 --> 00:42:29,230
sentence a
492
00:42:29,230 --> 00:42:35,250
sentence of the grammar is a sentential form
493
00:42:35,250 --> 00:42:39,530
containing with no non-terminals ูŠุนู†ูŠ ูƒู„ู‡
494
00:42:39,530 --> 00:42:44,950
terminals the language generated by a grammar is
495
00:42:44,950 --> 00:42:49,790
its set of sentences ุงู„ู€ language ู‡ูŠ ู…ุฌู…ูˆุนุฉ ุงู„ู€
496
00:42:49,790 --> 00:42:53,110
sentences ุงู„ู…ุฎุชู„ูุฉ ุงู„ู„ูŠ ู…ู…ูƒู† ุชุชูˆู„ุฏ ุนู† ู‡ุฐุง ุงู„ู€
497
00:42:53,110 --> 00:42:56,510
grammar ุชูˆู„ุฏู‡ุง ุนู† ุงู„ู€ grammar ู…ู† ุฎู„ุงู„ ุนู…ู„ูŠุฉ ุงู„ู€
498
00:42:56,510 --> 00:43:02,710
derivation ู„ุฃู†ู‡ ุฃู†ุง ู…ู† ุงุณุชุฎุฏุงู… symbol ุจุดูƒู„
499
00:43:02,710 --> 00:43:09,810
form ูˆุฑุง form ูˆุฑุง form ุจูˆุตู„ ุฅู„ู‰ sentence sentence
500
00:43:09,810 --> 00:43:13,420
ู‡ุฐู‡ ุนุจุงุฑุฉ ุนู† ุฅูŠู‡ุŸ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ู€ terms ู„ูˆ ุฃุฎุฏุช ู…ุณุงุฑ
501
00:43:13,420 --> 00:43:17,960
ุขุฎุฑ ุจูˆุตู„ ุฅู„ู‰ sentence ุฃุฎุฑู‰ ููƒุงูุฉ ุงู„ู€ sentences
502
00:43:17,960 --> 00:43:22,500
ุงู„ู…ุฎุชู„ูุฉ ุงู„ู„ูŠ ู…ู…ูƒู† ุฃุตู„ ุฅู„ูŠู‡ุง ู…ู† ุงู„ู€ start symbol
503
00:43:22,500 --> 00:43:28,180
ุนุจุฑ ุงู„ู€ derivations ุงู„ู…ุญุชู…ู„ุฉ ูƒุงูุฉ ุงู„ู€ sentences ุงู„ู„ูŠ
504
00:43:28,180 --> 00:43:33,380
ุจูˆุตู„ ุฅู„ูŠู‡ุง ู‡ุฐู‡ ุนุจุงุฑุฉ ุนู† ุงู„ู€ language
505
00:43:33,380 --> 00:43:37,960
ุทูŠุจ
506
00:43:37,960 --> 00:43:45,520
ู‡ุฐุง ุงู„ู…ุซุงู„ ุงู„ู„ูŠ ู‚ุฏุงู…ูŠ ุดูู†ุงู‡ ู†ุดูˆู ูƒูŠู ูŠุชุฑุฌู… ุนู„ู‰
507
00:43:45,520 --> 00:43:49,440
ุฃุณุงุณ parse
508
00:43:49,440 --> 00:43:55,820
tree ุจุณ ููŠ ุดุบู„ ุฃุฎุฑู‰ ุจุฏู†ุง ู†ุญูƒูŠู‡ุง ูˆู‡ูŠ ุฃู†ู‡ ู„ู…ุง ู†ุญู†
509
00:43:55,820 --> 00:44:00,500
ู†ุนู…ู„ replacement ุฅุญู†ุง
510
00:44:00,500 --> 00:44:06,800
ุฃุฎุฐู†ุง ุฃูˆู„ ู…ุง ู…ุดูŠู†ุง ุฅุญู†ุง ู…ู† ุงู„ุดู…ุงู„ ุนู„ู‰ ุงู„ู€ form ู‡ุฐุง
511
00:44:06,800 --> 00:44:12,680
ุฃุฎุฐู†ุง ุงู„ู€ E ุตุญุŸ ู„ุฃู† ู‡ูˆ ุงู„ูˆุญูŠุฏ ุฃุตู„ุงู‹ ู„ุฃู† ุฃู†ุช ู…ู† ุงู„ูˆุญูŠุฏ
512
00:44:12,680 --> 00:44:17,860
ุญูˆู„ู†ุง ุฅู„ู‰ ุงู„ุฌูˆุฒ ูˆุงู„ู€ E ู…ุน ุงู„ุฌูˆุฒ ุจุนุฏ ุฅู† ู‡ู†ุง ุจุฑุถู‡ ู‡ูˆ
513
00:44:17,860 --> 00:44:24,420
ุฃู† ุฃู†ุช ู…ู† ุงู„ูˆุญูŠุฏ E plus ุชู…ุงู… ุฃุนุทุงู†ูŠ ุงู„ู€ E ูˆุงู„ู€ plus
514
00:44:24,420 --> 00:44:29,500
ูˆุงู„ู€ E ุงู„ุขู† ููŠ ุฃู†ุง two E ู‡ู†ุง ูƒู„ู‡ู… ุงู„ู€ E ู‡ูŠ ุงู„ุญุงู„ุฉ
515
00:44:29,500 --> 00:44:33,400
ุฌุงูŠุฉ ู…ุง ุจูŠู† terminals ุจุณ ู‡ู†ุง ู‡ู†ุง ููŠ E ูˆู‡ู†ุง ููŠ E
516
00:44:33,400 --> 00:44:41,570
ุชู…ุงู… ุฃู†ุง ุฏุงุฆู…ุงู‹ ุจุฃุฎุฐ ุงู„ู€ left most ุงู„ุดู…ุงู„ ู‡ูˆ ุงู„ู„ูŠ
517
00:44:41,570 --> 00:44:47,610
ุจุฑูˆุญูŠ ุจู‚ู‰ ุจุนู…ู„ู‡ replacement ู‚ุจู„ ุงู„ูŠู…ูŠู† ูู‡ุฐุง ุงุณู…ู‡
518
00:44:47,610 --> 00:44:53,510
leftmost derivation ู„ูˆ ุฃู†ุง ุจู‚ู‰ ุฃุฎุฐุช ุงู„ูŠู…ูŠู† ุฃูˆู„
519
00:44:53,510 --> 00:44:58,730
ุจูุณู…ู‘ูŠู‡ rightmost derivation ูุงู„ู€ leftmost derivation
520
00:44:58,730 --> 00:45:04,110
ุจูŠูƒูˆู† ู†ุงุฎุฏ ุงู„ู€ leftmost non terminal in each
521
00:45:04,110 --> 00:45:10,960
sentential form ู‡ูˆ ุงู„ู„ูŠ ุฏุงุฆู…ุงู‹ ุจู†ุญุงูˆู„ู‡ ุงู„ู€ leftmost
522
00:45:10,960 --> 00:45:15,040
ู†ุจุฏุฃ ู…ู† ุงู„ู€ leftmost ูŠุนู†ูŠ ู„ูˆ ููŠ ุนู†ุฏูŠ ุงุซู†ูŠู† ูˆู„ุง
523
00:45:15,040 --> 00:45:19,820
ุนู†ุฏูŠ ุฎู…ุณุฉ ุฏุงุฆู…ุงู‹ ุจุฃุฎุฐ ุฃุญูˆู„ ุงู„ุฃูˆู„ ูˆุงุญุฏ ู…ู† ุงู„ุดู…ุงู„
524
00:45:19,820 --> 00:45:24,480
ุญูˆู„ุชู‡ ุฏุงุฆู…ุงู‹
525
00:45:24,480 --> 00:45:28,580
ุจุฃุญูˆู„ ุงู„ุฃูˆู„ ูˆุงุญุฏ ู…ู† ุงู„ุดู…ุงู„ ูุฃู†ุง ู…ุง ุฃู‚ุฏุฑุด ุฃุฎู„ุท ุฃุนู…ู„
526
00:45:28,580 --> 00:45:32,400
leftmost ู…ุฑุฉ leftmost ูˆู…ุฑุฉ rightmost ู…ุฑุฉ .. ู„ุฃ
527
00:45:32,400 --> 00:45:37,130
ู„ุงุฒู… ุฃุญูˆู„ ุฅู…ุง leftmost ุฏุงุฆู…ุงู‹ ุฃูˆ rightmost ูŠุนู†ูŠ ุงู„ู€
528
00:45:37,130 --> 00:45:40,070
LM ู‡ุฐู‡ ุงุฎุชุตุงุฑ ู„ู€ leftmost ู‡ูˆ ุงู„ู€ default ูŠุนู†ูŠ ุงู„ู€
529
00:45:40,070 --> 00:45:47,830
default ุฃู† ุฅุญู†ุง ุจู†ุนู…ู„ replacement leftmost ูˆุงุถุญุŸ
530
00:45:47,830 --> 00:45:53,790
ุทูŠุจ ุทูŠุจ ู‡ุฐุง ุงู„ู…ุซุงู„ ุงู„ู„ูŠ ุฃู†ุง ุฑุฌุนุช ู„ู‡ ุซุงู†ูŠ ุงู„ู„ูŠ
531
00:45:53,790 --> 00:45:58,350
ู‡ูˆ ุชุจุน ุนู„ุงู‚ุฉ ุงู„ู€ parts trees ุจุงู„ู€ derivations ุฒูŠ ู…ุง
532
00:45:58,350 --> 00:46:02,970
ุฃู†ุช ุดุงูŠู ู‡ู†ุง ุฑุณุงู„ุฉ
533
00:46:02,970 --> 00:46:10,730
ููŠ ุงู„ู€ sub trees ุจุฏู„ ู…ุง ูŠุญุท ุงู„ู€ form ุณุงุจุชุฑูŠู‡ ู‡ูŠ ุงู„ู€ E
534
00:46:10,730 --> 00:46:14,430
ูƒุงู†ุช ู‡ูŠ ุงู„ู€ start symbol ุงู„ุขู† ููŠ ุงู„ู€ derivation
535
00:46:14,430 --> 00:46:20,010
ุงู„ุฃูˆู„ู‰ ุดุงู„ ุงู„ู€ E ูˆุญุท ุจุฏู„ู‡ุง minus E ูˆุนู…ู„ูŠุงู‹ ุฑุงูƒุจูŠู‡ุง
536
00:46:20,010 --> 00:46:24,270
ูƒูŠู ุฅู† ู‡ูˆ ุฅูŠุด ุงู„ู€ E minus ู‡ูˆ ุงู„ู€ E ุนุจุงุฑุฉ ุนู† children
537
00:46:24,270 --> 00:46:28,670
ู…ู† ุงู„ู€ E ููŠ ุงู„ู€ derivation ุงู„ู„ูŠ ุจุนุฏู‡ุง ู…ู† ุงู„ู€ leftmost
538
00:46:28,670 --> 00:46:33,310
ู‡ูŠุชู… ุงุณุชุฎุฏุงู…ู‡ ุจุงู„ู€ E ุจุนุฏ ุงู„ู…ุตุงู„ู€ Derivation ุงู„ู„ูŠ
539
00:46:33,310 --> 00:46:37,410
ุจุนุฏู‡ุง ุงุณุชุจุฏู„ ุงู„ู€ E ู„ุฌูˆู‡ ุงู„ู€ Ghost ุจุงู„ุณุทุฑ ูŠุฏู‡ ุงู„ู€
540
00:46:37,410 --> 00:46:40,390
Derivation ุงู„ู„ูŠ ุจุนุฏู‡ุง ุงุณุชุจุฏู„ ุงู„ู€ E ู„ุดู…ุงู„ ุจุงู„ู€
541
00:46:40,390 --> 00:46:48,930
Identifier ูˆุจุนุฏู‡ุง ุงุณุชุจุฏู„ ุงู„ู€ E Sequence
542
00:46:48,930 --> 00:46:52,630
of parts and trees for the derivation ุงู„ุดูŠุก ุงู„ู„ูŠ
543
00:46:52,630 --> 00:46:58,970
ุฃุฌุงุจู„ูƒ ู‡ุฐุง ุงู„ูƒู„ุงู… ูƒู„ู‡ ู†ู‚ุฏุฑ ู†ุนุชุจุฑู‡ ู…ู‚ุฏู…ุฉ ู„ุฃู† ุฅุญู†ุง
544
00:46:58,970 --> 00:47:03,970
ู…ุฑ ุนู„ูŠู‘ ุฃู† ุฃุฌุงุจู„ูƒ ุตุญุŸ ุตุญุŸ ุฃูˆ ุงู„ู€ ambiguity ุจุฑุถู‡ ู…ุฑุช
545
00:47:03,970 --> 00:47:08,650
ุนู„ูŠู†ุง ู‚ุจู„ ู‡ูŠูƒ ุงู„ู€ ambiguity ุฃู†ุง ุจุฃู‚ูˆู„ ุฅู† ุนู†ุฏูŠ ุงู„ู€
546
00:47:08,650 --> 00:47:15,050
grammar ู†ูุณู‡ุง ู‡ุฐู‡ ุงู„ู„ูŠ ู‡ูŠ ุงู„ู„ูŠ ู‡ูŠ ุชุจุน ุฃุฑุจุนุฉ ุซู„ุงุซุฉ
547
00:47:15,050 --> 00:47:20,570
ุงู„ู„ูŠ ู‡ูŠ ุฎู„ูŠู†ูŠ ุฃูƒุชุจู‡ุง ู„ูŠู‡
548
00:47:20,570 --> 00:47:28,870
ุงู„ุณุทุฑ ู‡ุฐุง ุงู„ู„ูŠ ูƒุงู†ุŸ ู„ูŠุดุŸ ู‡ูˆ ู‡ุฐุง ู†ุนู… ูƒุงู† ุจุฑููˆุถุงู‡
549
00:47:28,870 --> 00:47:29,190
ุงู„ู…ุนู†ู‰
550
00:47:31,960 --> 00:47:53,940
ู‡ุฐู‡ ุงู„ู€ grammar Ambiguous Ambiguous ุงุดุฑุจ
551
00:47:53,940 --> 00:47:54,620
ู†ูุณูŠ
552
00:47:58,160 --> 00:48:01,660
ู…ุฎุฏู‡ ู‡ูˆ ูƒู…ุซุงู„ ู„ู€ Ambiguity ุจู…ุนู†ู‰ ุฃู†ู‡ ุฃู†ุง ู„ูˆ ููŠ
553
00:48:01,660 --> 00:48:08,560
ุนู†ุฏูŠ ุงู„ู€ grammar ู‡ุงู„ูƒ ูˆููŠ ุนู†ุฏูŠ input ูˆุงู„ู€ input ู‡ูŠ
554
00:48:08,560 --> 00:48:13,240
ุฏู‡ ูŠุญุชูˆูŠ ุนู„ู‰ identifier ุจุนุฏูŠู† ุนู„ุงู…ุฉ ุงู„ุฒุงุฆุฏ ุจุนุฏูŠู†
555
00:48:13,240 --> 00:48:16,380
identifier ุขุฎุฑ ุจุนุฏูŠู† ุนู„ุงู…ุฉ ุงู„ุถุฑุจ ุจุนุฏูŠู† identifier
556
00:48:16,380 --> 00:48:22,920
ุขุฎุฑ ูู‡ูˆ ุงู„ู€ IDs ู‡ุฏูˆู„ ุซู„ุงุซุฉ different IDs ุงู„ู…ู‡ู… ุฃู†ู‡
557
00:48:22,920 --> 00:48:29,380
ุซู„ุงุซุฉ identifiers one possible derivation ุฃู† ู‡ุฐู‡
558
00:48:29,380 --> 00:48:34,820
ุงู†ุธุฑ ุฅู„ู‰ ู‡ุฐุง ู‡ูŠูƒ ุนู„ู‰ ุฃู†ู‡ expression ูˆู‡ุฐุง
559
00:48:34,820 --> 00:48:39,400
expression ูˆุจูŠู†ู‡ู… ุงู„ุฒุงุฆุฏ ุจุนุฏูŠู† ู‡ุฐุง ู‡ูˆ ุนุจุงุฑุฉ ุนู†
560
00:48:39,400 --> 00:48:47,440
two expressions ู…ุง ุจูŠู†ู‡ู… ุฅูŠุด ุงู„ุถุฑุจ ุซู… ูุฎู„ุงุต ู‡ุฐุง
561
00:48:47,440 --> 00:48:52,480
identifier ูˆู‡ุฐุง identifier ูˆู‡ุฐุง identifier ู‡ุฐุง
562
00:48:52,480 --> 00:48:59,640
ุงู„ู„ูŠ ู‡ูŠ ุงู„ู„ูŠ ู‡ูŠ ู‡ุฐุง ุตุญ ุขุฎุฐ ุงู„ู€ identifier ุงู„ุฃูˆู„ุงู†ูŠ
563
00:48:59,640 --> 00:49:05,480
ุนู„ู‰ ุฃู†ู‡ ุฅูŠุดุŸ ุขุฎุฐ ูƒู„ ุงู„ู€ expression ุนู„ู‰ ุฃู†ู‡ two
564
00:49:05,480 --> 00:49:09,060
expressions ู…ูุตูˆู„ูŠู† ุนู† ุจุนุถ ุจุงู„ุฒุงุฆุฏ ุตุญ two
565
00:49:09,060 --> 00:49:12,700
expressions ุจูŠู†ู‡ู… ุฒุงุฆุฏ ุจุนุฏูŠู† ุงู„ู€ expression ุงู„ุฃูˆู„
566
00:49:12,700 --> 00:49:15,840
ู‡ูˆ identifier ูˆุงู„ู€ expression ุงู„ุซุงู†ูŠ ู‡ูˆ ุนุจุงุฑุฉ ุนู†
567
00:49:15,840 --> 00:49:21,360
two expressions ุจูŠู†ู‡ู… ุถุฑุจ ุตุญ ุงู„ู€ one derivation ุงู„ู€
568
00:49:21,360 --> 00:49:27,270
derivation ุงู„ุซุงู†ูŠ ุฅู† ู„ุฃู‡ู… ุนุจุงุฑุฉ ุนู† two expressions
569
00:49:27,270 --> 00:49:31,790
ู…ูุตูˆู„ูŠู† ุนู† ุจุนุถ ุฃูˆ ู…ุง ุจูŠู†ู‡ู… ุฅูŠุดุŸ ู…ุง ุจูŠู†ู‡ู… ุถุฑุจ ู‡ุงูŠ
570
00:49:31,790 --> 00:49:37,270
.. ู‡ุฐุง ู‡ูŠ ุงู„ู€ expression ูุงู„ู…ุนุฑูุฉ
571
00:49:37,270 --> 00:49:42,650
ุจุชุณู…ุญ ู„ุฐู„ูƒ .. ุงู„ู…ุนุฑูุฉ ุจุชุณู…ุญ ู„ุฐู„ูƒ ููŠ independently ุฃูˆ
572
00:49:42,650 --> 00:49:47,790
production ู…ุทุงุจู‚ ู„ู„ุณุจุนุฉ ูู…ู† ู‡ู†ุง ุตุงุฑ ููŠ ambiguity
573
00:49:47,790 --> 00:49:53,970
ambiguity ุฅู† ููŠ two different derivations for the
574
00:49:53,970 --> 00:49:58,730
same input two different derivations ูŠุนู†ูŠ two
575
00:49:58,730 --> 00:50:02,950
different parse trees two different parse trees ุตุญ
576
00:50:02,950 --> 00:50:10,490
ุŸ ู‡ุฐุง ุงู„ูƒู„ุงู… ุบูŠุฑ ู…ุฑููˆุถ ู…ุฑููˆุถ ู„ุงุฒู… ุชุฒุงู„ ู‡ุฐุง ุงู„ู€
577
00:50:10,490 --> 00:50:18,130
ambiguity ุชู…ุงู…
578
00:50:18,130 --> 00:50:18,270
ุŸ
579
00:50:25,690 --> 00:50:31,210
ุงู„ุขู† ุงุญู†ุง ู‡ู†ุทู„ุน ุนู„ู‰ ุงู„ุฃู…ุฑ ู‡ุฐุง ุจุณ ูŠุฏู„ู‘ ุนู„ู‰ ุฅู† ุงู„ู€
580
00:50:31,210 --> 00:50:34,590
language ูŠุฌุจ ุฃู† ู„ุง ูŠุฌุนุด ููŠู‡ุง ุฃูŠ ambiguity ุนุดุงู†
581
00:50:34,590 --> 00:50:39,510
ู„ุง ูŠุฌุนุด ููŠ ู…ุดูƒู„ุฉ ุงู„ู„ูŠ ู‡ูˆ ู‡ู„ ู†ุฃุฎุฐ ู‡ู„ ุงู„ู€ expression
582
00:50:39,510 --> 00:50:45,650
ู‡ุฐุง ู†ุญุณุจู‡ ู‡ูŠูƒ ูˆู„ุง ู†ุญุณุจู‡ ู‡ูŠูƒ ุทูŠุจ ุงูุชุฑุถ ู‡ุฐู‡ ุงู„ุงุฑุจุนุฉ
583
00:50:45,650 --> 00:50:48,470
asset ุงู„ู„ูŠ ู‡ูˆ verifying the language generated by
584
00:50:48,470 --> 00:50:52,540
grammar ูˆู†ุทู„ุน ุนู„ู‰ .. ุจุฑุถู‡ ูƒู…ุงู† ุงู„ู€ context free
585
00:50:52,540 --> 00:50:56,640
grammars versus irregular expressions ุจุฑุถู‡ ุจุฏูŠ
586
00:50:56,640 --> 00:51:03,460
ุฃุชุฑูƒู‡ุง ู‡ูŠ ุจุณ ู„ุงุญุธุฉ ุตุบูŠุฑุฉ ุฅู† ู„ูŠุด ูŠูƒูˆู† ููŠ ุนู†ุฏู†ุง
587
00:51:06,120 --> 00:51:10,900
ู„ูŠุด ุจูŠูƒูˆู† ููŠ ุนู†ุฏู†ุง .. ู‡ูˆ ุจุณ ุจูŠุนู„ู‚ ุนู„ู‰ ุงู„ูุตู„ ู…ุง ุจูŠู†
588
00:51:10,900 --> 00:51:15,020
ุดุบู„ ุงู„ู€ .. ุดุบู„ ุงู„ู€ syntax analysis ู…ูุตูˆู„ ุนู† ุงู„ู€
589
00:51:15,020 --> 00:51:18,640
lexical analysis ูˆู‡ู†ุงูƒ ู…ุณุชุฎุฏู… regular expressions
590
00:51:18,640 --> 00:51:23,600
ูˆู‡ู†ุง ู…ุณุชุฎุฏู… grammar ู„ูŠุด ุจูŠุจู‚ู‰ ุงู„ู€ grammar ุฃูˆ
591
00:51:23,600 --> 00:51:27,680
regular expression ู„ู„ู…ุณุชูˆูŠูŠู†ุŸ
592
00:51:27,680 --> 00:51:32,380
ุจุฑูŠุฏูƒ ุฅู† ูุนู„ุงู‹ ููŠ ุนู†ุฏูŠ ุงู†ุญู„ุงู„ ุฅู† ู‡ุฐุง ุงู„ู€ regular
593
00:51:32,380 --> 00:51:36,580
expression ุจู‚ุฏุฑ ุฃุจู‚ู‰ ุนู„ู‰ ุดูƒู„ grammar ูู„ูŠุด ู…ุง ูŠูƒูˆู†
594
00:51:36,580 --> 00:51:40,900
ุฎู„ุงุต ุณูˆุงุก lexical analysis ูˆู„ุง syntax analysis
595
00:51:40,900 --> 00:51:47,140
ู†ุณุชุฎุฏู… grammar ู„ูŠุด ู‡ู†ุงูƒ ู†ุณุชุฎุฏู… regular expressions
596
00:51:47,140 --> 00:51:50,900
ูˆู‡ู†ุงูƒ ู†ุณุชุฎุฏู… grammar ู…ุฒุงู„ ุงู„ู€ grammar ุจุชุณุฏู‘ ุงู„ุบู„ุท
597
00:51:50,900 --> 00:51:58,640
ุจุชุคุฏูŠ ุงู„ุบู„ุท ู„ู„ู€ lexical ุชู…ุงู… ูู‡ูˆ ุจูŠุจุฏุฃ ูŠุญุชุงุฌ
598
00:51:58,640 --> 00:52:04,280
ุงู„ู…ุฒุงูŠุง ุงู„ู€ context free grammar ุนู„ู‰ ุงู„ุจุงุฎุชุตุงุฑ ุงู„ู€
599
00:52:04,280 --> 00:52:09,240
regular expression ุจูŠุคุฏูŠ ุบุฑุถ ุงู„ู€ lexical analysis ุจู€
600
00:52:09,240 --> 00:52:15,760
efficiency ูŠุนู†ูŠ ุจู‚ุฏุฑ ูƒุจูŠุฑ ูŠุนู†ูŠ ุจูŠุคุฏูŠ ุงู„ุบุฑุถ ูˆุจุฏูˆู†
601
00:52:15,760 --> 00:52:19,920
ุฃูŠ ุงู„ุญุงุฌุฉ ุฅู„ู‰ ุชุนุฑูŠู productions ูˆู…ุง ุฅู„ู‰ ุฐู„ูƒ ูˆุงู„ู€
602
00:52:19,920 --> 00:52:25,440
grammar ุจุชุคุฏูŠ ุงู„ุบุฑุถ ุชุจุน ุงู„ู€ syntax analysis ุจุดูƒู„
603
00:52:25,440 --> 00:52:31,230
ุฃูุถู„ ู…ู† ุงู„ู€ regular expressions ุซู… ุฅู† ุงู„ูุตู„ ู‡ุฐุง ุนู†
604
00:52:31,230 --> 00:52:40,250
ู‡ุฐุง ุจูŠุนุทูŠู†ุง ุฅู…ูƒุงู†ูŠุฉ ุฅู† ู†ุจู†ูŠ ุงู„ู€ analyzer ุจู…ู†ูุตู„
605
00:52:40,250 --> 00:52:47,870
ุนู† ุงู„ู€ syntax analysis ู„ูˆ ุจุฏู†ุง module ูˆุงุญุฏ ูŠุนู…ู„ ุงู„ู€
606
00:52:47,870 --> 00:52:51,590
syntax analysis ูˆุงู„ู€ lexical analysis ู‡ุชุตูŠุฑ
607
00:52:51,590 --> 00:52:58,090
ุงู„ู…ุณุฃู„ุฉ ู…ุนู‚ุฏุฉ ู…ุนู‚ุฏุฉ ูƒุซูŠุฑ ู„ู…ุง ูŠู†ูุตู„ lexical analysis
608
00:52:58,090 --> 00:53:02,690
ุนู† ุงู„ู€ syntax analysis ูŠุนุทูŠู†ุง modularity ูŠุนู†ูŠ ุงู„ู„ูŠ
609
00:53:02,690 --> 00:53:08,340
ุงุชู…ูƒู†ู†ุง ู…ู† ุจู†ุงุก ุงู„ู€ compiler ุจุดูƒู„ ุฃุฑูŠุญ ุงู„ู„ูŠ ู‡ูˆ ุฅู† ูƒู„
610
00:53:08,340 --> 00:53:13,120
ูˆุงุญุฏ ูŠุนุชู…ุฏ ุนู„ู‰ ุงู„ู€ tool ุงู„ู…ู†ุงุณุจุฉ ุงู„ู€ lexical
611
00:53:13,120 --> 00:53:17,200
analyzer ุจูŠุนุชู…ุฏ ุนู„ู‰ ุงู„ู€ regular expressions ู…ู†ุงุณุจุฉ
612
00:53:17,200 --> 00:53:21,960
ู„ุบุฑุถู‡ ูˆุงู„ู€ syntax analyzer ุจุชุนุชู…ุฏ ุนู„ู‰ ุงู„ู€ context
613
00:53:21,960 --> 00:53:27,940
free grammar ุงู„ู„ูŠ ู…ู†ุงุณุจุฉ ู„ุบุฑุถู‡ ููŠู…ุง
614
00:53:27,940 --> 00:53:32,900
ูŠุชุนู„ู‚ ุจูŠู‡ ุงู„ู„ูŠ ู‡ูˆ ุงู„ู€ tokens ูˆุงู„ุฃุณุงู…ูŠ
615
00:53:35,340 --> 00:53:38,000
ูˆุงู„ู€ grammar ุฃูุถู„ ููŠ ุฅูŠุดุŸ ุงู„ู€ grammar ุฃูุถู„ ููŠ ุชุนุจูŠุฑ
616
00:53:38,000 --> 00:53:42,740
ุนู† ุงู„ู€ syntax ุงู„ู€ syntax ุชุจุนุช ุงู„ู€ ุฅูŠุดุŸ ุชุจุนุช ุงู„ู€
617
00:53:42,740 --> 00:53:51,920
statements ูˆุงู„ู€ .. ุฃู†ุช ุนุงุฑู ูƒูŠูุŸ ูŠุนู†ูŠ ุงู„ู€ regular
618
00:53:51,920 --> 00:53:58,780
expression ู…ุง ุจูŠู‚ุฏุฑ ุบู„ุท ููŠ ุงู„ู€ grammar ุทูŠุจ ููŠ
619
00:53:58,780 --> 00:54:02,000
exercise ููŠ ู†ู‡ุงูŠุฉ section ุฃุฑุจุนุฉ ุงุซู†ูŠู† ู‡ูŠ ูƒู†ุง ู†ู‡ุงูŠุฉ
620
00:54:02,000 --> 00:54:07,650
ุฃุฑุจุนุฉ ุงุซู†ูŠู† ู‡ู†ุงูƒ ู…ุฌุงู„ุงุช ููŠ ู…ุงู†ุนูŠุฉ 4.2 ูŠุฌุจ ุฃู† ู†ู†ุธุฑ
621
00:54:07,650 --> 00:54:13,970
ุนู„ูŠู‡ุง ู„ุฃู†ู‡ุง ููŠู‡ุง ู…ุณุงุฆู„ ูƒุซูŠุฑุฉ ู„ูƒูŠู ู†ู‚ูˆู… ุจุนู…ู„
622
00:54:13,970 --> 00:54:18,170
derivation ูˆ parse trees ุจู†ุงุก ุนู„ู‰ ุงู„ู€ grammar
623
00:54:18,170 --> 00:54:23,490
ุฎุงุตุฉ ุงุญู†ุง ู‡ูŠูƒ ุจู†ูƒูˆู† ุบุทูŠู†ุง section 4.1 ูˆ 4.2
624
00:54:24,060 --> 00:54:27,640
ูˆุงู„ู…ุญุงุถุฑุฉ ุงู„ู‚ุงุฏู…ุฉ ุณู†ุจุฏุฃ ููŠ ุฃุฑุจุนุฉ ุฃูˆ ุซู„ุงุซุฉ ูˆู†ุดูˆู
625
00:54:27,640 --> 00:54:36,080
ุทุจูŠุนุฉ left recursion ุซู… ู†ุจุฏุฃ ู†ุญูƒูŠ ููŠ ุงู„ู€ top-down
626
00:54:36,080 --> 00:54:38,780
parsing ูˆุงู„ู€ bottom-up parsing