Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e6190f0648b1857508e3b594410cd5d00aadfbba
https://github.com/WebKit/WebKit/commit/e6190f0648b1857508e3b594410cd5d00aadfbba
Author: Tadeu Zagallo <[email protected]>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M Source/WebGPU/WGSL/Lexer.cpp
M Source/WebGPU/WGSL/Parser.cpp
M Source/WebGPU/WGSL/Token.cpp
M Source/WebGPU/WGSL/Token.h
M Tools/TestWebKitAPI/Tests/WGSL/LexerTests.cpp
Log Message:
-----------
[WGSL] Update keywords and reserved words
https://bugs.webkit.org/show_bug.cgi?id=260850
rdar://114617007
Reviewed by Dan Glastonbury.
Update the set of keywords and reserved words as defined by the spec in
https://www.w3.org/TR/WGSL/#keyword-summary and
https://www.w3.org/TR/WGSL/#reserved-words
respectively. This removes a few keywords that we had that are not actually
keywords
and adds a bunch of reserved words. For now, we keep the special treatment for
the
`array` identifier, as more work is required to treat array types as regular
parameterized
types.
* Source/WebGPU/WGSL/Lexer.cpp:
(WGSL::Lexer<T>::lex):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseTypeName):
(WGSL::Parser<Lexer>::parseArrayType):
(WGSL::Parser<Lexer>::parseStorageClass):
(WGSL::Parser<Lexer>::parseAccessMode):
(WGSL::Parser<Lexer>::parsePrimaryExpression):
* Source/WebGPU/WGSL/Token.cpp:
(WGSL::toString):
* Source/WebGPU/WGSL/Token.h:
Canonical link: https://commits.webkit.org/267622@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes