-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
fixed: Parser errors for new rest symbol #1091 #1113
Conversation
I'm happy for it to be merged, but perhaps worth adding a test or two to |
I did. Interesting: Comparing and using rationals like in the added test passes it. |
Hmm, well values So I would try changing But still, although parsing this as |
Ah yes! On both branches — with and without my changes — the test using |
Hmm, if I check out your dev branch, the tests pass, and this comparison succeeds: (queryArc ("[-- 2 <-- 2@7 3> 1*4%2 3? 4 9|8 -- [-- <2 9q> -]] 2!4" :: Pattern String) (Arc 0 127)) == (queryArc ("[~~ 2 <~~ 2@7 3> 1*4%2 3? 4 9|8 ~~ [~~ <2 9q> ~]] 2!4" :: Pattern String) (Arc 0 127)) |
If I run that on the main tidal dev branch, I get a syntax error from parsec, which I guess would explain the failing test? |
Yes, |
I think it's probably working fine! |
I added a test for |
as described in #1091
the 'edge cases' resolved were:
puh! this was a tough one for me to find because of point 2.
Tests work, so if @yaxu gives his ok, this can be merged.