Created
May 11, 2015 01:17
-
-
Save kai-qu/e8505d5dfd47c4802d15 to your computer and use it in GitHub Desktop.
nested input-output examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type var = string | |
type inputVal = | |
| Impossible | |
| Any | |
| Some of exp | |
type inputAssn = var * inputVal | |
type output = exp | |
(* variant of a rose tree *) | |
type ('value, 'output) ioTree = | |
| Leaf of 'output | |
| Nested of ('value * ('value, 'output) ioTree) list | |
type inputTree = (inputAssn, output) ioTree |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment