Crate boreal_parser
source ·Expand description
Parser for YARA rules.
This crate is designed to be used by the boreal
crate.
It exposes a single function, parse
, which parses the contents of a YARA file.
Re-exports
pub use regex::Regex;
Modules
AST objects related to hex strings.
AST elements related to YARA regexes.
Structs
Parsing error.
A parsed expression with associated span
Parsed identifier used in expressions.
Operation applied on an identifier.
A metadata key-value, associated with a rule.
A Yara rule.
Set of multiple rules.
String declared in a rule.
Modifier flags, see
VariableModifiers
.Modifiers applicable on a string.
Set of multiple variables.
A parsed Yara file.
Enums
An expression parsed in a Rule.
Iterator for a ‘for’ expression over an identifier.
Selection of variables in a ‘for’ expression.
Type of operation applied on an identifier.
Integer read type, see
ExpressionKind::ReadInteger
.Value for a string associated with a rule.
A top-level component of a Yara file.
Functions
Parse a YARA file.