Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> Result<Program, ParseError>
Expand description

Parse RSL source into a Program.

This is syntax and literal validation only — no network, no filesystem, and no semantic checks on whether the probes referenced actually exist. Hand the result to compile to produce bytecode.

§Errors

Returns ParseError when the source does not match the grammar, carries an invalid literal, or nests deeper than the parser’s depth limit.