Regular expression compiler.
More...
Go to the source code of this file.
Functions |
|
gfsmAutomaton * | gfsm_regex_compiler_parse (gfsmRegexCompiler *rec) |
|
gfsmLabelVal | gfsm_regex_compiler_char2label (gfsmRegexCompiler *rec, gchar c) |
gfsmLabelVal | gfsm_regex_compiler_gstring2label (gfsmRegexCompiler *rec, GString *gs) |
|
gfsmAutomaton * | gfsm_regex_compiler_new_fsm (gfsmRegexCompiler *rec) |
gfsmAutomaton * | gfsm_regex_compiler_epsilon_fsm (gfsmRegexCompiler *rec) |
gfsmAutomaton * | gfsm_regex_compiler_label_fsm (gfsmRegexCompiler *rec, gfsmLabelVal lab) |
gfsmAutomaton * | gfsm_regex_compiler_append_lab (gfsmRegexCompiler *rec, gfsmAutomaton *fsm, gfsmLabelVal lab) |
gfsmAutomaton * | gfsm_regex_compiler_prepend_lab (gfsmRegexCompiler *rec, gfsmLabelVal lab, gfsmAutomaton *fsm) |
gfsmAutomaton * | gfsm_regex_compiler_concat (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmAutomaton *fsm2) |
gfsmAutomaton * | gfsm_regex_compiler_closure (gfsmRegexCompiler *rec, gfsmAutomaton *fsm, gboolean is_plus) |
gfsmAutomaton * | gfsm_regex_compiler_power (gfsmRegexCompiler *rec, gfsmAutomaton *fsm, guint32 n) |
gfsmAutomaton * | gfsm_regex_compiler_optional (gfsmRegexCompiler *rec, gfsmAutomaton *fsm) |
gfsmAutomaton * | gfsm_regex_compiler_project (gfsmRegexCompiler *rec, gfsmAutomaton *fsm, gfsmLabelSide which) |
gfsmAutomaton * | gfsm_regex_compiler_complement (gfsmRegexCompiler *rec, gfsmAutomaton *fsm) |
gfsmAutomaton * | gfsm_regex_compiler_union (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmAutomaton *fsm2) |
gfsmAutomaton * | gfsm_regex_compiler_intersect (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmAutomaton *fsm2) |
gfsmAutomaton * | gfsm_regex_compiler_product (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmAutomaton *fsm2) |
gfsmAutomaton * | gfsm_regex_compiler_compose (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmAutomaton *fsm2) |
gfsmAutomaton * | gfsm_regex_compiler_difference (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmAutomaton *fsm2) |
gfsmAutomaton * | gfsm_regex_compiler_weight (gfsmRegexCompiler *rec, gfsmAutomaton *fsm1, gfsmWeight w) |
gfsmAutomaton * | gfsm_regex_compiler_rmepsilon (gfsmRegexCompiler *rec, gfsmAutomaton *fsm) |
gfsmAutomaton * | gfsm_regex_compiler_determinize (gfsmRegexCompiler *rec, gfsmAutomaton *fsm) |
gfsmAutomaton * | gfsm_regex_compiler_connect (gfsmRegexCompiler *rec, gfsmAutomaton *fsm) |
Detailed Description
Macro Definition Documentation
Function Documentation
void gfsm_regex_compiler_free |
( |
gfsmRegexCompiler * |
rec, |
|
|
gboolean |
free_alphabet, |
|
|
gboolean |
free_automaton |
|
) |
| |
Destroy a gfsmRegexCompiler.
- Parameters
-
free_automaton | whether to free the stored alphabet, if present |
free_automaton | whether to free the parsed automaton, if present |
Reset regex compiler; possibly freeing associated automaton
Parse an automaton from the currently selected input source.
- Returns
- parsed automaton, or NULL on error
Get a label value for a single character
Get a label value for a GString* (implicitly frees gs)
New full-fleded automaton
New single-character recognizer
Single-label concatenation: (low-level): append
Single-label concatenation (low-level): prepend