From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH 1/2] Add character literal parsing in bytestrings Date: Wed, 27 Jul 2011 11:49:50 +1000 Message-ID: <20110727014950.GF2582@yookeroo.fritz.box> References: <1308871239-32683-1-git-send-email-robotboy@chromium.org> <1308871239-32683-2-git-send-email-robotboy@chromium.org> <20110720134006.GJ6399@yookeroo.fritz.box> <20110721051903.GO6399@yookeroo.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Jon Loeliger Cc: Anton Staaf , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, Jul 21, 2011 at 07:41:57AM -0500, Jon Loeliger wrote: > > > > Well, to be honest I'd love to have this syntax several years ago :). > > > > [...] > > > > Ok, here's what I suggest. For now, can you create a patch which > > recognizes the character construct syntax in the lexer (including > > escapes), and allows its use in cell context. That won't actually do > > what you want, but it gets a fair chunk of the code in a testable, > > upstreamable form without making syntax changes I'm uncomfortable > > with. > > > > While we're getting that merged we can debate which/how to proceed > > with either variable size cell syntax or allowing the character > > literals in bytestring context. > > Is it worth investigating any of the work I did down this line > several years ago? It's all still in the "test" branch if so. Well, it might be worth re-examining that in any case, but as far as I can recall or tell from a quick look at the testing branch, everything in there is more or less orthogonal to anything suggested in this thread. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson