From d01991e9b250ca65d9afbfd7e5efd9ed4f0ef923 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 25 Oct 2017 18:54:40 -0700 Subject: awk: five new range operators. * share/txr/stdlib/awk.tl (sys;awk-mac-let): Provide the implementation for the local macros --rng, --rng-, rng+, -rng+ and --rng+. * tests/015/awk-rng.tl: New file. * tests/015/awk-rng.expected: New file. * txr.1: Documented. --- tests/015/awk-rng.expected | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/015/awk-rng.expected (limited to 'tests/015/awk-rng.expected') diff --git a/tests/015/awk-rng.expected b/tests/015/awk-rng.expected new file mode 100644 index 00000000..ad33b30b --- /dev/null +++ b/tests/015/awk-rng.expected @@ -0,0 +1,25 @@ +rec rng -rng rng- -rng- --rng- --rng rng+ -rng+ --rng+ Y1Y2 +X1 t t t +a t t t t t t +b t t t t t t +X1 t t t t t t +c t t t t t t +X2 t t t t t t +1 t t t t t t t t t +2 t t t t t t t t t +3 t t t t t t t t t +Y1 t t t end t t t +r end end t t +s end end t t +Y2 end end t t +t +Y2 +X1X2 t t t +Y1Y2 t t t end t t t +X1X2 t t t +Y1 t t t end t t t +a end end t t +Y2 end end t t +X1 t t t +b t t t t t t +X2 t t t t t t -- cgit v1.2.3