[Webkit-unassigned] [Bug 245859] New: [WGSL] Don't parse literals in lexer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 29 19:26:08 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=245859

            Bug ID: 245859
           Summary: [WGSL] Don't parse literals in lexer
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: djg at apple.com

WGSL current parses numeric literals during lexical analysis into `double`s. This might be fine for 32-bit integers but isn't sufficient if WGSL adds 64-bit integers.

We should instead pattern match on the format for numeric literals, classify them and defer the validation of literals to a later pass after type checking has been performed. This also requires handling of half floats.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220930/ae048cbf/attachment-0001.htm>


More information about the webkit-unassigned mailing list