0% found this document useful (0 votes)
42 views1 page

Assignment 01 PDF

This document outlines a bonus assignment for a programming languages concepts course. Students are asked to design a shift-reduce parser and write a program to parse a given grammar. The grammar provided is: id + id * id. Students must submit a complete report explaining their program and output. The program code alone is not sufficient and plagiarism will result in a score of zero. The assignment is worth 5 points and students should send just the .c file to the instructor by the deadline.
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)
42 views1 page

Assignment 01 PDF

This document outlines a bonus assignment for a programming languages concepts course. Students are asked to design a shift-reduce parser and write a program to parse a given grammar. The grammar provided is: id + id * id. Students must submit a complete report explaining their program and output. The program code alone is not sufficient and plagiarism will result in a score of zero. The assignment is worth 5 points and students should send just the .c file to the instructor by the deadline.
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/ 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   ([email protected],   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