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.

Misc tests 3

28 Jun 2022

Grammars 41-60.

Tests compiled manually in 2018 and 2019, re-packaged and extended (supplying test cases where needed) in 2022.

Note that some tests have alternate results for processors operating in non-standard modes, in particular modes in which they tolerate multiple definitions and undefined nonterminals or in which they do not tolerate non-productive nonterminals or unreachable nonterminals.

For a description of the form in which alternate results are recorded, see tests/misc-grammar/test-catalog.xml.

sample.grammar.43

Another grammar from Grune and Jacobs, describing possible elevator motion (in a building with infinitely many floors above and below) from departure from a floor until return to that floor.

Created 08 Feb 2022 by cmsmcq

Invisible XML Grammar

{ Sample grammar from Dick Grune and Ceriel J. H. Jacobs,
    Parsing techniques: A practical guide (New York: Ellis Horwood, 1990;
    Second edition New York:  Springer, 2008), pp. 33 (1e) and 26 (2e).

    Rules for ws added for convenience; Grune and Jacobs assume the lexer
    eats whitespace. Peculiarity:  whitespace is allowed but not required,
    and it is allowed after any keyword but not at the beginning of the input.

    }
    { Revisions:
    2018-08-10 : CMSMcQ : correct syntax error found by DCG parser
    2018-08-10 : CMSMcQ : add pointer to 2e
    2018-08-09 : CMSMcQ : made first transcription; needs checking.
    }

    ZeroMotion: "up", S, ZeroMotion, "down", S, ZeroMotion;
    "down", S, ZeroMotion, "up", S, ZeroMotion;
    { nil }.

    -S: -[" "; #09; #A; #D]*.

Test case: g43.c10

Repository URI: …/tests/misc/misc-041-060-catalog.xml

Created 16 Jun 2022 by cmsmcq

Input string (17 characters)

down down up down

Expected result

The input does not match the grammar.