You are on page 1of 1

 

   
 
                                                                                                   Bonus  Assignment    
                             CSE325/425:  Concepts  of  Programming  Language    
                               Submission  Date-­‐  03/03/2020  (5:00PM)  (Strict)    
                                                                                     (Coding  ethics  will  be  checked  (Careful))  

1. In  this  assignment,  your  first  task  will  be  to  design  a  shift  reduce  parser.  
2. The  grammar  for  this  task  is  given  below.  
3. And  you  need  to  produce  the  output  as  below-­‐  
4. It   must   be   a   complete   report   with   the   proper   explanation   of   your   program   and  
output.  Hence,  writing  the  program  only  will  not  be  enough.    
5. If  I  find  the  similarity  with  any  others  and  copied  from  Internet,  your  report  will  be  
rejected  and  scored  as  0.  (A  viva  will  be  taken  if  necessary)    
6. This  assignment  carries  5  points  from  your  total  grade.    
7. Send   the   program   in   my   mail   (faiz.faisal@northsouth.edu,   sub:  
CSE325/425_Assignment1_Sect4)   but   not   the   report.   Report   must   be   in   printed  
version.  And  send  me  only  the  .c  extension  file.  [If  I  can’t  find  the  C  file,  you  will  be  
scored  to  zero]      

Grammar:  

                                                                                                 
Input  String:    id  +  id  *  id                      
 
8. Sample  output-­‐  

You might also like