sxp_srcvr.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "SS.h"
Include dependency graph for sxp_srcvr.c:

Go to the source code of this file.

Defines

#define Commun   1
#define Propre   2
#define Defaut   3
#define Done   4
#define MAX_PATH_LGTH   3

Functions

SXP_SHORT sxP_access (struct SXP_bases *abase, SXINT j)
SXP_SHORT ARC_traversal (SXP_SHORT ref, SXINT latok_no)
static charttext (struct sxtables *tables, SXINT tcode)
static SXVOID oflow (void)
static SXBOOLEAN set_next_item (struct SXP_item *vector, SXP_SHORT *check, SXP_SHORT *action, SXINT Max)
static SXVOID set_first_trans (struct SXP_bases *abase, SXP_SHORT *check, SXP_SHORT *action, SXINT Max, SXINT *next_action_kind)
static SXBOOLEAN set_next_trans (struct SXP_bases *abase, SXP_SHORT *check, SXP_SHORT *action, SXINT Max, SXINT *next_action_kind)
static SXINT get_tail (SXINT binf, SXINT bsup)
static SXVOID restaure_stack (SXINT m, SXINT M)
static SXBOOLEAN ARC_is_a_right_ctxt (SXINT *head, SXINT tail, SXP_SHORT *ref)
static SXBOOLEAN REF_is_a_right_ctxt (SXINT head, SXINT tail, SXINT *pxs, SXP_SHORT *pstate, SXP_SHORT ref, SXP_SHORT look_ahead, SXBOOLEAN keep_stack)
static SXBOOLEAN is_a_right_ctxt (SXINT head, SXINT tail, SXINT *pxs, SXP_SHORT *pstate, SXBOOLEAN keep_stack)
static SXBOOLEAN check_ctxt (SXINT head, SXINT tail, SXINT *x, SXP_SHORT ref, SXBA trans_set, SXINT n)
static SXVOID set_vt_set (SXP_SHORT *stack, SXINT xstd, SXP_SHORT state1)
static SXVOID new_ref (SXP_SHORT *stack, SXINT xstd, SXP_SHORT ref, SXP_SHORT test)
static SXBOOLEAN ARC_recovery (SXINT *at_state, SXINT latok_no)
static SXBOOLEAN recovery (void)
SXBOOLEAN sxpsrecovery (SXINT what_to_do, SXINT *at_state, SXINT latok_no)

Variables

char WHAT_SXP_SRECOVERY32 [] = "@(#)SYNTAX - $Id: sxp_srcvr.c 1416 2008-06-25 14:42:55Z rlacroix $ SXP_SRCVR_32" WHAT_DEBUG
static SXINT lgt1

Define Documentation

#define Commun   1

Definition at line 40 of file sxp_srcvr.c.

#define Defaut   3

Definition at line 42 of file sxp_srcvr.c.

#define Done   4

Definition at line 43 of file sxp_srcvr.c.

#define MAX_PATH_LGTH   3
#define Propre   2

Definition at line 41 of file sxp_srcvr.c.


Function Documentation

static SXBOOLEAN ARC_is_a_right_ctxt ( SXINT *  head,
SXINT  tail,
SXP_SHORT *  ref 
) [static]

Definition at line 236 of file sxp_srcvr.c.

References SXFALSE, sxP_access(), sxplocals, and SXTRUE.

Referenced by REF_is_a_right_ctxt().

static SXBOOLEAN ARC_recovery ( SXINT *  at_state,
SXINT  latok_no 
) [static]

Definition at line 790 of file sxp_srcvr.c.

References sxget_token(), sxplocals, and SXTRUE.

Referenced by sxpsrecovery().

SXP_SHORT ARC_traversal ( SXP_SHORT  ref,
SXINT  latok_no 
)

Definition at line 228 of file sxparser.c.

References sxget_token(), sxP_access(), and sxplocals.

static SXBOOLEAN check_ctxt ( SXINT  head,
SXINT  tail,
SXINT *  x,
SXP_SHORT  ref,
SXBA  trans_set,
SXINT  n 
) [static]
static SXINT get_tail ( SXINT  binf,
SXINT  bsup 
) [static]

Definition at line 204 of file sxp_srcvr.c.

References sxgetbit(), and sxplocals.

Referenced by recovery().

static SXBOOLEAN is_a_right_ctxt ( SXINT  head,
SXINT  tail,
SXINT *  pxs,
SXP_SHORT *  pstate,
SXBOOLEAN  keep_stack 
) [static]

Definition at line 484 of file sxp_srcvr.c.

References REF_is_a_right_ctxt(), sxba_scan_reset(), SXBOOLEAN, sxP_access(), sxplocals, and SXTRUE.

Referenced by check_ctxt(), and recovery().

static SXVOID new_ref ( SXP_SHORT *  stack,
SXINT  xstd,
SXP_SHORT  ref,
SXP_SHORT  test 
) [static]

Definition at line 634 of file sxp_srcvr.c.

References lgt1, oflow(), set_vt_set(), sxba_1_bit(), sxP_access(), sxplocals, and SXTRUE.

Referenced by set_vt_set().

static SXVOID oflow ( void   )  [static]

Definition at line 99 of file sxp_srcvr.c.

References lgt1, sxba_resize(), and sxplocals.

Referenced by check_ctxt(), new_ref(), and REF_is_a_right_ctxt().

static SXBOOLEAN recovery ( void   )  [static]
static SXBOOLEAN REF_is_a_right_ctxt ( SXINT  head,
SXINT  tail,
SXINT *  pxs,
SXP_SHORT *  pstate,
SXP_SHORT  ref,
SXP_SHORT  look_ahead,
SXBOOLEAN  keep_stack 
) [static]
static SXVOID restaure_stack ( SXINT  m,
SXINT  M 
) [static]

Definition at line 225 of file sxp_srcvr.c.

References sxplocals.

Referenced by recovery().

static SXVOID set_first_trans ( struct SXP_bases *  abase,
SXP_SHORT *  check,
SXP_SHORT *  action,
SXINT  Max,
SXINT *  next_action_kind 
) [static]

Definition at line 135 of file sxp_srcvr.c.

References Commun, Defaut, Done, set_next_item(), and sxplocals.

static SXBOOLEAN set_next_item ( struct SXP_item *  vector,
SXP_SHORT *  check,
SXP_SHORT *  action,
SXINT  Max 
) [static]

Definition at line 113 of file sxp_srcvr.c.

References SXFALSE, sxplocals, SXTRUE, and val.

Referenced by set_first_trans(), and set_next_trans().

static SXBOOLEAN set_next_trans ( struct SXP_bases *  abase,
SXP_SHORT *  check,
SXP_SHORT *  action,
SXINT  Max,
SXINT *  next_action_kind 
) [static]

Definition at line 162 of file sxp_srcvr.c.

References Commun, Defaut, Done, Propre, set_next_item(), SXFALSE, sxplocals, sxtrap(), and SXTRUE.

static SXVOID set_vt_set ( SXP_SHORT *  stack,
SXINT  xstd,
SXP_SHORT  state1 
) [static]

Definition at line 768 of file sxp_srcvr.c.

References new_ref(), set_first_trans(), set_next_trans(), and sxplocals.

Referenced by new_ref(), and recovery().

SXP_SHORT sxP_access ( struct SXP_bases *  abase,
SXINT  j 
)
SXBOOLEAN sxpsrecovery ( SXINT  what_to_do,
SXINT *  at_state,
SXINT  latok_no 
)

Definition at line 1085 of file sxp_srcvr.c.

References ARC_recovery(), lgt1, recovery(), sxba_calloc(), sxexit(), SXFALSE, sxplocals, sxstderr, and SXTRUE.

static char* ttext ( struct sxtables tables,
SXINT  tcode 
) [static]

Definition at line 91 of file sxp_srcvr.c.

References sxplocals.

Referenced by recovery().


Variable Documentation

SXINT lgt1 [static]

Definition at line 49 of file sxp_srcvr.c.

Referenced by check_ctxt(), new_ref(), oflow(), REF_is_a_right_ctxt(), and sxpsrecovery().

char WHAT_SXP_SRECOVERY32[] = "@(#)SYNTAX - $Id: sxp_srcvr.c 1416 2008-06-25 14:42:55Z rlacroix $ SXP_SRCVR_32" WHAT_DEBUG

Definition at line 38 of file sxp_srcvr.c.


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