BKS UNIT I Lecture 1 Introduction To Compiler
BKS UNIT I Lecture 1 Introduction To Compiler
Sharma
UNIT I
Introduction to Compiler
Learn Compiler Design: From B. K. Sharma
Unit I: Syllabus
• Introduction to Compiler
• Structure of a compiler
• Lexical Analysis
• Role of Lexical Analyzer
• Input Buffering
• Specification of Tokens
• Recognition of Tokens
Learn Compiler Design: From B. K. Sharma
Unit I: Syllabus
• Lex
• Finite Automata
• Regular
• Expressions to Automata
• Minimizing DFA.
Learn Compiler Design: From B. K. Sharma
Source Machine
program Compiler code
Error
messages
Learn Compiler Design: From B. K. Sharma
Target language:
Machine language
Assembly Language
?
Designing a compiler means designing / creating
the technology.
Learn Compiler Design: From B. K. Sharma
A Translator
Translator
Translator
Translator
Summary:
1:A compiler reads a program written in the source
language and translate it into an equivalent program in
target language.