Bug 198357
| Summary: | [WHLSL] Remove the last bits of backtracking from the parser | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Robin Morisset <rmorisset> |
| Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=192890 | ||
| Bug Depends on: | 198934 | ||
| Bug Blocks: | |||
Robin Morisset
See https://bugs.webkit.org/show_bug.cgi?id=192890
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Robin Morisset
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.
Myles C. Maxfield
WHLSL is no longer relevant.