chuong3_uni - CH NG III PHN TCH T V NG N i dung chnh: Ch ng...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CH NG III PHN TCH T V NG N i dung chnh: Ch ng ny trnh by cc k thu t xc nh v ci t b phn tch t v ng . K thu t n gi n xy d ng m t b phn tch t v ng l xy d ng cc l c - automata h u h n xc nh (Deterministic Finite Automata - DFA) ho c khng xc nh (Nondeterministic Finite Automata - NFA) m t c u trc c a cc th t (token) c a ngn ng ngu n v sau d ch th cng chng sang ch ng trnh nh n d ng cc token. M t k thu t khc nh m t o ra b phn tch t v ng l s d ng Lex ngn ng hnh ng theo m u (pattern). Tr c tin, ng i thi t k trnh bin d ch ph i m t cc m u c xc nh b ng cc bi u th c chnh quy, sau s d ng trnh bin d ch c a Lex t ng t o ra m t b nh d ng automata h u h n hi u qu (b phn tch t v ng). Cc m t v cch th c ho t ng chi ti t c a cng c Lex c trnh by r h n trong ph n ph l c A. M c tiu c n t: Sau khi h c xong ch ng ny, sinh vin ph i n m c cc k thu t t o ra b phn tch t v ng. C th , Xy d ng cc l c cho cc bi u th c chnh quy m t ngn ng c n c vi t trnh bin d ch. Sau chuy n i chng sang m t ch ng trnh phn tch t v ng. S d ng cng c c s n Lex sinh ra b phn tch t v ng. Ki n th c c b n: Sinh vin ph i c cc ki n th c v : DFA v NFA. Cc automata h u h n xc nh v khng xc nh ny c s d ng nh n d ng chnh xc ngn ng m cc bi u th c chnh quy c th bi u di n. Cch chuy n i t NFA sang DFA nh m lm n gi n ha qu trnh ci t b phn tch t v ng. Ti li u tham kh o: [1] Automata and Formal Language. An Introduction Dean Kelley Prentice Hall, Englewood Cliffs, New Jersey 07632. [2] Compilers : Principles, Technique and Tools- Alfred V.Aho, Jeffrey D.Ullman - Addison - Wesley Publishing Company, 1986. [3] Compiler Design Reinhard Wilhelm, Dieter Maurer - Addison - Wesley Publishing Company, 1996....
View Full Document

This note was uploaded on 01/18/2012 for the course INFORMATIK 2011 taught by Professor Phanthuongcang during the Winter '11 term at Cornell University (Engineering School).

Page1 / 18

chuong3_uni - CH NG III PHN TCH T V NG N i dung chnh: Ch ng...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online