1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibGLSL: Add tests for GLSL parser

This commit is contained in:
Poseydon42 2023-07-23 23:10:25 +01:00 committed by Jelle Raaijmakers
parent 29972876e4
commit d160ff2f8d
24 changed files with 368 additions and 0 deletions

View file

@ -0,0 +1,37 @@
TranslationUnit[0:0->5:0]
FunctionDeclaration[0:0->5:0]
Type[0:0->0:3]
void
main
(
)
FunctionDefinition[1:0->5:0]
{
VariableDeclaration[2:4->2:13]
Type[2:4->2:6]
int
b
NumericLiteral[2:12->2:12]
0
ForStatement[3:4->4:11]
Initializer:
VariableDeclaration[3:9->3:18]
Type[3:9->3:11]
int
a
NumericLiteral[3:17->3:17]
0
Test expression:
BooleanLiteral[3:20->3:23]
true
Update expression:
UnaryExpression[3:26->3:29]
postfix ++
Name[3:26->3:26]
a
Body:
UnaryExpression[4:8->4:11]
postfix ++
Name[4:8->4:8]
b
}