From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH v3 3/3] dtc: Support character literals in bytestrings Date: Fri, 9 Sep 2011 11:15:10 +1000 Message-ID: <20110909011510.GA21002@yookeroo.fritz.box> References: <1315517957-3546-1-git-send-email-robotboy@chromium.org> <1315517957-3546-4-git-send-email-robotboy@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1315517957-3546-4-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> 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: Anton Staaf Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, Sep 08, 2011 at 02:39:17PM -0700, Anton Staaf wrote: > With this patch the following property assignment: > > property = ['a' 2b '\r']; > > is equivalent to: > > property = [61 2b 0d]; [snip] > +{CHAR_LITERAL} { You should just be able to make the existing rule a <*> one, rather than having a separate rule for BYTESTRING context. -- 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