![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include <stdio.h>#include <string.h>#include <stddef.h>#include <stdlib.h>#include <ctype.h>#include <osiUnistd.h>
Include dependency graph for flexdef.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | hash_entry |
| union | dfaacc_union |
Macros | |
| #define | NORETURN |
| #define | FLEX_8_BIT_CHARS |
| #define | CSIZE 256 |
| #define | Char unsigned char |
| #define | DEFAULT_CSIZE 128 |
| #define | MAXLINE BUFSIZ |
| #define | FILENAMESIZE 1024 |
| #define | min(x, y) ((x) < (y) ? (x) : (y)) |
| #define | max(x, y) ((x) > (y) ? (x) : (y)) |
| #define | true 1 |
| #define | false 0 |
| #define | DEFAULT_SKELETON_FILE "flex.skel" |
| #define | EOB_POSITION -1 |
| #define | ACTION_POSITION -2 |
| #define | NUMDATAITEMS 10 |
| #define | NUMDATALINES 10 |
| #define | TRANS_STRUCT_PRINT_LENGTH 15 |
| #define | FREE_EPSILON(state) |
| #define | SUPER_FREE_EPSILON(state) |
| #define | INITIAL_MAX_DFA_SIZE 750 |
| #define | MAX_DFA_SIZE_INCREMENT 750 |
| #define | YY_TRAILING_MASK 0x2000 |
| #define | YY_TRAILING_HEAD_MASK 0x4000 |
| #define | MAX_RULE (YY_TRAILING_MASK - 1) |
| #define | NIL 0 |
| #define | JAM -1 /* to mark a missing DFA transition */ |
| #define | NO_TRANSITION NIL |
| #define | UNIQUE -1 /* marks a symbol as an e.c. representative */ |
| #define | INFINITY -1 /* for x{5,} constructions */ |
| #define | INITIAL_MAX_CCLS 100 /* max number of unique character classes */ |
| #define | MAX_CCLS_INCREMENT 100 |
| #define | INITIAL_MAX_CCL_TBL_SIZE 500 |
| #define | MAX_CCL_TBL_SIZE_INCREMENT 250 |
| #define | INITIAL_MAX_RULES 100 /* default maximum number of rules */ |
| #define | MAX_RULES_INCREMENT 100 |
| #define | INITIAL_MNS 2000 /* default maximum number of nfa states */ |
| #define | MNS_INCREMENT 1000 /* amount to bump above by if it's not enough */ |
| #define | INITIAL_MAX_DFAS 1000 /* default maximum number of dfa states */ |
| #define | MAX_DFAS_INCREMENT 1000 |
| #define | JAMSTATE -32766 /* marks a reference to the state that always jams */ |
| #define | MARKER_DIFFERENCE 32000 |
| #define | MAXIMUM_MNS 31999 |
| #define | INITIAL_MAX_XPAIRS 2000 |
| #define | MAX_XPAIRS_INCREMENT 2000 |
| #define | INITIAL_MAX_TEMPLATE_XPAIRS 2500 |
| #define | MAX_TEMPLATE_XPAIRS_INCREMENT 2500 |
| #define | SYM_EPSILON (CSIZE + 1) /* to mark transitions on the symbol epsilon */ |
| #define | INITIAL_MAX_SCS 40 /* maximum number of start conditions */ |
| #define | MAX_SCS_INCREMENT 40 /* amount to bump by if it's not enough */ |
| #define | ONE_STACK_SIZE 500 /* stack of states with only one out-transition */ |
| #define | SAME_TRANS -1 /* transition is the same as "default" entry for state */ |
| #define | PROTO_SIZE_PERCENTAGE 15 |
| #define | CHECK_COM_PERCENTAGE 50 |
| #define | FIRST_MATCH_DIFF_PERCENTAGE 10 |
| #define | ACCEPTABLE_DIFF_PERCENTAGE 50 |
| #define | TEMPLATE_SAME_PERCENTAGE 60 |
| #define | NEW_PROTO_DIFF_PERCENTAGE 20 |
| #define | INTERIOR_FIT_PERCENTAGE 15 |
| #define | PROT_SAVE_SIZE 2000 |
| #define | MSP 50 /* maximum number of saved protos (protos on the proto queue) */ |
| #define | MAX_XTIONS_FULL_INTERIOR_FIT 4 |
| #define | MAX_ASSOC_RULES 100 |
| #define | BAD_SUBSCRIPT -32767 |
| #define | MAX_SHORT 32766 |
| #define | NAME_TABLE_HASH_SIZE 101 |
| #define | START_COND_HASH_SIZE 101 |
| #define | CCL_HASH_SIZE 101 |
| #define | REALLY_NOT_DETERMINED 0 |
| #define | REALLY_USED 1 |
| #define | REALLY_NOT_USED 2 |
| #define | STATE_NORMAL 0x1 |
| #define | STATE_TRAILING_CONTEXT 0x2 |
| #define | RULE_NORMAL 0 |
| #define | RULE_VARIABLE 1 |
| #define | allocate_integer_array(size) (int *) allocate_array( size, sizeof( int ) ) |
| #define | reallocate_integer_array(array, size) (int *) reallocate_array( (void *) array, size, sizeof( int ) ) |
| #define | allocate_int_ptr_array(size) (int **) allocate_array( size, sizeof( int * ) ) |
| #define | allocate_char_ptr_array(size) (char **) allocate_array( size, sizeof( char * ) ) |
| #define | allocate_dfaacc_union(size) |
| #define | reallocate_int_ptr_array(array, size) (int **) reallocate_array( (void *) array, size, sizeof( int * ) ) |
| #define | reallocate_char_ptr_array(array, size) (char **) reallocate_array( (void *) array, size, sizeof( char * ) ) |
| #define | reallocate_dfaacc_union(array, size) |
| #define | allocate_character_array(size) (Char *) allocate_array( size, sizeof( Char ) ) |
| #define | reallocate_character_array(array, size) (Char *) reallocate_array( (void *) array, size, sizeof( Char ) ) |
Typedefs | |
| typedef struct hash_entry * | hash_table[] |
Functions | |
| void * | allocate_array (int size, int element_size) |
| void * | reallocate_array (void *array, int size, int element_size) |
| void | ccladd (int, int) |
| int | cclinit (void) |
| void | cclnegate (int) |
| void | list_character_set (FILE *, int[]) |
| void | increase_max_dfas (void) |
| void | ntod (void) |
| void | ccl2ecl (void) |
| int | cre8ecs (int[], int[], int) |
| int | ecs_from_xlation (int[]) |
| void | mkeccl (Char[], int, int[], int[], int, int) |
| void | mkechar (int, int[], int[]) |
| void | make_tables (void) |
| void | flexend (int) NORETURN |
| void | action_out (void) |
| int | all_lower (Char *) |
| int | all_upper (Char *) |
| void | bubble (int[], int) |
| void | cshell (Char[], int, int) |
| void | dataend (void) |
| void | flexerror (char[]) NORETURN |
| void | flexfatal (char[]) |
| void | lerrif (char[], int) |
| void | lerrsf (char[], char[]) |
| void | line_directive_out (FILE *) |
| void | mk2data (int) |
| void | mkdata (int) |
| int | myctoi (Char[]) |
| void | skelout (void) |
| void | transition_struct_out (int, int) |
| void | add_accept (int, int) |
| int | copysingl (int, int) |
| void | dumpnfa (int) |
| void | finish_rule (int, int, int, int) |
| int | link_machines (int, int) |
| void | mark_beginning_as_normal (int) |
| int | mkbranch (int, int) |
| int | mkclos (int) |
| int | mkopt (int) |
| int | mkor (int, int) |
| int | mkposcl (int) |
| int | mkrep (int, int, int) |
| int | mkstate (int) |
| void | new_rule (void) |
| void | format_pinpoint_message (char[], char[]) |
| void | pinpoint_message (char[]) |
| void | synerr (char[]) |
| int | flexscan () |
| void | set_input_file (char *) |
| int | yywrap () |
| void | cclinstal (Char[], int) |
| int | ccllookup (Char[]) |
| void | ndinstal (char[], Char[]) |
| void | scinstal (char[], int) |
| int | sclookup (char[]) |
| void | bldtbl (int[], int, int, int, int) |
| void | cmptmps (void) |
| void | inittbl (void) |
| void | mkdeftbl (void) |
| void | mk1tbl (int, int, int, int) |
| void | place_state (int *, int, int) |
| void | stack1 (int, int, int, int) |
| int | yylex () |
| #define allocate_char_ptr_array | ( | size | ) | (char **) allocate_array( size, sizeof( char * ) ) |
| #define allocate_character_array | ( | size | ) | (Char *) allocate_array( size, sizeof( Char ) ) |
| #define allocate_dfaacc_union | ( | size | ) |
| #define allocate_int_ptr_array | ( | size | ) | (int **) allocate_array( size, sizeof( int * ) ) |
| #define allocate_integer_array | ( | size | ) | (int *) allocate_array( size, sizeof( int ) ) |
| #define FREE_EPSILON | ( | state | ) |
| #define INITIAL_MAX_CCLS 100 /* max number of unique character classes */ |
| #define INITIAL_MAX_DFAS 1000 /* default maximum number of dfa states */ |
| #define INITIAL_MAX_RULES 100 /* default maximum number of rules */ |
| #define INITIAL_MAX_SCS 40 /* maximum number of start conditions */ |
| #define INITIAL_MNS 2000 /* default maximum number of nfa states */ |
| #define JAMSTATE -32766 /* marks a reference to the state that always jams */ |
| #define MAX_RULE (YY_TRAILING_MASK - 1) |
| #define MAX_SCS_INCREMENT 40 /* amount to bump by if it's not enough */ |
| #define MNS_INCREMENT 1000 /* amount to bump above by if it's not enough */ |
| #define MSP 50 /* maximum number of saved protos (protos on the proto queue) */ |
| #define ONE_STACK_SIZE 500 /* stack of states with only one out-transition */ |
| #define reallocate_char_ptr_array | ( | array, | |
| size | |||
| ) | (char **) reallocate_array( (void *) array, size, sizeof( char * ) ) |
| #define reallocate_character_array | ( | array, | |
| size | |||
| ) | (Char *) reallocate_array( (void *) array, size, sizeof( Char ) ) |
| #define reallocate_dfaacc_union | ( | array, | |
| size | |||
| ) |
| #define reallocate_int_ptr_array | ( | array, | |
| size | |||
| ) | (int **) reallocate_array( (void *) array, size, sizeof( int * ) ) |
| #define reallocate_integer_array | ( | array, | |
| size | |||
| ) | (int *) reallocate_array( (void *) array, size, sizeof( int ) ) |
| #define SAME_TRANS -1 /* transition is the same as "default" entry for state */ |
| #define SUPER_FREE_EPSILON | ( | state | ) |
| #define SYM_EPSILON (CSIZE + 1) /* to mark transitions on the symbol epsilon */ |
| #define UNIQUE -1 /* marks a symbol as an e.c. representative */ |
| typedef struct hash_entry* hash_table[] |
| int all_lower | ( | Char * | ) |
| int all_upper | ( | Char * | ) |
| void bldtbl | ( | int | [], |
| int | , | ||
| int | , | ||
| int | , | ||
| int | |||
| ) |
| void bubble | ( | int | [], |
| int | |||
| ) |
| void cclinstal | ( | Char | [], |
| int | |||
| ) |
| int ccllookup | ( | Char | [] | ) |
| void cclnegate | ( | int | ) |
| int copysingl | ( | int | , |
| int | |||
| ) |
Definition at line 86 of file nfa.c.
| void cshell | ( | Char | [], |
| int | , | ||
| int | |||
| ) |
| void flexerror | ( | char | [] | ) |
| void flexfatal | ( | char | [] | ) |
| int flexscan | ( | ) |
| void format_pinpoint_message | ( | char | [], |
| char | [] | ||
| ) |
| void lerrif | ( | char | [], |
| int | |||
| ) |
| void lerrsf | ( | char | [], |
| char | [] | ||
| ) |
| void make_tables | ( | void | ) |
| void mark_beginning_as_normal | ( | int | ) |
| void mk2data | ( | int | ) |
Definition at line 494 of file misc.c.
| int mkclos | ( | int | ) |
| void mkdata | ( | int | ) |
Definition at line 524 of file misc.c.
| void mkeccl | ( | Char | [], |
| int | , | ||
| int | [], | ||
| int | [], | ||
| int | , | ||
| int | |||
| ) |
| int mkrep | ( | int | , |
| int | , | ||
| int | |||
| ) |
Definition at line 532 of file nfa.c.
| int myctoi | ( | Char | [] | ) |
| void ndinstal | ( | char | [], |
| Char | [] | ||
| ) |
| void ntod | ( | void | ) |
Definition at line 398 of file dfa.c.
| void pinpoint_message | ( | char | [] | ) |
| void* reallocate_array | ( | void * | array, |
| int | size, | ||
| int | element_size | ||
| ) |
| void scinstal | ( | char | [], |
| int | |||
| ) |
| int sclookup | ( | char | [] | ) |
| void synerr | ( | char | [] | ) |
| int yywrap | ( | ) |
| struct hash_entry* ccltab[CCL_HASH_SIZE] |
| union dfaacc_union * dfaacc |
| int lasttemp |
| struct hash_entry* ndtbl[NAME_TABLE_HASH_SIZE] |
| int onedef[ONE_STACK_SIZE] |
| int onenext[ONE_STACK_SIZE] |
| int onestate[ONE_STACK_SIZE] |
| int onesym[ONE_STACK_SIZE] |
| int protsave[PROT_SAVE_SIZE] |
| struct hash_entry* sctbl[START_COND_HASH_SIZE] |