From 7976b10bb108c1a52bed00e13bc2c85b02025807 Mon Sep 17 00:00:00 2001 From: grammarware Date: Sun, 11 Jul 2010 20:34:52 +0000 Subject: [PATCH] more test cases git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@815 ab42f6e0-554d-0410-b580-99e487e6eeb2 --- topics/metasyntax/bgf/tests/any.bgf | 9 +++++++++ topics/metasyntax/bgf/tests/choice-e-s.bgf | 16 ++++++++++++++++ topics/metasyntax/bgf/tests/choice-nt-t.bgf | 16 ++++++++++++++++ .../{labeled-production.bgf => label-nt.bgf} | 0 topics/metasyntax/bgf/tests/label-t.bgf | 10 ++++++++++ topics/metasyntax/bgf/tests/optional-nt.bgf | 13 +++++++++++++ topics/metasyntax/bgf/tests/optional-t.bgf | 13 +++++++++++++ topics/metasyntax/bgf/tests/plus-nt.bgf | 13 +++++++++++++ topics/metasyntax/bgf/tests/plus-t.bgf | 13 +++++++++++++ topics/metasyntax/bgf/tests/selectable-nt.bgf | 14 ++++++++++++++ topics/metasyntax/bgf/tests/selectable-t.bgf | 14 ++++++++++++++ topics/metasyntax/bgf/tests/sequence-e-s.bgf | 16 ++++++++++++++++ topics/metasyntax/bgf/tests/sequence-t-nt.bgf | 16 ++++++++++++++++ topics/metasyntax/bgf/tests/star-nt.bgf | 13 +++++++++++++ topics/metasyntax/bgf/tests/star-t.bgf | 13 +++++++++++++ topics/metasyntax/bgf/tests/terminal.bgf | 9 +++++++++ 16 files changed, 198 insertions(+) create mode 100644 topics/metasyntax/bgf/tests/any.bgf create mode 100644 topics/metasyntax/bgf/tests/choice-e-s.bgf create mode 100644 topics/metasyntax/bgf/tests/choice-nt-t.bgf rename topics/metasyntax/bgf/tests/{labeled-production.bgf => label-nt.bgf} (100%) create mode 100644 topics/metasyntax/bgf/tests/label-t.bgf create mode 100644 topics/metasyntax/bgf/tests/optional-nt.bgf create mode 100644 topics/metasyntax/bgf/tests/optional-t.bgf create mode 100644 topics/metasyntax/bgf/tests/plus-nt.bgf create mode 100644 topics/metasyntax/bgf/tests/plus-t.bgf create mode 100644 topics/metasyntax/bgf/tests/selectable-nt.bgf create mode 100644 topics/metasyntax/bgf/tests/selectable-t.bgf create mode 100644 topics/metasyntax/bgf/tests/sequence-e-s.bgf create mode 100644 topics/metasyntax/bgf/tests/sequence-t-nt.bgf create mode 100644 topics/metasyntax/bgf/tests/star-nt.bgf create mode 100644 topics/metasyntax/bgf/tests/star-t.bgf create mode 100644 topics/metasyntax/bgf/tests/terminal.bgf diff --git a/topics/metasyntax/bgf/tests/any.bgf b/topics/metasyntax/bgf/tests/any.bgf new file mode 100644 index 00000000..5c527449 --- /dev/null +++ b/topics/metasyntax/bgf/tests/any.bgf @@ -0,0 +1,9 @@ + + + + foo + + + + + diff --git a/topics/metasyntax/bgf/tests/choice-e-s.bgf b/topics/metasyntax/bgf/tests/choice-e-s.bgf new file mode 100644 index 00000000..ff9b38fe --- /dev/null +++ b/topics/metasyntax/bgf/tests/choice-e-s.bgf @@ -0,0 +1,16 @@ + + + + foo + + + + + + + string + + + + + diff --git a/topics/metasyntax/bgf/tests/choice-nt-t.bgf b/topics/metasyntax/bgf/tests/choice-nt-t.bgf new file mode 100644 index 00000000..6738d364 --- /dev/null +++ b/topics/metasyntax/bgf/tests/choice-nt-t.bgf @@ -0,0 +1,16 @@ + + + + foo + + + + bar + + + wez + + + + + diff --git a/topics/metasyntax/bgf/tests/labeled-production.bgf b/topics/metasyntax/bgf/tests/label-nt.bgf similarity index 100% rename from topics/metasyntax/bgf/tests/labeled-production.bgf rename to topics/metasyntax/bgf/tests/label-nt.bgf diff --git a/topics/metasyntax/bgf/tests/label-t.bgf b/topics/metasyntax/bgf/tests/label-t.bgf new file mode 100644 index 00000000..ba52eca0 --- /dev/null +++ b/topics/metasyntax/bgf/tests/label-t.bgf @@ -0,0 +1,10 @@ + + + + + bar + + wez + + + diff --git a/topics/metasyntax/bgf/tests/optional-nt.bgf b/topics/metasyntax/bgf/tests/optional-nt.bgf new file mode 100644 index 00000000..f037fc72 --- /dev/null +++ b/topics/metasyntax/bgf/tests/optional-nt.bgf @@ -0,0 +1,13 @@ + + + + foo + + + + bar + + + + + diff --git a/topics/metasyntax/bgf/tests/optional-t.bgf b/topics/metasyntax/bgf/tests/optional-t.bgf new file mode 100644 index 00000000..9b1ac634 --- /dev/null +++ b/topics/metasyntax/bgf/tests/optional-t.bgf @@ -0,0 +1,13 @@ + + + + foo + + + + bar + + + + + diff --git a/topics/metasyntax/bgf/tests/plus-nt.bgf b/topics/metasyntax/bgf/tests/plus-nt.bgf new file mode 100644 index 00000000..28a7e1c8 --- /dev/null +++ b/topics/metasyntax/bgf/tests/plus-nt.bgf @@ -0,0 +1,13 @@ + + + + foo + + + + bar + + + + + diff --git a/topics/metasyntax/bgf/tests/plus-t.bgf b/topics/metasyntax/bgf/tests/plus-t.bgf new file mode 100644 index 00000000..4a763ead --- /dev/null +++ b/topics/metasyntax/bgf/tests/plus-t.bgf @@ -0,0 +1,13 @@ + + + + foo + + + + bar + + + + + diff --git a/topics/metasyntax/bgf/tests/selectable-nt.bgf b/topics/metasyntax/bgf/tests/selectable-nt.bgf new file mode 100644 index 00000000..87ce844c --- /dev/null +++ b/topics/metasyntax/bgf/tests/selectable-nt.bgf @@ -0,0 +1,14 @@ + + + + foo + + + bar + + wez + + + + + diff --git a/topics/metasyntax/bgf/tests/selectable-t.bgf b/topics/metasyntax/bgf/tests/selectable-t.bgf new file mode 100644 index 00000000..7e66d66c --- /dev/null +++ b/topics/metasyntax/bgf/tests/selectable-t.bgf @@ -0,0 +1,14 @@ + + + + foo + + + bar + + wez + + + + + diff --git a/topics/metasyntax/bgf/tests/sequence-e-s.bgf b/topics/metasyntax/bgf/tests/sequence-e-s.bgf new file mode 100644 index 00000000..343ec674 --- /dev/null +++ b/topics/metasyntax/bgf/tests/sequence-e-s.bgf @@ -0,0 +1,16 @@ + + + + foo + + + + int + + + + + + + + diff --git a/topics/metasyntax/bgf/tests/sequence-t-nt.bgf b/topics/metasyntax/bgf/tests/sequence-t-nt.bgf new file mode 100644 index 00000000..a921a9b6 --- /dev/null +++ b/topics/metasyntax/bgf/tests/sequence-t-nt.bgf @@ -0,0 +1,16 @@ + + + + foo + + + + bar + + + wez + + + + + diff --git a/topics/metasyntax/bgf/tests/star-nt.bgf b/topics/metasyntax/bgf/tests/star-nt.bgf new file mode 100644 index 00000000..09fae2a6 --- /dev/null +++ b/topics/metasyntax/bgf/tests/star-nt.bgf @@ -0,0 +1,13 @@ + + + + foo + + + + bar + + + + + diff --git a/topics/metasyntax/bgf/tests/star-t.bgf b/topics/metasyntax/bgf/tests/star-t.bgf new file mode 100644 index 00000000..d6a9cd04 --- /dev/null +++ b/topics/metasyntax/bgf/tests/star-t.bgf @@ -0,0 +1,13 @@ + + + + foo + + + + bar + + + + + diff --git a/topics/metasyntax/bgf/tests/terminal.bgf b/topics/metasyntax/bgf/tests/terminal.bgf new file mode 100644 index 00000000..efd2cb43 --- /dev/null +++ b/topics/metasyntax/bgf/tests/terminal.bgf @@ -0,0 +1,9 @@ + + + + foo + + x + + +