User Tools

Site Tools


compilers:sample-lab-exam

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

=== Sample programming task === Change/extend the compiler of the While language as follows: * Change the definition of variable names (identifiers) so that they have to contain at least one digit. * Add the ''elsif'' keyword to the language. * Change the syntax of branching so that it allows multiple branches: <code> if x < 10 then a := 0; elsif x = 0 then a := 1; else a := 2; end </code> * Emit error message if the condition of an ''elsif'' is not boolean.

compilers/sample-lab-exam.1481924558.txt.gz · Last modified: 2016/12/16 22:42 by deva