Skip to main content

classify

Function classify 

Source
pub fn classify(src: &str) -> Result<CaixaDialeto, DialetoError>
Expand description

Classify a manifest source without committing to either schema.

Deliberately reads only the head symbol and the set of top-level keywords — enough to route, never enough to half-parse. A classifier that started validating would grow into a third parser, which is the shape of the problem it exists to name.

§Errors

DialetoError when the source is not a manifest declaration at all.