Latest nightly version of CG-3 has a couple of new features regarding
deleted and delayed readings, ways to ignore readings for the duration of a
grammar, and resurrect deleted readings.

>From before, rule Remove deletes readings, but with flag Delayed it will
instead put them in the delayed buffer. There's a new flag Ignored that
puts them in the ignored buffer instead. Deleted and Delayed readings will
be actually removed at the end of the grammar, but Ignored readings will be
resurrected.

To further control these buffers, there's a new rule type Restore which can
resurrect readings at any time. It also takes flags Delayed and Ignored to
tell which buffer to restore from.

And for contextual tests, analogous to 'd' and 'D', there's now 'I' for
looking at ignored readings. And rule flag LookIgnored.

https://visl.sdu.dk/cg3/chunked/rules.html#restore
https://visl.sdu.dk/cg3/chunked/rules.html#rule-options-ignored
https://visl.sdu.dk/cg3/chunked/rules.html#rule-options-lookignored
https://visl.sdu.dk/cg3/chunked/contexts.html#test-deleted-ignored

Example:
Input:
https://github.com/TinoDidriksen/cg3/blob/master/test/T_IgnoreRestore/input.txt
Grammar:
https://github.com/TinoDidriksen/cg3/blob/master/test/T_IgnoreRestore/grammar.cg3
Output:
https://github.com/TinoDidriksen/cg3/blob/master/test/T_IgnoreRestore/expected.txt

-- Tino Didriksen

-- 
You received this message because you are subscribed to the Google Groups 
"Constraint Grammar" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/constraint-grammar/CABnmVq4GbjcGGjfbKfcJCkLt-TxOVx1ksLrreodfw83ePscaQw%40mail.gmail.com.

Reply via email to