We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-
Add support for - as a prefix operator (e.g. -(1+2)). There is currently support for it but only as a part of a literal. So currently this is allowed:
-(1+2)
-1 + 2 2--1 4*-2*(-1/-2)
And this is not:
-(1+1) --2*2
And this is interpreted incorrectly:
-1**2 # Gives 1.0 ((-1)**2), should give -1.0 (-(1**2))
So we need to:
**
*/
2**-1
2**-3**-2
prefixop = '-' power | '+' power | ... power = primary '**' prefixop primary = ... | '(' ... ')' | ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add support for
-
as a prefix operator (e.g.-(1+2)
). There is currently support for it but only as a part of a literal.So currently this is allowed:
And this is not:
And this is interpreted incorrectly:
So we need to:
-
(**
< precedence <*/
)2**-1
and2**-3**-2
. Python does this using:The text was updated successfully, but these errors were encountered: