Module glsl::parser[][src]

Expand description

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’s methods to get starting with parsing and pattern match on the resulting Result. In case of an error, you can inspect the content of the ParseError object in the Err variant.

Structs

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

Traits

Class of types that can be parsed.