#include "def.h"Go to the source code of this file.
Defines | |
| #define | DEFAULT_PREC 0 |
Functions | |
| static char * | token_get () |
| static OP * | op_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 |
| OP * | single_op |
| OP * | double_op |
| OP * | name_op |
| OP * | type_op |
| #define DEFAULT_PREC 0 |
| 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 | ( | ) |
| static OP* op_create | ( | char * | opn, | |
| short | arity | |||
| ) | [static] |
| 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] |
| 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().
int token_pos [static] |
| char token_prval[] |
| 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().
1.5.4