ebnf

http://dev.w3.org/cvsweb/2000/10/swap/grammar/ebnf2turtle.py
is an appropriate EBNF grammar checker (ignore the ttl output)
Usage
python ebnf2turtle.py XXX.ebnf ab http://dpawson.co.uk en >syn.ttl
where
ab is a namespace prefix (unused except in output)
http://dpawson.co.uk is unused except in output
en is the xml:lang value unused except in output.
syn.ttl is the created Turtle file.

Mod the .py file if you see fit to remove these.


I.e. to validate they are irrelevant.

Syntax is checked according to XML 1.1 syntax definition
http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-notation

Only caution.
Define terms before you use them.
(Yes, I was caught).

HTH


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

Received on Thursday, 29 November 2012 10:46:50 UTC