From ebc6891c3c7939eb3d0ff529afdec0f7404acddd Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 8 Dec 2014 02:09:10 -0500 Subject: [PATCH 1/2] Initial thrushing implementation f:thrushr --- Makefile | 1 + src/apply/thrush.xsl | 146 +++++++++++++++++++++++++++++++++++++ test/apply/thrush-test.xsl | 78 ++++++++++++++++++++ test/apply/thrush.xspec | 118 ++++++++++++++++++++++++++++++ 4 files changed, 343 insertions(+) create mode 100644 src/apply/thrush.xsl create mode 100644 test/apply/thrush-test.xsl create mode 100644 test/apply/thrush.xspec diff --git a/Makefile b/Makefile index ab7c49e..cd27f00 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ path_src := src path_test := test test_apply := $(path_test)/apply/partial-test.xsl.apply \ + $(path_test)/apply/thrush-test.xsl.apply \ $(path_test)/transform/apply-gen-test-in.xsl.apply .PHONY: check test diff --git a/src/apply/thrush.xsl b/src/apply/thrush.xsl new file mode 100644 index 0000000..68e3233 --- /dev/null +++ b/src/apply/thrush.xsl @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/apply/thrush-test.xsl b/test/apply/thrush-test.xsl new file mode 100644 index 0000000..5f91e7e --- /dev/null +++ b/test/apply/thrush-test.xsl @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/apply/thrush.xspec b/test/apply/thrush.xspec new file mode 100644 index 0000000..73b2fa5 --- /dev/null +++ b/test/apply/thrush.xspec @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 5f3e9aad1ca21a2ed0238c0db4c69c83a7599b77 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 10 Dec 2014 15:31:59 -0500 Subject: [PATCH 2/2] Comment to indicate that `f:thrushl' is not yet implemented It will be; I just do not need it at this moment and want to get other things moving. --- src/apply/thrush.xsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apply/thrush.xsl b/src/apply/thrush.xsl index 68e3233..e08ef2e 100644 --- a/src/apply/thrush.xsl +++ b/src/apply/thrush.xsl @@ -70,6 +70,8 @@ Indeed, the syntax @code{A.B(C)} is just syntactic sugar for applying @code{B} within the context of @code{A}—@code{B(A,C)}—which can be done using @code{f:thrushl}. + + @emph{@code{thrushl} is not yet implemented.} -->