iXML Community Group Test Suite
23 Oct 2023 (22 Nov 2023)
Top-level catalog for tests in the iXML Community Group Test Suite.
Tests have been contributed from several sources, but the core of the test collection are the tests contributed by Steven Pemberton in December 2021.
Tests producing parse trees
22 Nov 2022
Tests provided by Steven Pemberton in December 2021, with corrections of 21 December. Reorganized by Norm Tovey-Walsh, February 2022.
whitespace-and-delimiters-inline
Created 30 May 2022 by MSM
Invisible XML Grammar
S
={}a, b, c, d.
a
= 'Don''t worry'
| 'Keep ''calm'''.
b
={}[';,']?.
d = 'be ''happy''.'
|{}; 'and carry on.'.{}c=#000000000000020.
Test case: Grammar test
Repository URI: …/tests/correct/test-catalog.xml
Expected result
<ixml>
<rule name="S">
<comment/>
<alt>
<nonterminal name="a"/>
<nonterminal name="b"/>
<nonterminal name="c"/>
<nonterminal name="d"/>
</alt>
</rule>
<rule name="a">
<alt>
<literal string="Don't worry"/>
</alt>
<alt>
<literal string="Keep 'calm'"/>
</alt>
</rule>
<rule name="b">
<comment/>
<alt>
<option>
<inclusion>
<member string=";,"/>
</inclusion>
</option>
</alt>
</rule>
<rule name="d">
<alt>
<literal string="be 'happy'."/>
</alt>
<comment/>
<alt/>
<alt>
<literal string="and carry on."/>
</alt>
</rule>
<comment/>
<rule name="c">
<alt>
<literal hex="000000000000020"/>
</alt>
</rule>
</ixml>