modern-compiler-ml/tiger/chap5/types.sml

17 lines
269 B
Standard ML
Raw Normal View History

structure Types =
struct
type unique = unit ref
datatype ty =
RECORD of (Symbol.symbol * ty) list * unique
| NIL
| INT
| STRING
| ARRAY of ty * unique
| NAME of Symbol.symbol * ty option ref
| UNIT
end