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

#include "def.h"

Go to the source code of this file.

Defines

#define DEFAULT_PREC   0

Functions

static char * token_get ()
static OPop_create (char *opn, short arity)
static short prec_conv (char *s)
static void op_define ()
static void type_define ()
static void primitive_define ()
void file_push ()
void load_file ()
void preprocess ()

Variables

char token_prval []
static int token_pos
char * trans
OPsingle_op
OPdouble_op
OPname_op
OPtype_op


Define Documentation

#define DEFAULT_PREC   0

Definition at line 127 of file prep.c.

Referenced by op_define().


Function Documentation

void file_push (  ) 

Definition at line 623 of file prep.c.

References char_copy(), error(), FALSE, filespushed, infile, infilename, infilenames, infiles, inlinenos, libdir, lineno, NULL, token_get(), verbose, and verboses.

Referenced by preprocess().

void load_file (  ) 

Definition at line 665 of file prep.c.

References error().

Referenced by preprocess().

static OP* op_create ( char *  opn,
short  arity 
) [static]

Definition at line 149 of file prep.c.

References op::arity, C_ALPH, C_EOF, C_NUM, C_SPC, error(), op_new(), op_put(), op::pname, and trans.

Referenced by op_define().

static void op_define (  )  [static]

Definition at line 244 of file prep.c.

References op::arity, arity_name(), BIG_SHORT, BINARY, C_NUM, C_SQ, DEFAULT_PREC, error(), op::eval, LEFT, op::next, NONASSOC, NULL, NULLARY, op_create(), op::other, OUTFIX1, OUTFIX2, op::pname, POSTFIX, prec_conv(), op::precedence, PREFIX, RIGHT, op::super, token_get(), trans, and UNARY.

Referenced by preprocess().

static short prec_conv ( char *  s  )  [static]

Definition at line 217 of file prep.c.

References BIG_SHORT, C_EOF, C_NUM, error(), and trans.

Referenced by op_define().

void preprocess (  ) 

Definition at line 682 of file prep.c.

References C_NUM, error(), file_push(), lineno, load_file(), op_define(), primitive_define(), token_get(), token_pos, trans, type_define(), and verbose.

Referenced by scan().

static void primitive_define (  )  [static]

Definition at line 513 of file prep.c.

References arity_name(), C_ALPH, error(), op::next, op::pname, op::super, token_get(), and trans.

Referenced by preprocess().

static char* token_get (  )  [static]

Definition at line 59 of file prep.c.

References C_DQ, C_EOF, C_NL, C_PER, C_WS, error(), NULL, token_pos, token_prval, and trans.

Referenced by file_push(), op_define(), preprocess(), primitive_define(), and type_define().

static void type_define (  )  [static]

Definition at line 442 of file prep.c.

References op::arity, arity_name(), error(), op::next, NULL, OP_NAME, op_new(), op_put(), op::other, op::pname, op::precedence, op::super, and token_get().

Referenced by preprocess().


Variable Documentation

OP * double_op

Definition at line 15 of file ops.c.

OP * name_op

Definition at line 16 of file ops.c.

OP* single_op

Definition at line 14 of file ops.c.

int token_pos [static]

Definition at line 30 of file prep.c.

Referenced by preprocess(), and token_get().

char token_prval[]

Definition at line 13 of file scanner.c.

char* trans

Definition at line 76 of file scanner.c.

Referenced by op_create(), op_define(), prec_conv(), preprocess(), primitive_define(), scan(), and token_get().

OP * type_op

Definition at line 17 of file ops.c.


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