IDZEBRA
2.2.7
|
Go to the source code of this file.
Data Structures | |
struct | DFA_tran |
struct | DFA_trans |
struct | DFA_state |
struct | DFA |
Macros | |
#define | L_LP 1 |
#define | L_RP 2 |
#define | L_CHAR 3 |
#define | L_CHARS 4 |
#define | L_ANY 5 |
#define | L_ALT 6 |
#define | L_ANYZ 7 |
#define | L_WILD 8 |
#define | L_QUEST 9 |
#define | L_CLOS1 10 |
#define | L_CLOS0 11 |
#define | L_END 12 |
#define | L_START 13 |
#define | DFA_ERR_SYNTAX 1 |
#define | DFA_ERR_LP 2 |
#define | DFA_ERR_RP 3 |
Functions | |
struct DFA * | dfa_init (void) |
void | dfa_anyset_includes_nl (struct DFA *dfa) |
void | dfa_set_cmap (struct DFA *dfa, void *vp, const char **(*cmap)(void *vp, const char **from, int len)) |
int | dfa_parse (struct DFA *, const char **) |
void | dfa_mkstate (struct DFA *) |
void | dfa_delete (struct DFA **) |
int | dfa_get_last_rule (struct DFA *) |
void | dfa_parse_cmap_clean (struct DFA *d) |
void | dfa_parse_cmap_new (struct DFA *d, const int *cmap) |
void | dfa_parse_cmap_del (struct DFA *d, int from) |
void | dfa_parse_cmap_add (struct DFA *d, int from, int to) |
Variables | |
int | debug_dfa_trav |
int | debug_dfa_tran |
int | debug_dfa_followpos |
int | dfa_verbose |
unsigned short | dfa_thompson_chars [] |
unsigned short | dfa_ccl_chars [] |
void dfa_anyset_includes_nl | ( | struct DFA * | dfa | ) |
Definition at line 1104 of file dfa.c.
References add_BSet(), DFA_parse::anyset, DFA_parse::charset, and DFA::parse_info.
Referenced by dict_lookup_grep().
void dfa_delete | ( | struct DFA ** | dfap | ) |
Definition at line 1158 of file dfa.c.
References ifree(), rm_dfa_parse(), and rm_DFA_states().
Referenced by actionListDel(), data1_absyn_destroy(), data1_read_absyn(), dict_lookup_grep(), lexContextDestroy(), main(), and tst().
int dfa_get_last_rule | ( | struct DFA * | dfa | ) |
Definition at line 1116 of file dfa.c.
References DFA::parse_info, and DFA_parse::rule.
struct DFA* dfa_init | ( | void | ) |
Definition at line 1092 of file dfa.c.
References dfa_parse_cmap_thompson(), dfa_parse_init(), imalloc(), DFA::parse_info, DFA::state_info, and DFA::states.
Referenced by data1_read_absyn(), dict_lookup_grep(), lexSpecDFA(), main(), and tst().
void dfa_mkstate | ( | struct DFA * | dfa | ) |
Definition at line 1148 of file dfa.c.
References mk_dfas(), DFA_states::no, DFA::no_states, DFA::parse_info, POSET_CHUNK, rm_dfa_parse(), DFA_states::sortarray, DFA::state_info, and DFA::states.
Referenced by actionListMk(), data1_read_absyn(), dict_lookup_grep(), main(), and readFileSpec().
int dfa_parse | ( | struct DFA * | dfa, |
const char ** | pattern | ||
) |
Definition at line 1121 of file dfa.c.
References do_parse(), DFA_parse::err_code, mk_Tnode(), OR, Tnode::p, DFA::parse_info, Tnode::pos, DFA_parse::root, and Tnode::u.
Referenced by actionListMk(), data1_read_absyn(), dict_lookup_grep(), main(), read_rules(), readOneSpec(), and test_parse().
void dfa_parse_cmap_add | ( | struct DFA * | d, |
int | from, | ||
int | to | ||
) |
Definition at line 978 of file dfa.c.
References DFA_parse::charMap, DFA_parse::charMapSize, ifree(), imalloc(), and DFA::parse_info.
Referenced by lexSpecDFA().
void dfa_parse_cmap_clean | ( | struct DFA * | d | ) |
Definition at line 926 of file dfa.c.
References DFA_parse::charMap, DFA_parse::charMapSize, imalloc(), and DFA::parse_info.
void dfa_parse_cmap_del | ( | struct DFA * | d, |
int | from | ||
) |
Definition at line 960 of file dfa.c.
References DFA_parse::charMap, and DFA::parse_info.
Referenced by lexSpecDFA().
void dfa_parse_cmap_new | ( | struct DFA * | d, |
const int * | cmap | ||
) |
Definition at line 940 of file dfa.c.
References DFA_parse::charMap, DFA_parse::charMapSize, DFA_parse::cmap, ifree(), imalloc(), and DFA::parse_info.
Referenced by dfa_parse_cmap_thompson().
void dfa_set_cmap | ( | struct DFA * | dfa, |
void * | vp, | ||
const char **(*)(void *vp, const char **from, int len) | cmap | ||
) |
Definition at line 1109 of file dfa.c.
References DFA_parse::cmap, DFA_parse::cmap_data, and DFA::parse_info.
Referenced by dict_lookup_grep().
|
extern |
Definition at line 68 of file dfa.c.
Referenced by agrep_options(), dict_lookup_grep(), lexer_options(), main(), mk_dfas(), and readFileSpec().
|
extern |
Definition at line 67 of file dfa.c.
Referenced by actionListMk(), agrep_options(), dict_lookup_grep(), lexer_options(), main(), mk_dfas(), and readFileSpec().
|
extern |
Definition at line 66 of file dfa.c.
Referenced by agrep_options(), dfa_trav(), dict_lookup_grep(), lexer_options(), main(), and readFileSpec().
|
extern |
|
extern |
Definition at line 69 of file dfa.c.
Referenced by agrep_options(), dict_lookup_grep(), lexer_options(), main(), mk_dfas(), and readFileSpec().