-
Notifications
You must be signed in to change notification settings - Fork 41
Boolean operators #8
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you for your contribution. It will take me a while to go through this. |
|
Any updates? I'm interested in having these operators |
|
Thanks for the reminder, I willl try to get to it soon. |
| $this->associativity = self::RIGHT_ASSOC; | ||
| break; | ||
|
|
||
| case '=': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, && should have higher precedence than || and || higher than =. Then =, >, < and other have same precedence.
So, A = B && C means A = (B && C)
I have added some more code / test to make the library support boolean operators and comparison operators: !, &&, ||, =, <, <=, >, >=
These operators are required for one of my working library. However, I think it's also useful for everyone to support these operators