Created
October 20, 2019 21:25
-
-
Save ELLIOTTCABLE/0179ac49dc371e077a601d27b3bc0032 to your computer and use it in GitHub Desktop.
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 'a unresolved = Unresolved | Resolved of 'a | Absent | |
type 'a or_subexpr = Sub of expression | Literal of 'a | Absent | |
and flag = { name : string; mutable payload : string or_subexpr unresolved } | |
and arg = Positional of string or_subexpr | Flag of flag | |
and expression = { count : int; cmd : string or_subexpr; mutable args : arg array } | |
type t = { expressions : expression array } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment