[Mesa-dev] [PATCH 2/5] glsl: Add productions to GLSL grammar for switch statement
Kenneth Graunke
kenneth at whitecape.org
Tue Jun 28 22:44:25 PDT 2011
On 06/28/2011 02:48 PM, Dan McCabe wrote:
> The grammar is modified to support switch statements. Rather than follow the
> grammar in the appendix, which allows case labels to be placed ANYWHERE
> as a regular statement, we follow the development of the grammar as
> described in the body of the GLSL.
"body of the GLSL spec."
> In this variation, the switch statement has a body which consists of a list
> of case statements. A case statement is preceded by a list of case labels and
> ends with a list of statements.
This one looks good to me.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list