Skip to content

Markdown parser

“.*” is a context-free grammar for Markdown

http://trevorjim.com/a-specification-for-markdown/

Here is interesting case. Markdown is very popular markup language - yet it doesn’t have formal grammar.

Instead it has example of parsing implementation or parsing specification.

Here we are 60 years after grammar and parsing research started and people can’t figure out how to write a general parser, instead of ad-hoc approach.

This would be an interesting challenge for general parser, like Earley or PwZ: Parsing with zippers.