#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 rule * | RULE_PTR |
| typedef struct snode | SNODE |
| typedef struct op | OP |
| typedef struct op * | OP_PTR |
| typedef struct termnode | TERM_NODE |
| typedef struct termnode * | TERM_NODE_PTR |
| typedef struct namenode | NAME_NODE |
| typedef struct namenode * | NAME_NODE_PTR |
| typedef struct numbernode | NUM_NODE |
| typedef struct numbernode * | NUM_NODE_PTR |
| typedef struct stringnode | STR_NODE |
| typedef struct stringnode * | STR_NODE_PTR |
| typedef struct node | NODE |
| typedef struct node * | NODE_PTR |
Functions | |
| void | error () |
Variables | |
| static char | notice [] = "Copyright (c) 1988 Wm Leler" |
| int | verbose |
| #define BIG_SHORT 32767 |
| #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 |
| #define C_DQ 8 |
| #define C_EOF 0 |
| #define C_NL 2 |
| #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 |
| #define C_SPC 4 |
| #define C_SQ 10 |
| #define C_WS 3 |
| #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 |
| #define LEFT 0x4002 |
| #define LIBDIR "/usr/lib/local/bertrand/" |
| #define MAXTOKEN 1023 |
| #define NONASSOC 0x4004 |
| #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 |
| #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 |
| #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 |
| #define STRING 304 |
| #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 |
| #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 struct namenode * NAME_NODE_PTR |
| typedef struct numbernode NUM_NODE |
| typedef struct numbernode * NUM_NODE_PTR |
| typedef struct stringnode STR_NODE |
| typedef struct stringnode * STR_NODE_PTR |
| typedef struct termnode * TERM_NODE_PTR |
| 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().
| int verbose |
Definition at line 3 of file main.c.
Referenced by file_push(), init(), main(), preprocess(), primitive_execute(), rule_build(), scan(), and walk().
1.5.4