Skip to content
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

Flatten boolean operations if possible #72

Open
Glyphack opened this issue Mar 17, 2023 · 0 comments
Open

Flatten boolean operations if possible #72

Glyphack opened this issue Mar 17, 2023 · 0 comments
Labels
good first issue Good for newcomers parser

Comments

@Glyphack
Copy link
Owner

Glyphack commented Mar 17, 2023

value: ConstantValue::Complex {

In this code we want to flatten the boolean operations if possible. Flatten means that if you see a or b or c instead of making two ast nodes we can do one node with operation or and the operands a, b, c.

https://docs.python.org/3/reference/expressions.html#comparisons

@Glyphack Glyphack added the good first issue Good for newcomers label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers parser
Projects
None yet
Development

No branches or pull requests

1 participant