comparison lab0/tree.mli @ 0:bfdcc3820b32

Basis
author Mike Spivey <mike@cs.ox.ac.uk>
date Thu, 05 Oct 2017 08:04:15 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bfdcc3820b32
1 (* lab1/tree.mli *)
2 (* Copyright (c) 2017 J. M. Spivey *)
3
4 (* Abstract syntax *)
5
6 type expr =
7 Number of float (* Constant (value) *)
8 | Variable of string (* Variable (name) *)
9 | Binop of op * expr * expr (* Binary operator *)
10
11 and op = Plus | Minus | Times | Divide