<br><br><div class="gmail_quote">On Sat, Dec 29, 2012 at 7:57 AM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Sat, Dec 29, 2012 at 4:14 AM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>On Sat, Dec 29, 2012 at 7:07 AM, Charles R Harris<br>
<<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I propose a challenge: express the dtype grammar in EBNF. That's all.<br>
<br>
</div></div>Not sure I understand. Do you mean just the little string-parsing DSL<br>
for specifying dtypes ("i4,datetime64[ms]"), or is there some way to<br>
write EBNF for describing arbitrary nested Python structures?<br>
<br></blockquote></div><div><br>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.<br><br></div></div></blockquote>
<div><br>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.<br><br>Chuck<br></div><br></div>