C:/Users/Dennis/src/lang/bertrand/BERTRAND/bertrand/rules.c File Reference

#include "def.h"

Go to the source code of this file.

Functions

static int more_specific (NODE *A, NODE *B)
RULErule_build (NODE *head, NODE *body, OP *tag, NAME_NODE *names)
void rule_free (RULE *rr)
void rule_print (RULE *rp)

Variables

int label_count


Function Documentation

static int more_specific ( NODE A,
NODE B 
) [static]

Definition at line 36 of file rules.c.

References op::arity, BINARY, nonzero_type, NULLARY, OP_NAME, positive_type, POSTFIX, op::precedence, op::super, UNARY, undeclared_prim, and untyped_prim.

Referenced by rule_build().

RULE* rule_build ( NODE head,
NODE body,
OP tag,
NAME_NODE names 
)

Definition at line 80 of file rules.c.

References rule::body, error(), rule::head, label_count, more_specific(), rule::next, NULL, OP_TERM, rule_print(), rule::size, rule::space, rule::tag, rule::verbose, and verbose.

Referenced by parse().

void rule_free ( RULE rr  ) 

Definition at line 136 of file rules.c.

References expr_free(), and name_free().

Referenced by op_mem_free().

void rule_print ( RULE rp  ) 

Definition at line 152 of file rules.c.

References expr_print(), and name_space_print().

Referenced by rule_build(), and walk().


Variable Documentation

int label_count

Definition at line 8 of file rules.c.

Referenced by parse(), reduce(), and rule_build().


Generated on Fri Jan 25 09:58:43 2008 for Bertrand by  doxygen 1.5.4