Skip to content

Conversation

@khoatran
Copy link

@khoatran khoatran commented Jun 5, 2017

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

@mossadal
Copy link
Owner

mossadal commented Jun 7, 2017

Thank you for your contribution. It will take me a while to go through this.

@railken
Copy link

railken commented Oct 1, 2018

Any updates? I'm interested in having these operators

@mossadal
Copy link
Owner

mossadal commented Oct 3, 2018

Thanks for the reminder, I willl try to get to it soon.

$this->associativity = self::RIGHT_ASSOC;
break;

case '=':
Copy link

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)

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

Successfully merging this pull request may close these issues.

4 participants