make_tdef_main.c File Reference

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

Go to the source code of this file.

Defines

#define SX_DFN_EXT_VAR2
#define def_sxdfa_comb_non_terminal_names
#define def_sxdfa_comb_inflected_form
#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 SOURCE_FILE   3
#define STDIN   4

Functions

static SXINT option_get_kind (char *arg)
static void make_tdef_run (char *pathname)
int main (int argc, char *argv[])
static void gen_header ()
SXINT make_tdef_semact (SXINT what, struct sxtables *arg)
SXVOID make_tdef_scanact (SXINT code, SXINT act_no)

Variables

static char ME [] = "make_tdef_main"
char WHAT_TDEFMAKETDEFMAIN [] = "@(#)SYNTAX - $Id: make_tdef_main.c 1579 2008-09-16 11:24:22Z sagot $" WHAT_DEBUG
struct sxtables sxtables
static SXBOOLEAN is_help
static SXBOOLEAN is_error
static char ** err_titles
static char Usage []
static charoption_tbl []
static SXINT option_kind []

Define Documentation

#define def_sxdfa_comb_inflected_form

Definition at line 49 of file make_tdef_main.c.

#define def_sxdfa_comb_non_terminal_names

Definition at line 48 of file make_tdef_main.c.

#define HELP   1

Definition at line 83 of file make_tdef_main.c.

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

Definition at line 78 of file make_tdef_main.c.

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

Definition at line 80 of file make_tdef_main.c.

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

Definition at line 77 of file make_tdef_main.c.

#define SOURCE_FILE   3

Definition at line 85 of file make_tdef_main.c.

#define STDIN   4

Definition at line 86 of file make_tdef_main.c.

#define SX_DFN_EXT_VAR2

Definition at line 41 of file make_tdef_main.c.

#define UNKNOWN_ARG   0

Definition at line 82 of file make_tdef_main.c.

#define VERBOSE   2

Definition at line 84 of file make_tdef_main.c.


Function Documentation

static void gen_header (  )  [static]

Definition at line 284 of file make_tdef_main.c.

References LANGUAGE_NAME.

Referenced by make_tdef_semact().

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

Definition at line 141 of file make_tdef_main.c.

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

Referenced by main().

SXVOID make_tdef_scanact ( SXINT  code,
SXINT  act_no 
)

Definition at line 408 of file make_tdef_main.c.

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

SXINT make_tdef_semact ( SXINT  what,
struct sxtables arg 
)
static SXINT option_get_kind ( char arg  )  [static]

Definition at line 103 of file make_tdef_main.c.

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

Referenced by main().


Variable Documentation

char** err_titles [static]

Definition at line 64 of file make_tdef_main.c.

Referenced by make_tdef_semact().

SXBOOLEAN is_error [static]

Definition at line 63 of file make_tdef_main.c.

Referenced by make_tdef_semact().

SXBOOLEAN is_help [static]

Definition at line 63 of file make_tdef_main.c.

Referenced by main().

char ME[] = "make_tdef_main" [static]

Definition at line 33 of file make_tdef_main.c.

Referenced by main(), and make_tdef_run().

SXINT option_kind[] [static]
Initial value:
 {
    UNKNOWN_ARG,
    HELP,
    VERBOSE, VERBOSE,
}

Definition at line 95 of file make_tdef_main.c.

Referenced by option_get_kind().

char* option_tbl[] [static]
Initial value:
 {
    "",
    "-help",  
    "v", "verbose",
}

Definition at line 89 of file make_tdef_main.c.

Referenced by option_get_kind().

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\
"

Definition at line 71 of file make_tdef_main.c.

Referenced by main().

char WHAT_TDEFMAKETDEFMAIN[] = "@(#)SYNTAX - $Id: make_tdef_main.c 1579 2008-09-16 11:24:22Z sagot $" WHAT_DEBUG

Definition at line 39 of file make_tdef_main.c.


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