Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-26 Thread David Gibson
On Fri, Oct 26, 2007 at 08:07:49AM -0500, Jon Loeliger wrote: > So, like, the other day David Gibson mumbled: > > > > Ah... I think I see the source of our misunderstanding. Sorry if I > > was unclear. I'm not saying that the version token would be > > invisible to the parser, just that it would

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-26 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > > Ah... I think I see the source of our misunderstanding. Sorry if I > was unclear. I'm not saying that the version token would be > invisible to the parser, just that it would be recognized by the lexer > first. Ah! Right. OK, I see what you are

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-25 Thread David Gibson
On Thu, Oct 25, 2007 at 01:24:57PM -0500, Jon Loeliger wrote: > So, like, the other day David Gibson mumbled: > > > Use of "d#', "o#", "h#" and "b#" are gone in version 1. > > > > Also good. We might want to keep b#, since there's no C way of doing > > binary literals, but in that case I'd sugges

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-25 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > > Use of "d#', "o#", "h#" and "b#" are gone in version 1. > > Also good. We might want to keep b#, since there's no C way of doing > binary literals, but in that case I'd suggest recognizing it at the > lexical level, not the grammar level as we do

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-22 Thread Segher Boessenkool
Property names have been limited to start with characters from the set [a-zA-Z,._#?]. That is, the digits and the expression symbols have been removed. >>> >>> This cannot work; many property names start with a digit, >>> for example. >> >> Are any of those property names in use in

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-22 Thread David Gibson
On Mon, Oct 22, 2007 at 07:36:57AM -0500, Jon Loeliger wrote: > So, like, the other day Segher Boessenkool mumbled: > > > Property names have been limited to start with > > > characters from the set [a-zA-Z,._#?]. That is, the > > > digits and the expression symbols have been removed. > > > > Thi

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-22 Thread Jon Loeliger
So, like, the other day Segher Boessenkool mumbled: > > Property names have been limited to start with > > characters from the set [a-zA-Z,._#?]. That is, the > > digits and the expression symbols have been removed. > > This cannot work; many property names start with a digit, > for example. Are

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-21 Thread David Gibson
On Sun, Oct 21, 2007 at 07:30:45AM +0200, Segher Boessenkool wrote: > > Property names have been limited to start with > > characters from the set [a-zA-Z,._#?]. That is, the > > digits and the expression symbols have been removed. > > This cannot work; many property names start with a digit, > f

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-21 Thread David Gibson
On Sun, Oct 21, 2007 at 07:32:33AM +0200, Segher Boessenkool wrote: > >> Use of "d#', "o#", "h#" and "b#" are gone in version 1. > > > > Also good. We might want to keep b#, since there's no C way of doing > > binary literals, > > GCC supports "0b...", and it is proposed new ISO C syntax, too. A

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-20 Thread Segher Boessenkool
>> Use of "d#', "o#", "h#" and "b#" are gone in version 1. > > Also good. We might want to keep b#, since there's no C way of doing > binary literals, GCC supports "0b...", and it is proposed new ISO C syntax, too. Segher ___ Linuxppc-dev mailing lis

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-20 Thread Segher Boessenkool
> Property names have been limited to start with > characters from the set [a-zA-Z,._#?]. That is, the > digits and the expression symbols have been removed. This cannot work; many property names start with a digit, for example. Segher ___ Linuxppc-d

Re: [PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-20 Thread David Gibson
On Fri, Oct 19, 2007 at 12:43:30PM -0500, Jon Loeliger wrote: > > Add support for the "/dts-version/ ;" statment. > Make legacy DTS files version 0 whether explicitly stated > or implied by a lack of /dts-version/ statement. > > Begin supporting a new /dts-version/ 1 that changes the > format of

[PATCH 4/4] DTC: Begin the path to sane literals and expressions.

2007-10-19 Thread Jon Loeliger
Add support for the "/dts-version/ ;" statment. Make legacy DTS files version 0 whether explicitly stated or implied by a lack of /dts-version/ statement. Begin supporting a new /dts-version/ 1 that changes the format of the literals in a DTS source file. In the new format, hex constants are pre