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

Lexer for the WebGPU Shading Language #2386

Merged
merged 10 commits into from
Mar 30, 2023
Prev Previous commit
Next Next commit
wgsl: test bool, bool-vec and numeric types
  • Loading branch information
dneto0 committed Mar 28, 2023
commit da4c370558ff0c433c70bb325fe544068f8c31a9
47 changes: 47 additions & 0 deletions tests/snippets/wgsl/bool-types.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---input---
alias boolean=bool;
alias bvec2=vec2<bool>;
alias bvec3=vec3<bool>;
alias bvec4=vec4<bool>;

---tokens---
'alias' Keyword
' ' Text.Whitespace
'boolean' Name
'=' Operator
'bool' Name.Builtin
';' Punctuation
'\n' Text.Whitespace

'alias' Keyword
' ' Text.Whitespace
'bvec2' Name
'=' Operator
'vec2' Name.Builtin
'<' Operator
'bool' Name.Builtin
'>' Operator
';' Punctuation
'\n' Text.Whitespace

'alias' Keyword
' ' Text.Whitespace
'bvec3' Name
'=' Operator
'vec3' Name.Builtin
'<' Operator
'bool' Name.Builtin
'>' Operator
';' Punctuation
'\n' Text.Whitespace

'alias' Keyword
' ' Text.Whitespace
'bvec4' Name
'=' Operator
'vec4' Name.Builtin
'<' Operator
'bool' Name.Builtin
'>' Operator
';' Punctuation
'\n' Text.Whitespace
Loading