-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] i32, u32, f32 and bool should not be keywords
https://bugs.webkit.org/show_bug.cgi?id=260609 rdar://114320714 Reviewed by Dan Glastonbury. The first of a series of patches to simplify things as the AST should not be aware of what is or isn't a type. This starts by simply removing the keywords for the primitive types, which were barely used to begin with: the lexer transformed the identifier into a keyword, but the parser turned it back into an identifier. * Source/WebGPU/WGSL/Lexer.cpp: (WGSL::Lexer<T>::lex): * Source/WebGPU/WGSL/Parser.cpp: (WGSL::Parser<Lexer>::parseTypeName): (WGSL::Parser<Lexer>::parsePrimaryExpression): * Source/WebGPU/WGSL/Token.cpp: (WGSL::toString): * Source/WebGPU/WGSL/Token.h: Canonical link: https://commits.webkit.org/267346@main
- Loading branch information
1 parent
37bc742
commit 25fd3e2
Showing
5 changed files
with
13 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters