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

negative range seems to work #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mesemus
Copy link

@mesemus mesemus commented Apr 9, 2024

No description provided.

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @mesemus for this useful PR.

Can you eventually change the test to also test the result ?

Comment on lines 531 to 533
parser.parse("[-1 TO 5]")
parser.parse("[-10 TO -1]")
parser.parse("[5 TO -1]") # semantically incorrect but correct from the parser's perspective
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should test the resulting tree is that expected, (as we do in other non raising tests).

@alexgarel
Copy link
Member

Also you have to make your code pass quality checks. make quality is your friend :-)

@mesemus
Copy link
Author

mesemus commented Apr 18, 2024

Hi Alex, sorry for wasting your time, I will. This is still a work in progress - it seems to work but introduces one reduce/reduce conflict (solved favorably for us but still not pretty). I will have a look if the grammar could be rewritten to circumvent this, but it will unfortunately be a much bigger change than this one.

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.

2 participants