Re: [PATCH v3 3/3] dtc: Support character literals in bytestrings

2011-09-09 Thread Anton Staaf
On Fri, Sep 9, 2011 at 12:01 AM, David Gibson wrote: > On Thu, Sep 08, 2011 at 11:37:21PM -0700, Anton Staaf wrote: >> On Thu, Sep 8, 2011 at 6:15 PM, David Gibson >> wrote: >> > On Thu, Sep 08, 2011 at 02:39:17PM -0700, Anton Staaf wrote: >> >> With this patch the following property assignment:

Re: [PATCH v3 3/3] dtc: Support character literals in bytestrings

2011-09-09 Thread David Gibson
On Thu, Sep 08, 2011 at 11:37:21PM -0700, Anton Staaf wrote: > On Thu, Sep 8, 2011 at 6:15 PM, David Gibson > wrote: > > 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 equival

Re: [PATCH v3 3/3] dtc: Support character literals in bytestrings

2011-09-08 Thread Anton Staaf
On Thu, Sep 8, 2011 at 6:15 PM, David Gibson wrote: > 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} { > >

Re: [PATCH v3 3/3] dtc: Support character literals in bytestrings

2011-09-08 Thread David Gibson
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, rathe

[PATCH v3 3/3] dtc: Support character literals in bytestrings

2011-09-08 Thread Anton Staaf
With this patch the following property assignment: property = ['a' 2b '\r']; is equivalent to: property = [61 2b 0d]; Signed-off-by: Anton Staaf Cc: Jon Loeliger Cc: David Gibson Cc: Grant Likely --- Documentation/dts-format.txt |5 +++-- dtc-lexer.l |7 +++