newsText Extractor TXR - News: Txr 039 is out.

Latest News
TXR 92 is out posted by kkylheku, Fri Jul 11 16:23:25 2014 - 0 replies
Version 044 is out. posted by kkylheku, Fri Dec 2 18:01:22 2011 - 0 replies
Version 042 is out posted by kkylheku, Tue Nov 22 22:08:49 2011 - 0 replies
Txr 039 is out. posted by kkylheku, Mon Oct 10 16:32:24 2011 - 0 replies
Txr 038 is out. posted by kkylheku, Fri Oct 7 01:18:40 2011 - 0 replies
[Submit News]
[18 news in archive]

Txr 039 is out.

Item posted by Kaz Kylheku <kkylheku> on Mon Oct 10 16:32:24 2011.

Txr now runs on Cygwin.

Some significant bugs are fixed, including a spectacular bug in function calling that dates back to 2009.

There are a bunch of new features.

- @(skip) has a :greedy keyword, which extends its usefulness
- @(trailer) and @(skip) work horizontally now too
- collection directives have new keywords to control what
variables are collected and a minimum and maximum number
of times to collect.
- new @(eol) directive matches end of line explicitly.

You can do useful things like

@(collect :mintimes 3 :vars (a b (c "foo")))

which means collect at least three times (or else fail), and only the variables a, b and c are collected. For any successful collect iteration, if a binding for c is not produced, then a binding of "foo" is substituted.

Match last three white-space-delimited tokens in a line:

@(skip :greedy) @a @b @c

Match trailing context in a line. Collect space-delimited tokens into a, which are not followed by a number. Then collect the rest.

@(coll :gap 0)@a @(trailer)@/[^0-9]/@(end)@rest

a b c 1 2 3

rest="c 1 2 3"

Grab the first and last character of the line:

@{first 1}@(skip :greedy)@{last 1}

Cheers ...


No messages in Txr 039 is out.


Back to the top

Powered by Savane 3.1-cleanup1