Documentation ¶
Overview ¶
Package sema performs semantic checking of OpenGL ES Shading Language programs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
Analyze is the main entry point of the package. It performs a semantic check of a GLES Shading Language program. Its arguments are the AST representation of the program, and a constant expression evaluating function. This function is used for evaluating array size expressions and the values of constant variables. An implementation of such a function can be found in the evaluator package.
The Analyze function is a work in progress. Currently it just computes the types of all the expressions and evaluates all constant expressions.
Types ¶
Click to show internal directories.
Click to hide internal directories.