Name

pptable-diff — diffs and synchronizes two pretty-print tables

Synopsis

pptable-diff [--patch] [--prune] [--old table] [-i file | --input file] [-o file | --output file] [-b] [-S | --silent] [--verbose level] [-k level | --keep level] [-h | -? | --help] [--about] [--version]

Description

The pptable-diff utility is used to calculate the difference between two pretty-print tables, which both must provided in abstract syntax, as ATerms. It takes two tables, one provided via the -i option (or stdin), and the other via the --old option. Any rule found in the old table but not in the new is printed to stderr.

If the --patch switch is specified, the old pretty-print table is updated by adding pretty-print rules that are in the new table but not in the old.

If the --prune switch is specified, the old pretty-print table is returned, and with all entries not found the new file removed.

The utility parse-pp-table can be used to convert a concrete pretty-print table to its abstract form.

Options

Parse Table Options

--patch

Bring old table up to date by adding all new entries from the new table.

--prune

Remove obsolete entries by removing from the old table all entries not found in the new table.

--old table

Use the table in the file table as the old table.

Common Input/Output Options

-i file

The input term given by the file name file.

In the absence of the -i option, input will be read from stdin.

-o file

The output will be written to the file given by the file name file.

In the absence of the -o option, output will be written to stdout.

-b

The output will be written in the binary (BAF) ATerm format.

ATerms in the BAF format require a lot less space than ones in the TAF format, but the Java ATerm library does not currently support baf ATerms. ATerms in the baf format is the preferred format of exchange between Stratego tools.

Common Debugging Options

--about

See --version.

-h, -?, --help

Display usage information.

--keep int

Keep intermediate results produced by the internal stages in the pretty-printing process. This is only useful for debugging. A high value of int indicates increased eagerness for keeping intermediate results.

Default setting is 0, indicating that no intermediates will be kept.

-S, --silent

Silent execution. Same as --verbose 0.

--verbose int

Set verbosity level to numerical value int. The higher the number, the more information about pp-aterm's inner workings are printed.

Alternatively, int can be set to either of the following verbosity levels, given in increasing order of verbosity: emergency, alert, critical, error, warning, notice, info, debug, vomit.

--version

Displays the tool name and version.

Example

Refer to Generic Pretty-Printing for a detailed discussion on pretty-printing.

Reporting Bugs

Please report bugs to

Copyright

Copyright (C) 2002-2005 Eelco Visser

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.