Re: Trying to sort out AST vs grammar mapped attributes
Joel de Guzman <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 21/12/2017 6:33 AM, Michael Powell wrote: >>>> >>>> I've got a parser/AST composed something like this: >>>> >>>> https://wandbox.org/permlink/P4227jXxu9DvQThF >>> >>> I sorted it out. It seems to be a matter of having the appropriate >>> intermediate structs/attributed-rules to capture the octets, >>> addresses, etc. >>> >>> https://wandbox.org/permlink/HEz4qn3XQLmpWUAx >>> >>> Now just a matter of rinsing and repeating for additional IPv4 mapped >>> alternatives. >> >> The parser is failing. The IPv4 mapped address bytes appear to be >> parsed correctly, but the IPv6 base address does not. >> >> https://wandbox.org/permlink/Mpi0dhIqe1kW6N34 >> >> Thoughts? > > Ah, I'm starting to see. Love attributes! > Interesting to see you solve and answer your own questions ;-) Regards, -- Joel de Guzman http://www.ciere.com http://boost-spirit.com http://www.cycfi.com/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot