Formal Grammar?

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

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

> * Eric Astor <eastor1 at> [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]:

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.



>> 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 // <>

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at


Michel Fortin
michel.fortin at

More information about the Markdown-Discuss mailing list