mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
LibGLSL: Add tests for GLSL parser
This commit is contained in:
parent
29972876e4
commit
d160ff2f8d
24 changed files with 368 additions and 0 deletions
32
Userland/Libraries/LibGLSL/Tests/parser/unary-expression.ast
Normal file
32
Userland/Libraries/LibGLSL/Tests/parser/unary-expression.ast
Normal file
|
@ -0,0 +1,32 @@
|
|||
TranslationUnit[0:0->4:0]
|
||||
FunctionDeclaration[0:0->4:0]
|
||||
Type[0:0->0:3]
|
||||
void
|
||||
foo
|
||||
(
|
||||
)
|
||||
FunctionDefinition[1:0->4:0]
|
||||
{
|
||||
VariableDeclaration[2:4->2:13]
|
||||
Type[2:4->2:6]
|
||||
int
|
||||
a
|
||||
NumericLiteral[2:12->2:12]
|
||||
7
|
||||
VariableDeclaration[3:4->3:22]
|
||||
Type[3:4->3:6]
|
||||
int
|
||||
b
|
||||
UnaryExpression[3:12->3:22]
|
||||
prefix ~
|
||||
UnaryExpression[3:14->3:21]
|
||||
prefix !
|
||||
UnaryExpression[3:15->3:21]
|
||||
prefix ~
|
||||
UnaryExpression[3:16->3:21]
|
||||
prefix ++
|
||||
UnaryExpression[3:18->3:21]
|
||||
postfix ++
|
||||
Name[3:18->3:18]
|
||||
a
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue