Module Morsmall_utilities.TestParser
type expression
=
|
And of expression * expression
|
Or of expression * expression
|
Not of expression
|
Binary of string * string * string
|
Unary of string * string
|
Single of string
val parse : ?bracket:bool -> string list -> expression option
parse ~bracket wl
parses the list of wordswl
as a test expression (orNone
ifwl
is empty). Ifbracket
istrue
then the last word ofwl
must be a right bracket.