Bug 198357 - [WHLSL] Remove the last bits of backtracking from the parser
Summary: [WHLSL] Remove the last bits of backtracking from the parser
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 198934
Blocks:
  Show dependency treegraph
 
Reported: 2019-05-29 18:14 PDT by Robin Morisset
Modified: 2020-05-05 00:42 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 2019-05-29 18:14:13 PDT
See https://bugs.webkit.org/show_bug.cgi?id=192890
Comment 1 Robin Morisset 2019-07-12 10:19:06 PDT
Currently they are required because of our syntax for array declaration: when seeing x[42] it is ambiguous if it is the beginning of a declaration (x[42]y;) or the beginning of an assignment (x[42] = y;).
If we go back to a C-like syntax for array declarations (x y[42];) the ambiguity will be gone, and we will be able to remove the backtracking.
Comment 2 Myles C. Maxfield 2020-05-05 00:42:39 PDT
WHLSL is no longer relevant.