2 * Regular Pattern Analyzer Toolkit (RPA/Tk)
3 * Copyright (c) 2009-2012 Martin Stoilov
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 * Martin Stoilov <martin@rpasearch.com>
26 #include "rlib/rbuffer.h"
27 #include "rlib/rarray.h"
28 #include "rex/rexdb.h"
29 #include "rex/rexdfa.h"
37 typedef struct rexcc_s {
42 unsigned int showtime;
56 rexcc_t *rex_cc_create();
57 void rex_cc_destroy(rexcc_t *pCC);
58 int rex_cc_load_pattern(rexcc_t *pCC, rbuffer_t *buf, rexuserdata_t userdata);
59 int rex_cc_load_buffer(rexcc_t *pCC, rbuffer_t *text);
60 int rex_cc_output(rexcc_t *pCC, FILE *outc);
61 rexdfa_t * rex_cc_tokensdfa();
62 void rex_cc_parseinfodump(rexcc_t *pCC);