In this homework, you will implement the abstract syntax and semantics for expressions over numbers and Booleans.
Numbers are represented as lists of decimal digits.
For instance, 51 is represented as:
List.cons (Value (5), List.cons (Value (1), List.empty))You can run the tests using:
$ swift test # for mac users
$ docker build . # for linux usersYou must add tests!
- Have you done something? yes
- Does your code compile? yes
- Do your tests succeeds? yes
- Have you added more tests? yes
- Do the automatic tests succeed? no
- Have you written the semantics as inference rules? no
Additional automatic tests need the function signatures to be unchanged, and cannot thus compile. Please fix it.
| Grade |
|---|
| 4 |