RCG_guided_main.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "rcg_sglbl.h"
Include dependency graph for RCG_guided_main.c:

Go to the source code of this file.

Defines

#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 VERBOSE   1
#define NO_SEM   2
#define DEFAULT_SEM   3
#define PARSE_TREE_NUMBER   4
#define TIME   5
#define STDIN   6
#define DEBUG_LEVEL   7
#define FOREST_LEVEL   8
#define GUIDING   9
#define FULL_GUIDING   10
#define BEST_TREE_NUMBER   11
#define SOURCE_FILE   12

Functions

static SXINT option_get_kind (char *arg)
static charoption_get_text (SXINT kind)
static RCG_run (char *pathname)
int main (int argc, char *argv[])
SXVOID sxtime (SXINT what, char *str)
SXVOID sxvoid ()
SXBOOLEAN sxbvoid ()
SXINT sxivoid ()

Variables

char WHAT_RCG_GUIDED [] = "@(#)SYNTAX - $Id: RCG_guided_main.c 1590 2008-09-18 15:06:42Z rlacroix $" WHAT_DEBUG
FILE * sxstdout
FILE * sxstderr
FILE * sxtty
struct sxtables guide_tables
struct sxtables RCG_tables
static char ME [] = "RCG_parser"
static char Usage []
static charoption_tbl []
static SXINT option_kind []
struct {
   struct sxsvar   sxsvar
   struct sxplocals   sxplocals
GUIDE
struct {
   struct sxsvar   sxsvar
   struct sxplocals   sxplocals
RCG

Define Documentation

#define BEST_TREE_NUMBER   11

Definition at line 84 of file RCG_guided_main.c.

Referenced by main().

#define DEBUG_LEVEL   7

Definition at line 80 of file RCG_guided_main.c.

Referenced by main().

#define DEFAULT_SEM   3

Definition at line 76 of file RCG_guided_main.c.

Referenced by main(), and sxearley_main().

#define FOREST_LEVEL   8

Definition at line 81 of file RCG_guided_main.c.

Referenced by main().

#define FULL_GUIDING   10

Definition at line 83 of file RCG_guided_main.c.

Referenced by main().

#define GUIDING   9

Definition at line 82 of file RCG_guided_main.c.

Referenced by main().

#define NO_SEM   2

Definition at line 75 of file RCG_guided_main.c.

Referenced by main(), and sxearley_main().

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

Definition at line 69 of file RCG_guided_main.c.

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

Definition at line 71 of file RCG_guided_main.c.

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

Definition at line 68 of file RCG_guided_main.c.

#define PARSE_TREE_NUMBER   4

Definition at line 77 of file RCG_guided_main.c.

Referenced by main(), and sxearley_main().

#define SOURCE_FILE   12

Definition at line 85 of file RCG_guided_main.c.

#define STDIN   6

Definition at line 79 of file RCG_guided_main.c.

#define TIME   5

Definition at line 78 of file RCG_guided_main.c.

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

#define UNKNOWN_ARG   0

Definition at line 73 of file RCG_guided_main.c.

#define VERBOSE   1

Definition at line 74 of file RCG_guided_main.c.


Function Documentation

int main ( int  argc,
char argv[] 
)
static SXINT option_get_kind ( char arg  )  [static]

Definition at line 120 of file RCG_guided_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 141 of file RCG_guided_main.c.

References OPT_NB, option_kind, and option_tbl.

static RCG_run ( char pathname  )  [static]
SXBOOLEAN sxbvoid ( void   ) 

Definition at line 487 of file RCG_guided_main.c.

References SXTRUE.

SXINT sxivoid ( void   ) 
SXVOID sxtime ( SXINT  what,
char str 
)
SXVOID sxvoid ( void   ) 

Definition at line 481 of file RCG_guided_main.c.

Referenced by sxnddesambig_it().


Variable Documentation

struct { ... } GUIDE [static]

Referenced by RCG_run().

Referenced by main(), and RCG_run().

char ME[] = "RCG_parser" [static]

Definition at line 52 of file RCG_guided_main.c.

Referenced by main(), and RCG_run().

SXINT option_kind[] [static]
Initial value:
 {
    UNKNOWN_ARG,
    VERBOSE, VERBOSE, -VERBOSE, -VERBOSE,
    NO_SEM, NO_SEM,
    DEFAULT_SEM, DEFAULT_SEM,
    PARSE_TREE_NUMBER, PARSE_TREE_NUMBER,
    TIME, TIME, -TIME, -TIME,
    STDIN,
    DEBUG_LEVEL, DEBUG_LEVEL,
    FOREST_LEVEL, FOREST_LEVEL,
    GUIDING, GUIDING,
    FULL_GUIDING, FULL_GUIDING,
    BEST_TREE_NUMBER, BEST_TREE_NUMBER,
}

Definition at line 103 of file RCG_guided_main.c.

Referenced by option_get_kind(), and option_get_text().

char* option_tbl[] [static]
Initial value:
 {
    "",
    "v", "verbose", "nv", "noverbose",
    "ns", "no_semantics",
    "ds", "default_semantics",
    "ptn", "parse_tree_number",
    "t", "time", "nt", "no_time",
    "stdin",
    "dl", "debug_level",
    "fl", "forest_level",
    "g", "guiding",
    "fg", "full_guiding",
    "btn", "best_tree_number",
}

Definition at line 88 of file RCG_guided_main.c.

Referenced by option_get_kind(), and option_get_text().

struct { ... } RCG [static]

Referenced by main(), and RCG_run().

Referenced by main(), and RCG_run().

Definition at line 156 of file RCG_guided_main.c.

Referenced by action(), add_active_parser(), after_last_idag_trans(), ARC_deriv(), ARC_is_a_correction(), ARC_is_a_right_ctxt(), ARC_recovery(), ARC_traversal(), arg_nb_put_error(), call_predicate(), call_put_error(), call_solve_conflicts(), check_ctxt(), check_for_spelling(), check_new_pstack(), check_reduce(), check_t_trans(), check_viable_prefix(), compute_a_trans(), compute_vt_set(), cons_comments(), correction_already_found(), create_error_family(), create_parser(), create_path(), create_ref(), deriv(), do_reductions(), dont_delete(), error_message(), execute_actions(), expand_rule(), fill_idag_infos(), fill_vt_set(), finalize(), get_next_states(), get_tail(), global_recovery(), is_a_correction(), is_a_right_ctxt(), is_a_spelling_model(), is_valid(), la_recognizer(), local_correction(), main(), make_proper_semact(), match_a_tok(), models_dag(), modify_dag(), mreds_push(), nd2_local_correction(), nd2_modify_dag(), nd2_search_key_terminal(), nd2_search_validation_context(), nd2_try_a_correction(), nd2_unfold(), NDP_access(), ndp_recovery(), new_parser(), new_ref(), new_symbol(), oflow(), one_correction_message(), output_repair_string(), output_rule(), output_symbol(), parsact_DO(), parsact_UNDO(), parse_forest(), postlude_re(), put_in_repair_list(), put_repair_tok(), raz_idag(), RCG_run(), re_smp(), read_a_tok(), recovery(), reduce(), reduce_already_seen(), reducer(), REF_is_a_right_ctxt(), restaure_stack(), sdag_action(), search_a_rule(), seek_parser(), set2_first_trans(), set2_next_trans(), set_first_trans(), set_next_item(), set_next_shift_state(), set_next_trans(), set_rule(), set_t_rule(), set_token_dag(), set_vt_set(), shifter(), single_reduce(), solve_conflicts(), sort_milestones(), store_re(), string_parser(), supertag_act(), sxcomment_mngr(), sxdp_parse_it(), sxdparser_ndt(), sxdynam_parser(), sxget_token(), sxgetprdct(), sxindparser(), sxlisting_output(), sxnd22parser(), sxnd2parse_in_la(), sxnd2parse_it(), sxnd2parser(), sxnddesambig_it(), sxndpallcorrections(), sxndparse_clean_forest(), sxndparse_in_la(), sxndparse_it(), sxndparser(), sxndprecovery(), sxndpsrecovery(), sxndsubparse_a_token(), sxndtkn_mngr(), sxndtkn_put(), sxndtw_check_grammar(), sxndtw_execute_actions(), sxP_access(), sxparse_in_la(), sxparse_it(), sxparser(), sxparser_re_tcut(), sxparser_sdag_tcut(), sxparser_udag_tcut(), sxprecovery(), sxpsrecovery(), sxre_restore(), sxre_store(), sxtkn_mngr(), sxtknmdf(), sxtknzoom(), t_set2basic_item_set(), tok_text(), try_a_model(), ttext(), undo(), undo_actions(), unused_rule_elimination(), validate_model(), and validate_submodel().

FILE * sxstderr

Definition at line 43 of file RCG_guided_main.c.

FILE* sxstdout

Definition at line 43 of file RCG_guided_main.c.

struct sxsvar sxsvar
FILE* sxtty

Definition at line 44 of file RCG_guided_main.c.

char Usage[] [static]
Initial value:
 "\
Usage:\t%s [options] files\n\
options=\n\
\t-v, -verbose, -nv, -noverbose,\n\
\t-ns, -no_semantics,\n\
\t-ds, -default_semantics,\n\
\t-ptn, -parse_tree_number,\n\
\t-t, -time, -nt, -no_time\n\
\t-, -stdin,\n\
\t-dl nnn, -debug_level nnn,\n\
\t-fl nnn, -forest_level nnn,(source=1, clause=2, lhs_prdct=4, lhs_clause=8, rhs=(16+4), n=32, supertagger=64)\n\
\t-g, -guiding,\n\
\t-fg, -full_guiding,\n\
\t-btn nnn, -best_tree_number nnn,\n"

Definition at line 53 of file RCG_guided_main.c.

Referenced by main().

char WHAT_RCG_GUIDED[] = "@(#)SYNTAX - $Id: RCG_guided_main.c 1590 2008-09-18 15:06:42Z rlacroix $" WHAT_DEBUG

Definition at line 33 of file RCG_guided_main.c.


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