Skip to main content

keyhog_scanner/
compiler.rs

1//! Logic for compiling detector specifications into an efficient scanning engine.
2
3#[path = "compiler_build.rs"]
4pub mod compiler_build;
5
6#[path = "compiler_compile.rs"]
7pub mod compiler_compile;
8
9#[path = "compiler_prefix.rs"]
10pub mod compiler_prefix;
11
12pub use compiler_build::{
13    build_compile_state, rewrite_alternation_prefix, split_leading_inline_flag, CompileState,
14};
15pub use compiler_compile::{
16    build_ac_pattern_set, build_fallback_keyword_ac, build_gpu_literals, build_prefix_propagation,
17    build_same_prefix_patterns, compile_companion, compile_detector_companions,
18    compile_detector_pattern, compile_pattern, log_quality_warnings, shared_regex_compile,
19    warm_shared_regex_cache,
20};
21pub use compiler_prefix::{
22    extract_inner_literals, extract_literal_prefix, extract_literal_prefixes, is_escaped_literal,
23};