- From: John Lumley <john@saxonica.com>
- Date: Thu, 28 Jul 2022 09:23:25 +0100
- To: BR Chrisman <brchrisman@gmail.com>, public-ixml@w3.org
- Message-ID: <d0c53b70-91f0-eb8d-a5ef-d10df2864cf8@saxonica.com>
On 27/07/2022 17:52, BR Chrisman wrote: > Is there an XML format for the ixml referenced here? As an alternative to using the iXML grammar to parse it, you could usehttps://johnlumley.github.io/jwiXML.xhtml Load the grammar into the grammar panel and press *GO!* - you should get a display of the parsed grammar - just press '*select grammar*' to highlight it and then copy the selection. It gives, as Norm's does: <ixml> <rule name="numbers"> <alt> <nonterminal mark="@" name="source"/> <repeat0> <nonterminal name="n"/> <sep> <literal tmark="-" string=", "/> </sep> </repeat0> </alt> </rule> <rule name="source"> <alt> <insertion string="ixml"/> </alt> </rule> <rule name="n"> <alt> <nonterminal name="neg"/> </alt> <alt> <nonterminal name="pos"/> </alt> </rule> <rule mark="-" name="neg"> <alt> <literal tmark="-" string="("/> <insertion string="-"/> <repeat1> <nonterminal name="d"/> </repeat1> <literal tmark="-" string=")"/> </alt> </rule> <rule mark="-" name="pos"> <alt> <insertion string="+"/> <repeat1> <nonterminal name="d"/> </repeat1> </alt> </rule> <rule mark="-" name="d"> <alt> <inclusion> <member from="0" to="9"/> </inclusion> </alt> </rule> </ixml> You can experiment with various grammars.... -- *John Lumley* MA PhD CEng FIEE john@saxonica.com
Received on Thursday, 28 July 2022 08:23:43 UTC