make_proper_main.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include <LC_TABLES_H>
#include "sxspf.h"
#include "varstr.h"
#include "udag_scanner.h"
Include dependency graph for make_proper_main.c:

Go to the source code of this file.

Defines

#define def_lispro
#define def_prolis
#define def_prolon
#define def_lhs
#define def_BVIDE
#define def_npg
#define def_numpg
#define def_npd
#define def_numpd
#define def_ntstring
#define def_tstring
#define def_multiple_t_item_set
#define def_sxdfa_comb_inflected_form
#define SX_DFN_EXT_VAR2
#define SXEOF   (-tmax)
#define OPTION(opt)   (1 << (opt - 1))
#define noOPTION(opt)   (~OPTION (opt))
#define OPT_NB   ((sizeof(option_tbl)/sizeof(*option_tbl))-1)
#define UNKNOWN_ARG   0
#define HELP   1
#define VERBOSE   2
#define EXCLUDE   3
#define PROD_MAPPING   4
#define TERMINAL_MAPPING   5
#define NON_TERMINAL_MAPPING   6
#define SOURCE_FILE   7
#define STDIN   8

Functions

VARSTR concat_ff_tstr (VARSTR vstr, char *ff, int Tpq)
struct sxtoken * tok_no2tok (int tok_no)
int get_SEMLEX_lahead ()
void local_fill_Tij2tok_no ()
void fill_Tij2tok_no ()
static SXINT option_get_kind (char *arg)
static charoption_get_text (SXINT kind)
static void make_proper_run (char *pathname)
int main (int argc, char *argv[])
static void output_nt (SXINT nt)
static void output_t (SXINT t)
void output_prod (SXINT prod)
SXVOID make_proper_semact (SXINT what, SXINT arg)
SXVOID make_proper_scanact (SXINT code, SXINT act_no)
void idag_source_processing (SXINT i, SXBA *t2suffix_t_set, SXBA *mlstn2suffix_source_set, SXBA *mlstn2la_tset, SXBA *t2la_t_set)
SXINT get_repair_Tpq2tok_no (SXINT Tpq)
void idag_p_t_q2tok_no_stack (SXINT **tok_no_stack_ptr, SXINT p, SXINT t, SXINT q)
VARSTR rcvr_out_range (VARSTR vstr, SXINT lb, SXINT ub)
SXINT special_Apq_name (char *string, SXINT lgth)
SXINT special_Tpq_name (char *string, SXINT lgth)
VARSTR sub_dag_to_comment (VARSTR vstr, SXINT p, SXINT q)
void sxearley_open_for_semact (void)
SXINT dag_scanner (SXINT what, struct sxtables *arg)

Variables

static char ME [] = "make_proper_main"
char WHAT_MAKE_PROPER_MAIN [] = "@(#)SYNTAX - $Id: make_proper_main.c 1579 2008-09-16 11:24:22Z sagot $" WHAT_DEBUG
SXINT n
SXBOOLEAN is_print_time
struct sxtables sxtables
SXBA basic_item_set
static VARSTR vstr
static SXBOOLEAN is_help
static SXBOOLEAN is_exclude
static SXBOOLEAN is_prod_mapping
static SXBOOLEAN is_terminal_mapping
static SXBOOLEAN is_non_terminal_mapping
static char Usage []
static charoption_tbl []
static SXINT option_kind []

Define Documentation

#define def_BVIDE

Definition at line 46 of file make_proper_main.c.

#define def_lhs

Definition at line 45 of file make_proper_main.c.

#define def_lispro

Definition at line 42 of file make_proper_main.c.

#define def_multiple_t_item_set

Definition at line 54 of file make_proper_main.c.

#define def_npd

Definition at line 49 of file make_proper_main.c.

#define def_npg

Definition at line 47 of file make_proper_main.c.

#define def_ntstring

Definition at line 51 of file make_proper_main.c.

#define def_numpd

Definition at line 50 of file make_proper_main.c.

#define def_numpg

Definition at line 48 of file make_proper_main.c.

#define def_prolis

Definition at line 43 of file make_proper_main.c.

#define def_prolon

Definition at line 44 of file make_proper_main.c.

#define def_sxdfa_comb_inflected_form

Definition at line 55 of file make_proper_main.c.

#define def_tstring

Definition at line 52 of file make_proper_main.c.

#define EXCLUDE   3

Definition at line 109 of file make_proper_main.c.

Referenced by main().

#define HELP   1

Definition at line 107 of file make_proper_main.c.

Referenced by main(), and sxearley_main().

#define NON_TERMINAL_MAPPING   6

Definition at line 112 of file make_proper_main.c.

Referenced by main().

#define noOPTION ( opt   )     (~OPTION (opt))

Definition at line 102 of file make_proper_main.c.

#define OPT_NB   ((sizeof(option_tbl)/sizeof(*option_tbl))-1)

Definition at line 104 of file make_proper_main.c.

#define OPTION ( opt   )     (1 << (opt - 1))

Definition at line 101 of file make_proper_main.c.

#define PROD_MAPPING   4

Definition at line 110 of file make_proper_main.c.

Referenced by main().

#define SOURCE_FILE   7

Definition at line 113 of file make_proper_main.c.

Referenced by main(), option_get_kind(), and sxearley_main().

#define STDIN   8

Definition at line 114 of file make_proper_main.c.

Referenced by main(), option_get_kind(), and sxearley_main().

#define SX_DFN_EXT_VAR2

Definition at line 63 of file make_proper_main.c.

#define SXEOF   (-tmax)

Definition at line 89 of file make_proper_main.c.

#define TERMINAL_MAPPING   5

Definition at line 111 of file make_proper_main.c.

Referenced by main().

#define UNKNOWN_ARG   0

Definition at line 106 of file make_proper_main.c.

#define VERBOSE   2

Definition at line 108 of file make_proper_main.c.

Referenced by main(), and sxearley_main().


Function Documentation

VARSTR concat_ff_tstr ( VARSTR  vstr,
char ff,
int  Tpq 
)

Definition at line 71 of file make_proper_main.c.

SXINT dag_scanner ( SXINT  what,
struct sxtables arg 
)

Definition at line 743 of file make_proper_main.c.

Referenced by earley_run(), and RCG_run().

void fill_Tij2tok_no (  ) 

Definition at line 75 of file make_proper_main.c.

SXINT get_repair_Tpq2tok_no ( SXINT  Tpq  ) 

Definition at line 736 of file make_proper_main.c.

Referenced by spf_fill_Tij2tok_no().

int get_SEMLEX_lahead ( void   ) 

Definition at line 73 of file make_proper_main.c.

Referenced by fill_idag_pqt2proba(), and spf_tok_no2varstr_catenate().

void idag_p_t_q2tok_no_stack ( SXINT **  tok_no_stack_ptr,
SXINT  p,
SXINT  t,
SXINT  q 
)

Definition at line 737 of file make_proper_main.c.

Referenced by spf_fill_Tij2tok_no().

void idag_source_processing ( SXINT  i,
SXBA *  t2suffix_t_set,
SXBA *  mlstn2suffix_source_set,
SXBA *  mlstn2la_tset,
SXBA *  t2la_t_set 
)

Definition at line 735 of file make_proper_main.c.

Referenced by lexicalizer2basic_item_set().

void local_fill_Tij2tok_no ( void   ) 

Definition at line 74 of file make_proper_main.c.

int main ( int  argc,
char argv[] 
)
static void make_proper_run ( char pathname  )  [static]

Definition at line 176 of file make_proper_main.c.

References ME, sxerr_mngr(), sxfopen(), sxperror(), sxsrc_mngr(), sxstderr, sxtables, sxtmpfile(), sxtty, sxverbosep, and syntax().

Referenced by main().

SXVOID make_proper_scanact ( SXINT  code,
SXINT  act_no 
)

Definition at line 690 of file make_proper_main.c.

References sxexit(), sxstderr, sxsvar, and val.

SXVOID make_proper_semact ( SXINT  what,
SXINT  arg 
)
static SXINT option_get_kind ( char arg  )  [static]

Definition at line 139 of file make_proper_main.c.

References OPT_NB, option_kind, option_tbl, SOURCE_FILE, and STDIN.

Referenced by main().

static char* option_get_text ( SXINT  kind  )  [static]

Definition at line 160 of file make_proper_main.c.

References OPT_NB, option_kind, and option_tbl.

static void output_nt ( SXINT  nt  )  [static]

Definition at line 337 of file make_proper_main.c.

void output_prod ( SXINT  prod  ) 

Definition at line 354 of file make_proper_main.c.

References output_nt(), and output_t().

static void output_t ( SXINT  t  )  [static]

Definition at line 344 of file make_proper_main.c.

References varstr_quote(), varstr_raz(), and vstr.

VARSTR rcvr_out_range ( VARSTR  vstr,
SXINT  lb,
SXINT  ub 
)

Definition at line 738 of file make_proper_main.c.

Referenced by spf_first_yield_td_walk().

SXINT special_Apq_name ( char string,
SXINT  lgth 
)

Definition at line 739 of file make_proper_main.c.

Referenced by spf_fill_Tpq2ste(), and spf_first_yield_td_walk().

SXINT special_Tpq_name ( char string,
SXINT  lgth 
)

Definition at line 740 of file make_proper_main.c.

Referenced by spf_concat_ff_tstr().

VARSTR sub_dag_to_comment ( VARSTR  vstr,
SXINT  p,
SXINT  q 
)

Definition at line 741 of file make_proper_main.c.

Referenced by spf_fill_Tpq2ste().

void sxearley_open_for_semact ( void   ) 

Definition at line 742 of file make_proper_main.c.

struct sxtoken* tok_no2tok ( int  tok_no  )  [read]

Definition at line 72 of file make_proper_main.c.


Variable Documentation

Definition at line 255 of file lexicalizer_mngr.c.

SXBOOLEAN is_exclude [static]

Definition at line 87 of file make_proper_main.c.

Referenced by main(), and make_proper_semact().

SXBOOLEAN is_help [static]

Definition at line 87 of file make_proper_main.c.

Referenced by main().

SXBOOLEAN is_non_terminal_mapping [static]

Definition at line 87 of file make_proper_main.c.

Referenced by main(), and make_proper_semact().

SXBOOLEAN is_print_time
SXBOOLEAN is_prod_mapping [static]

Definition at line 87 of file make_proper_main.c.

Referenced by main(), and make_proper_semact().

SXBOOLEAN is_terminal_mapping [static]

Definition at line 87 of file make_proper_main.c.

Referenced by main(), and make_proper_semact().

char ME[] = "make_proper_main" [static]

Definition at line 32 of file make_proper_main.c.

Referenced by main(), make_proper_run(), and make_proper_semact().

SXINT n
SXINT option_kind[] [static]
Initial value:
 {
    UNKNOWN_ARG,
    HELP,
    VERBOSE, VERBOSE,
    EXCLUDE, EXCLUDE,
    PROD_MAPPING, PROD_MAPPING,
    TERMINAL_MAPPING, TERMINAL_MAPPING,
    NON_TERMINAL_MAPPING, NON_TERMINAL_MAPPING,
}

Definition at line 127 of file make_proper_main.c.

Referenced by option_get_kind(), and option_get_text().

char* option_tbl[] [static]
Initial value:
 {
    "",
    "-help",  
    "v", "verbose",
    "e", "exclude",
    "pm", "prod_mapping",
    "tm", "terminal_mapping",
    "nm", "non_terminal_mapping",
}

Definition at line 117 of file make_proper_main.c.

Referenced by option_get_kind(), and option_get_text().

Definition at line 234 of file make_proper_t.c.

char Usage[] [static]
Initial value:
 "\
Usage:\t%s [options] [file]\n\
options=\t--help,\n\
\t\t-v, -verbose,\n\
\t\t-e, -exclude,\n\
\t\t-pm, -prod_mapping,\n\
\t\t-tm, -terminal_mapping,\n\
\t\t-nm, -non_terminal_mapping,\n\
"

Definition at line 91 of file make_proper_main.c.

Referenced by main().

VARSTR vstr [static]
char WHAT_MAKE_PROPER_MAIN[] = "@(#)SYNTAX - $Id: make_proper_main.c 1579 2008-09-16 11:24:22Z sagot $" WHAT_DEBUG

Definition at line 36 of file make_proper_main.c.


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