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

OpamPrinter.format_value does not handle precedence #56

Open
emillon opened this issue Mar 16, 2023 · 0 comments
Open

OpamPrinter.format_value does not handle precedence #56

emillon opened this issue Mar 16, 2023 · 0 comments

Comments

@emillon
Copy link

emillon commented Mar 16, 2023

Hi,
When passed to OpamPrinter.format_value, the expression (a | b) & c is printed as a | b & c, which is equivalent to a | (b & c). The function does not seem to have any way of printing parentheses (but the corresponding function in opam-format seems to work).
See ocaml/dune#3431.
Thanks!

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

1 participant