Poznámky
Osnova
Part III.
Lexical Analysis:
Design
Lexical Analyzer (Scanner)
Scanner: Tasks
Lexemes Recognized by DFAs 1/2
Lexemes Recognized by DFAs 2/2
DFA for Lexemes : Example 1/2
DFAs for Lexemes: Example 2/2
Algorithm: Type of Lexeme
Type of Lexemes: Example
Implementation of DFA 1/10
Implementation of DFA 2/10
Implementation of DFA 3/10
Implementation of DFA 4/10
Implementation of DFA 5/10
Implementation of DFA 6/10
Implementation of DFA 7/10
Implementation of DFA 8/10
Implementation of DFA 9/10
Implementation of DFA 10/10
Tokens in Practice
The Same Form of Tokens
Identifiers
´
Keywords
Symbol Table (Identifier Table)
Symbol Table: Structure
Scope of Identifiers
Scope Rules
Scope Rules: Example
Lex: Basic Idea
Lex: Phases of Compilation
Structure of Lex Source Program
Basic Regular Expressions in Lex
Section I: Declaration
Section II: Translation Rules
Section III: Auxiliary Procedures
Complete Source Program in Lex