equal
deleted
inserted
replaced
14 |
14 |
15 datatype closure = CDummy | CVar of int | CConst of int |
15 datatype closure = CDummy | CVar of int | CConst of int |
16 | CApp of closure * closure | CAbs of closure |
16 | CApp of closure * closure | CAbs of closure |
17 | Closure of (closure list) * closure |
17 | Closure of (closure list) * closure |
18 |
18 |
19 structure prog_struct = TableFun(type key = int*int val ord = prod_ord int_ord int_ord); |
19 structure prog_struct = Table(type key = int*int val ord = prod_ord int_ord int_ord); |
20 |
20 |
21 datatype program = Program of ((pattern * closure * (closure*closure) list) list) prog_struct.table |
21 datatype program = Program of ((pattern * closure * (closure*closure) list) list) prog_struct.table |
22 |
22 |
23 datatype stack = SEmpty | SAppL of closure * stack | SAppR of closure * stack | SAbs of stack |
23 datatype stack = SEmpty | SAppL of closure * stack | SAppR of closure * stack | SAbs of stack |
24 |
24 |