Adder is a small but usable subset of the Python language. It is named for the Blackadder comedy series, much as the Python language is named for Monty Python.
MIT License
0
stars
2
forks
source link
Interpret condition expressions and statements #41
@Marist-CMPT331-TOPL/students Depends on #3 and part of #15 (for if-then ternary operator).
The interpreter should be able to handle conditional execution, in both statement and expression form.
valueOf
forIfExpr
. This implementation should work almost exactly like the implementation ofIfExp
from the HOPL languages.resultOf
forIfStmt
. This implementation should work much like the implementation ofIfStmt
from the HOPL languages.Note: This will serve as an initial implementation, and the statement-version will be extended later with
elif
branches.