Crate ere_core

Source
Expand description

This crate provides the core functionality to the ere crate.

Modules§

config
nfa_static
Implements a version of WorkingNFA that can be serialized statically into a binary.
one_pass_u8
This implements an engine for one-pass regexes.
parse_tree
Implements the ERE parser and primitive types (like Atom).
pike_vm
Implements a Pike VM-like regex engine.
pike_vm_u8
Implements a Pike VM-like regex engine for u8s.
simplified_tree
Implements a simplified intermediate representation of a regular expression.
visualization
Implements visualization features for NFAs. Typically not used outside debug.
working_nfa
Implements the primary compile-time intermediate WorkingNFA structure for optimization.
working_u8_nfa
Implements u8-based version of crate::working_nfa.

Structs§

Regex
A regular expression (specifically, a POSIX ERE).

Functions§

__compile_regex
Tries to pick the best engine.
__compile_regex_engine_one_pass_u8
Always uses the one_pass_u8::U8OnePass engine and returns an tokenized instance of it instead of Regex.
__compile_regex_engine_pike_vm
Always uses the pike_vm::PikeVM engine and returns an tokenized instance of it instead of Regex
__compile_regex_engine_pike_vm_u8
Always uses the pike_vm_u8::U8PikeVM engine and returns an tokenized instance of it instead of Regex
__construct_nfa_regex
__construct_pikevm_regex
__construct_u8onepass_regex
__construct_u8pikevm_regex