pub trait Parse: HasParser {
fn parse<'i, L: LangLexer<'i>>(
source: L::Input
) -> Result<Self, ParseError<<L::Iter as HasLexerError>::Error>>;
fn parse_with_options<'i, L: LangLexer<'i>>(
source: L::Input,
opts: &ParseOptions
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>;
fn parse_with_context<'i, L: LangLexer<'i>>(
source: L::Input,
ctx: &ParseContext
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>;
}
Expand description
GLSL language parsing functions
Required Methods
fn parse<'i, L: LangLexer<'i>>(
source: L::Input
) -> Result<Self, ParseError<<L::Iter as HasLexerError>::Error>>
fn parse<'i, L: LangLexer<'i>>(
source: L::Input
) -> Result<Self, ParseError<<L::Iter as HasLexerError>::Error>>
Parse the input source
fn parse_with_options<'i, L: LangLexer<'i>>(
source: L::Input,
opts: &ParseOptions
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
fn parse_with_options<'i, L: LangLexer<'i>>(
source: L::Input,
opts: &ParseOptions
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
Parse the input source with the given options
fn parse_with_context<'i, L: LangLexer<'i>>(
source: L::Input,
ctx: &ParseContext
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
fn parse_with_context<'i, L: LangLexer<'i>>(
source: L::Input,
ctx: &ParseContext
) -> ParseResult<L::Iter, <L::Iter as HasLexerError>::Error, Self>
Parse the input source with the given context