-
Notifications
You must be signed in to change notification settings - Fork 24
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
Adding another choice with <|> causes parse to fail #14
Comments
oh - and this library is probably the best context-free parser available for Haskell right now, so thank you! |
your example looks like it should work, but I'm new to chart parsing myself. first thought, does making l and r into rules help? On Thursday, November 5, 2015, Omari Norman notifications@github.com
(this message was composed with dictation: charitably interpret typos)Sam |
No, I tried this and got the same result:
|
This looks like a bug. Something seems to be going wrong with the rule expansion when the rule is nullable and used multiple times at the same position. Here's a minimal example:
I haven't come up with a fix yet, but am looking into it. Many thanks for the report! |
This should be fixed now. Thanks again for the report! |
I appreciate your work very much, thank you. On Monday, November 9, 2015, Olle Fredriksson notifications@github.com
|
I'm writing a parser to parse either 0) a sequence of digits with no grouping characters, or 1) a sequence of digits with grouping characters like commas.
I'm getting some behavior I wouldn't expect, but I'm too ignorant to know if this is a bug. I have tried to boil this down to a simple example, as follows:
Here is some test output:
I would expect that a
Grouped
value would appear when using thegroupedOrUngrouped
parser. I don't get aGrouped
value there, but I do get one when using thegrouped
parser alone. Why? Any help is much appreciated.stack
enabled source is also athttps://gist.github.com/massysett/b132c660c34955533795
The text was updated successfully, but these errors were encountered: