17 |
/* along with this program; if not, write to the Free Software */ |
/* along with this program; if not, write to the Free Software */ |
18 |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
19 |
|
|
|
/* $Id$ */ |
|
|
|
|
20 |
/** |
/** |
21 |
* \file automaton.h |
* \file automaton.h |
22 |
* \brief (Non)Deterministic Finite Automaton for Regexp |
* \brief (Non)Deterministic Finite Automaton for Regexp |
27 |
#ifndef _DIC_AUTOMATON_H_ |
#ifndef _DIC_AUTOMATON_H_ |
28 |
#define _DIC_AUTOMATON_H_ |
#define _DIC_AUTOMATON_H_ |
29 |
#if defined(__cplusplus) |
#if defined(__cplusplus) |
30 |
extern "C" |
extern "C" |
31 |
{ |
{ |
32 |
#endif |
#endif |
33 |
|
|
34 |
typedef struct automaton_t *automaton; |
typedef struct automaton_t *automaton; |
35 |
|
|
36 |
/** |
/** |
37 |
* build a static deterministic finite automaton from |
* build a static deterministic finite automaton from |
38 |
* "init_state", "ptl" and "PS" given by the parser |
* "init_state", "ptl" and "PS" given by the parser |
39 |
*/ |
*/ |
40 |
automaton automaton_build(int init_state, int *ptl, int *PS, struct search_RegE_list_t *list); |
automaton automaton_build(int init_state, int *ptl, int *PS, struct search_RegE_list_t *list); |
41 |
|
|
42 |
/** |
/** |
72 |
|
|
73 |
#if defined(__cplusplus) |
#if defined(__cplusplus) |
74 |
} |
} |
75 |
#endif |
#endif |
76 |
#endif /* _DIC_AUTOMATON_H_ */ |
#endif /* _DIC_AUTOMATON_H_ */ |