pikts

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
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
DevNotes | Licensing | Authors | Pikt-Users | Pikt-Workers | Links | Site Index | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2007-09-09.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2007 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title