Closed maemre closed 8 years ago
This is relatively easy to fix, but it will be time-consuming because it involves changing our AST definition which is used throughout the entire compiler. I'm putting this on the back-burner for now because the workaround is acceptable, but this should be addressed in the future.
Added support with commit 3e9e6e1020b75cd0778bc2ae77976136cfdcb7d2.
Comparison predicates like
>=/2
don't support arithmetic expressions, they only support numbers and variables. They should be treated likeis/2
, this can be done with infrastructure we have for arithmetic expressions. As an example, the following code fails with a syntax error:although Prolog parses it correctly. The error given is:
On the other hand, following code compiles correctly, and this can be used as a workaround for now: