Skip to main content

parse_unit

Function parse_unit 

pub fn parse_unit(
    tokens: &[Token],
    source: &str,
) -> Result<SourceUnit, Vec<CompileError>>
Expand description

Parse a token slice into a SourceUnit — either a commons or a context.

Each .bynk file is exactly one declaration of one kind.