1995-05-04 03:15:53 -07:00
|
|
|
(* Transformation of N-way integer branches *)
|
|
|
|
|
|
|
|
open Lambda
|
|
|
|
|
|
|
|
(* Input: a list of (key, action) pairs, where keys are integers. *)
|
1995-06-18 07:44:56 -07:00
|
|
|
(* Output: a table of (low, high, offset) triples for Ptranslate
|
|
|
|
a list of actions for Lswitch *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
val make_decision_tree:
|
1995-06-18 07:44:56 -07:00
|
|
|
(int * lambda) list -> (int * int * int) array * (int * lambda) list * int
|