Skip to main content

parse

Function parse 

Source
pub fn parse(
    text: &str,
    names: &mut Interner,
    regs: &RegFile,
) -> Result<Vec<Func>, ParseError>
Expand description

Reads every function in the text the printer writes.

Names are interned into names, and physical registers are the ones regs describes, which are the two things the printer was given.

ยงErrors

Gives back the first thing in the text that does not add up, with the line it is on.