Formal Grammar?

Michel Fortin michel.fortin at michelf.com
Sun Jul 9 20:40:40 EDT 2006


Le 9 juil. 2006 à 3:01, A. Pagaltzis a écrit :


> * Eric Astor <eastor1 at swarthmore.edu> [2006-07-09 02:00]:

>> One question, though – does anyone know of a formal grammar for

>> the Markdown syntax?

>

> If anyone’s written one, it’s not public knowledge.

>

>> (probably some BNF variant, in particular bison/flex grammar).

>

> If you need to write it in C, be sure not to miss D. Richard

> Hipp’s [lemon][1] parser generator.

>

> [1]: http://www.hwaci.com/sw/lemon/


Not sure if anyone seen that, but [Eric Anderton's compile-time
regular expression parser][2] made of D templates looks very
promising, but is possibly lacking some things needed for a strait
port of Markdown. Maybe there are ways to compensate for that.

[2]: http://www.dsource.org/projects/ddl/browser/trunk/meta/regexp2.d


>

>> Would anyone be interested in contributing to this effort?

>

> I can’t make any promises, but I’ve always wanted an actual

> parser rather than all the search&replace-train implementations

> that we currently have, so by the looks of it I was going to have

> to write one eventually anyway.

>

> Regards,

> --

> Aristotle Pagaltzis // <http://plasmasturm.org/>

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/




More information about the Markdown-Discuss mailing list