Keyboard Support

Contact and Search Homepage

Header bottom

Other versions
Version 18.0 (home page)Version 17.0 (home page, current version)Version 16.0 (home page)Version 15.0 (home page)Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 9.0 (home page)Version 8.0Version 7.0 (home page)Version 6.0 (home page)Version 5.0 (home page)Version 4.0 (home page)


On this page

context statement



The context statement reproduces the context stored from the rule match, or a single character of it, into the output. Use the context statement as much as possible as it is significantly faster than using the index statement.

A single character from the context can be output (on the right-hand side of a rule) or matched (on the left-hand side of a rule) using context(i), which produces the ith character of the stored context.

Note that although the context(n) statement can be used in the left-hand side of a rule, the context statement cannot.

any(cons) "W" + any(key) > context index(keyout,3)
"contex" + "t" > context(2) context(6)     c outputs "ox"

The context(n) construct was introduced in version 6.0.

Related Topics