CFPEEK |
|
CFPEEK |
Sergey Poznyakoff |
The following options control the scripting facility of
cfpeek
.
Apply this expression to each node found. The global variable
node
is set to the node being processed before evaluating.
When used together with --file=script, the expression
can refer to any variables and call any functions defined in the
script file.
Load the script file. Unless --expression is also given, the script must define the function named ‘cfpeek’ which takes a node as its only argument. This function will be called for each matching node.
If --expression is given, this behavior is suppressed. It is then the responsibility of the expression to call any functions defined in this file.
The --init=expr (-i expr) option provides an initialization expression expr. This expression is evaluated once, after loading the script file, if one is specified, and before starting the main loop.
Select scripting language to use. This option is reserved for further use. As of version 1.2, the only possible value for script-language is ‘scheme’.
This document was generated on January 7, 2021 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.