type ('nonterminal, 'terminal) pe_tree =
| Is_empty
| Leaf of t
| Node of (n * tree)
| Sequence of list
| Repeat of list
| Is_not of e;;
You use *to determine the types of products, as in 'a * 'b. Although this is probably not so important right now, you should know that Node of 'a * 'bthey Node of ('a * 'b)are different. You can think of them as a variant type with two parameters, and the other on a variant type with one parameter (tuple), respectively.
There are a few more things
- you need to determine what
Sequenceu Repeatare a list. 'nonterminal 'terminal ; phantom, , , , , .