RCG_main.c File Reference

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

Go to the source code of this file.

Defines

#define SX_DFN_EXT_VAR2
#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 DAG_INPUT   12
#define UDAG_INPUT   13
#define SDAG_INPUT   14
#define STRING_INPUT   15
#define DAG_YIELD   16
#define SOURCE_FILE   17

Functions

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

Variables

char WHAT_RCG_MAIN [] = "@(#)SYNTAX - $Id: RCG_main.c 1595 2008-09-22 14:40:26Z syntax $" WHAT_DEBUG
SXUINT maximum_input_size
SXBOOLEAN tmp_file_for_stdin
static struct sxtablesdummy_tables_ptr = {NULL}
SXBOOLEAN(* main_parser )(void) = call_rcg_parse_it
static char ME [] = "RCG_parser"
static char Usage []
static charoption_tbl []
static SXINT option_kind []

Define Documentation

#define BEST_TREE_NUMBER   11

Definition at line 98 of file RCG_main.c.

#define DAG_INPUT   12

Definition at line 99 of file RCG_main.c.

Referenced by main(), and sxearley_main().

#define DAG_YIELD   16

Definition at line 103 of file RCG_main.c.

Referenced by main().

#define DEBUG_LEVEL   7

Definition at line 94 of file RCG_main.c.

#define DEFAULT_SEM   3

Definition at line 90 of file RCG_main.c.

#define FOREST_LEVEL   8

Definition at line 95 of file RCG_main.c.

#define FULL_GUIDING   10

Definition at line 97 of file RCG_main.c.

#define GUIDING   9

Definition at line 96 of file RCG_main.c.

#define NO_SEM   2

Definition at line 89 of file RCG_main.c.

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

Definition at line 83 of file RCG_main.c.

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

Definition at line 85 of file RCG_main.c.

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

Definition at line 82 of file RCG_main.c.

#define PARSE_TREE_NUMBER   4

Definition at line 91 of file RCG_main.c.

#define SDAG_INPUT   14

Definition at line 101 of file RCG_main.c.

Referenced by main(), and sxearley_main().

#define SOURCE_FILE   17

Definition at line 104 of file RCG_main.c.

#define STDIN   6

Definition at line 93 of file RCG_main.c.

#define STRING_INPUT   15

Definition at line 102 of file RCG_main.c.

Referenced by main(), and sxearley_main().

#define SX_DFN_EXT_VAR2

Definition at line 32 of file RCG_main.c.

#define TIME   5

Definition at line 92 of file RCG_main.c.

#define UDAG_INPUT   13

Definition at line 100 of file RCG_main.c.

Referenced by main(), and sxearley_main().

#define UNKNOWN_ARG   0

Definition at line 87 of file RCG_main.c.

#define VERBOSE   1

Definition at line 88 of file RCG_main.c.


Function Documentation

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

Definition at line 150 of file RCG_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 171 of file RCG_main.c.

References OPT_NB, option_kind, and option_tbl.

Referenced by main().

static void RCG_run ( char pathname  )  [static]
SXVOID sxtime ( SXINT  what,
char str 
)

Definition at line 728 of file RCG_main.c.

References is_print_time, sxtimestamp(), and sxtty.


Variable Documentation

struct sxtables* dummy_tables_ptr = {NULL} [static]

Definition at line 49 of file RCG_main.c.

Referenced by RCG_run().

SXBOOLEAN(* main_parser)(void) = call_rcg_parse_it

Definition at line 39 of file RCG_main.c.

char ME[] = "RCG_parser" [static]

Definition at line 60 of file RCG_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,
    DAG_INPUT,
    UDAG_INPUT,
    SDAG_INPUT,
    STRING_INPUT,
    DAG_YIELD, DAG_YIELD,
}

Definition at line 127 of file RCG_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",
    "dag",
    "udag",
    "sdag",
    "string",
    "dy", "dag_yield",
}

Definition at line 107 of file RCG_main.c.

Referenced by option_get_kind(), and option_get_text().

SXBOOLEAN tmp_file_for_stdin

Definition at line 40 of file RCG_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\
\t\t-dag,\n\
\t\t-udag,\n\
\t\t-sdag,\n\
\t\t-string,\n\
\t\t-dy file_name, -dag_yield file_name,\n\
"

Definition at line 61 of file RCG_main.c.

Referenced by main().

char WHAT_RCG_MAIN[] = "@(#)SYNTAX - $Id: RCG_main.c 1595 2008-09-22 14:40:26Z syntax $" WHAT_DEBUG

Definition at line 35 of file RCG_main.c.


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