Add C-style curly-brace initializers.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23565 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-10-17 19:43:43 +00:00
parent e7c59c187c
commit 779e6b406a
9 changed files with 373 additions and 19 deletions

View file

@ -2104,11 +2104,10 @@ initializer
initializer_list
: initializer {
$$ = $1;
$$ = parseContext.intermediate.growAggregate(0, $1, $1->getLoc());
}
| initializer_list COMMA initializer {
// TODO: 4.2 functionality: implement the initializer list
$$ = $3;
$$ = parseContext.intermediate.growAggregate($1, $3);
}
;