ELC_parser.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "sxelc.h"
#include "sxmatrix2vector.h"
#include <ELC_tables>
#include "XxY.h"
Include dependency graph for ELC_parser.c:

Go to the source code of this file.

Data Structures

struct  bag_header
struct  bag_header::bag_disp_hd

Defines

#define TOP(t)   (*t)
#define POP(t)   t[TOP(t)--]
#define PUSH(t, x)   (((++TOP(t) >= t[-1]) ? (t=(SXINT*) sxrealloc (t-1, (t[-1] *= 2)+2, sizeof (SXINT))+1) : (0)), t[TOP(t)]=x)
#define SPUSH(t, x)   (t[++TOP(t)]=x)
#define CHECK(t, n)   (((TOP(t)+n >= t[-1]) ? (t=(SXINT*) sxrealloc (t-1, (t[-1] *= 2)+2, sizeof (SXINT))+1) : (0)))
#define RAZ(t)   *t=0
#define ALLOC(t, s)   t = (SXINT*) sxalloc (s+2, sizeof (SXINT))+1, t [-1] = s;
#define FREE(t)   sxfree (t-1), t = NULL;
#define IS_EMPTY(t)   (TOP(t)==0)
#define SCAN(i, t)   (glbl_source [i] == t)
#define RFSA_CHECKED(r, i)   SXTRUE

Functions

void bag_alloc (bag_header *pbag, char *name, SXINT size, FILE *file_name)
SXBA bag_get (bag_header *pbag, SXINT size)
void bag_reuse (bag_header *pbag, SXBA set)
void bag_free (bag_header *pbag)
static void bag_clear (bag_header *pbag)
static void p_dispatch ()
static void node_hd_oflw (SXINT old_size, SXINT new_size)

Variables

char WHAT_ELC_PARSER [] = "@(#)SYNTAX - $Id: ELC_parser.c 1429 2008-07-03 14:28:41Z rlacroix $" WHAT_DEBUG
FILE * sxstdout
FILE * sxstderr
FILE * sxtty
static SXINT max_node_set_size
static SXBOOLEAN membership
static XxY_header node_hd
static SXBA * node2node_set
static SXBA node2node_set_kind
static bag_header bag
static SXINT * stack1
static SXINT * stack2
static SXINT * cur_scan_stack
static SXINT * scan_stack
static void SXBA lhs_bits_array
static void SXBA rhs_bits_array
 lhs2_bits_array
 p
 r
 node_ip
 Q
 node_jQ
SXBA node_ip_set

Define Documentation

#define ALLOC ( t,
 )     t = (SXINT*) sxalloc (s+2, sizeof (SXINT))+1, t [-1] = s;

Definition at line 220 of file ELC_parser.c.

#define CHECK ( t,
n   )     (((TOP(t)+n >= t[-1]) ? (t=(SXINT*) sxrealloc (t-1, (t[-1] *= 2)+2, sizeof (SXINT))+1) : (0)))

Definition at line 218 of file ELC_parser.c.

#define FREE (  )     sxfree (t-1), t = NULL;

Definition at line 221 of file ELC_parser.c.

#define IS_EMPTY (  )     (TOP(t)==0)

Definition at line 222 of file ELC_parser.c.

#define POP (  )     t[TOP(t)--]

Definition at line 213 of file ELC_parser.c.

#define PUSH ( t,
 )     (((++TOP(t) >= t[-1]) ? (t=(SXINT*) sxrealloc (t-1, (t[-1] *= 2)+2, sizeof (SXINT))+1) : (0)), t[TOP(t)]=x)

Definition at line 214 of file ELC_parser.c.

#define RAZ (  )     *t=0
#define RFSA_CHECKED ( r,
 )     SXTRUE

Definition at line 233 of file ELC_parser.c.

#define SCAN ( i,
 )     (glbl_source [i] == t)

Definition at line 227 of file ELC_parser.c.

Referenced by check(), ndrcvr_one_scan(), sxndscan_it(), and sxscan_it().

#define SPUSH ( t,
 )     (t[++TOP(t)]=x)

Definition at line 216 of file ELC_parser.c.

#define TOP (  )     (*t)

Function Documentation

void bag_alloc ( bag_header pbag,
char name,
SXINT  size,
FILE *  file_name 
)

Definition at line 63 of file ELC_parser.c.

static void bag_clear ( bag_header pbag  )  [static]

Definition at line 194 of file ELC_parser.c.

void bag_free ( bag_header pbag  ) 

Definition at line 174 of file ELC_parser.c.

SXBA bag_get ( bag_header pbag,
SXINT  size 
)

Definition at line 90 of file ELC_parser.c.

void bag_reuse ( bag_header pbag,
SXBA  set 
)
static void node_hd_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 301 of file ELC_parser.c.

References n, node2node_set, node2node_set_kind, sxba_resize(), and sxbm_resize().

static void p_dispatch (  )  [static]

Variable Documentation

bag_header bag [static]

Definition at line 253 of file ELC_parser.c.

SXINT * cur_scan_stack [static]

Definition at line 254 of file ELC_parser.c.

Definition at line 989 of file ELC_parser.c.

void SXBA lhs_bits_array [static]

Definition at line 962 of file ELC_parser.c.

SXINT max_node_set_size [static]

Definition at line 242 of file ELC_parser.c.

SXBOOLEAN membership [static]

Definition at line 243 of file ELC_parser.c.

SXBA* node2node_set [static]

Definition at line 251 of file ELC_parser.c.

Referenced by node_hd_oflw().

SXBA node2node_set_kind [static]

Definition at line 252 of file ELC_parser.c.

Referenced by node_hd_oflw().

XxY_header node_hd [static]

Definition at line 250 of file ELC_parser.c.

Definition at line 1032 of file ELC_parser.c.

Definition at line 1105 of file ELC_parser.c.

Definition at line 1104 of file ELC_parser.c.

p
Q

Definition at line 1104 of file ELC_parser.c.

r
rhs_bits_array [static]

Definition at line 962 of file ELC_parser.c.

SXINT * scan_stack [static]

Definition at line 254 of file ELC_parser.c.

SXINT* stack1 [static]

Definition at line 254 of file ELC_parser.c.

SXINT * stack2 [static]

Definition at line 254 of file ELC_parser.c.

FILE * sxstderr
FILE* sxstdout
FILE* sxtty
char WHAT_ELC_PARSER[] = "@(#)SYNTAX - $Id: ELC_parser.c 1429 2008-07-03 14:28:41Z rlacroix $" WHAT_DEBUG

Definition at line 47 of file ELC_parser.c.


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