Re: EBNF was Re: [markdown-testsuite] Add End Of Line (EOL) definition/tests. (#1)

On 28 November 2012 18:41, David J. Weller-Fahy
<dave-lists-public-markdown@weller-fahy.com> wrote:

> See wiki EBNF page, added section for paragraph-only definition:

OK.



>> http://www.w3.org/TR/xml/#Notations  XML 1.1 look at char syntax
>
> Thanks for the reference, but every example I see where square brackets
> are used have Unicode points, not symbols.  What am I missing?

Sorry, I've asked. I'll let you know.

Currently added

document ::= PARAGRAPH
to your syntax... and am getting errors

 raise ValueError, "unrecognized token: %s" % s
ValueError: unrecognized token: ::= ([^#x0020] SP?)BLANKLINE ::= (WS*
EOL)PARAGRAPH ::= (PARAPRE ( TEXT | INLINE )+ EOL BLANKLINE)


I'll chase it down. This is Dan Connellys Python parser, to turtle.
Also checks syntax.

regards




-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Wednesday, 28 November 2012 18:47:21 UTC