sxscanner.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include <ctype.h>
#include "sxsstmt.h"
Include dependency graph for sxscanner.c:

Go to the source code of this file.

Defines

#define IS_IN_LA   (sxsvar.SXS_tables.S_transition_matrix [current_state] [1] != 0)
#define ts_put(c)
#define ts_null()   (sxsvar.sxlv_s.token_string [sxsvar.sxlv.ts_lgth] = SXNUL)
#define char_to_class(c)   (sxsvar.SXS_tables.S_char_to_simple_class[c])

Functions

static SXVOID comments_put (char *str, SXINT lgth)
SXVOID sxscan_it (void)
SXINT sxscanner (SXINT what_to_do, struct sxtables *arg)

Variables

char WHAT_SXSCANNER32 [] = "@(#)SYNTAX - $Id: sxscanner.c 1672 2008-12-05 12:18:19Z sagot $ SXSCANNER_32" WHAT_DEBUG
static char ME [] = "SCANNER"
static SXINT ind_incl
static SXINT ind_incl_use
static struct sxlv * sxsvar_include

Define Documentation

#define char_to_class (  )     (sxsvar.SXS_tables.S_char_to_simple_class[c])

Definition at line 105 of file sxscanner.c.

#define IS_IN_LA   (sxsvar.SXS_tables.S_transition_matrix [current_state] [1] != 0)

Definition at line 59 of file sxscanner.c.

Referenced by sxscan_it().

 
#define ts_null (  )     (sxsvar.sxlv_s.token_string [sxsvar.sxlv.ts_lgth] = SXNUL)

Definition at line 103 of file sxscanner.c.

#define ts_put (  ) 
Value:
(    (sxsvar.sxlv.ts_lgth+2 == sxsvar.sxlv_s.ts_lgth_use)           \
    ? sxsvar.sxlv_s.token_string = (char *) sxrealloc (sxsvar.sxlv_s.   \
        token_string, sxsvar.sxlv_s.ts_lgth_use *= 2, sizeof (char))    \
    : NULL,                             \
     sxsvar.sxlv_s.token_string [sxsvar.sxlv.ts_lgth ++] = (char)c      \
)

Definition at line 94 of file sxscanner.c.


Function Documentation

static SXVOID comments_put ( char str,
SXINT  lgth 
) [static]

Definition at line 68 of file sxscanner.c.

References sxsvar.

Referenced by sxscan_it().

SXVOID sxscan_it ( void   ) 
SXINT sxscanner ( SXINT  what_to_do,
struct sxtables arg 
)

Variable Documentation

SXINT ind_incl [static]

Definition at line 62 of file sxscanner.c.

Referenced by sxscan_it().

SXINT ind_incl_use [static]

Definition at line 62 of file sxscanner.c.

Referenced by sxscan_it().

char ME[] = "SCANNER" [static]

Definition at line 48 of file sxscanner.c.

Referenced by sxscan_it(), and sxscanner().

struct sxlv* sxsvar_include [static]

Definition at line 63 of file sxscanner.c.

Referenced by sxscan_it(), and sxscanner().

char WHAT_SXSCANNER32[] = "@(#)SYNTAX - $Id: sxscanner.c 1672 2008-12-05 12:18:19Z sagot $ SXSCANNER_32" WHAT_DEBUG

Definition at line 46 of file sxscanner.c.


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