Re: [Qi] Phrase parsed but iterator did not reach end
Michael Powell <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <CAMEoF_Hbnwyd07HDp8oZVnRQcmKuam-=F8QrSxrUZNZebkhexg@mail.gmail.com> |
On Wed, Nov 29, 2017 at 4:23 PM, Michael Powell <[email protected]> wrote: > On Wed, Nov 29, 2017 at 4:17 PM, Michael Powell <[email protected]> wrote: >> On Wed, Nov 29, 2017 at 4:09 PM, Michael Powell <[email protected]> wrote: >>> On Wed, Nov 29, 2017 at 11:46 AM, Seth <[email protected]> wrote: >>>> On 29-11-17 17:28, Michael Powell wrote: >>>>> I'm trying to pull together a Coliru (or similar) web compiler >>>>> demonstrating the grammar's inability to properly parse an IPv4 >>>>> address, however, that's not cooperating either. >>>> >>>> Try wandbox. Or just send the code because it should be small. Sorry if >>>> I didn't understand the issue. Code talks :) >>> >>> It is difficult to explain, I agree. >>> >>> Here is a starting example: >>> >>> https://wandbox.org/permlink/wktfnv3HRCMaE5Y6 >>> >>> Initially the grammar is parsing as expected with this use case, but I >>> half expected that given what I know about Spirit Qi behavior to date. >>> >>> I will try adding a couple of illustrative use cases. >> >> Here's the same, with a couple of additional use cases. The last use >> case you can start to see some issues with the parser not parsing. >> Success is claimed, but the attributes are obviously incorrect. >> >> https://wandbox.org/permlink/ItjQUfBiR109Zwpe > > And along similar lines: > > https://wandbox.org/permlink/WwICv2QIoDvFeOUT Most of the octet rule seems to be fine. It's just the "2[0-4]\d" and "25\d" phrases that are causing problems. https://wandbox.org/permlink/04tVHUZZN8j3PfAB But I can't fathom what. Spirit Qi -wise, I think it's fine, but I could be missing something, and obviously the matched attributes are telling their own story. >>> Thanks! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot