Skip to content

Add support for more operators#3

Open
cjbassi wants to merge 5 commits intotr3buchet:py3from
cjbassi:more-operators
Open

Add support for more operators#3
cjbassi wants to merge 5 commits intotr3buchet:py3from
cjbassi:more-operators

Conversation

@cjbassi
Copy link

@cjbassi cjbassi commented Jun 2, 2018

This PR is based on the Minor refactoring PR I also created, with the only new commit being the latest one. There's a lot of changes in the last commit but it's summarized in the commit message and I added a lot of comments in the file to. I've done quite a bit of testing and it seems to work for all the operations. Let me know what you think! I really like this project and the use of eval() but I wanted to make it more robust and I think it turned out well. Let me know if anything is confusing or if anything should be changed. I didn't change the README but that would have to be changed too.

cjbassi added 5 commits May 30, 2018 09:30
* use custom process for evaluating phrases instead of using 'eval()'
* added support for 'not', 'implies', 'xor', 'xand' etc
* adding support for other operations is as simple as defining a lambda
expression and adding some logic to the `group_operations` function
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.

1 participant