![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | bucket |
Internal: Hash table structure. More... | |
struct | core |
struct | shifts |
struct | reductions |
struct | action |
Macros | |
#define | MAXCHAR 255 |
#define | MAXSHORT 32767 |
#define | MINSHORT -32768 |
#define | MAXTABLE 32500 |
#define | BITS_PER_WORD 32 |
#define | WORDSIZE(n) (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD) |
#define | BIT(r, n) ((((r)[(n)>>5])>>((n)&31))&1) |
#define | SETBIT(r, n) ((r)[(n)>>5]|=((unsigned)1<<((n)&31))) |
#define | NUL '\0' /* the null character */ |
#define | NEWLINE '\n' /* line feed */ |
#define | SP ' ' /* space */ |
#define | BS '\b' /* backspace */ |
#define | HT '\t' /* horizontal tab */ |
#define | VT '\013' /* vertical tab */ |
#define | CR '\r' /* carriage return */ |
#define | FF '\f' /* form feed */ |
#define | QUOTE '\'' /* single quote */ |
#define | DOUBLE_QUOTE '\"' /* double quote */ |
#define | BACKSLASH '\\' /* 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))) |
#define | NORETURN |
Typedefs | |
typedef struct bucket | bucket |
typedef struct core | core |
typedef struct shifts | shifts |
typedef struct reductions | reductions |
typedef struct action | action |
Functions | |
void | done (int k) NORETURN |
char * | allocate (unsigned int n) |
void | no_space (void) NORETURN |
void | fatal (char *msg) NORETURN |
void | open_error (char *filename) NORETURN |
void | unexpected_EOF (void) NORETURN |
void | syntax_error (int st_lineno, char *st_line, char *st_cptr) NORETURN |
void | unterminated_comment (int c_lineno, char *c_line, char *c_cptr) NORETURN |
void | unterminated_string (int s_lineno, char *s_line, char *s_cptr) NORETURN |
void | unterminated_text (int t_lineno, char *t_line, char *t_cptr) NORETURN |
void | unterminated_union (int u_lineno, char *u_line, char *u_cptr) NORETURN |
void | over_unionized (char *u_cptr) NORETURN |
void | illegal_tag (int t_lineno, char *t_line, char *t_cptr) NORETURN |
void | illegal_character (char *c_cptr) NORETURN |
void | used_reserved (char *s) NORETURN |
void | tokenized_start (char *s) NORETURN |
void | retyped_warning (char *s) |
void | reprec_warning (char *s) |
void | revalued_warning (char *s) |
void | terminal_start (char *s) |
void | restarted_warning (void) |
void | no_grammar (void) NORETURN |
void | terminal_lhs (int s_lineno) NORETURN |
void | prec_redeclared (void) |
void | unterminated_action (int a_lineno, char *a_line, char *a_cptr) NORETURN |
void | dollar_warning (int a_lineno, int i) |
void | dollar_error (int a_lineno, char *a_line, char *a_cptr) NORETURN |
void | untyped_lhs (void) NORETURN |
void | untyped_rhs (int i, char *s) NORETURN |
void | unknown_rhs (int i) NORETURN |
void | default_action_warning (void) |
void | undefined_goal (char *s) NORETURN |
void | undefined_symbol_warning (char *s) |
bucket * | make_bucket (char *name) |
bucket * | lookup (char *name) |
void | create_symbol_table (void) |
void | free_symbol_table (void) |
void | free_symbols (void) |
void | set_first_derives (void) |
void | closure (short int *nucleus, int n) |
void | finalize_closure (void) |
void | reader (void) |
void | lr0 (void) |
void | lalr (void) |
void | make_parser (void) |
void | free_parser (void) |
void | reflexive_transitive_closure (unsigned int *R, int n) |
void | output (void) |
int | default_goto (int symbol) |
int | matching_vector (int vector) |
int | pack_vector (int vector) |
void | write_section (char *section[]) |
void | verbose (void) |
#define CALLOC | ( | k, | |
n | |||
) | (calloc((unsigned)(k),(unsigned)(n))) |
#define IS_IDENT | ( | c | ) | (isalnum(c) || (c) == '_' || (c) == '.' || (c) == '$') |
#define ISTOKEN | ( | s | ) | ((s) < start_symbol) |
#define ISVAR | ( | s | ) | ((s) >= start_symbol) |
#define NEW2 | ( | n, | |
t | |||
) | ((t*)allocate((unsigned)((n)*sizeof(t)))) |
#define SETBIT | ( | r, | |
n | |||
) | ((r)[(n)>>5]|=((unsigned)1<<((n)&31))) |
#define WORDSIZE | ( | n | ) | (((n)+(BITS_PER_WORD-1))/BITS_PER_WORD) |
typedef struct reductions reductions |
char* allocate | ( | unsigned int | n | ) |
Definition at line 230 of file antelope.c.
void dollar_error | ( | int | a_lineno, |
char * | a_line, | ||
char * | a_cptr | ||
) |
void done | ( | int | k | ) |
Definition at line 77 of file antelope.c.
void illegal_tag | ( | int | t_lineno, |
char * | t_line, | ||
char * | t_cptr | ||
) |
void lr0 | ( | void | ) |
void make_parser | ( | void | ) |
Definition at line 37 of file mkpar.c.
void reflexive_transitive_closure | ( | unsigned int * | R, |
int | n | ||
) |
Definition at line 63 of file warshall.c.
void syntax_error | ( | int | st_lineno, |
char * | st_line, | ||
char * | st_cptr | ||
) |
void unterminated_action | ( | int | a_lineno, |
char * | a_line, | ||
char * | a_cptr | ||
) |
void unterminated_comment | ( | int | c_lineno, |
char * | c_line, | ||
char * | c_cptr | ||
) |
void unterminated_string | ( | int | s_lineno, |
char * | s_line, | ||
char * | s_cptr | ||
) |
void unterminated_text | ( | int | t_lineno, |
char * | t_line, | ||
char * | t_cptr | ||
) |
void unterminated_union | ( | int | u_lineno, |
char * | u_line, | ||
char * | u_cptr | ||
) |
void write_section | ( | char * | section[] | ) |
Definition at line 284 of file skeleton.c.
FILE* action_file |
Definition at line 42 of file antelope.c.
char* banner[] |
Definition at line 19 of file skeleton.c.
char* body[] |
Definition at line 81 of file skeleton.c.
FILE* code_file |
Definition at line 44 of file antelope.c.
char* code_file_name |
Definition at line 36 of file antelope.c.
FILE* defines_file |
Definition at line 45 of file antelope.c.
char* defines_file_name |
Definition at line 37 of file antelope.c.
short** derives |
Definition at line 72 of file antelope.c.
char dflag |
Definition at line 22 of file antelope.c.
reductions* first_reduction |
char* header[] |
Definition at line 51 of file skeleton.c.
FILE* input_file |
Definition at line 46 of file antelope.c.
char* input_file_name |
Definition at line 38 of file antelope.c.
char lflag |
Definition at line 23 of file antelope.c.
int lineno |
Definition at line 33 of file antelope.c.
char* myname |
Definition at line 30 of file antelope.c.
int nitems |
Definition at line 55 of file antelope.c.
int nrules |
Definition at line 56 of file antelope.c.
int nsyms |
Definition at line 57 of file antelope.c.
int ntokens |
Definition at line 58 of file antelope.c.
char* nullable |
Definition at line 73 of file antelope.c.
int nvars |
Definition at line 59 of file antelope.c.
int outline |
Definition at line 34 of file antelope.c.
FILE* output_file |
Definition at line 47 of file antelope.c.
char* output_file_name |
Definition at line 39 of file antelope.c.
char* rassoc |
Definition at line 71 of file antelope.c.
reductions** reduction_table |
char rflag |
Definition at line 24 of file antelope.c.
short* ritem |
Definition at line 67 of file antelope.c.
short* rlhs |
Definition at line 68 of file antelope.c.
short* rprec |
Definition at line 70 of file antelope.c.
short* rrhs |
Definition at line 69 of file antelope.c.
int start_symbol |
Definition at line 61 of file antelope.c.
char* symbol_assoc |
Definition at line 65 of file antelope.c.
char** symbol_name |
Definition at line 62 of file antelope.c.
short* symbol_prec |
Definition at line 64 of file antelope.c.
char* symbol_prefix |
Definition at line 28 of file antelope.c.
short* symbol_value |
Definition at line 63 of file antelope.c.
char* tables[] |
Definition at line 32 of file skeleton.c.
FILE* text_file |
Definition at line 48 of file antelope.c.
char tflag |
Definition at line 25 of file antelope.c.
char* trailer[] |
Definition at line 221 of file skeleton.c.
FILE* union_file |
Definition at line 50 of file antelope.c.
FILE* verbose_file |
Definition at line 53 of file antelope.c.
char* verbose_file_name |
Definition at line 40 of file antelope.c.
char vflag |
Definition at line 26 of file antelope.c.