Re: [Numpy-discussion] A small challenge

2012-12-29 Thread Charles R Harris
On Sat, Dec 29, 2012 at 7:57 AM, Charles R Harris wrote: > > > On Sat, Dec 29, 2012 at 4:14 AM, Nathaniel Smith wrote: > >> On Sat, Dec 29, 2012 at 7:07 AM, Charles R Harris >> wrote: >> > Hi All, >> > >> > I propose a challenge: express the dtype grammar in EBNF. That's all. >> >> Not sure I u

Re: [Numpy-discussion] A small challenge

2012-12-29 Thread Charles R Harris
On Sat, Dec 29, 2012 at 4:14 AM, Nathaniel Smith wrote: > On Sat, Dec 29, 2012 at 7:07 AM, Charles R Harris > wrote: > > Hi All, > > > > I propose a challenge: express the dtype grammar in EBNF. That's all. > > Not sure I understand. Do you mean just the little string-parsing DSL > for specifyin

Re: [Numpy-discussion] A small challenge

2012-12-29 Thread Nathaniel Smith
On Sat, Dec 29, 2012 at 7:07 AM, Charles R Harris wrote: > Hi All, > > I propose a challenge: express the dtype grammar in EBNF. That's all. Not sure I understand. Do you mean just the little string-parsing DSL for specifying dtypes ("i4,datetime64[ms]"), or is there some way to write EBNF for de