pub trait LangParser: Sized {
    type Item;

    fn new() -> Self;
    fn parse<L: HasLexerError + Iterator<Item = Result<(LexerPosition, Token, LexerPosition), L::Error>>>(
        &self,
        ctx: ParseContext,
        input: &mut L
    ) -> Result<Self::Item, ParseError<LexerPosition, Token, L::Error>>; }
Expand description

GLSL language parser

Required Associated Types

AST node returned by this parser

Required Methods

Instantiate the parser

Parse the input

Implementors