You are on page 1of 5
January made sana 1 se Aepsinmart « @ truck Pas : week SLR parsang Sehle. gbeC 6.) ree Frid} stor Ye ~fo\lo. Sy, Parent « ° k—-> tat nn TL Wwe. Qoro (Tat: | ET. “ I= E Tove, F— Cry no Potd Gots (9,932 [ASF 22 "lai NAd Deigumedted Grammar! \Gob (Io, (5 poe E> EAT = ST TTF FS Ce) “ F sid sg wt 3 3 ‘Nestle lL [6 ll wlels ln asa vo The best preparation for good work tomorrow Is todo good work today Scanned with CamScanner 2019 January 12 sii er Gele “a, xy jp x-fyy § firey Gas, wD fe S| re 3 —— (Fs a Geto (04,3); ¥-4 7,0, Cid) = Gor (84,7): tCoEat [a Tot. xp \*9 ae Ely | 4g cto Gy,7) i * ee T>DTe XE Gere (Lg ids \i Lote (Fy ae | tate Batt [row Vie : Gob by) 5: ae cn Get (dy, ¢ “Vsunday Jonvory wb LB ews * Ga bsfFoay ” oy wo s|"| juin [sts Tiworors|siMet | Fos|s|m B Vaglelse 7 e sion wes li6lime [you hia 2627 we rust ia lihe a poper once ifs crumpled it can't be PERFECT, Scanned with CamScanner January weeds teas 14. cn Cet Se) , re goin ondary te — Gets (X—, 901 {fs (t), \ Sn Gee (Lg, ayy Gob (14149! \ [sim orion eisisim 1304 5 16.17 aw 99 20 28 22/28/24 25; 26/27 20 29/30) 31 Scanned with CamScanner January a : werk 3 15-350 Pah sayy Sear waa LOS Naa Tuesday yeaa foucow (t>* fet oft oY sani alt we Fotis (CO) 49,1785 Fak Fotos (hY= Faye 3% or tay ota ” b. + Steps : SP “Steph pee Me i)p sda g om = ; 3 2 Tr sisimrwirirlsisimiriwirlsisisim riwit leis 7.8 6 FO WW AS. Me 15/6) IT TS 19 20) 20 22/25/24 | 25 26/27 28 Be sure to taste your words before you spit them out. Scanned with CamScanner 6) F > id Input string : id * id + id We will consider two data structures wh are - Stack and input butter. king, the parsing actions and thoy Bisex Input buffer | Action table Goto table __Parsing action) ideid vids. [Oid}=s5 Shift i sid+idS [0,F)=3 Reduce byFoid 7 ids Reduce by T+ F sid+idS ‘Shift idtidS Shift +idS Reduce by F~ id +idS Reduce by T3 T+ F +ids Reduce by ET +idS Shift ids Shift $ I[6F]=3 Reduce by F=>id__| $ [o.1]=9 Reduce by T-> F s [OE}=1 E>EsT: § Accept ae In the above table at first row we get action[0, id] = s5, that means shift id from inet huffne ania tha etack and then nnsh the state number 5. On the second row ¥ NEOE+ 2HEaT 3)T > TF 4) TOF 5) F—F* 6) Foa DED Now we will t augmented grammr then the initial set Ip: E>+E+T, E>+T \ To+TF TF \ F+E* Foea Feb Now we wi applied step by Scanned with CamScanner

You might also like