Re: [xml-dev] Auto-convert an XML-encoding of BNF grammars into XSD?
From: Mukul Gandhi <gandhi.mukul@gmail.com>
To: "Costello, Roger L." <costello@mitre.org>
Date: Sat, 10 Dec 2016 11:45:36 +0530
I think, its useful to encode in XML BNF grammars. This way we can apply transformations easily to the grammars prescribed by the text (the compilers dragon book), like elimination of left recursion or left factoring the grammar, which then make the grammar suitable for top-down parsing.
This although, doesn't answer your specific question.
with best regards,
Mukul gandhi
On 28 November 2016 at 22:20, Costello, Roger L. <costello@mitre.org> wrote:
Hi Folks,
Have you devised an approach for encoding in XML any BNF grammar?
If yes, have you written an XSLT program that can convert any XML-encoded BNF grammar into XSD?