1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1996-02-25 06:45:47 -08:00
|
|
|
(* Compaction of an automata *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-02-25 06:45:47 -08:00
|
|
|
type lex_tables =
|
|
|
|
{ tbl_base: int array; (* Perform / Shift *)
|
|
|
|
tbl_backtrk: int array; (* No_remember / Remember *)
|
|
|
|
tbl_default: int array; (* Default transition *)
|
|
|
|
tbl_trans: int array; (* Transitions (compacted) *)
|
|
|
|
tbl_check: int array } (* Check (compacted) *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-02-25 06:45:47 -08:00
|
|
|
val compact_tables: Lexgen.automata array -> lex_tables
|