Skip to content

support new ast token changes and saturating operators #399

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

Merged
merged 1 commit into from
Sep 30, 2021
Merged

support new ast token changes and saturating operators #399

merged 1 commit into from
Sep 30, 2021

Conversation

travisstaloch
Copy link
Contributor

  • some ast token tags were renamed: ie .bit_shift_left => .shl
  • add initial support for saturating operators: +|, -|, *|, <<|, +|=, -|=, *|=, <<|=

Not sure if this is in anyway complete. I just got the build to complete after ziglang/zig#9679 was merged today. I can see that zls no longer adds squiggles to +| and +|= for example. Let me know if anything else needs to be done.

- some ast token tags were renamed: ie .bit_shift_left => .shl
- add initial support for saturating operators: +|, -|, *|, <<|, +|=, -|=, *|=, <<|=
@nektro nektro self-assigned this Sep 30, 2021
Copy link
Contributor

@nektro nektro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm this works with a fresh source install of Zig but going to hold off on the merge until kristoff-it/zig-doctest#9 is handled so that the saturation arithmetic changes can make their way to the master tarball downloads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building from source (zig master) results in error: enum 'std.zig.Ast.Tag' has no field named 'assign_bit_shift_left'
2 participants