Trait geo_aid::script::parser::Parse

source ·
pub trait Parse: Sized {
    fn parse<'r, I: Iterator<Item = &'r Token> + Clone>(
        it: &mut Peekable<I>,
        context: &CompileContext
    ) -> Result<Self, Error>; fn get_span(&self) -> Span; }

Required Methods§

Tries to parse input tokens into Self.

Errors

Errors originate from invalid scripts.

Gets the parsed item’s span.

Implementations on Foreign Types§

Implementors§