WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
245859
[WGSL] Don't parse literals in lexer
https://bugs.webkit.org/show_bug.cgi?id=245859
Summary
[WGSL] Don't parse literals in lexer
Dan Glastonbury
Reported
2022-09-29 19:26:08 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-29 19:26:47 PDT
<
rdar://problem/100592948
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug