This preview shows page 1. Sign up to view the full content.
Unformatted text preview: The general structure of a program is that it consists of a number of labeled lines, each starting with a label followed by and if-then-else statement. The first part after 'if' is a relation expression (comparison of two expressions). The actions are either 'jumps' marked by labels, action# (where # is a number), or exit. Your task is to write a program that verifies if the input is a valid program in the IF language. Formalize the above task as a compiler-related project. Design a process (and develop particular steps) that lead to the solution. Step 1: Step 2: Step 3: Step 4:...
View Full Document
This document was uploaded on 12/14/2010.
- Fall '09