Module glsl::parser

source ·
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 ParseResult.

Structs

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

Enums

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

Traits

Class of types that can be parsed.