pikts is the PIKT comment-stripping utility. It takes the following command-line arguments:
Usage: pikts [-bGhlTV] -b strip away block comments only -G run in debug mode -h show program help -l strip away line comments only -T run in test mode -V show version info note: the default is to strip away both block and line comments(Currently, the '-G' & '-T' options have no real effect. They are there just for consistency.)
pikts is useful for stripping away PIKT-style comments (block /* */ and/or line // comments), leaving everything else including #-style preprocessor directives, from PIKT config files. You might use it, for example, when autogenerating other auxiliary (#include'd) config files as follows:
set $lines[#j] = $command("=pikts < =cfgdir/macros/files_pikt_" . $[#j] . "_macros.cfg | =getidents")In this Pikt script line, $command() pipes a macros config file through the pikts filter and onto the =getidents program.
Pikt scripts can invoke pikts, as can scripts written in Perl, Python, Awk, or any other language. You can also invoke it at the Unix command line, if you wish.
See the sample config files for demonstrations of config file autogeneration.
|prev page||1st page||next page|