Hanyangackr 1 unified into single states 1 one with

This preview shows page 22 - 29 out of 29 pages.

1. unified into single states 1. one with all the accepting states 2. the other with all the nonaccepting states 2. Consider transitions on each character a of the alphabet 3. if there are two accepting/nonaccepting states that have transitions on a that land in different states, a distinguishes the states and the set of states must be split. Algorithm 2014 컴파일러 22
Image of page 22

Subscribe to view the full document.

(a| ε )b* T(1,a) T(2,a) Minimizing DFA 2014 컴파일러 23 a a
Image of page 23
(a| ε )b* Minimizing DFA 2014 컴파일러 24 a a
Image of page 24

Subscribe to view the full document.

Lex program Input: a text file containing Regular expressions Actions to be taken when each expression is matched Output: C source code (lex.yy.c or lexyy.c) Defining a procedure yylex that is a table-driven implementation of a DFA that operates like a getToken procedure Use of Lex to generate a scanner automatically 2014 컴파일러 25
Image of page 25
Table 2.2 Metacharacter conventions in Lex 2014 컴파일러 26
Image of page 26

Subscribe to view the full document.

{definitions} %% {rules} %% {auxiliary routines} Format of a Lex input file 2014 컴파일러 27
Image of page 27
Table 2.3 Some Lex internal names 2014 컴파일러 28
Image of page 28

Subscribe to view the full document.

Exercises 2.1, 2.2, 2.12, 2.13, 2.16 주의 사항 Handwriting 으로 제출 Cover page 생략 . 번째 페이지에 homework 번호 , 학번 , 이름 기입 Homework #1 2014 컴파일러 29
Image of page 29
  • Spring '16
  • ko
  • Formal language, Regular expression, Nondeterministic finite state machine, Automata theory, http://usecurity.hanyang.ac.kr

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern