Since many programs contain a sequence of if-then statements, some languages (like Ada) have extended if statements to include an elsif clause:
Each of the expressions is evaluated in turn. As soon as a true expression is reached, the corresponding statements are executed and the if-elsif statement is exited. If no expression evaluates to true, the else statement is executed. Suggest an AST structure suitable for representing an if-elsif statement. Define
a code generator for this AST structure. (You may generate JVM code or code for any other computer architecture).