Sie sind auf Seite 1von 1

Class Subject Lab Assignment # Phase 1 Due Date %ools (roup Primary %as, Secon$ary %as,

CSC417 Compiler Construction 1 Lexical Analysis 2 th !eb 2"14 #e$nes$ay %urbo C&C'' 2 stu$ent )*ax+ (eneration o- %o,ens 1. Strip out comments -rom source program. 2. Strip out /hite spaces 0blan,&tab&ne/line1 -rom source program 2. Correlate error message /ith source program 4. *acro processor expansion 3. Creation o- symbol table /ith attributes -or to,ens Symbol Table Lexeme %o,en Pattern Atribute1 Attribute n

Submissions

8.>.

. Lexical error $etection 7. Lexical error reco4ery 0be-ore ma,ing any reco4ery a user con-irmation is re5uire$ eg 6 Delete 7&81 a. Deleting an extraneous character b. 9eplacing a missing character c. %ransposing t/o a$jacent characters $. 9eplacing incorrect character by correct character 1. :n$ex 2. Documentation shoul$ inclu$e a. List o- to,ens supporte$ by your lexical analy;er b. 9egular expression -or to,en speci-ication c. !inite Automata -or to,en 4eri-ication $. Algorithms e. etc. 2. Sample :nput Program 4. <utput & 9esults 3. So-t copy . =ar$ copy 8o late submission & 8o same submission Please $o inclu$e tas, 0primary an$ secon$ary1 /ith page #?s in your in$ex.

Please prepare -ile /ith the -ollo/ing in$ex -ormat6 Assignment # %as, page # Due Date !rom @ %o

9emar,s

!or any 5uery you can contact me at aihab,hanAyahoo.com Aihab Khan Feb 04, 2014

Das könnte Ihnen auch gefallen