Skip to main content

parse

Function parse 

Source
pub fn parse(src: &str, cfg: &ParserConfig) -> Result<Specification, Error>
Expand description

Parst IDL-Source zu einer typisierten Specification.

Pipeline: Tokenize → Earley-Recognize → CST-Build → AST-Build.

In Phase 0 wird cfg.version, cfg.compat und cfg.vendor noch nicht ausgewertet — die Grammar ist hardgecodet IDL_42. Mit T6.x werden Versions-/Compat-/Vendor-Deltas wirksam (siehe crate::config).

§Errors