aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-20 08:55:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-20 08:55:56 +0000
commit5f7a6c8f6816a826a2dd93eadc5039733f7db606 (patch)
tree3c22c8ff3436cc3140dfb1b24813ed4362330879 /src/regex/regex_internal_lib.h
parent21a2b4f95b4488645ba5a6254fcb8919c4915f73 (diff)
downloadgnunet-5f7a6c8f6816a826a2dd93eadc5039733f7db606.tar.gz
gnunet-5f7a6c8f6816a826a2dd93eadc5039733f7db606.zip
moving functions for testing and evaluation and experiments to the test library, minimizing the internal library, renaming files according to which library they belong to
Diffstat (limited to 'src/regex/regex_internal_lib.h')
-rw-r--r--src/regex/regex_internal_lib.h43
1 files changed, 1 insertions, 42 deletions
diff --git a/src/regex/regex_internal_lib.h b/src/regex/regex_internal_lib.h
index f14665538..e138535d4 100644
--- a/src/regex/regex_internal_lib.h
+++ b/src/regex/regex_internal_lib.h
@@ -21,7 +21,6 @@
21 * @file regex/regex_internal_lib.h 21 * @file regex/regex_internal_lib.h
22 * @brief library to parse regular expressions into dfa 22 * @brief library to parse regular expressions into dfa
23 * @author Maximilian Szengel 23 * @author Maximilian Szengel
24 *
25 */ 24 */
26 25
27#ifndef REGEX_INTERNAL_LIB_H 26#ifndef REGEX_INTERNAL_LIB_H
@@ -40,11 +39,9 @@ extern "C"
40#endif 39#endif
41 40
42 41
43
44
45/** 42/**
46 * Automaton (NFA/DFA) representation. 43 * Automaton (NFA/DFA) representation.
47- */ 44 */
48struct REGEX_ITERNAL_Automaton; 45struct REGEX_ITERNAL_Automaton;
49 46
50 47
@@ -98,44 +95,6 @@ REGEX_ITERNAL_automaton_destroy (struct REGEX_ITERNAL_Automaton *a);
98 95
99 96
100/** 97/**
101 * Options for graph creation function
102 * REGEX_ITERNAL_automaton_save_graph.
103 */
104enum REGEX_ITERNAL_GraphSavingOptions
105{
106 /**
107 * Default. Do nothing special.
108 */
109 REGEX_ITERNAL_GRAPH_DEFAULT = 0,
110
111 /**
112 * The generated graph will include extra information such as the NFA states
113 * that were used to generate the DFA state.
114 */
115 REGEX_ITERNAL_GRAPH_VERBOSE = 1,
116
117 /**
118 * Enable graph coloring. Will color each SCC in a different color.
119 */
120 REGEX_ITERNAL_GRAPH_COLORING = 2
121};
122
123
124/**
125 * Save the given automaton as a GraphViz dot file.
126 *
127 * @param a the automaton to be saved.
128 * @param filename where to save the file.
129 * @param options options for graph generation that include coloring or verbose
130 * mode
131 */
132void
133REGEX_ITERNAL_automaton_save_graph (struct REGEX_ITERNAL_Automaton *a,
134 const char *filename,
135 enum REGEX_ITERNAL_GraphSavingOptions options);
136
137
138/**
139 * Evaluates the given 'string' against the given compiled regex. 98 * Evaluates the given 'string' against the given compiled regex.
140 * 99 *
141 * @param a automaton. 100 * @param a automaton.