C:/Users/Dennis/src/lang/bertrand/BERTRAND/bertrand/def.h File Reference

#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  rule
struct  snode
struct  op
struct  termnode
struct  namenode
struct  numbernode
struct  stringnode
union  maxnode
struct  node

Defines

#define LIBDIR   "/usr/lib/local/bertrand/"
#define TRUE   1
#define FALSE   0
#define NULL   0
#define BIG_LONG   2147483646
#define BIG_SHORT   32767
#define MAXTOKEN   1023
#define MAXFILES   16
#define OPER   301
#define NUMBER   302
#define IDENT   303
#define STRING   304
#define TYPE   305
#define C_EOF   0
#define C_CTRL   1
#define C_NL   2
#define C_WS   3
#define C_SPC   4
#define C_NUM   5
#define C_ALPH   6
#define C_PER   7
#define C_DQ   8
#define C_BQ   9
#define C_SQ   10
#define C_BRC   11
#define C_LB   12
#define OP_TERM   0xf000
#define NULLARY   0x1000
#define UNARY   0x2000
#define BINARY   0x4000
#define ARB   0x8000
#define OP_NAME   0x0800
#define OP_NUM   0x0400
#define OP_STR   0x0200
#define RIGHT   0x4001
#define LEFT   0x4002
#define NONASSOC   0x4004
#define PREFIX   0x2001
#define POSTFIX   0x2002
#define OUTFIX1   0x2004
#define OUTFIX2   0x2008

Typedefs

typedef struct rule RULE
typedef struct ruleRULE_PTR
typedef struct snode SNODE
typedef struct op OP
typedef struct opOP_PTR
typedef struct termnode TERM_NODE
typedef struct termnodeTERM_NODE_PTR
typedef struct namenode NAME_NODE
typedef struct namenodeNAME_NODE_PTR
typedef struct numbernode NUM_NODE
typedef struct numbernodeNUM_NODE_PTR
typedef struct stringnode STR_NODE
typedef struct stringnodeSTR_NODE_PTR
typedef struct node NODE
typedef struct nodeNODE_PTR

Functions

void error ()

Variables

static char notice [] = "Copyright (c) 1988 Wm Leler"
int verbose


Define Documentation

#define ARB   0x8000

Definition at line 101 of file def.h.

#define BIG_LONG   2147483646

Definition at line 22 of file def.h.

#define BIG_SHORT   32767

Definition at line 23 of file def.h.

Referenced by op_define(), and prec_conv().

#define BINARY   0x4000

Definition at line 100 of file def.h.

Referenced by arity_name(), exp_parse(), expr_free(), expr_print(), match_sub(), more_specific(), op_define(), op_put(), reduce(), and walk().

#define C_ALPH   6

Definition at line 47 of file def.h.

Referenced by op_create(), and primitive_define().

#define C_BQ   9

Definition at line 50 of file def.h.

#define C_BRC   11

Definition at line 52 of file def.h.

#define C_CTRL   1

Definition at line 42 of file def.h.

#define C_DQ   8

Definition at line 49 of file def.h.

Referenced by token_get().

#define C_EOF   0

Definition at line 41 of file def.h.

Referenced by op_create(), prec_conv(), and token_get().

#define C_LB   12

Definition at line 53 of file def.h.

#define C_NL   2

Definition at line 43 of file def.h.

Referenced by scan(), and token_get().

#define C_NUM   5

Definition at line 46 of file def.h.

Referenced by op_create(), op_define(), prec_conv(), and preprocess().

#define C_PER   7

Definition at line 48 of file def.h.

Referenced by token_get().

#define C_SPC   4

Definition at line 45 of file def.h.

Referenced by op_create().

#define C_SQ   10

Definition at line 51 of file def.h.

Referenced by op_define().

#define C_WS   3

Definition at line 44 of file def.h.

Referenced by token_get().

#define FALSE   0

Definition at line 17 of file def.h.

Referenced by exp_parse(), file_push(), graphics_close(), init(), match_sub(), match_types(), and walk().

#define IDENT   303

Definition at line 35 of file def.h.

Referenced by exp_parse(), and scan().

#define LEFT   0x4002

Definition at line 111 of file def.h.

Referenced by arity_name(), exp_parse(), and op_define().

#define LIBDIR   "/usr/lib/local/bertrand/"

Definition at line 13 of file def.h.

Referenced by main().

#define MAXFILES   16

Definition at line 27 of file def.h.

#define MAXTOKEN   1023

Definition at line 25 of file def.h.

Referenced by exp_parse(), and scan().

#define NONASSOC   0x4004

Definition at line 112 of file def.h.

Referenced by arity_name(), exp_parse(), and op_define().

#define NULL   0

Definition at line 19 of file def.h.

Referenced by exp_parse(), expr_copy(), file_push(), init(), instantiate(), main(), match(), name_put(), name_space_insert(), node_new(), ole_add(), op_define(), op_mem_free(), op_new(), op_put(), parse(), primitive_execute(), primitive_init(), reduce(), rule_build(), st_get(), st_mem_free(), subject_pop(), token_get(), type_define(), and walk().

#define NULLARY   0x1000

Definition at line 98 of file def.h.

Referenced by arity_name(), exp_parse(), expr_free(), expr_print(), init(), match_sub(), more_specific(), op_define(), op_list_print(), and primitive_init().

#define NUMBER   302

Definition at line 34 of file def.h.

Referenced by exp_parse(), and scan().

#define OP_NAME   0x0800

Definition at line 104 of file def.h.

Referenced by arity_name(), expr_copy(), expr_free(), expr_print(), expr_update(), instantiate(), match_sub(), more_specific(), name_space_insert(), primitive_execute(), primitive_init(), reduce(), type_define(), and walk().

#define OP_NUM   0x0400

Definition at line 105 of file def.h.

Referenced by arity_name(), expr_copy(), expr_free(), expr_print(), instantiate(), match_sub(), ole_add(), ole_multiply(), primitive_init(), and reduce().

#define OP_STR   0x0200

Definition at line 106 of file def.h.

Referenced by arity_name(), expr_copy(), expr_free(), expr_print(), instantiate(), match_sub(), and primitive_init().

#define OP_TERM   0xf000

Definition at line 97 of file def.h.

Referenced by expr_copy(), expr_update(), instantiate(), match(), reduce(), rule_build(), and walk().

#define OPER   301

Definition at line 33 of file def.h.

Referenced by exp_parse(), and scan().

#define OUTFIX1   0x2004

Definition at line 117 of file def.h.

Referenced by arity_name(), exp_parse(), expr_print(), op_define(), op_list_print(), parse(), and reduce().

#define OUTFIX2   0x2008

Definition at line 118 of file def.h.

Referenced by arity_name(), exp_parse(), op_define(), and op_list_print().

#define POSTFIX   0x2002

Definition at line 116 of file def.h.

Referenced by arity_name(), exp_parse(), expr_free(), expr_print(), match_sub(), more_specific(), op_define(), reduce(), and walk().

#define PREFIX   0x2001

Definition at line 115 of file def.h.

Referenced by arity_name(), exp_parse(), op_define(), and reduce().

#define RIGHT   0x4001

Definition at line 110 of file def.h.

Referenced by arity_name(), and op_define().

#define STRING   304

Definition at line 36 of file def.h.

Referenced by exp_parse(), and scan().

#define TRUE   1

Definition at line 16 of file def.h.

Referenced by exp_parse(), graphics_init(), match_sub(), match_types(), primitive_execute(), and walk().

#define TYPE   305

Definition at line 37 of file def.h.

Referenced by exp_parse(), parse(), and scan().

#define UNARY   0x2000

Definition at line 99 of file def.h.

Referenced by arity_name(), expr_free(), expr_print(), match_sub(), more_specific(), op_define(), op_put(), and reduce().


Typedef Documentation

typedef struct namenode NAME_NODE

typedef struct namenode * NAME_NODE_PTR

typedef struct node NODE

typedef struct node * NODE_PTR

typedef struct numbernode NUM_NODE

typedef struct numbernode * NUM_NODE_PTR

typedef struct op OP

typedef struct op * OP_PTR

typedef struct rule RULE

typedef struct rule * RULE_PTR

typedef struct snode SNODE

typedef struct stringnode STR_NODE

typedef struct stringnode * STR_NODE_PTR

typedef struct termnode TERM_NODE

typedef struct termnode * TERM_NODE_PTR


Function Documentation

void error (  ) 

Referenced by char_copy(), exp_parse(), expr_copy(), expr_free(), expr_print(), expr_update(), file_push(), instantiate(), load_file(), match_sub(), name_put(), name_space_insert(), node_new(), ole_multiply(), op_create(), op_define(), op_new(), op_put(), parse(), prec_conv(), preprocess(), primitive_define(), primitive_execute(), reduce(), rule_build(), scan(), st_get(), token_get(), type_define(), and walk().


Variable Documentation

char notice[] = "Copyright (c) 1988 Wm Leler" [static]

Definition at line 6 of file def.h.

int verbose

Definition at line 3 of file main.c.

Referenced by file_push(), init(), main(), preprocess(), primitive_execute(), rule_build(), scan(), and walk().


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