Hi all,
I released TXR 151. Binaries at Bintray.
- I switched TXR back to the unmodified BSD 2-Clause License.
- The awk macro has undergone numerous further improvements.
- For instance, the rs (record separator) can now be assigned and comes into effect for the next record.
- Awk "paragraph mode" is now supported, complete with the POSIX rule that newline is always a field separator regardless of the value of fs.
- Regular expressions can now be called like functions, so for instance you can "grep" a list of strings like this:
(keep-if #/abc/ list-of-strings)
- There are some new regex functions which help with anchored searches.
For instance, grep strings that begin with abc:
(keep-if (f^ #/abc/) list-of-strings)
Delete trailing portion of string ending in digits:
(regsub (op r$ #/\d+/) "" input-string)
- There is a new build macro for building lists procedurally. For instance:
(build (add 1) (add 2)) -> (1 2)
- String list input streams: treat a list of strings as a virtual stream.
A whole bunch of little bugfixes and other improvements; details in the RELNOTES as usual.
Cheers ...