Module glsl::parser [] [src]

GLSL parsers.

The more general parser is translation_unit, that recognize the most external form of a GLSL source (a shader, basically).

Other parsers are exported if you want more control on how you want to parse your source.

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

additive_expr
alphasep
and_expr
array_specifier
assignment_expr
assignment_op
block_declaration
bool_lit
case_label
comment
comments
compound_statement
cond_expr
condition
declaration
dot_field_selection
double_lit
equality_expr
exclusive_or_expr
expr
expr_statement
external_declaration
float_lit
fully_specified_type
function_call
function_definition
function_identifier
function_prototype
global_declaration
identifier
inclusive_or_expr
init_declarator_list
initializer
initializer_list
integral_lit
interpolation_qualifier
invariant_qualifier
iteration_statement
iteration_statement_do_while
iteration_statement_for
iteration_statement_while
jump_statement
jump_statement_break
jump_statement_continue
jump_statement_discard
jump_statement_return
layout_qualifier
logical_and_expr
logical_or_expr
logical_xor_expr
multiplicative_expr
parens_expr
parse

Run a parser.

parse_str

Run a parser over a str.

postfix_expr
pp_extension
pp_extension_behavior
pp_extension_name
pp_version
pp_version_number
pp_version_profile
precise_qualifier
precision_declaration
precision_qualifier
preprocessor
primary_expr
rel_expr
selection_statement
shift_expr
simple_statement
single_declaration
statement
storage_qualifier
storage_qualifier_subroutine
storage_qualifier_subroutine_list
struct_field_specifier
struct_specifier
switch_statement
translation_unit
type_qualifier
type_qualifier_spec
type_specifier
type_specifier_non_struct

Parse a type specifier non struct.

unary_expr
unary_op
unsigned_lit
void