CCParse.USourceThis is useful to parse OCaml-like values in a simple way. All the parsers are whitespace-insensitive (they skip whitespace).
list p parses a list of p, with the OCaml conventions for start token "[", stop token "]" and separator ";". Whitespace between items are skipped.
in_parens_opt p parses p in an arbitrary number of nested parenthesis (possibly 0).
option p parses "Some <x>" into Some x if p parses "<x>" into x, and parses "None" into None.
Parse an int int hexadecimal format. Accepts an optional 0x prefix, and ignores capitalization.
Parse a pair using OCaml syntactic conventions. The default is "(a, b)".