Expand description
The abstract syntax tree the parser produces and the compiler consumes.
An RSL script is a flat list of Stmts executed top to bottom; the only
nesting comes from if and for, which carry their own bodies. Everything
that also has to survive into bytecode — matchers, bodies, severities — is
re-exported from [ruso_runtime::contract] rather than redefined here, so
the parser and the VM cannot drift apart.
Structs§
- Inline
Part - One part of a multipart request body.
- Object
Body - A structured request body (
data { … }/json { … }): ordered key/value pairs. Order is preserved so serialization is deterministic. - Program
- A parsed script: every statement in source order.
- Qualified
Field - A response field selector: which probe (
target) and which part of its response (kind) a matcher or evidence rule reads. - Qualified
Match - A single matcher: a response field tested against a predicate.
- Socket
Probe - Generic socket probe fields shared by
dns,tcp, andudp.
Enums§
- Body
Value - A value inside an
ObjectBodyor multipart body. - CmpOp
- A comparison operator used by
MatchPredicate::Compare. - CmpValue
- The right-hand operand of a
MatchPredicate::Compare. - Evidence
Kind - A proof string attached to a finding. Every rule names an explicit source
(
.body,.response, or.header "<name>"); an optionalregexextracts capture group 1 (or the whole match) from that source instead of taking it whole. - Extract
Source - Where an
extractpulls a value from (HTTP only). - Field
Kind - Which part of a probe response a matcher reads.
- Http
Item - One setting inside an
httpblock. - Http
Method - HTTP request method for an
httpprobe. - Inline
Part Body - The content of an
InlinePart. - List
Source - What a
for … in …loop iterates over. - Match
Predicate - The condition a
QualifiedFieldis tested against. - Severity
- Finding severity, in ascending order of urgency (
Infois the catch-all used when a check declares noseverity). - Stmt
- One statement of a script.
- Value
- The right-hand side of a
set.