[Numpy-discussion] A small challenge

Charles R Harris charlesr.harris@gmail....
Sat Dec 29 11:37:21 CST 2012

On Sat, Dec 29, 2012 at 7:57 AM, Charles R Harris <charlesr.harris@gmail.com
> wrote:

> On Sat, Dec 29, 2012 at 4:14 AM, Nathaniel Smith <njs@pobox.com> wrote:
>> On Sat, Dec 29, 2012 at 7:07 AM, Charles R Harris
>> <charlesr.harris@gmail.com> 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 describing arbitrary nested Python structures?
> Heh, pinning that down is part of the problem. I think a good start is the
> string parsing, but dtypes can also be constructed using python tuples,
> lists and types.
The idea is to see if the dtype constructor can be regarded as a parser,
and if so, how to describe the grammar it parses.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20121229/74a2bc1a/attachment.html 

More information about the NumPy-Discussion mailing list