Skip to content

Boolean operators#8

Open
khoatran wants to merge 10 commits into
mossadal:masterfrom
khoatran:boolean-operators
Open

Boolean operators#8
khoatran wants to merge 10 commits into
mossadal:masterfrom
khoatran:boolean-operators

Conversation

@khoatran

@khoatran khoatran commented Jun 5, 2017

Copy link
Copy Markdown

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

mossadal commented Jun 7, 2017

Copy link
Copy Markdown
Owner

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

@railken

railken commented Oct 1, 2018

Copy link
Copy Markdown

Any updates? I'm interested in having these operators

@mossadal

mossadal commented Oct 3, 2018

Copy link
Copy Markdown
Owner

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

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

case '=':

Copy link
Copy Markdown

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