-
Notifications
You must be signed in to change notification settings - Fork 4
Add partially-modernized ocaml hw03 harness #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge with minor edits.
#require "core";; | ||
#require "oUnit";; | ||
#directory "_build";; | ||
#load "hw02.cma";; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#load "hw02.cma";; | |
#load "hw03.cma";; |
@@ -0,0 +1,36 @@ | |||
# hw02/ocaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# hw02/ocaml | |
# hw03/ocaml |
| Prod of typ * typ | ||
| Void | ||
| Sum of typ * typ | ||
[@@deriving sexp_of, compare, equal] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spacing looks a little funny?
| InL of typ * typ * exp | ||
| InR of typ * typ * exp | ||
| Case of exp * var * exp * var * exp | ||
[@@deriving sexp_of, compare, equal] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spacing looks a little funny?
| Prod of typ * typ | ||
| Void | ||
| Sum of typ * typ | ||
[@@deriving sexp_of, compare, equal] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[@@deriving sexp_of, compare, equal] | |
[@@deriving sexp_of, compare, equal] |
| InL of typ * typ * exp | ||
| InR of typ * typ * exp | ||
| Case of exp * var * exp * var * exp | ||
[@@deriving sexp_of, compare, equal] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[@@deriving sexp_of, compare, equal] | |
[@@deriving sexp_of, compare, equal] |
partially apply csci5535/hw02#2; add type signatures for PFPL PCF definitions.