Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homework #3: Expressions

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))

Test

You can run the tests using:

$ swift test     # for mac users
$ docker build . # for linux users

You must add tests!

Grade

  • 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

About

Homework #3: Expressions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages