#include <assert.h>#include <ctype.h>#include <stdio.h>Go to the source code of this file.
Classes | |
| struct | bucket |
| struct | core |
| struct | shifts |
| struct | reductions |
| struct | action |
Defines | |
| #define | MAXCHAR 255 |
| #define | MAXSHORT 32767 |
| #define | MINSHORT -32768 |
| #define | BITS_PER_WORD 32 |
| #define | MAXTABLE 32500 |
| #define | WORDSIZE(n) (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD) |
| #define | BIT(r, n) ((((r)[(n)>>BITS_PER_BPW])>>((n)&(BITS_PER_WORD-1)))&1) |
| #define | SETBIT(r, n) ((r)[(n)>>BITS_PER_BPW]|=((unsigned)1<<((n)&(BITS_PER_WORD-1)))) |
| #define | NUL '\0' |
| #define | NEWLINE '\n' |
| #define | SP ' ' |
| #define | BS '\b' |
| #define | HT '\t' |
| #define | VT '\013' |
| #define | CR '\r' |
| #define | FF '\f' |
| #define | QUOTE '\'' |
| #define | DOUBLE_QUOTE '\"' |
| #define | BACKSLASH '\\' |
| #define | CODE_SUFFIX ".code.c" |
| #define | DEFINES_SUFFIX ".tab.h" |
| #define | OUTPUT_SUFFIX ".tab.c" |
| #define | VERBOSE_SUFFIX ".output" |
| #define | TOKEN 0 |
| #define | LEFT 1 |
| #define | RIGHT 2 |
| #define | NONASSOC 3 |
| #define | MARK 4 |
| #define | TEXT 5 |
| #define | TYPE 6 |
| #define | START 7 |
| #define | UNION 8 |
| #define | IDENT 9 |
| #define | UNKNOWN 0 |
| #define | TERM 1 |
| #define | NONTERM 2 |
| #define | UNDEFINED (-1) |
| #define | SHIFT 1 |
| #define | REDUCE 2 |
| #define | IS_IDENT(c) (isalnum(c) || (c) == '_' || (c) == '.' || (c) == '$') |
| #define | IS_OCTAL(c) ((c) >= '0' && (c) <= '7') |
| #define | NUMERIC_VALUE(c) ((c) - '0') |
| #define | ISTOKEN(s) ((s) < start_symbol) |
| #define | ISVAR(s) ((s) >= start_symbol) |
| #define | CALLOC(k, n) (calloc((unsigned)(k),(unsigned)(n))) |
| #define | FREE(x) (free((char*)(x))) |
| #define | MALLOC(n) (malloc((unsigned)(n))) |
| #define | NEW(t) ((t*)allocate(sizeof(t))) |
| #define | NEW2(n, t) ((t*)allocate((unsigned)((n)*sizeof(t)))) |
| #define | REALLOC(p, n) (realloc((char*)(p),(unsigned)(n))) |
Typedefs | |
| typedef struct bucket | bucket |
| typedef struct core | core |
| typedef struct shifts | shifts |
| typedef struct reductions | reductions |
| typedef struct action | action |
Functions | |
| char * | allocate () |
| bucket * | lookup () |
| bucket * | make_bucket () |
| void | free () |
| char * | calloc () |
| char * | malloc () |
| char * | realloc () |
| char * | strcpy () |
Variables | |
| char | dflag |
| char | lflag |
| char | rflag |
| char | tflag |
| char | vflag |
| char * | symbol_prefix |
| char * | myname |
| char * | cptr |
| char * | line |
| int | lineno |
| int | outline |
| char * | banner [] |
| char * | tables [] |
| char * | header [] |
| char * | body [] |
| char * | trailer [] |
| char * | action_file_name |
| char * | code_file_name |
| char * | defines_file_name |
| char * | input_file_name |
| char * | output_file_name |
| char * | text_file_name |
| char * | union_file_name |
| char * | verbose_file_name |
| FILE * | action_file |
| FILE * | code_file |
| FILE * | defines_file |
| FILE * | input_file |
| FILE * | output_file |
| FILE * | text_file |
| FILE * | union_file |
| FILE * | verbose_file |
| int | nitems |
| int | nrules |
| int | nsyms |
| int | ntokens |
| int | nvars |
| int | ntags |
| char | unionized |
| char | line_format [] |
| int | start_symbol |
| char ** | symbol_name |
| short * | symbol_value |
| short * | symbol_prec |
| char * | symbol_assoc |
| short * | ritem |
| short * | rlhs |
| short * | rrhs |
| short * | rprec |
| char * | rassoc |
| short ** | derives |
| char * | nullable |
| bucket * | first_symbol |
| bucket * | last_symbol |
| int | nstates |
| core * | first_state |
| shifts * | first_shift |
| reductions * | first_reduction |
| short * | accessing_symbol |
| core ** | state_table |
| shifts ** | shift_table |
| reductions ** | reduction_table |
| unsigned * | LA |
| short * | LAruleno |
| short * | lookaheads |
| short * | goto_map |
| short * | from_state |
| short * | to_state |
| action ** | parser |
| int | SRtotal |
| int | RRtotal |
| short * | SRconflicts |
| short * | RRconflicts |
| short * | defred |
| short * | rules_used |
| short | nunused |
| short | final_state |
| int | errno |
| #define ISTOKEN | ( | s | ) | ((s) < start_symbol) |
| #define ISVAR | ( | s | ) | ((s) >= start_symbol) |
| typedef struct reductions reductions |
| char* calloc | ( | ) |
| void free | ( | ) |
| bucket* make_bucket | ( | ) |
| char* malloc | ( | ) |
| char* realloc | ( | ) |
| char* strcpy | ( | ) |
| short* accessing_symbol |
| char* action_file_name |
| char* banner[] |
Definition at line 15 of file skeleton.c.
| char* code_file_name |
| char* defines_file_name |
| short final_state |
| short* from_state |
| char* header[] |
Definition at line 49 of file skeleton.c.
| char* input_file_name |
| char line_format[] |
| short* lookaheads |
| char* output_file_name |
| short* RRconflicts |
| short* rules_used |
| short* SRconflicts |
| int start_symbol |
| char* symbol_assoc |
| char** symbol_name |
| short* symbol_prec |
| char* symbol_prefix |
| short* symbol_value |
| char* tables[] |
Definition at line 30 of file skeleton.c.
| char* text_file_name |
| char* trailer[] |
Definition at line 225 of file skeleton.c.
| char* union_file_name |
| char* verbose_file_name |
1.5.8