pack-sdf — packs a set of SDF modules into a single definition
dir | --include
file | --input
file | --output
[-S | --silent]
level | --keep
[-h | -? | --help]
An SDF syntax definition consists of a set of
modules. pack-sdf collects all modules
imported by module
creates a combined syntax definition in file
The search order for SDF modules is:
The directory of the main module specified with the
The specified include options (
-I), in the order
they are given on the command-line.
The XTC repository
pack-sdf checks if the module name specified in an SDF module file, corresponds to the actual filename. Having different names can lead to subtle errors which are difficult to find.
Missing modules will be reported by pack-sdf. Usually, the module is not really missing, but the name of this import is incorrect. Therefore, pack-sdf reports the module(s) from where the 'missing' module is imported. pack-sdf prints a detailed report of all missing modules and the module where these are imported.
pack-sdf supports the creation of a dependency file
suitable for inclusion in a
will instruct pack-sdf to do this, so there is no need
to specify dependencies of SDF files by hand.
Write make dependencies to
Include modules from directory
pack-sdf will give a warning if the directory does not exist.
Include modules from SDF definition in file
pack-sdf will give a warning if the file does not exist.
Use output format
format, which must be either of
Common Input/Output Options
The input term given by the file name
In the absence of the
-i option, input
will be read from
The output will be written to the file given by the file name
In the absence of the
output will be written to
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
Display usage information.
Keep intermediate results produced by the internal stages in the
pretty-printing process. This is only useful for debugging. A high
int indicates increased eagerness
for keeping intermediate results.
Default setting is 0, indicating that no intermediates will be kept.
Silent execution. Same as
Set verbosity level to numerical value
higher the number, the more information about pp-aterm's inner workings are
int can be set to either of the
following verbosity levels, given in increasing order of verbosity:
Displays the tool name and version.
Issuing the following command will collapse all external SDF modules references
found in the
lang.sdf file into one single definition, by searching
the local directory, then the
lang/. The result is written to
lang.def. All file dependencies will be computed and placed in
a make-compatible file, called
$pack-sdf -I lang --dep lang.dep -i lang.sdf -o lang.def
Please report bugs to
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.