
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A homework assignment for the course csci 169 - software paradigms at the george washington university, school of engineering and applied science, department of computer science. The assignment includes problem statements for drawing a parse tree, extending a grammar, implementing a matrix template, and analyzing a c2 type language. Students are required to submit their solutions by october 22, 2007.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Homework Assignment
Instructor: A. Bellaachia Problem 1 : (25 points) E :: E โ+โ T | T T :: T โ*โ F | F F :: โ(โ E โ)โ | int a) Draw the parse tree of (((3))) b) Extend the grammar with the following construct: if-then-else statement The following examples should be accepted by your extension. If true then: a=5; b=c; :else: toto=4; foo=0; : If true then: a=5; b=c; : If true then : a=5; If true then : www=5; :else: toto=4; foo=0; : Problem 2: (25 points) Create a template to manipulate matrices. You template should include the following operation: