RCG_parser.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "rcg_glbl.h"
#include "sxstack.h"
#include "XxYxZ.h"
#include "fsa.h"
Include dependency graph for RCG_parser.c:

Go to the source code of this file.

Defines

#define SX_DFN_EXT_VAR_RCG
#define MAKE_A_TERMINAL_RANGE(p, q)   (idag_p_q2pq (p, q))

Functions

SXINT large_needed (SXINT lognt)
static void sxbm_line_resize (SXBA *bm, SXINT old_size, SXINT new_size, SXBA **oflw_disp, SXINT *oflw_disp_size, SXINT col_nb)
static void sxbm_line_free (SXBA *oflw_disp, SXINT oflw_disp_size)
struct Aij_struct * call_instantiated_prdct2struct (SXINT Aij_pid)
static SXBOOLEAN less_equal (SXINT i, SXINT j)
SXBOOLEAN dynam_lex (SXINT lb, SXINT ub, SXINT nb, SXINT *t_list)
void call_put_error (SXINT mark, char *format, char *arg1, char *arg2, char *arg3, char *arg4, char *arg5)
void rcg_rcvr_mess (SXINT kind, SXINT mark, SXINT index1, SXINT index2)
static SXINT get_semact_no (SXINT pass_no, struct G *G)
static void fill_which_str (SXINT kind)
static SXBOOLEAN perform_robust_pass (SXINT kind)
static void glbl_ranges_alloc ()
static void glbl_ranges_free ()
static SXBOOLEAN rcgparse_it (SXINT top, SXINT kind)
static void print_used_clause (struct G **Gs)
SXBOOLEAN call_rcg_parse_it (SXINT what_to_do)
void arg_nb_put_error (char *prdct_name, SXINT def_nb, SXINT decl_nb)
SXINT * StrConcat (SXBOOLEAN is_first_arg, SXINT *arg, SXINT *Xlb, SXINT *Xub)
SXINT _StrEq2 (SXINT *rho0, SXINT size1, SXINT *arg1, SXINT size2, SXINT *arg2)
SXINT _StrLen2 (SXINT *arg, SXINT *Xlb, SXINT *Xub)
SXINT t_clause_processing (struct G *G, SXINT prdct_id, SXINT *rho0, SXINT p, SXINT q)

Variables

char WHAT_RCG_PARSER [] = "@(#)SYNTAX - $Id: RCG_parser.c 1757 2009-09-11 08:14:42Z sagot $" WHAT_DEBUG
static char ME [] = "RCG_parser.c"
SXBA * out_ff2clause_set [PID]
static SXBA used_clause [PID]
struct GGs [PID]
static char ** glbl_t2string
SXINT StrReverse_arity = 2
SXINT Permute_arity = 2
static SXBA source_set
static SXBA source_top
static charmessages []
static SXINT S0n
static SXINT zero
static SXINT axiom_0_n
static char which_str [132]
static char which2_str [64]
static char icnb_str [64]
static charsemact_messages []
static SXINT * concat_area1
static SXINT concat_area_size1
static SXINT * concat_area2
static SXINT concat_area_size2

Define Documentation

#define MAKE_A_TERMINAL_RANGE ( p,
q   )     (idag_p_q2pq (p, q))

Definition at line 11343 of file RCG_parser.c.

Referenced by t_clause_processing().

#define SX_DFN_EXT_VAR_RCG

Definition at line 23 of file RCG_parser.c.


Function Documentation

SXINT _StrEq2 ( SXINT *  rho0,
SXINT  size1,
SXINT *  arg1,
SXINT  size2,
SXINT *  arg2 
)

Definition at line 5460 of file RCG_parser.c.

SXINT _StrLen2 ( SXINT *  arg,
SXINT *  Xlb,
SXINT *  Xub 
)

Definition at line 5483 of file RCG_parser.c.

void arg_nb_put_error ( char prdct_name,
SXINT  def_nb,
SXINT  decl_nb 
)

Definition at line 5351 of file RCG_parser.c.

References sxhmsg(), sxplocals, and sxstderr.

struct Aij_struct* call_instantiated_prdct2struct ( SXINT  Aij_pid  )  [read]

Definition at line 120 of file RCG_parser.c.

References Gs.

void call_put_error ( SXINT  mark,
char format,
char arg1,
char arg2,
char arg3,
char arg4,
char arg5 
)

Definition at line 3729 of file RCG_parser.c.

References sxerror(), and sxplocals.

Referenced by impr(), impr_commentaire(), and paragrapheur().

SXBOOLEAN call_rcg_parse_it ( SXINT  what_to_do  ) 
SXBOOLEAN dynam_lex ( SXINT  lb,
SXINT  ub,
SXINT  nb,
SXINT *  t_list 
)

Definition at line 3546 of file RCG_parser.c.

References SXTRUE.

static void fill_which_str ( SXINT  kind  )  [static]

Definition at line 4080 of file RCG_parser.c.

References get_semact_no(), and name.

Referenced by rcgparse_it().

static SXINT get_semact_no ( SXINT  pass_no,
struct G G 
) [static]

Definition at line 4026 of file RCG_parser.c.

Referenced by fill_which_str().

static void glbl_ranges_alloc (  )  [static]

Definition at line 4258 of file RCG_parser.c.

References X_alloc(), XH_alloc(), XxY_alloc(), and XxYxZ_alloc().

Referenced by rcgparse_it().

static void glbl_ranges_free (  )  [static]

Definition at line 4282 of file RCG_parser.c.

References X_free(), XH_free(), XxY_free(), and XxYxZ_free().

Referenced by rcgparse_it().

SXINT large_needed ( SXINT  lognt  ) 

Definition at line 43 of file RCG_parser.c.

References SXBITS_PER_LONG, and sxtty.

static SXBOOLEAN less_equal ( SXINT  i,
SXINT  j 
) [static]

Definition at line 2878 of file RCG_parser.c.

References SXFALSE, and SXTRUE.

Referenced by equality_sort(), is_less_or_equal(), and sort_by_tree().

static SXBOOLEAN perform_robust_pass ( SXINT  kind  )  [static]

Definition at line 4220 of file RCG_parser.c.

References SXBOOLEAN, SXFALSE, and SXTRUE.

Referenced by rcgparse_it().

static void print_used_clause ( struct G **  Gs  )  [static]

Definition at line 4803 of file RCG_parser.c.

References sxba_calloc(), sxba_copy(), sxba_or(), sxba_scan(), SXBOOLEAN, SXFALSE, and SXTRUE.

void rcg_rcvr_mess ( SXINT  kind,
SXINT  mark,
SXINT  index1,
SXINT  index2 
)

Definition at line 3748 of file RCG_parser.c.

static SXBOOLEAN rcgparse_it ( SXINT  top,
SXINT  kind 
) [static]
SXINT* StrConcat ( SXBOOLEAN  is_first_arg,
SXINT *  arg,
SXINT *  Xlb,
SXINT *  Xub 
)

Definition at line 5372 of file RCG_parser.c.

static void sxbm_line_free ( SXBA *  oflw_disp,
SXINT  oflw_disp_size 
) [static]

Definition at line 98 of file RCG_parser.c.

static void sxbm_line_resize ( SXBA *  bm,
SXINT  old_size,
SXINT  new_size,
SXBA **  oflw_disp,
SXINT *  oflw_disp_size,
SXINT  col_nb 
) [static]

Definition at line 75 of file RCG_parser.c.

SXINT t_clause_processing ( struct G G,
SXINT  prdct_id,
SXINT *  rho0,
SXINT  p,
SXINT  q 
)

Definition at line 11346 of file RCG_parser.c.

References MAKE_A_TERMINAL_RANGE, ME, SXBOOLEAN, sxtrap(), SXTRUE, and X_set().


Variable Documentation

SXINT axiom_0_n [static]

Definition at line 4004 of file RCG_parser.c.

SXINT* concat_area1 [static]

Definition at line 5047 of file RCG_parser.c.

SXINT * concat_area2 [static]

Definition at line 5047 of file RCG_parser.c.

SXINT concat_area_size1 [static]

Definition at line 5047 of file RCG_parser.c.

SXINT concat_area_size2 [static]

Definition at line 5047 of file RCG_parser.c.

char** glbl_t2string [static]

Definition at line 351 of file RCG_parser.c.

struct G* Gs[PID]

Definition at line 347 of file RCG_parser.c.

Referenced by call_instantiated_prdct2struct().

char icnb_str[64] [static]

Definition at line 4008 of file RCG_parser.c.

char ME[] = "RCG_parser.c" [static]

Definition at line 30 of file RCG_parser.c.

Referenced by call_rcg_parse_it(), rcgparse_it(), and t_clause_processing().

char* messages[] [static]
Initial value:
{"",
 "%s\"%s\" is replaced by \"%s\".\n",
 "%s\"%s\" is inserted before \"%s\".\n",
 "%s\"%s\" is deleted.\n",
 "%s\"%s\" and \"%s\" are exchanged.\n",
}

Definition at line 3711 of file RCG_parser.c.

SXBA* out_ff2clause_set[PID]

Definition at line 116 of file RCG_parser.c.

SXINT Permute_arity = 2

Definition at line 2875 of file RCG_parser.c.

SXINT S0n [static]

Definition at line 3793 of file RCG_parser.c.

char* semact_messages[] [static]
Initial value:
 {
    "no sem",
    "#parse trees",
    "store parse forest",
    "instantiated clauses",
    "coupled guide construction",
    "full inverse mapping",
    "shallow mapping",
    "guide construction",
    "full guide construction",
    "fully coupled guide construction",
   "instantiated lhs clauses",
}

Definition at line 4010 of file RCG_parser.c.

SXBA source_set [static]

Definition at line 2946 of file RCG_parser.c.

Referenced by make_proper_semact().

SXBA source_top [static]

Definition at line 2946 of file RCG_parser.c.

SXINT StrReverse_arity = 2

Definition at line 2836 of file RCG_parser.c.

SXBA used_clause[PID] [static]

Definition at line 130 of file RCG_parser.c.

char WHAT_RCG_PARSER[] = "@(#)SYNTAX - $Id: RCG_parser.c 1757 2009-09-11 08:14:42Z sagot $" WHAT_DEBUG

Definition at line 28 of file RCG_parser.c.

char which2_str[64] [static]

Definition at line 4007 of file RCG_parser.c.

char which_str[132] [static]

Definition at line 4006 of file RCG_parser.c.

SXINT zero [static]

Definition at line 3793 of file RCG_parser.c.


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