User Tools

Site Tools


compilers:sample-lab-exam

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
compilers:sample-lab-exam [2016/12/16 22:46]
deva
compilers:sample-lab-exam [2016/12/16 22:46] (current)
deva
Line 5: Line 5:
   * Grade 2: Change the definition of variable names (identifiers) so that they have to contain at least one digit.   * Grade 2: Change the definition of variable names (identifiers) so that they have to contain at least one digit.
   * Grade 3: Add the ''​elsif''​ keyword to the language.   * Grade 3: Add the ''​elsif''​ keyword to the language.
-  * Grade 4: Change the syntax of branching ​so that it allows multiple branches. Example:+  * Grade 4: Change the syntax of ''​if''​ instructions ​so that it allows multiple branches. Example:
 <​code>​ <​code>​
 if x < 10 then if x < 10 then
compilers/sample-lab-exam.txt · Last modified: 2016/12/16 22:46 by deva