[WHLSL] Implement parser AST nodes
[WebKit-https.git] / Source / WebCore / Modules / webgpu / WHLSL / WHLSLParser.h
1 /*
2  * Copyright (C) 2019 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #pragma once
27
28 #if ENABLE(WEBGPU)
29
30 #include "WHLSLArrayReferenceType.h"
31 #include "WHLSLArrayType.h"
32 #include "WHLSLAssignmentExpression.h"
33 #include "WHLSLBaseFunctionAttribute.h"
34 #include "WHLSLBaseSemantic.h"
35 #include "WHLSLBlock.h"
36 #include "WHLSLBooleanLiteral.h"
37 #include "WHLSLBreak.h"
38 #include "WHLSLBuiltInSemantic.h"
39 #include "WHLSLCallExpression.h"
40 #include "WHLSLCommaExpression.h"
41 #include "WHLSLConstantExpression.h"
42 #include "WHLSLConstantExpressionEnumerationMemberReference.h"
43 #include "WHLSLContinue.h"
44 #include "WHLSLDereferenceExpression.h"
45 #include "WHLSLDoWhileLoop.h"
46 #include "WHLSLDotExpression.h"
47 #include "WHLSLEffectfulExpressionStatement.h"
48 #include "WHLSLEnumerationDefinition.h"
49 #include "WHLSLEnumerationMember.h"
50 #include "WHLSLExpression.h"
51 #include "WHLSLFallthrough.h"
52 #include "WHLSLFloatLiteral.h"
53 #include "WHLSLForLoop.h"
54 #include "WHLSLFunctionAttribute.h"
55 #include "WHLSLFunctionDeclaration.h"
56 #include "WHLSLFunctionDefinition.h"
57 #include "WHLSLIfStatement.h"
58 #include "WHLSLIndexExpression.h"
59 #include "WHLSLIntegerLiteral.h"
60 #include "WHLSLLexer.h"
61 #include "WHLSLLogicalExpression.h"
62 #include "WHLSLLogicalNotExpression.h"
63 #include "WHLSLMakeArrayReferenceExpression.h"
64 #include "WHLSLMakePointerExpression.h"
65 #include "WHLSLNativeFunctionDeclaration.h"
66 #include "WHLSLNativeTypeDeclaration.h"
67 #include "WHLSLNode.h"
68 #include "WHLSLNullLiteral.h"
69 #include "WHLSLNumThreadsFunctionAttribute.h"
70 #include "WHLSLPointerType.h"
71 #include "WHLSLProgram.h"
72 #include "WHLSLPropertyAccessExpression.h"
73 #include "WHLSLQualifier.h"
74 #include "WHLSLReadModifyWriteExpression.h"
75 #include "WHLSLReferenceType.h"
76 #include "WHLSLResourceSemantic.h"
77 #include "WHLSLReturn.h"
78 #include "WHLSLSemantic.h"
79 #include "WHLSLSpecializationConstantSemantic.h"
80 #include "WHLSLStageInOutSemantic.h"
81 #include "WHLSLStatement.h"
82 #include "WHLSLStructureDefinition.h"
83 #include "WHLSLStructureElement.h"
84 #include "WHLSLSwitchCase.h"
85 #include "WHLSLSwitchStatement.h"
86 #include "WHLSLTernaryExpression.h"
87 #include "WHLSLTrap.h"
88 #include "WHLSLType.h"
89 #include "WHLSLTypeArgument.h"
90 #include "WHLSLTypeDefinition.h"
91 #include "WHLSLTypeReference.h"
92 #include "WHLSLUnsignedIntegerLiteral.h"
93 #include "WHLSLValue.h"
94 #include "WHLSLVariableDeclaration.h"
95 #include "WHLSLVariableDeclarationsStatement.h"
96 #include "WHLSLVariableReference.h"
97 #include "WHLSLWhileLoop.h"
98 #include <wtf/Expected.h>
99 #include <wtf/Optional.h>
100
101 namespace WebCore {
102
103 namespace WHLSL {
104
105 class Parser {
106
107 };
108
109 }
110
111 }
112
113 #endif