sxdico_process.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "sxdico.h"
Include dependency graph for sxdico_process.c:

Go to the source code of this file.

Data Structures

struct  comb

Functions

static SXBOOLEAN state_by_lgth (SXINT i, SXINT j)
static SXBOOLEAN less (SXINT i, SXINT j)
static SXVOID sort (SXINT bi, SXINT bf)
static SXBA_INDEX put_in_comb (SXINT state)
static SXINT unpack_kw (unsigned char *kw, SXINT kwl)
static SXBOOLEAN get_best (SXINT bi, SXINT bf)
static SXINT get_next_state (void)
static SXINT gen (SXINT bi, SXINT bf)
static void make_dico (void)
void sxdico_process (struct mot2 input, struct dico *output)
void sxdico2c (struct dico *sxdico2c_dico, FILE *file, char *dico_name, SXBOOLEAN is_static)

Variables

char WHAT_SXDICO_PROCESS [] = "@(#)SYNTAX - $Id: sxdico_process.c 1491 2008-07-23 16:13:15Z sagot $" WHAT_DEBUG
static struct mot2 mot2
static struct dico dico empty_dico
static SXBA_INDEX max_x
static SXINT state_top
static SXINT teeth_nb
static SXINT pw_nb
static SXINT ps_nb
static SXINT * sorted
static SXINT * sorted_by_char
static unsigned char char2class [256]
static unsigned char empty_char2class [256]
static unsigned char last_class
static SXBA char_set1
static SXBA char_set2
static SXBA * automaton_signature
static SXINT as_size
static SXBA_INDEX class_nb
static SXINT max_lgth
static SXINT ** automaton
static SXINT * vector
static SXBA_INDEX * state2trans_nb
static SXINT * sorted_by_state
static SXINT start_state
static SXBOOLEAN prefix_is_chosen

Function Documentation

static SXINT gen ( SXINT  bi,
SXINT  bf 
) [static]
static SXBOOLEAN get_best ( SXINT  bi,
SXINT  bf 
) [static]
static SXINT get_next_state ( void   )  [static]

Definition at line 316 of file sxdico_process.c.

References as_size, automaton, automaton_signature, class_nb, state_top, sxbm_resize(), and vector.

Referenced by gen().

static SXBOOLEAN less ( SXINT  i,
SXINT  j 
) [static]

Definition at line 67 of file sxdico_process.c.

References mot2, prefix_is_chosen, sorted, SXFALSE, and SXTRUE.

Referenced by sort().

static void make_dico ( void   )  [static]

Definition at line 470 of file sxdico_process.c.

References action(), char2class, last_class, mot2, start_state, sxtrap(), and tooth.

Referenced by sxdico_process().

static SXBA_INDEX put_in_comb ( SXINT  state  )  [static]
static SXVOID sort ( SXINT  bi,
SXINT  bf 
) [static]

Definition at line 102 of file sxdico_process.c.

References less(), sort_by_tree(), sorted, and sorted_by_char.

Referenced by get_best().

static SXBOOLEAN state_by_lgth ( SXINT  i,
SXINT  j 
) [static]

Definition at line 58 of file sxdico_process.c.

References state2trans_nb.

Referenced by sxdico_process().

void sxdico2c ( struct dico *  sxdico2c_dico,
FILE *  file,
char dico_name,
SXBOOLEAN  is_static 
)

Definition at line 719 of file sxdico_process.c.

References SXCHAR_TO_STRING.

void sxdico_process ( struct mot2  input,
struct dico *  output 
)
static SXINT unpack_kw ( unsigned char kw,
SXINT  kwl 
) [static]

Definition at line 192 of file sxdico_process.c.

References automaton, automaton_signature, base, char2class, mot2, start_state, SXBOOLEAN, SXFALSE, and SXTRUE.

Referenced by sxdico_process().


Variable Documentation

SXINT as_size [static]

Definition at line 48 of file sxdico_process.c.

Referenced by get_next_state(), and sxdico_process().

SXINT** automaton [static]

Definition at line 52 of file sxdico_process.c.

Referenced by gen(), get_next_state(), put_in_comb(), sxdico_process(), and unpack_kw().

SXBA* automaton_signature [static]

Definition at line 47 of file sxdico_process.c.

Referenced by gen(), get_next_state(), put_in_comb(), sxdico_process(), and unpack_kw().

unsigned char char2class[256] [static]
SXBA char_set1 [static]

Definition at line 45 of file sxdico_process.c.

Referenced by class_denotations(), classes(), get_best(), sxdico_process(), and third_pass().

SXBA char_set2 [static]

Definition at line 45 of file sxdico_process.c.

Referenced by class_denotations(), classes(), get_best(), and sxdico_process().

SXBA_INDEX class_nb [static]

Definition at line 49 of file sxdico_process.c.

Referenced by get_next_state(), and sxdico_process().

unsigned char empty_char2class[256] [static]

Definition at line 44 of file sxdico_process.c.

Referenced by sxdico_process().

struct dico dico empty_dico [static]

Definition at line 37 of file sxdico_process.c.

Referenced by sxdico_process().

unsigned char last_class [static]

Definition at line 44 of file sxdico_process.c.

Referenced by gen(), make_dico(), put_in_comb(), and sxdico_process().

SXINT max_lgth [static]

Definition at line 50 of file sxdico_process.c.

Referenced by sxdico_process().

SXBA_INDEX max_x [static]

Definition at line 39 of file sxdico_process.c.

Referenced by put_in_comb(), and sxdico_process().

struct mot2 mot2 [static]

Definition at line 27 of file sxdico_process.c.

Referenced by gen(), get_best(), less(), make_dico(), put_in_comb(), sxdico_process(), and unpack_kw().

SXBOOLEAN prefix_is_chosen [static]

Definition at line 65 of file sxdico_process.c.

Referenced by get_best(), and less().

SXINT ps_nb [static]

Definition at line 41 of file sxdico_process.c.

Referenced by put_in_comb(), and sxdico_process().

SXINT pw_nb [static]

Definition at line 41 of file sxdico_process.c.

Referenced by gen(), and sxdico_process().

SXINT* sorted [static]

Definition at line 43 of file sxdico_process.c.

Referenced by equality_sort(), gen(), get_best(), less(), sort(), sxdico_process(), and sxerrsort().

SXINT * sorted_by_char [static]

Definition at line 43 of file sxdico_process.c.

Referenced by sort(), and sxdico_process().

SXINT* sorted_by_state [static]

Definition at line 55 of file sxdico_process.c.

Referenced by sxdico_process().

SXINT start_state [static]

Definition at line 55 of file sxdico_process.c.

Referenced by make_dico(), sxdico_process(), and unpack_kw().

SXBA_INDEX* state2trans_nb [static]

Definition at line 54 of file sxdico_process.c.

Referenced by state_by_lgth(), and sxdico_process().

SXINT state_top [static]

Definition at line 41 of file sxdico_process.c.

Referenced by get_next_state(), and sxdico_process().

SXINT teeth_nb [static]

Definition at line 41 of file sxdico_process.c.

Referenced by gen(), and sxdico_process().

SXINT * vector [static]

Definition at line 52 of file sxdico_process.c.

Referenced by get_next_state(), and sxdico_process().

char WHAT_SXDICO_PROCESS[] = "@(#)SYNTAX - $Id: sxdico_process.c 1491 2008-07-23 16:13:15Z sagot $" WHAT_DEBUG

Definition at line 25 of file sxdico_process.c.


Generated on Wed Apr 21 16:39:37 2010 for syntax-6.0b7 by  doxygen 1.6.1