Talk:Markup spec/BNF

Nonsense redirect
I tried the "nonsense redirect" example (here), and it seems that it does not work anymore. /Skagedal 13:32, 10 December 2008 (UTC)

Why shouldn't be possible to describe the italics/bold/apostrophe parsing with BNF? Those elements are indeed being translated into HTML, and HTML is a context free grammar as far as I know. BNF can indeed describe context free grammars.

Let's say, in EBNF:

emphasis = "" text "" bold = "" text ""

text = character* | emphasis | bold | character *

Of course making many simplifications, but as far as I know it should be possible.

--Kanor 17:55, 24 November 2009 (UTC)