sxndtreewalker.c File Reference

#include "sxversion.h"
#include "sxcommon.h"
#include <stdio.h>
#include "sxnd.h"
Include dependency graph for sxndtreewalker.c:

Go to the source code of this file.

Functions

SXINT sxndtw_is_cycle (SXINT node)
static SXVOID paths_oflw (SXINT old_size, SXINT new_size)
SXVOID sxndtw_open (SXINT(*pass_inherited)(void), SXINT(*pass_derived)(void), SXBOOLEAN(*cycle_processing)(void), SXVOID(*open_hook)(void), SXVOID(*close_hook)(void), SXVOID(*nodes_oflw)(SXINT, SXINT))
SXVOID sxndtw_init (void)
SXVOID sxndtw_final (void)
SXVOID sxndtw_close (void)
SXVOID sxndtw_node_erase (SXINT n)
SXVOID sxndtw_walk (void)
static SXBOOLEAN sxndtw_reached_symbol (SXINT node, SXINT symbol)
SXVOID sxndtw_check_grammar (void)
static SXVOID sxndtw_execute_actions (SXINT symbol)
SXBOOLEAN sxndtw_sem_calls (void)
SXBOOLEAN sxndrtw_walk (void)

Variables

static char ME [] = "Non deterministic tree walker"
char WHAT_SXNDTREE_WALKER [] = "@(#)SYNTAX - $Id: sxndtreewalker.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG
static SXINT lgt1

Function Documentation

static SXVOID paths_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 58 of file sxndtreewalker.c.

References sxba_resize().

Referenced by sxndtw_init().

SXBOOLEAN sxndrtw_walk ( void   ) 

Definition at line 470 of file sxndtreewalker.c.

References son, SXBOOLEAN, SXFALSE, sxndtw_node_erase(), and SXTRUE.

Referenced by sxnddesambig_it().

SXVOID sxndtw_check_grammar ( void   ) 

Definition at line 314 of file sxndtreewalker.c.

References sxndtw_reached_symbol(), and sxplocals.

Referenced by sxnddesambig_it().

SXVOID sxndtw_close ( void   ) 

Definition at line 136 of file sxndtreewalker.c.

Referenced by sxnddesambig_it().

static SXVOID sxndtw_execute_actions ( SXINT  symbol  )  [static]

Definition at line 389 of file sxndtreewalker.c.

References action(), lgt1, ME, new_top, sxplocals, and sxtrap().

Referenced by sxndtw_sem_calls().

SXVOID sxndtw_final ( void   ) 

Definition at line 121 of file sxndtreewalker.c.

References XxY_free().

Referenced by sxnddesambig_it().

SXVOID sxndtw_init ( void   ) 

Definition at line 84 of file sxndtreewalker.c.

References paths_oflw(), sxba_calloc(), and XxY_alloc().

Referenced by sxnddesambig_it().

SXINT sxndtw_is_cycle ( SXINT  node  ) 

Definition at line 43 of file sxndtreewalker.c.

SXVOID sxndtw_node_erase ( SXINT  n  ) 

Definition at line 146 of file sxndtreewalker.c.

References son, and XxY_is_set().

Referenced by sxndrtw_walk().

SXVOID sxndtw_open ( SXINT(*)(void)  pass_inherited,
SXINT(*)(void)  pass_derived,
SXBOOLEAN(*)(void)  cycle_processing,
SXVOID(*)(void)  open_hook,
SXVOID(*)(void)  close_hook,
SXVOID(*)(SXINT, SXINT)  nodes_oflw 
)

Definition at line 68 of file sxndtreewalker.c.

static SXBOOLEAN sxndtw_reached_symbol ( SXINT  node,
SXINT  symbol 
) [static]

Definition at line 261 of file sxndtreewalker.c.

References son, SXBOOLEAN, SXFALSE, and SXTRUE.

Referenced by sxndtw_check_grammar().

SXBOOLEAN sxndtw_sem_calls ( void   ) 

Definition at line 448 of file sxndtreewalker.c.

References lgt1, sxndtw_execute_actions(), and SXTRUE.

Referenced by sxnddesambig_it().

SXVOID sxndtw_walk ( void   ) 

Definition at line 171 of file sxndtreewalker.c.

References p.


Variable Documentation

SXINT lgt1 [static]

Definition at line 40 of file sxndtreewalker.c.

Referenced by sxndtw_execute_actions(), and sxndtw_sem_calls().

char ME[] = "Non deterministic tree walker" [static]

Definition at line 31 of file sxndtreewalker.c.

Referenced by sxndtw_execute_actions().

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

Definition at line 38 of file sxndtreewalker.c.


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