Skip to main content

Module rule_pack

Module rule_pack 

Source

Structs§

CommandMatcher
CompiledPack
LinePattern
OutputPolicy
PackManifest
ProgramEntry
Rule
RuleRecord
SourcePack

Enums§

Action
PatternCase
PatternKind
PatternTrim
Reducer
Transform

Constants§

ENGINE_ABI_VERSION
MAX_COMPILED_BYTES
MAX_RULES
MAX_SOURCE_BYTES
MAX_SOURCE_FILE_BYTES
MAX_STREAM_MEMORY_BYTES
SOURCE_SCHEMA_VERSION

Functions§

compile
Compile a validated source pack into deterministic indexed bytes.
decode_json
Decode strict JSON while rejecting duplicate and unknown fields.
stream_memory_bound
Calculate the conservative retained-memory bound for one rule stream.
validate_manifest
Validate source manifest fields and explicit rule paths.
validate_rule
Validate one declarative command rule.
validate_rules
Validate all rules and reject duplicate IDs and known reduction overlaps.