Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

PAGE NC AT

Conepiler, Pestq:
DATE

copile: Tt lasolluare taat copvets aprocxoue


oYtenio ahidlehel lanauaae ource larguone

(or)
isatype ie tandlator ,which takes Qpcqrasa
acdtranalate qinto an eqivalent aa~o în o
sercb larquage
oThe.pograo oíttenßo hichleel anouge iskrouh
Olheproaiare'ytttero) Converdted Rati Lwlenal

Aanauaqetan heie ed faevery preaahmning


iangagi e haue diert coapiler haieve
<SOUe
ae poese o tanokog ource code fnto mochine
tode fascures Gergal slaqe
aliysis
Qerafc analuis
ade qenicakn
O ompiris anntequ
intequnt prram as conpeto
an ASemblere
PAGE NO:
DATE

ompilervexi[tes all types of inits,rara,


cccupíes huac
memorypoce
he.peed e, he cetopiler is deuoee thanchr
LandtaeOdoes tantafon of tae kel picsa
Ahen ompileruon saie imodre od
poduces noochne code oy the same oacine
called
llconile or) cestdent comlenby
spluhay ruc on ne macdáne and
píoduca the nochine Cades Hor other Cagt
Hiak leel iogtaanatng Jag
4Raat had an ahstackicn e
Attrlbutesoopoputr,mor ConVentt to
the user
The San hích doest rauie prcqrasataina
deos añd coctepts
Hrhteve! tamaqe tstee piganj
front
Lexfeal Anoyter
Synnho Syntox Aratiy ~er pontetee
teble ttrtt
SernantC Anaytut.
(Irtemedlate
Cocde optiroSKeduce s e oproq
TOYqet ote

Cote Phaxesef
conipiler
sembly
PAGE No
DATE:

ALexical Apatysts (Scantin): fhe fuet clogeioco


also kOusn
reada ae coure code choro es by
chatocer aobteake idowp ioto sieA
Hokens ucha idaters, keyusada add
opuatoYs these,okensdxe tneo poed on tote
Aexk stage omlakon procé sA

clae, te corrpiler che cks the syota toe


sOur ecode to ensurz that ît cnlor to tre
cules otae pqrarataeoxchlcal Ihe cmpile
ildaaporleteel juhhis a
preAeetaon e pLoqras sthuctre and wsed
Tokens
hexical
ynte

Aralreaoroken
Pack
aroctex
lencal fADalyiee cap be
he atpuk iso ceauerce c tokens hat is eent tothe
-poxer oy sunlaxaalusis
Eoken:Alexcol 4oken sa sequence chorOdee
ethe fearameiog laquage
14pe token (idnrhe real
Puncaioo tkeo1C void jeteun)
Aphabeíc taken
PAGE N0:
DATE:

kewgds otzuklefcte
ndntil iu-yevtab44) rame, fuocEon rarne
operatoys
Stpuatolsy) cte
ontbkes:-Comments, p1eproleAor diecttie,
eouoslanka taba, neine etc
fAacieme the sequgnce a choxode$ traldhed
yapateo tofoeo the Conespctaicq ku
(onaseienie input choxackers thaj
conapriss, token iscaled
y"{loat dbeiokeluto'""
SRI Lypto Dírectoy Traaltbnlag)
(3)Scooantt Analti ne third cleqe onrpiler
destqnTo tis staqs croopiler check the
meioiog àe Source code to cDALre thot
tnoeke corepiler pefona
Jaeckioguicneauresthat aiadeia2
ed iochy cnd that cpealooa an
perforgaed On cespatble datatpes the
patoren checkslox the oth ceonautc
Iorpiledalio oriabes a
<rrory Auch as undeclared
Rotorre c uncop, calla
[post ree oddress)

Stege the coooiler traDated the parse


EreeiotD Oachne Code tat cor beeited
by tae congptek the aode qenuated byta
ocapiler ouat be eicient and cpinsad
orfe orqt platoa
PAGE NO:

chne depentfg innecnopdea tkqiee cartc"g)


pileL Omses the scde anualcd ard
mkes cptimiaticns to fcaprbre, lsperlox
panei hcbhas
2akioos
cmpiler tuy putora c p i
Constant

adeep urderstaiq
lamuages and taxqt plotforn
AutlluAelioed
cootilerconaaty
eicin and peiovtae iocpDYe foe

owtevet
Cocnpiles
sanquage Larquoqe
Compilation error
CsosstoMAle: hat u oH mcaine ad piuce
cde or anther noachipeBl.T Capabe
Cieatf code for pat (oxm than on ohth the
mpile fs cuinnîg
Saurce to Souvce Lodpiles (hanscole otnge
-ler) YsS a corilet thal translatea Aource cale
wrtenincode
eoe i h g ax
tource code fo attes
aablhe PL
obton The ctructhe ardáct aafoelea haleu°cde
he taOalatino, anaygs an pfilatten
PAGE NO:
DATE:

kenalRon nlelca
iot Yae 106} raycontert
keguyd alnk{ty cpeuctor sperasor
(Vanratde
Spcilfcatfons o tokeni

Alexadecimal alphabeta
Allhabeta
siíoat Aceaierce eallabelalchaxactzc
Actonmeic
PuDtuaton
Asetanoeud ()

Apetament
(orgpaxiston X((SYS
Ldatootecilar
Logical
Shit opexator
gdentiiec a,bx
opratnrt
CLileral
Seperatoy 0)
PAGE NO:
DATE:

Paráalsynta Aralunis) Aller LA(çorning


cneck kae'suntacTlai shuchure eHae
Soput yie whthethe aiven input fs in tae coect
Cuntax t does pbi bulrq adata ctuchure
dalled"faxse treeu or"syotax tree
Tae Ptree consticked byiusina pre-deid
qiammer Janguaqe -ard'iputYg
T is to,deate a pare fee o
abhat ASde ouKce codehila isa
hieovchhal repre ctdtalor ch the scurçe Code
that relects the qaneatícal 'staucure the
pxoqrarn
LAtokens token class
Tdeatike
identtter
OsignNot
SDA’ parsey ’farre'treeitu)3
onulple

Poytex

Botornup iqht mngst


fxses ivaton
PAGE NO:
DATE:

AAoareaga. epted, teureatDrg


mutseoißy oatt rulesheseules prod.
tae qroMmetheeded t CoM tyut vod
llag are the gt
donple
iordS
atnal. Jang
<sentence>i4subiec> Ver by<ebsecks
RSubi ect>: lartesoun
coHele>ithé aan
oanidoalatIeson
netdllec leatlate paye d etr
euhyii= petx
<obfeoé =larfat >roun
hat a uero
larácq checkaackatenment toproe
aAfnput ogaínt hese les tat te
rule at
Top-doaDD PAYcrce- These clartuftha
Tp-do Ssenkence
otic
the rele at thebottom cobje
Case,the parrer asuld Look {or ap
ao coject>

TLis the parcerthat qenerate


lopdounRaxter sthíng uít fae help
porse far Hhe ieeoiopat cukondíno
earanctcaor toductoas by
termil ive B tartrom clav'cupnbel
arlenda on Ermíalwes
MLeMost periVaior)
bhbcd
to
Be A abhcde aAbcdet
aAde abbcde abbcde
abbdr abbede
akbcde oputi
Batornup
part
D A a
Wabcde
Be B’d
Abc
deivaltor rightrost the La
tie syrcoltt
uscs ctart apddoo
the
sth ita, iopyt aiven the for Hee parse Hhe
es fhat payser the isparcer:
Tt obup
rootyl veto CteAoyseys)
a Radue saift
DATE:
N0:. PAGE
PAGE NO
DATE:

pYse

Recursfe pesCent
parg

Bocktachg tiatteck
Brube oSeclaafs

LLParSer
Bottom eup forer

RParters
LALEDC(
Lookahead anial
sfnp'te
Ioforriq code s taken frn pepocesoy,onckec
fnto coalec pieceA enalysec
Can understand it

You might also like