Module glsl::parser[][src]

GLSL parsing.

This module gives you several functions and types to deal with GLSL parsing, transforming an input source into an AST. The AST is defined in the syntax module.

You want to use the parse or parse_str functions along with parsers defined in the parsers module.

Structs

ParseError

A parse error. It contains an ErrorKind along with a String giving information on the reason why the parser failed.

Enums

ParseResult

Parse result. It can either be parsed, incomplete or errored.

Functions

parse

Run a parser.

parse_str

Run a parser over a str.