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

Cryptol prelude doesn't specify a precedence for (%) #362

Closed
brianhuffman opened this issue Aug 4, 2016 · 1 comment
Closed

Cryptol prelude doesn't specify a precedence for (%) #362

brianhuffman opened this issue Aug 4, 2016 · 1 comment

Comments

@brianhuffman
Copy link
Contributor

Cryptol.cry specifies infixl 90 *, /, but it doesn't list any precedence for the modulus operator %. Should it have the same precedence as multiplication and division?

@yav
Copy link
Member

yav commented Aug 4, 2016

Yes, I think this is an omission. Modulus has the same precedence as * / in both C and Haskell.

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

No branches or pull requests

2 participants