Re: IPv6 address parsing

Michael Powell <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <CAMEoF_E4XY_b81qAQf4LSVjxCUqhienDXtHxEtAktk9kjVoCkw@mail.gmail.com>
On Sun, Dec 17, 2017 at 10:42 AM, Michael Powell <[email protected]> wrote:
> On Sun, Dec 17, 2017 at 6:00 AM, Seth <[email protected]> wrote:
>> On 16-12-17 19:08, Michael Powell wrote:
>>> I removed the repeats, and I think I've isolated an issue that nested
>>> optional operators do not work. i.e. -(-(-(...) ...) ...) >> ...
>> They work, alright. Just not magical: they do what you write/they can.
>
> What I wrote for them to do, they are not doing. Do I need to
> copy/paste that whole exercise over again?
>
> i.e. repeat(1, 4)[hex] SHOULD reject "abcd1234" but it is not.
>
> Similarly, nested optionals are not working, either.

There is definitely a difference between 1) repeat(1, 4)[hex] and 2)
raw[uint_parser<uint16_t, 16, 1, 4>()]. (1) appears to be too greedy.
Whereas (2) appears to be correct.

After that I contend with test case driver issues, but those are
domain specific, beyond the scope of Boost.Spirit, per se.

> Kindly post to the group and do not clip again. Thank you.
>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Spirit-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/spirit-general

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.