From 87a19cbc2262638565cd40fb5251f4f56952b065 Mon Sep 17 00:00:00 2001 From: Joris van der Hoeven Date: Mon, 27 Aug 2012 14:18:21 +0000 Subject: [PATCH] correction --- devel/scheme/utils/utils-select.en.tm | 50 ++++++++++++--------------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/devel/scheme/utils/utils-select.en.tm b/devel/scheme/utils/utils-select.en.tm index de6085a..d6eaca5 100644 --- a/devel/scheme/utils/utils-select.en.tm +++ b/devel/scheme/utils/utils-select.en.tm @@ -1,4 +1,4 @@ - + @@ -48,33 +48,29 @@ <|explain> Select all compound subtrees with the specified . Example: - - <\input|scheme] > + <\session|scheme|default> + <\unfolded-io|scheme] > (select '(document (strong "x") (math "a+b") (strong "y")) '(strong)) - - - <\output> + <|unfolded-io> ((strong "x") (strong "y")) - - > + + <\explain> - , , , ..., , , ... <|explain> - The pattern , where is a number, selects all descendants + The pattern , where is a number, selects all descendants of the -th generation. Example: - - <\input|scheme] > - (select '(foo (bar "x" "y") (slash (dot))) '(:#2)) - - - <\output> + <\session|scheme|default> + <\unfolded-io|scheme] > + (select '(foo (bar "x" "y") (slash (dot))) '(:%2)) + <|unfolded-io> ("x" "y" (dot)) - - > + + <\explain> @@ -98,15 +94,13 @@ This pattern matches the input tree if and only the input tree matches the specified according to . Example: - - <\input|scheme] > - (select '(foo "x" (bar)) '(:#1 (:match :string?))) - - - <\output> + <\session|scheme|default> + <\unfolded-io|scheme] > + (select '(foo "x" (bar)) '(:%1 (:match :string?))) + <|unfolded-io> ("x") - - > + + <\explain> @@ -140,14 +134,14 @@ <|explain> If the input tree is the -th child of its parent, then this - pattern will select the -th child. + pattern will select the >-th child. <\explain> <|explain> If the input tree is the -th child of its parent, then this - pattern will select the -th child. + pattern will select the >-th child.