From 43cc5a07de7514d787ecadb7993c9d7f267ebf9c Mon Sep 17 00:00:00 2001 From: grammarware Date: Thu, 9 Dec 2010 01:07:43 +0000 Subject: [PATCH] enforcing naming conventions further; more consistent testing git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@893 ab42f6e0-554d-0410-b580-99e487e6eeb2 --- topics/extraction/xsd/Makefile | 5 + topics/extraction/xsd/testperform | 6 + topics/extraction/xsd/tests/bgf.baseline | 240 + topics/extraction/xsd/tests/btf.baseline | 409 ++ topics/extraction/xsd/tests/fl.baseline | 225 + topics/extraction/xsd/tests/lcf.baseline | 525 ++ topics/extraction/xsd/tests/ldf.baseline | 2160 +++++++++ topics/extraction/xsd/tests/list | 7 + topics/extraction/xsd/tests/xbgf.baseline | 1362 ++++++ topics/extraction/xsd/tests/xldf.baseline | 4245 +++++++++++++++++ topics/extraction/xsd2bgf/Makefile | 34 - topics/extraction/xsd2bgf/tests/bgf.baseline | 11 - topics/extraction/xsd2bgf/tests/fl.baseline | 13 - topics/extraction/xsd2bgf/tests/xbgf.baseline | 42 - 14 files changed, 9184 insertions(+), 100 deletions(-) create mode 100644 topics/extraction/xsd/Makefile create mode 100755 topics/extraction/xsd/testperform create mode 100644 topics/extraction/xsd/tests/bgf.baseline create mode 100644 topics/extraction/xsd/tests/btf.baseline create mode 100644 topics/extraction/xsd/tests/fl.baseline create mode 100644 topics/extraction/xsd/tests/lcf.baseline create mode 100644 topics/extraction/xsd/tests/ldf.baseline create mode 100644 topics/extraction/xsd/tests/list create mode 100644 topics/extraction/xsd/tests/xbgf.baseline create mode 100644 topics/extraction/xsd/tests/xldf.baseline delete mode 100644 topics/extraction/xsd2bgf/Makefile delete mode 100644 topics/extraction/xsd2bgf/tests/bgf.baseline delete mode 100644 topics/extraction/xsd2bgf/tests/fl.baseline delete mode 100644 topics/extraction/xsd2bgf/tests/xbgf.baseline diff --git a/topics/extraction/xsd/Makefile b/topics/extraction/xsd/Makefile new file mode 100644 index 00000000..eb6d49ee --- /dev/null +++ b/topics/extraction/xsd/Makefile @@ -0,0 +1,5 @@ +test: + cat tests/list | xargs -n1 ./testperform + +clean: + rm -f *~ *.bgf diff --git a/topics/extraction/xsd/testperform b/topics/extraction/xsd/testperform new file mode 100755 index 00000000..a28f0c41 --- /dev/null +++ b/topics/extraction/xsd/testperform @@ -0,0 +1,6 @@ +#!/bin/sh + +echo [Test Case] $1 +../../../shared/tools/xsd2bgf $1 `basename $1 .xsd`.bgf || exit -1 +../../../shared/tools/validate bgf `basename $1 .xsd`.bgf || exit -1 +../../../shared/tools/gdt `basename $1 .xsd`.bgf tests/`basename $1 .xsd`.baseline || exit -1 \ No newline at end of file diff --git a/topics/extraction/xsd/tests/bgf.baseline b/topics/extraction/xsd/tests/bgf.baseline new file mode 100644 index 00000000..3751a024 --- /dev/null +++ b/topics/extraction/xsd/tests/bgf.baseline @@ -0,0 +1,240 @@ + + + grammar + production + expression + + grammar + + + + + + + root + + nonterminal + + + + + + + + + production + + + + + + + + production + + + + + + + label + + label + + + + + + + + nonterminal + + nonterminal + + + + + expression + + + + + + expression + + + + + epsilon + + + + + + + + empty + + + + + + + + value + + value + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + nonterminal + + + + + + selectable + + + + + selector + + selector + + + + + expression + + + + + + + + sequence + + + + expression + + + + + + + + marked + + expression + + + + + + choice + + + + expression + + + + + + + + optional + + expression + + + + + + plus + + expression + + + + + + star + + expression + + + + + + + + value + + + + + int + + + + + + + + string + + + + + + + + + + label + + string + + + + nonterminal + + string + + + + selector + + string + + + + terminal + + string + + + diff --git a/topics/extraction/xsd/tests/btf.baseline b/topics/extraction/xsd/tests/btf.baseline new file mode 100644 index 00000000..56f160a4 --- /dev/null +++ b/topics/extraction/xsd/tests/btf.baseline @@ -0,0 +1,409 @@ + + + root + tree + grammar + production + expression + + root + + + + grammar + + + tree + + + + + + tree + + + + + epsilon + + + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + + + production + + + tree + + + + + + + + selectable + + + + + selector + + selector + + + + + tree + + + + + + + + value + + + + + int + + int + + + + + + string + + string + + + + + + + + + + sequence + + + + tree + + + + + + + + choice + + + + expression + + + tree + + + + + + + + optional + + + + tree + + + + + + + + plus + + + + tree + + + + + + + + star + + + + tree + + + + + + + + + + grammar + + + + + + + root + + nonterminal + + + + + + + + + production + + + + + + + + production + + + + + + + label + + label + + + + + + + + nonterminal + + nonterminal + + + + + expression + + + + + + expression + + + + + epsilon + + + + + + + + empty + + + + + + + + value + + value + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + nonterminal + + + + + + selectable + + + + + selector + + selector + + + + + expression + + + + + + + + sequence + + + + expression + + + + + + + + marked + + expression + + + + + + choice + + + + expression + + + + + + + + optional + + expression + + + + + + plus + + expression + + + + + + star + + expression + + + + + + + + value + + + + + int + + + + + + + + string + + + + + + + + + + label + + string + + + + nonterminal + + string + + + + selector + + string + + + + terminal + + string + + + diff --git a/topics/extraction/xsd/tests/fl.baseline b/topics/extraction/xsd/tests/fl.baseline new file mode 100644 index 00000000..a908293f --- /dev/null +++ b/topics/extraction/xsd/tests/fl.baseline @@ -0,0 +1,225 @@ + + + Program + Fragment + + Program + + + + + function + + Function + + + + + + + + Fragment + + Expr + + + + Function + + + + + name + + string + + + + + + + + arg + + string + + + + + + + + rhs + + Expr + + + + + + + + Expr + + + + Literal + + + Argument + + + Binary + + + IfThenElse + + + Apply + + + + + + Literal + + + info + + int + + + + + + Argument + + + name + + string + + + + + + Binary + + + + + ops + + Ops + + + + + + left + + Expr + + + + + + right + + Expr + + + + + + + + Ops + + + + + Equal + + + + + + + + Plus + + + + + + + + Minus + + + + + + + + + + IfThenElse + + + + + ifExpr + + Expr + + + + + + thenExpr + + Expr + + + + + + elseExpr + + Expr + + + + + + + + Apply + + + + + name + + string + + + + + + + + arg + + Expr + + + + + + + + + diff --git a/topics/extraction/xsd/tests/lcf.baseline b/topics/extraction/xsd/tests/lcf.baseline new file mode 100644 index 00000000..c8a6b48d --- /dev/null +++ b/topics/extraction/xsd/tests/lcf.baseline @@ -0,0 +1,525 @@ + + + configuration + + configuration + + + + definition + + + + + + definition + + + + + shortcut + + shortcut + + + + + + generator + + generator + + + + + + tool + + tool + + + + + + source + + source + + + + + + target + + target + + + + + + testset + + testset + + + + + + + + shortcut + + + + + name + + string + + + + + + expansion + + xstring + + + + + + + + generator + + + + + name + + string + + + + + + command + + xstring + + + + + + + + source + + + + + name + + string + + + + + + + + derived + + + + + from + + string + + + + + + using + + string + + + + + + + + + + + + grammar + + + + + extraction + + xstring + + + + + + + + parsing + + xstring + + + + + + + + + + evaluation + + xstring + + + + + + + + + + + + + + tree + + + + + extraction + + xstring + + + + + + + + evaluation + + xstring + + + + + + + + + + + + + + + + testing + + + + + set + + xstring + + + + + + + + + + + + + + target + + + + + name + + string + + + + + + + + branch + + + + + input + + string + + + + + + + + preparation + + phase + + + + + + + + + + nominal-matching + + phase + + + + + + + + + + normalizing + + phase + + + + + + + + + + structural-matching + + phase + + + + + + + + + + + + extension + + phase + + + + + + correction + + phase + + + + + + relaxation + + phase + + + + + + + + + + + + + + + + + + phase + + + + + + + perform + + string + + + + + + automated + + + + + method + + string + + + + + + result + + string + + + + + + + + + + + + + + testset + + + + + name + + string + + + + + + command + + xstring + + + + + + + + tool + + + + + name + + toolType + + + + + + grammar + + xstring + + + + + + + + tree + + xstring + + + + + + + + + + toolType + + + + + validation + + + + + + + + comparison + + + + + + + + transformation + + + + + + + + + + xstring + + + + + + + expand + + string + + + + + string + + + + + + + diff --git a/topics/extraction/xsd/tests/ldf.baseline b/topics/extraction/xsd/tests/ldf.baseline new file mode 100644 index 00000000..181d0bb2 --- /dev/null +++ b/topics/extraction/xsd/tests/ldf.baseline @@ -0,0 +1,2160 @@ + + + document + metainfo + composite-section + placeholder + simple-section + lexical-section + list-section + term + structured-section + normative-role + informative-role + anchor + figure + table + formula + keyword + code + link + grammar + production + expression + + document + + + + + metadata + + + + + + + body + + + + + ansi + + + + + + + + ecma + + + + + + + + ieee + + + + + + + + iso + + + + + + + + iso/iet + + + + + + + + itu + + + + + + + + iec + + + + + + + + ietf + + + + + + + + oasis + + + + + + + + omg + + + + + + + + wsa + + + + + + + + w3c + + + + + + + + + + + + + + + + number + + string + + + + + + + + + + author + + person + + + + + + + + topic + + string + + + + + + status + + + + + unknown + + + + + + + + draft + + + + + + + + candidate + + + + + + + + proposed + + + + + + + + approved + + + + + + + + revised + + + + + + + + obsolete + + + + + + + + withdrawn + + + + + + + + collection + + + + + + + + trial + + + + + + + + errata + + + + + + + + report + + + + + + + + + + + + + + version + + string + + + + + + edition + + string + + + + + + + + + + previous + + named-link + + + + + + + + date + + string + + + + + + + + + + + + part + + part-type + + + + + + + + + + named-link + + + + + title + + string + + + + + + + + + + version + + string + + + + + + edition + + string + + + + + + + + + + + + uri + + string + + + + + + + + + + part-type + + + + + metadata + + + + + + + id + + string + + + + + + + + role + + + + + front-matter + + + + + + + + core-part + + + + + + + + back-matter + + + + + + + + annex + + + + + + + + + + + + + + title + + string + + + + + + + + + + author + + person + + + + + + + + + + + + + + section + + section-type + + + + + + + + + + metainfo + + + + + + + id + + string + + + + + + + + + + title + + string + + + + + + + + + + author + + string + + + + + + + + + + person + + + + + name + + string + + + + + + + + affiliation + + string + + + + + + + + + + email + + string + + + + + + + + + + section-type + + + + + metadata + + + + + + + id + + string + + + + + + + + role + + + + + abstract + + + + + + + + conformance + + + + + + + + compatibility + + + + + + + + design-goals + + + + + + + + document-structure + + + + + + + + foreword + + + + + + + + references + + + + + + + + notation + + + + + + + + scope + + + + + + + + what-is-new + + + + + + + + index + + + + + + + + full-grammar + + + + + + + + list-of-tables + + + + + + + + list-of-authors + + + + + + + + list-of-contents + + + + + + + + list-of-references + + + + + + + + top-section + + + + + + + + lexical-section + + + + + + + + + + + + + + type + + + + + normative + + + + + + + + informative + + + + + + + + + + + + + + + + title + + string + + + + + + + + + + author + + person + + + + + + + + + + + + + + content + + + + content-content + + + + + + + + placeholder + + + + + + + + + + subsection + + subsection-type + + + + + + + + + + + + subsection-type + + + + + metadata + + + + + + + id + + string + + + + + + + + role + + + + + synopsis + + + + + + + + description + + + + + + + + syntax + + + + + + + + constraints + + + + + + + + relationship + + + + + + + + semantics + + + + + + + + default + + + + + + + + rationale + + + + + + + + example + + + + + + + + update + + + + + + + + subtopic + + + + + + + + section + + + + + + + + + + + + + + type + + + + + normative + + + + + + + + informative + + + + + + + + + + + + + + + + title + + string + + + + + + + + + + author + + person + + + + + + + + + + + + + + content + + + + content-content + + + + + + + + placeholder + + + + + + + + + + subsection + + subsection-type + + + + + + + + + + + + content-content + + + + + para + + mixed-type + + + + + + list + + list-type + + + + + production + + + + + + any-section + + + + placeholder + + + simple-section + + + lexical-section + + + structured-section + + + composite-section + + + list-section + + + + + + composite-section + + + + any-section + + + + + + placeholder + + + + + index + + + + + + + + full-grammar + + + + + + + + list-of-tables + + + + + + + + list-of-authors + + + + + + + + list-of-contents + + + + + + + + list-of-references + + + + + + + + + + simple-section + + + + metainfo + + + + content + + textual-content + + + + + + + + lexical-section + + + + + role + + lexical-section-role + + + + + metainfo + + + + content + + textual-content + + + + + + + + lexical-section-role + + + + + lexical-issue + + + + + + + + line-continuations + + + + + + + + literals + + + + + + + + preprocessor + + + + + + + + tokens + + + + + + + + whitespace + + + + + + + + + + list-section + + + + + role + + list-section-role + + + + + metainfo + + + + content + + + + term + + + + + + + + + + list-section-role + + + + + abbreviations + + + + + + + + definitions + + + + + + + + language-overview + + + + + + + + normative-references + + + + + + + + + + term + + + + + name + + string + + + + + + definition + + textual-content + + + + + + + + structured-section + + + + metainfo + + + + content + + + + structured-section-element + + + + + + + + + + structured-section-element + + + + + subtopic + + structured-section + + + + + + references + + list-type + + + + + placeholder + + + + value + + + + + key + + string + + + + + + data + + string + + + + + + + + + + + + + + + normative-role + + + informative-role + + + + + + + simple-section + + + + + + + + normative-role + + + + + synopsis + + + + + + + + description + + + + + + + + syntax + + + + + + + + constraints + + + + + + + + relationship + + + + + + + + semantics + + + + + + + + default + + + + + + + + + + informative-role + + + + + example + + + + + + + + rationale + + + + + + + + update + + + + + + + + + + anchor + + + id + + string + + + + + + textual-content + + + + text-element + + + + + + text-element + + + + + empty + + + + + + + code + + + + text + + mixed-type + + + + + figure + + + table + + + + list + + list-type + + + + + + formula + + + + + + + + + + + + sample + + + + + + + + + + + string + + + + + + + + source + + string + + + + + + + + + + + + figure + + + + metainfo + + + + + + source + + figure-source + + + + + + + + + + figure-source + + + + + type + + figure-type + + + + + + + + local-file + + string + + + + + + uri + + string + + + + + + + + + + figure-type + + + + + PDF + + + + + + + + PostScript + + + + + + + + SVG + + + + + + + + PNG + + + + + + + + GIF + + + + + + + + JPEG + + + + + + + + + + table + + + + + + + header + + table-row + + + + + + + + + + row + + table-row + + + + + + + + + + table-row + + + + + table-cell + + textual-content + + + + + + + + list-type + + + + + item + + mixed-type + + + + + + + + mixed-type + + + + + + + + + string + + + + + + + + formula + + + + + + + + + + keyword + + string + + + + code + + string + + + + link + + + + + + + text + + string + + + + + + + + + + nonterminal + + string + + + + + + reference + + string + + + + + + external + + string + + + + + + + + + + grammar + + + + + + + root + + nonterminal + + + + + + + + + production + + + + + + + + production + + + + + + + label + + label + + + + + + + + nonterminal + + nonterminal + + + + + expression + + + + + + expression + + + + + epsilon + + + + + + + + empty + + + + + + + + value + + value + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + nonterminal + + + + + + selectable + + + + + selector + + selector + + + + + expression + + + + + + + + sequence + + + + expression + + + + + + + + marked + + expression + + + + + + choice + + + + expression + + + + + + + + optional + + expression + + + + + + plus + + expression + + + + + + star + + expression + + + + + + + + value + + + + + int + + + + + + + + string + + + + + + + + + + label + + string + + + + nonterminal + + string + + + + selector + + string + + + + terminal + + string + + + diff --git a/topics/extraction/xsd/tests/list b/topics/extraction/xsd/tests/list new file mode 100644 index 00000000..46b3a1c1 --- /dev/null +++ b/topics/extraction/xsd/tests/list @@ -0,0 +1,7 @@ +../../../shared/xsd/bgf.xsd +../../../shared/xsd/btf.xsd +../../../shared/xsd/lcf.xsd +../../../shared/xsd/ldf.xsd +../../../shared/xsd/xbgf.xsd +../../../shared/xsd/xldf.xsd +../../fl/xsd/fl.xsd diff --git a/topics/extraction/xsd/tests/xbgf.baseline b/topics/extraction/xsd/tests/xbgf.baseline new file mode 100644 index 00000000..a7127c1a --- /dev/null +++ b/topics/extraction/xsd/tests/xbgf.baseline @@ -0,0 +1,1362 @@ + + + sequence + atomic + add + appear + chain + deanonymize + define + disappear + downgrade + designate + unlabel + deyaccify + distribute + dump + eliminate + extract + factor + fold + horizontal + inject + inline + introduce + import + lassoc + massage + narrow + permute + project + rassoc + redefine + remove + rename + replace + reroot + abridge + detour + strip + concretize + unchain + undefine + unfold + unite + equate + abstractize + anonymize + vertical + widen + yaccify + upgrade + grammar + production + expression + + sequence + + + + + + transformation + + + atomic + + + + + + + + atomic + + + + transformation + + + + + + transformation + + + + folding-unfolding-transformation + + + refactoring-transformation + + + increasing-transformation + + + decreasing-transformation + + + concrete-revising-transformation + + + abstract-revising-transformation + + + decorative-transformation + + + rename + + + reroot + + + strip + + + dump + + + + + + folding-unfolding-transformation + + + + unfold + + + fold + + + inline + + + extract + + + abridge + + + detour + + + unchain + + + chain + + + + + + refactoring-transformation + + + + massage + + + distribute + + + factor + + + deyaccify + + + yaccify + + + eliminate + + + introduce + + + import + + + vertical + + + horizontal + + + equate + + + rassoc + + + lassoc + + + + + + increasing-transformation + + + + add + + + appear + + + widen + + + upgrade + + + unite + + + + + + decreasing-transformation + + + + remove + + + disappear + + + narrow + + + downgrade + + + + + + concrete-revising-transformation + + + + abstractize + + + concretize + + + permute + + + + + + abstract-revising-transformation + + + + define + + + undefine + + + redefine + + + inject + + + project + + + replace + + + + + + decorative-transformation + + + + designate + + + unlabel + + + deanonymize + + + anonymize + + + + + + add + + + + + vertical + + production + + + + + + horizontal + + production + + + + + + + + appear + + production + + + + chain + + production + + + + deanonymize + + production + + + + define + + + + + + production + + + + + + tag + + string + + + + + + + + disappear + + production + + + + downgrade + + + + production + + + production + + + + + + designate + + production + + + + unlabel + + + label + + label + + + + + + deyaccify + + + nonterminal + + nonterminal + + + + + + distribute + + scope + + + + dump + + + + + + eliminate + + + nonterminal + + nonterminal + + + + + + extract + + + + production + + + + + + in + + scope + + + + + + + + + + factor + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + fold + + + + + nonterminal + + nonterminal + + + + + + + + in + + scope + + + + + + + + + + horizontal + + + nonterminal + + nonterminal + + + + + + inject + + + + production + + + + tag + + string + + + + + + + + inline + + nonterminal + + + + introduce + + + + production + + + + + + import + + + + production + + + + + + lassoc + + production + + + + massage + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + narrow + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + permute + + production + + + + project + + + + production + + + + tag + + string + + + + + + + + rassoc + + production + + + + redefine + + + + + + production + + + + + + tag + + string + + + + + + + + remove + + + + + vertical + + production + + + + + + horizontal + + production + + + + + + + + rename + + + + + label + + + + + from + + label + + + + + + to + + label + + + + + + + + + + nonterminal + + + + + from + + nonterminal + + + + + + to + + nonterminal + + + + + + + + + + selector + + + + + + + in + + label + + + + + + + + from + + selector + + + + + + to + + selector + + + + + + + + + + terminal + + + + + from + + terminal + + + + + + to + + terminal + + + + + + + + + + + + replace + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + tag + + string + + + + + + + + reroot + + + + + root + + nonterminal + + + + + + + + abridge + + production + + + + detour + + production + + + + strip + + + + + label + + label + + + + + + allLabels + + + + + + + + selector + + selector + + + + + + allSelectors + + + + + + + + terminal + + terminal + + + + + + allTerminals + + + + + + + + + + concretize + + production + + + + unchain + + production + + + + undefine + + + + + + + nonterminal + + nonterminal + + + + + + + + tag + + string + + + + + + + + unfold + + + + + nonterminal + + nonterminal + + + + + + + + in + + scope + + + + + + + + + + unite + + + + + add + + nonterminal + + + + + + to + + nonterminal + + + + + + + + equate + + + + + align + + nonterminal + + + + + + with + + nonterminal + + + + + + + + abstractize + + production + + + + anonymize + + production + + + + vertical + + scope + + + + widen + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + yaccify + + + + production + + + + + + upgrade + + + + production + + + production + + + + + + scope + + + + + label + + label + + + + + + nonterminal + + nonterminal + + + + + + + + grammar + + + + + + + root + + nonterminal + + + + + + + + + production + + + + + + + + production + + + + + + + label + + label + + + + + + + + nonterminal + + nonterminal + + + + + expression + + + + + + expression + + + + + epsilon + + + + + + + + empty + + + + + + + + value + + value + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + nonterminal + + + + + + selectable + + + + + selector + + selector + + + + + expression + + + + + + + + sequence + + + + expression + + + + + + + + marked + + expression + + + + + + choice + + + + expression + + + + + + + + optional + + expression + + + + + + plus + + expression + + + + + + star + + expression + + + + + + + + value + + + + + int + + + + + + + + string + + + + + + + + + + label + + string + + + + nonterminal + + string + + + + selector + + string + + + + terminal + + string + + + diff --git a/topics/extraction/xsd/tests/xldf.baseline b/topics/extraction/xsd/tests/xldf.baseline new file mode 100644 index 00000000..437e7c2b --- /dev/null +++ b/topics/extraction/xsd/tests/xldf.baseline @@ -0,0 +1,4245 @@ + + + evolutionSequence + addFigure + addSection + addSubsection + append + combine + changeRole + drop + extractSubsection + hyperlinkify + importGrammar + importSample + insert + place + retitle + removeSection + transformDocument + transformGrammar + document + metainfo + composite-section + placeholder + simple-section + lexical-section + list-section + term + structured-section + normative-role + informative-role + anchor + figure + table + formula + keyword + code + link + sequence + atomic + add + appear + chain + deanonymize + define + disappear + downgrade + designate + unlabel + deyaccify + distribute + dump + eliminate + extract + factor + fold + horizontal + inject + inline + introduce + import + lassoc + massage + narrow + permute + project + rassoc + redefine + remove + rename + replace + reroot + abridge + detour + strip + concretize + unchain + undefine + unfold + unite + equate + abstractize + anonymize + vertical + widen + yaccify + upgrade + grammar + production + expression + + evolutionSequence + + + + documentTransformation + + + + + + documentTransformation + + + + addFigure + + + addSection + + + addSubsection + + + append + + + changeRole + + + combine + + + drop + + + extractSubsection + + + hyperlinkify + + + insert + + + importGrammar + + + importSample + + + place + + + retitle + + + removeSection + + + transformDocument + + + transformGrammar + + + + + + addFigure + + + + + figure + + simpleFigure + + + + + + to + + string + + + + + + + + addSection + + + + frontList + + + lexicalSection + + + + placeholder + + generated + + + + + + core + + structuredSection + + + + + + annex + + structuredSection + + + + + + + + addSubsection + + + + topSection + + + + + + + normative + + + informative + + + + + + to + + string + + + + + + + + + + append + + + + + where + + string + + + + + + content + + simpleText + + + + + + + + combine + + + + + section + + string + + + + + + with + + string + + + + + + + + changeRole + + + + + scope + + string + + + + + + from + + sectionRole + + + + + + to + + sectionRole + + + + + + + + drop + + + section + + string + + + + + + extractSubsection + + + + + from + + string + + + + + + content + + simpleText + + + + + + title + + string + + + + + + id + + string + + + + + + + + to + + string + + + + + + + + + + role + + sectionRole + + + + + + + + + + hyperlinkify + + + + + goal + + string + + + + + + uri + + string + + + + + + + + importGrammar + + + + + target + + string + + + + + + file + + string + + + + + + + + importSample + + + + + target + + string + + + + + + file + + string + + + + + + + + prettyprinter + + string + + + + + + + + + + insert + + + + relative + + + + content + + simpleText + + + + + + + + place + + + + + section + + string + + + + + + inside + + string + + + + + + + + retitle + + + + + from + + + + + id + + string + + + + + + title + + string + + + + + + + + + + to + + string + + + + + + + + removeSection + + + + + id + + string + + + + + + + + from + + string + + + + + + + + + + transformDocument + + + file + + string + + + + + + transformGrammar + + + + + target + + string + + + + + + + transformation + + + + + + + + context + + string + + + + + + + + + + relative + + + + + before + + + + + id + + string + + + + + simpleTextElement + + + + + + + + after + + + + + id + + string + + + + + simpleTextElement + + + + + + + + to + + string + + + + + + + + sectionRole + + + + + frontMatter + + + + + + + + backMatter + + + + + + + + synopsis + + + + + + + + description + + + + + + + + syntax + + + + + + + + constraints + + + + + + + + relationship + + + + + + + + semantics + + + + + + + + default + + + + + + + + rationale + + + + + + + + example + + + + + + + + update + + + + + + + + section + + + + + + + + + + document + + + + + metadata + + + + + + + body + + + + + ansi + + + + + + + + ecma + + + + + + + + ieee + + + + + + + + iso + + + + + + + + iso/iet + + + + + + + + itu + + + + + + + + iec + + + + + + + + ietf + + + + + + + + oasis + + + + + + + + omg + + + + + + + + wsa + + + + + + + + w3c + + + + + + + + + + + + + + + + number + + string + + + + + + + + + + author + + person + + + + + + + + topic + + string + + + + + + status + + + + + unknown + + + + + + + + draft + + + + + + + + candidate + + + + + + + + proposed + + + + + + + + approved + + + + + + + + revised + + + + + + + + obsolete + + + + + + + + withdrawn + + + + + + + + collection + + + + + + + + trial + + + + + + + + errata + + + + + + + + report + + + + + + + + + + + + + + version + + string + + + + + + edition + + string + + + + + + + + + + previous + + named-link + + + + + + + + date + + string + + + + + + + + + + + + part + + part-type + + + + + + + + + + named-link + + + + + title + + string + + + + + + + + + + version + + string + + + + + + edition + + string + + + + + + + + + + + + uri + + string + + + + + + + + + + part-type + + + + + metadata + + + + + + + id + + string + + + + + + + + role + + + + + front-matter + + + + + + + + core-part + + + + + + + + back-matter + + + + + + + + annex + + + + + + + + + + + + + + title + + string + + + + + + + + + + author + + person + + + + + + + + + + + + + + section + + section-type + + + + + + + + + + metainfo + + + + + + + id + + string + + + + + + + + + + title + + string + + + + + + + + + + author + + string + + + + + + + + + + person + + + + + name + + string + + + + + + + + affiliation + + string + + + + + + + + + + email + + string + + + + + + + + + + section-type + + + + + metadata + + + + + + + id + + string + + + + + + + + role + + + + + abstract + + + + + + + + conformance + + + + + + + + compatibility + + + + + + + + design-goals + + + + + + + + document-structure + + + + + + + + foreword + + + + + + + + references + + + + + + + + notation + + + + + + + + scope + + + + + + + + what-is-new + + + + + + + + index + + + + + + + + full-grammar + + + + + + + + list-of-tables + + + + + + + + list-of-authors + + + + + + + + list-of-contents + + + + + + + + list-of-references + + + + + + + + top-section + + + + + + + + lexical-section + + + + + + + + + + + + + + type + + + + + normative + + + + + + + + informative + + + + + + + + + + + + + + + + title + + string + + + + + + + + + + author + + person + + + + + + + + + + + + + + content + + + + content-content + + + + + + + + placeholder + + + + + + + + + + subsection + + subsection-type + + + + + + + + + + + + subsection-type + + + + + metadata + + + + + + + id + + string + + + + + + + + role + + + + + synopsis + + + + + + + + description + + + + + + + + syntax + + + + + + + + constraints + + + + + + + + relationship + + + + + + + + semantics + + + + + + + + default + + + + + + + + rationale + + + + + + + + example + + + + + + + + update + + + + + + + + subtopic + + + + + + + + section + + + + + + + + + + + + + + type + + + + + normative + + + + + + + + informative + + + + + + + + + + + + + + + + title + + string + + + + + + + + + + author + + person + + + + + + + + + + + + + + content + + + + content-content + + + + + + + + placeholder + + + + + + + + + + subsection + + subsection-type + + + + + + + + + + + + content-content + + + + + para + + mixed-type + + + + + + list + + list-type + + + + + production + + + + + + any-section + + + + placeholder + + + simple-section + + + lexical-section + + + structured-section + + + composite-section + + + list-section + + + + + + composite-section + + + + any-section + + + + + + placeholder + + + + + index + + + + + + + + full-grammar + + + + + + + + list-of-tables + + + + + + + + list-of-authors + + + + + + + + list-of-contents + + + + + + + + list-of-references + + + + + + + + + + simple-section + + + + metainfo + + + + content + + textual-content + + + + + + + + lexical-section + + + + + role + + lexical-section-role + + + + + metainfo + + + + content + + textual-content + + + + + + + + lexical-section-role + + + + + lexical-issue + + + + + + + + line-continuations + + + + + + + + literals + + + + + + + + preprocessor + + + + + + + + tokens + + + + + + + + whitespace + + + + + + + + + + list-section + + + + + role + + list-section-role + + + + + metainfo + + + + content + + + + term + + + + + + + + + + list-section-role + + + + + abbreviations + + + + + + + + definitions + + + + + + + + language-overview + + + + + + + + normative-references + + + + + + + + + + term + + + + + name + + string + + + + + + definition + + textual-content + + + + + + + + structured-section + + + + metainfo + + + + content + + + + structured-section-element + + + + + + + + + + structured-section-element + + + + + subtopic + + structured-section + + + + + + references + + list-type + + + + + placeholder + + + + value + + + + + key + + string + + + + + + data + + string + + + + + + + + + + + + + + + normative-role + + + informative-role + + + + + + + simple-section + + + + + + + + normative-role + + + + + synopsis + + + + + + + + description + + + + + + + + syntax + + + + + + + + constraints + + + + + + + + relationship + + + + + + + + semantics + + + + + + + + default + + + + + + + + + + informative-role + + + + + example + + + + + + + + rationale + + + + + + + + update + + + + + + + + + + anchor + + + id + + string + + + + + + textual-content + + + + text-element + + + + + + text-element + + + + + empty + + + + + + + code + + + + text + + mixed-type + + + + + figure + + + table + + + + list + + list-type + + + + + + formula + + + + + + + + + + + + sample + + + + + + + + + + + string + + + + + + + + source + + string + + + + + + + + + + + + figure + + + + metainfo + + + + + + source + + figure-source + + + + + + + + + + figure-source + + + + + type + + figure-type + + + + + + + + local-file + + string + + + + + + uri + + string + + + + + + + + + + figure-type + + + + + PDF + + + + + + + + PostScript + + + + + + + + SVG + + + + + + + + PNG + + + + + + + + GIF + + + + + + + + JPEG + + + + + + + + + + table + + + + + + + header + + table-row + + + + + + + + + + row + + table-row + + + + + + + + + + table-row + + + + + table-cell + + textual-content + + + + + + + + list-type + + + + + item + + mixed-type + + + + + + + + mixed-type + + + + + + + + + string + + + + + + + + formula + + + + + + + + + + keyword + + string + + + + code + + string + + + + link + + + + + + + text + + string + + + + + + + + + + nonterminal + + string + + + + + + reference + + string + + + + + + external + + string + + + + + + + + + + grammar + + + + + + + root + + nonterminal + + + + + + + + + production + + + + + + + + production + + + + + + + label + + label + + + + + + + + nonterminal + + nonterminal + + + + + expression + + + + + + expression + + + + + epsilon + + + + + + + + empty + + + + + + + + value + + value + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + nonterminal + + + + + + selectable + + + + + selector + + selector + + + + + expression + + + + + + + + sequence + + + + expression + + + + + + + + marked + + expression + + + + + + choice + + + + expression + + + + + + + + optional + + expression + + + + + + plus + + expression + + + + + + star + + expression + + + + + + + + value + + + + + int + + + + + + + + string + + + + + + + + + + label + + string + + + + nonterminal + + string + + + + selector + + string + + + + terminal + + string + + + + sequence + + + + + + transformation + + + atomic + + + + + + + + atomic + + + + transformation + + + + + + transformation + + + + folding-unfolding-transformation + + + refactoring-transformation + + + increasing-transformation + + + decreasing-transformation + + + concrete-revising-transformation + + + abstract-revising-transformation + + + decorative-transformation + + + rename + + + reroot + + + strip + + + dump + + + + + + folding-unfolding-transformation + + + + unfold + + + fold + + + inline + + + extract + + + abridge + + + detour + + + unchain + + + chain + + + + + + refactoring-transformation + + + + massage + + + distribute + + + factor + + + deyaccify + + + yaccify + + + eliminate + + + introduce + + + import + + + vertical + + + horizontal + + + equate + + + rassoc + + + lassoc + + + + + + increasing-transformation + + + + add + + + appear + + + widen + + + upgrade + + + unite + + + + + + decreasing-transformation + + + + remove + + + disappear + + + narrow + + + downgrade + + + + + + concrete-revising-transformation + + + + abstractize + + + concretize + + + permute + + + + + + abstract-revising-transformation + + + + define + + + undefine + + + redefine + + + inject + + + project + + + replace + + + + + + decorative-transformation + + + + designate + + + unlabel + + + deanonymize + + + anonymize + + + + + + add + + + + + vertical + + production + + + + + + horizontal + + production + + + + + + + + appear + + production + + + + chain + + production + + + + deanonymize + + production + + + + define + + + + + + production + + + + + + tag + + string + + + + + + + + disappear + + production + + + + downgrade + + + + production + + + production + + + + + + designate + + production + + + + unlabel + + + label + + label + + + + + + deyaccify + + + nonterminal + + nonterminal + + + + + + distribute + + scope + + + + dump + + + + + + eliminate + + + nonterminal + + nonterminal + + + + + + extract + + + + production + + + + + + in + + scope + + + + + + + + + + factor + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + fold + + + + + nonterminal + + nonterminal + + + + + + + + in + + scope + + + + + + + + + + horizontal + + + nonterminal + + nonterminal + + + + + + inject + + + + production + + + + tag + + string + + + + + + + + inline + + nonterminal + + + + introduce + + + + production + + + + + + import + + + + production + + + + + + lassoc + + production + + + + massage + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + narrow + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + permute + + production + + + + project + + + + production + + + + tag + + string + + + + + + + + rassoc + + production + + + + redefine + + + + + + production + + + + + + tag + + string + + + + + + + + remove + + + + + vertical + + production + + + + + + horizontal + + production + + + + + + + + rename + + + + + label + + + + + from + + label + + + + + + to + + label + + + + + + + + + + nonterminal + + + + + from + + nonterminal + + + + + + to + + nonterminal + + + + + + + + + + selector + + + + + + + in + + label + + + + + + + + from + + selector + + + + + + to + + selector + + + + + + + + + + terminal + + + + + from + + terminal + + + + + + to + + terminal + + + + + + + + + + + + replace + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + tag + + string + + + + + + + + reroot + + + + + root + + nonterminal + + + + + + + + abridge + + production + + + + detour + + production + + + + strip + + + + + label + + label + + + + + + allLabels + + + + + + + + selector + + selector + + + + + + allSelectors + + + + + + + + terminal + + terminal + + + + + + allTerminals + + + + + + + + + + concretize + + production + + + + unchain + + production + + + + undefine + + + + + + + nonterminal + + nonterminal + + + + + + + + tag + + string + + + + + + + + unfold + + + + + nonterminal + + nonterminal + + + + + + + + in + + scope + + + + + + + + + + unite + + + + + add + + nonterminal + + + + + + to + + nonterminal + + + + + + + + equate + + + + + align + + nonterminal + + + + + + with + + nonterminal + + + + + + + + abstractize + + production + + + + anonymize + + production + + + + vertical + + scope + + + + widen + + + + expression + + + expression + + + + + + in + + scope + + + + + + + + + + yaccify + + + + production + + + + + + upgrade + + + + production + + + production + + + + + + scope + + + + + label + + label + + + + + + nonterminal + + nonterminal + + + + + + + + grammar + + + + + + + root + + nonterminal + + + + + + + + + production + + + + + + + + production + + + + + + + label + + label + + + + + + + + nonterminal + + nonterminal + + + + + expression + + + + + + expression + + + + + epsilon + + + + + + + + empty + + + + + + + + value + + value + + + + + + any + + + + + + + + terminal + + terminal + + + + + + nonterminal + + nonterminal + + + + + + selectable + + + + + selector + + selector + + + + + expression + + + + + + + + sequence + + + + expression + + + + + + + + marked + + expression + + + + + + choice + + + + expression + + + + + + + + optional + + expression + + + + + + plus + + expression + + + + + + star + + expression + + + + + + + + value + + + + + int + + + + + + + + string + + + + + + + + + + label + + string + + + + nonterminal + + string + + + + selector + + string + + + + terminal + + string + + + diff --git a/topics/extraction/xsd2bgf/Makefile b/topics/extraction/xsd2bgf/Makefile deleted file mode 100644 index 3a6eb5b8..00000000 --- a/topics/extraction/xsd2bgf/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -fl = ../../fl/xsd/fl.xsd -bgf = ../../../shared/xsd/bgf.xsd -xbgf = ../../../shared/xsd/xbgf.xsd -xsd2bgf = ../../../shared/tools/xsd2bgf -showbgf = ../../../shared/tools/showbgf -validate = ../../../shared/tools/validate - -build: - -test: - make clean-tests -# Test fl sample - ${xsd2bgf} ${fl} tests/fl.bgf - ${validate} bgf tests/fl.bgf - ${showbgf} tests/fl.bgf > tests/fl.out - diff tests/fl.out tests/fl.baseline -# Test bgf - ${xsd2bgf} ${bgf} tests/bgf.bgf - ${validate} bgf tests/bgf.bgf - ${showbgf} tests/bgf.bgf > tests/bgf.out - diff tests/bgf.out tests/bgf.baseline -# Test xbgf - ${xsd2bgf} ${xbgf} tests/xbgf.bgf - ${validate} bgf tests/xbgf.bgf - ${showbgf} tests/xbgf.bgf > tests/xbgf.out - diff tests/xbgf.out tests/xbgf.baseline - -clean: - make clean-tests - rm -f *~ - -clean-tests: - rm -f tests/*.bgf - rm -f tests/*.out diff --git a/topics/extraction/xsd2bgf/tests/bgf.baseline b/topics/extraction/xsd2bgf/tests/bgf.baseline deleted file mode 100644 index 205b4ab1..00000000 --- a/topics/extraction/xsd2bgf/tests/bgf.baseline +++ /dev/null @@ -1,11 +0,0 @@ -Loading XML file 'tests/bgf.bgf'. -g( [grammar, production, expression], [ - p([], grammar, ','([*(s(root, n(nonterminal))), *(n(production))])), - p([], production, ','([?(s(label, n(label))), s(nonterminal, n(nonterminal)), n(expression)])), - p([], expression, ;([s(epsilon, true), s(empty, true), s(value, n(value)), s(any, true), s(terminal, n(terminal)), s(nonterminal, n(nonterminal)), s(selectable, ','([s(selector, n(selector)), n(expression)])), s(sequence, *(n(expression))), s(choice, *(n(expression))), s(optional, n(expression)), s(plus, n(expression)), s(star, n(expression))])), - p([], value, ;([s(int, true), s(string, true)])), - p([], label, v(string)), - p([], nonterminal, v(string)), - p([], selector, v(string)), - p([], terminal, v(string)) -]) diff --git a/topics/extraction/xsd2bgf/tests/fl.baseline b/topics/extraction/xsd2bgf/tests/fl.baseline deleted file mode 100644 index e2e84038..00000000 --- a/topics/extraction/xsd2bgf/tests/fl.baseline +++ /dev/null @@ -1,13 +0,0 @@ -Loading XML file 'tests/fl.bgf'. -g( ['Program', 'Fragment'], [ - p([], 'Program', +s(function, n('Function'))), - p([], 'Fragment', n('Expr')), - p([], 'Function', ','([s(name, v(string)), +s(arg, v(string)), s(rhs, n('Expr'))])), - p([], 'Expr', ;([n('Literal'), n('Argument'), n('Binary'), n('IfThenElse'), n('Apply')])), - p([], 'Literal', s(info, v(int))), - p([], 'Argument', s(name, v(string))), - p([], 'Binary', ','([s(ops, n('Ops')), s(left, n('Expr')), s(right, n('Expr'))])), - p([], 'Ops', ;([s('Equal', true), s('Plus', true), s('Minus', true)])), - p([], 'IfThenElse', ','([s(ifExpr, n('Expr')), s(thenExpr, n('Expr')), s(elseExpr, n('Expr'))])), - p([], 'Apply', ','([s(name, v(string)), +s(arg, n('Expr'))])) -]) diff --git a/topics/extraction/xsd2bgf/tests/xbgf.baseline b/topics/extraction/xsd2bgf/tests/xbgf.baseline deleted file mode 100644 index d7e3103d..00000000 --- a/topics/extraction/xsd2bgf/tests/xbgf.baseline +++ /dev/null @@ -1,42 +0,0 @@ -Loading XML file 'tests/xbgf.bgf'. -g( [add, case, define, designate, eliminate, extract, fold, horizontal, id, inline, introduce, lassoc, modulo, permute, project, prune, relabel, relax, remove, rename, reroot, restrict, sequence, skip, strip, unchain, undefine, unfold, unite, vertical, grammar, production, expression], [ - p([], transformation, ;([n(add), n(case), n(define), n(designate), n(eliminate), n(extract), n(fold), n(horizontal), n(id), n(inline), n(introduce), n(lassoc), n(modulo), n(permute), n(project), n(prune), n(relax), n(relabel), n(remove), n(rename), n(reroot), n(restrict), n(sequence), n(skip), n(strip), n(unchain), n(undefine), n(unfold), n(unite), n(vertical)])), - p([], add, n(production)), - p([], case, ','([;([s(first, true), s(all, true)]), ;([s(up, true), s(down, true)])])), - p([], define, +n(production)), - p([], designate, n(production)), - p([], eliminate, n(nonterminal)), - p([], extract, n(production)), - p([], fold, n(production)), - p([], horizontal, n(nonterminal)), - p([], id, true), - p([], inline, n(nonterminal)), - p([], introduce, +n(production)), - p([], lassoc, n(production)), - p([], modulo, n(production)), - p([], permute, n(production)), - p([], project, n(production)), - p([], prune, n(nonterminal)), - p([], relabel, n(production)), - p([], relax, n(production)), - p([], remove, n(production)), - p([], rename, ;([s(label, ','([s(from, n(label)), s(to, n(label))])), s(nonterminal, ','([s(from, n(nonterminal)), s(to, n(nonterminal))])), s(selector, ','([?(s(in, n(label))), s(from, n(selector)), s(to, n(selector))])), s(terminal, ','([s(from, n(terminal)), s(to, n(terminal))]))])), - p([], reroot, *(s(root, n(nonterminal)))), - p([], restrict, n(production)), - p([], sequence, *(n(transformation))), - p([], skip, n(production)), - p([], strip, ;([s(label, n(label)), s(allLabels, true), s(selector, n(selector)), s(allSelectors, true), s(terminal, n(terminal)), s(allTerminals, true)])), - p([], unchain, n(nonterminal)), - p([], undefine, n(nonterminal)), - p([], unfold, n(production)), - p([], unite, ','([s(add, n(nonterminal)), s(to, n(nonterminal))])), - p([], vertical, ;([s(label, n(label)), s(nonterminal, n(nonterminal))])), - p([], grammar, ','([*(s(root, n(nonterminal))), *(n(production))])), - p([], production, ','([?(s(label, n(label))), s(nonterminal, n(nonterminal)), n(expression)])), - p([], expression, ;([s(epsilon, true), s(empty, true), s(value, n(value)), s(any, true), s(terminal, n(terminal)), s(nonterminal, n(nonterminal)), s(selectable, ','([s(selector, n(selector)), n(expression)])), s(sequence, *(n(expression))), s(choice, *(n(expression))), s(optional, n(expression)), s(plus, n(expression)), s(star, n(expression))])), - p([], value, ;([s(int, true), s(string, true)])), - p([], label, v(string)), - p([], nonterminal, v(string)), - p([], selector, v(string)), - p([], terminal, v(string)) -])