From 8ba1f04147d8f85e1a26fac2f91f91ecdad366d4 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 24 Nov 2014 15:08:01 -0500 Subject: [PATCH] Partial application initial development No support yet for recursive partial applications; just a basic concept. --- Makefile | 5 +- src/apply/partial.xsl | 85 ++++++++++++++ test/apply/partial-test.xsl | 43 +++++++ test/apply/partial.xspec | 202 +++++++++++++++++++++++++++++++++ test/transform/apply-gen.xspec | 4 +- 5 files changed, 335 insertions(+), 4 deletions(-) create mode 100644 src/apply/partial.xsl create mode 100644 test/apply/partial-test.xsl create mode 100644 test/apply/partial.xspec diff --git a/Makefile b/Makefile index 4df9b82..ab7c49e 100644 --- a/Makefile +++ b/Makefile @@ -19,12 +19,13 @@ path_src := src path_test := test -test_in_apply_gen := $(path_test)/transform/apply-gen-test-in.xsl.apply +test_apply := $(path_test)/apply/partial-test.xsl.apply \ + $(path_test)/transform/apply-gen-test-in.xsl.apply .PHONY: check test test: check -check: $(test_in_apply_gen) +check: $(test_apply) $(path_test)/runner %.apply: % diff --git a/src/apply/partial.xsl b/src/apply/partial.xsl new file mode 100644 index 0000000..14ad561 --- /dev/null +++ b/src/apply/partial.xsl @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/apply/partial-test.xsl b/test/apply/partial-test.xsl new file mode 100644 index 0000000..0695395 --- /dev/null +++ b/test/apply/partial-test.xsl @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/test/apply/partial.xspec b/test/apply/partial.xspec new file mode 100644 index 0000000..8f0df53 --- /dev/null +++ b/test/apply/partial.xspec @@ -0,0 +1,202 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/transform/apply-gen.xspec b/test/transform/apply-gen.xspec index df9dae9..51de570 100644 --- a/test/transform/apply-gen.xspec +++ b/test/transform/apply-gen.xspec @@ -73,7 +73,7 @@ - " + @@ -187,7 +187,7 @@ - " +