From: Jakub Narębski Date: Sun, 25 Sep 2016 22:38:42 GMT Subject: Re: [PATCH v2 2/2] mailinfo: unescape quoted-pair in header fields Message-ID: <0b6cbc53-e058-f064-59e8-b73203f3e400@gmail.com> In-Reply-To: <20160925201713.GA6937@ikke.info> W dniu 25.09.2016 o 22:17, Kevin Daudt pisze: > On Fri, Sep 23, 2016 at 12:15:41AM -0400, Jeff King wrote: >> Oops, yes. It is beginning to make the "strbuf_swap()" look less >> convoluted. :) >> > > I've switched to strbuf_swap now, much better. I've implemented > recursive parsing without looking at what you provided, just to see what > I'd came up with. Though I've not implemented a recursive descent > parser, but it might suffice. I think you can implement a parser handling proper nesting of parens without recursion. Though... what is the definition in the RFC? -- Jakub Narębski