Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wgsl: Reserve vec and mat keywords #1896

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

ben-clayton
Copy link
Collaborator

Also sort the keywords lexicographically.

Fixes: #1862

Also sort the keywords lexicographically.

Fixes: gpuweb#1862
@github-actions
Copy link
Contributor

Previews, as seen when this build job started (76c8a10):
WebGPU | IDL
WGSL
Explainer

@dneto0 dneto0 self-requested a review July 1, 2021 03:11
@dneto0 dneto0 added the wgsl WebGPU Shading Language Issues label Jul 1, 2021
@dneto0 dneto0 modified the milestone: MVP Jul 1, 2021
@ben-clayton ben-clayton merged commit 3516793 into gpuweb:main Jul 6, 2021
@ben-clayton ben-clayton deleted the reserve-vec-mat branch July 6, 2021 15:02
ben-clayton added a commit to ben-clayton/Tint that referenced this pull request Jul 13, 2021
And add `vec` and `mat` to the reserved keyword list (see gpuweb/gpuweb#1896)

Move these reserved keyword checks out of the lexer and into the parser.
Generate a sensible error message.
Add tests.

Change-Id: I1876448201a2fd773f38f337b4e49bc61a7642f7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56545
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wgsl WebGPU Shading Language Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wgsl: Consider reserving vec and mat
3 participants