0% found this document useful (0 votes)
55 views

Compiler Design Notes Unit 1

Uploaded by

Nishita Kher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Compiler Design Notes Unit 1

Uploaded by

Nishita Kher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Date Page

AsstqNMENT-1

h a t is he difteun bluw Compilur 4 inkpuk


Cepilk TnxpMHA
Aean theCnkie puogam iuE Tannlas hepuegam Js
and txanalak i t ine ww.ehine ine
coce
CeuuukA the nkik poaxam te ash tim he pugxam is
mackn cede. man alhe LxecLukd y in is chtkad
UMeed exuuhien Auna eXKAK, and hin tenvexkd
taks pla tquivwalunt machune todu
Aleu dtbuggn- Cyoed &-fast ja dabu4gin
xuiesm hmt is lu xeuien Hme vmoa.

hat is he difeun btuan Aing& pals cempiley Qnd mulk


pas Lempilu
Singl pas Cempil Mlhi- pa Cempilox-
A Lmpites hat pasaeA AR bypa Cempile at pcLMEA
MH H pauh tach he suAL Loda 0XabitMAct
LPYMpilakien i t omi ence nax tH eA pagan
A
Coda Asron ine ib finml _maskine
LSdA
fask aan mulipa tempilea e slee as
each pah Kads &
uuits an intmdiak tlar
alda naxxer Lempilen Calld a uide temmpile.
Ha a linikd 2c0p
Has a gHea epe
hexeis ne code ephnuizahon
hes is code ephinuirah'zn
No inkmediak ode
genesahen Inkuwediak code qenexah'en
laka winimum Hm to
Lmpile akis Kem ine t CampBtt
AAMKU
PRODUCTS
Mamoxy tensuuphn higk.
Date Page.

paogxamnaiug
Ued te implemanE PH0gHamn
Ad to impleut
Xanguaqes aA fastal. Ranguags 2uch a Jawa

CL PaRa nmpile fo
Q9: Discus h
ashen fakn
P
stakmumt X Yt2/10.
elle menaHA Lekns
Phase 1 xical Analy zen
Lexems& Toks
Tolunhfiea
8peualopx

Tdnifi
Opcxatol
Tduhffu

8pexaro
Opcxand-
xLid1): Rop1) 1 (id 2)+lopL)
zlid3) lop 3)lo (a)
Tokan
Phas 2: Syntaxanayztx
S idi-f
£tT |T
T Tef lf
idQid idsid1

F i
id3

Phae 3 smankic Analyz shck oal Aumanh


hea
AAMKU
Date:. Page.

hase Inkumdiae Code genuoh'on 3 addus oole


X emp 1 mp 2 z/1o km3
kmpi emp2 tmp3

Pha 5 Code 0pkiuizaien loptienal) MLoluueus udundany in


Case eHedndaney No udundaucyJhu

Phase Code 4neahen.

Jood id3
di id
add id2
skOke id 1

Anay z he ele oxial analyzen in Cempil Deseube heu


LEX Can be wed t e nexak kakans.
Lexitalanalysii i s thiut phauo empilau
A lexical analyza eperaksas an inkuac betun AouLeA
Locda and t the empiler_phases
7t_uads Hhe input shaxacttuh o unee P0AanM quLeuupi
hem ine lexemsand poducsa Aquae ef kekans fe
lexeme The Hkua a Aunt _sukx analy z

paxaks Hhe chaxackus et Jewee cool


lexical analyza
ino quoup hatLagitatly bteng H8qektaea tatud ekuus
Teks idunhfie, kyu0da epuatoxs punehiahen
and epexands
Ea he expeen a bt ckdi
A iuty anaiuzed by exical analy zes The lusicalanaly z
Cemuua_ Hhis code. ine Jepaxak tekam

Lexems Tokan
idunifiex
epexgto
AAMKU®
PRODUCTS
Date: Page

denhie Tokn (op)a id i) (or)b.lida)+ lop) clia


earoR Copt) d Cid 4)
C
idniie
optuuto
d idauni ien
PLunctuahen

LEX
Lexis a leel o cempuk pu0gxAm wiuch gRnesate lxical hvmaly2u
isused t h YAcc pazsux & gtiathatoa
lextempilo u tuaaLoxm Hhe inpuf pateunm Into tsuauihen
diagsam&qunae tads in a fil callud ex.uu C
Seuue tocda ts_a lex anguag uuh fil name x knsim
i s 4An e Lex cempil uhish is he ux eok & poduessA

A cewapilex suwni heCLodk ic lex y pngaam à puoolunes

aut tHaneHmA an ip Atxaam inkoa MqunL8kekuá

Lex Compile lex. ay.c


Sece fill
(Pil D)

Cpuogam .0ut

e
SttamHLL aaoutE

Beekstappin
Baekaixapping ià utd e puedu soy-hesh epiex a-hosy
Lempile A a kfe compíle that Lan (onpile ík wn Souc
tod
Beskstap (AmpilkA s wud te cempile Hhs cempila_ and theRn
his cempil.d cempílu _san be ud e C&apile ethe pogskams
AAMKUO
PRODUCTS
Date Page.

and cempilus
H G 0 empíl A osCempilA i a Compilen capable
eutable Lode plat plat fom ekher han- th
abn
One on uhich h tompileis unnia -
To wxir AAeh Lompil foltanguaa Implemmkaho
anguag Y_faxgetcode Z
Ma ehu M 9enexaer MM Afto unnirg xZ wim
MM w gu CewMpilen xMZ

QS |ha k.E (atb abb. Dxaw N£A wing Tampstn's mstsushem


mekod & cemuet NFA DeA
NE A ing
Thempt.en Cenutsuchim eHaod

lo emux NEA o DfA

,44,4
TAAMKU®
ÞRODUCTs
Date:
Page:.

Ecteun

s C6,a) tosuwu (S244 4


D
11q49+

4 a )

S (c a) tuesu (s(i

cke C)
AAMKU®
PRODUCTS
Date: Page:

th (E, a) tosu 6 L u
ctosure Cq )

|s (E,

cloAUAL
C

Txanaion tale 4ar DfA:

D E
C

D D

6 C

A
b a

DFA

You might also like