这是indexloc提供的服务,不要输入任何密码
Skip to content

Forbid --x #801

@litherum

Description

@litherum

The grammar allows for unary negation, e.g. y = -x;.

unary_expression
  : singular_expression
  | MINUS unary_expression
...

This seems like --x would result in the same value as x. However, we may want to add the -- prefix in the future, so we should forbid this construction for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions