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

#include "def.h"
#include <math.h>

Go to the source code of this file.

Defines

#define NOSUPER   (OP *) NULL

Functions

void graphics_init ()
void draw_line ()
void draw_string ()
void primitive_init ()
NODEprimitive_execute (short which, NODE *ex)

Variables

int graphics
OPpnum_prim
OPnnum_prim
OPznum_prim
OPstr_prim
OPundeclared_prim
OPuntyped_prim
OPpositive_type
OPnonzero_type
OPconstant_type
OPliteral_type
OPtrue_op
OPfalse_op
OPsingle_op
OPdouble_op
OPname_op
OPtype_op


Define Documentation

#define NOSUPER   (OP *) NULL

Definition at line 94 of file primitive.c.

Referenced by primitive_init().


Function Documentation

void draw_line (  ) 

void draw_string (  ) 

void graphics_init (  ) 

Definition at line 20 of file graphics.c.

References graphics, ps_flush_PostScript, ps_open_PostScript(), snews_setup, and TRUE.

Referenced by draw_line(), and draw_string().

NODE* primitive_execute ( short  which,
NODE ex 
)

Definition at line 162 of file primitive.c.

References op::arity, arity_name(), bondage, draw_line(), draw_string(), error(), op::eval, expr_copy(), termnode::left, name_compare(), node_new(), NULL, numbernode::op, node::op, OP_NAME, op::pname, termnode::right, TRUE, and verbose.

Referenced by walk().

void primitive_init (  ) 

Definition at line 97 of file primitive.c.

References NOSUPER, NULL, NULLARY, OP_NAME, OP_NUM, OP_STR, and primitive().

Referenced by init().


Variable Documentation

OP* constant_type

Definition at line 75 of file primitive.c.

OP* double_op

Definition at line 15 of file ops.c.

OP* false_op

Definition at line 80 of file primitive.c.

int graphics

Definition at line 16 of file graphics.c.

Referenced by draw_line(), draw_string(), graphics_close(), graphics_init(), and main().

OP* literal_type

Definition at line 76 of file primitive.c.

OP* name_op

Definition at line 16 of file ops.c.

OP* nnum_prim

Definition at line 67 of file primitive.c.

Referenced by exp_parse().

OP* nonzero_type

Definition at line 74 of file primitive.c.

Referenced by more_specific().

OP* pnum_prim

Definition at line 66 of file primitive.c.

Referenced by exp_parse().

OP* positive_type

Definition at line 73 of file primitive.c.

Referenced by more_specific().

OP* single_op

Definition at line 14 of file ops.c.

OP* str_prim

Definition at line 69 of file primitive.c.

Referenced by exp_parse().

OP* true_op

Definition at line 79 of file primitive.c.

OP* type_op

Definition at line 17 of file ops.c.

OP* undeclared_prim

Definition at line 70 of file primitive.c.

Referenced by exp_parse(), init(), more_specific(), name_put(), name_space_insert(), parse(), and reduce().

OP* untyped_prim

Definition at line 71 of file primitive.c.

Referenced by exp_parse(), match_sub(), more_specific(), and walk().

OP* znum_prim

Definition at line 68 of file primitive.c.

Referenced by exp_parse().


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