'\" t
.\" Automatically generated by Pandoc 3.11
.\"
.TH "SRCML" "1" "" "srcml 1.1.0" "srcml"
.SH NAME
\f[B]srcml\f[R] \- Conversion of source code to/from the srcML format,
querying and manipulation of srcML
.SH SYNOPSIS
\f[CR]srcml\f[R] [general\-options] [srcML\-options] [transformations]
[output\-src\-options] [input[:position]] [output]
.SH DESCRIPTION
The program \f[CR]srcml\f[R] supports the srcML format.
The srcML format presents an XML view of source code for addressing,
querying, and transformation.
The tool translates source code into the XML source\-code representation
srcML, where standard XML tools, available directly from the
\f[CR]srcml\f[R] program, can query and transform the srcML.
The tool can then convert the srcML back to source code.
.PP
The srcML format preserves all source code text, including white space,
comments, and preprocessor statements.
The C Preprocessor is not run on the source code.
The program works on large projects, individual source\-code files, or
code fragments, including individual statements.
.PP
The conversion to the srcML format uses a custom parser that is fast and
tolerant to incomplete source code and uncompilable code.
.PP
Use of the character `\-' in the place of an input file, or providing no
input file, implies reading from standard input.
A source\-code language must be specified when source\-code input is
from standard input.
An input filename may end with a position suffix to convert only part of
a file, as described in POSITION SUFFIX.
.SH GENERAL OPTIONS
.TP
\f[CR]\-h\f[R], \f[CR]\-\-help\f[R]
Output the help and exit.
.TP
\f[CR]\-V\f[R], \f[CR]\-\-version\f[R]
Output the version of \f[CR]srcml\f[R] then exit.
.TP
\f[CR]\-v\f[R], \f[CR]\-\-verbose\f[R]
Conversion and status information to stderr, including encodings used.
It is especially useful for monitoring the progress of the option
\f[CR]\-\-files\-from\f[R], a directory, or source\-code archive (e.g.,
tar.gz).
.TP
\f[CR]\-q\f[R], \f[CR]\-\-quiet\f[R]
Suppresses status messages.
.TP
\f[CR]\-o\f[R] \f[I]file\f[R], \f[CR]\-\-output\f[R]=\f[I]file\f[R]
Write the output to \f[I]file\f[R].
By default, it writes to standard output.
.TP
\f[CR]\-p\f[R], \f[CR]\-\-from\-clipboard\f[R]
Read input from the system clipboard as an input source.
The clipboard content is auto\-detected as source code or srcML, just
like standard input, so it may be converted to srcML, or extracted and
queried as srcML.
Equivalent to using \f[CR]clipboard://\f[R] as an input filename, which
may also be given directly and mixed with other inputs, preserving
order.
Source\-code content requires a language via \f[CR]\-\-language\f[R] (or
\f[CR]\-\-filename\f[R]).
Requires a system clipboard (macOS, Windows, or X11/Wayland on Linux).
.TP
\f[CR]\-c\f[R], \f[CR]\-\-to\-clipboard\f[R]
Write the output to the system clipboard instead of a file or standard
output.
Applies to srcML, extracted source, and query or transformation results.
Equivalent to using \f[CR]clipboard://\f[R] as the output filename.
.TP
\f[CR]\-j\f[R] \f[I]num\f[R], \f[CR]\-\-jobs\f[R]=\f[I]num\f[R]
Allow up to \f[I]num\f[R] threads for source parsing.
See the \f[CR]\-\-jobs\f[R] description in the help command to see the
default on your machine.
.SH CREATING SRCML
The following options are to create srcML.
The format of the input affects the format of the output unless
otherwise specified.
If the input is source\-code files, the output is expected to be in
srcML format.
If the input is in srcML format, the output is in source\-code format.
.TP
\f[CR]\-t\f[R] \f[I]text\f[R], \f[CR]\-\-text\f[R]=\f[I]text\f[R]
Input the \f[I]text\f[R] string as source code.
Useful for short text input.
Common escape sequences in C and echo are expanded, including
\f[CR]\(rsn\f[R], \f[CR]\(rst\f[R], \f[CR]\(rsa\f[R], \f[CR]\(rsb\f[R],
\f[CR]\(rsv\f[R], \f[CR]\(rse\f[R], \f[CR]\(rsxHH\f[R] where H is 1 to 2
hex values, and \f[CR]\(rsNNN\f[R] and \f[CR]\(rs0NNN\f[R] where N is 1
to 3 octal digits.
.TP
\f[CR]\-\-files\-from\f[R]=\f[I]file\f[R]
Treat the input \f[I]file\f[R] as a list of source files.
Each file is separately translated and collectively stored into a single
srcML archive.
The list has a single filename on each line.
Ignored lines include blank lines and lines that begin with the
character `#'.
As with input and output files, using the character `\-' in place of a
file name takes the input list from standard input.
.TP
\f[CR]\-l\f[R] \f[I]language\f[R], \f[CR]\-\-language\f[R]=\f[I]language\f[R]
Set the programming language of the input source code.
Allowable values are C, C++, C#, Java, Python, JavaScript, CMake, and
Objective\-C.
The language affects parsing, the allowed markup, and what is considered
a keyword.
The value is also stored individually as an attribute in each unit.
If the input is a directory or source\-code archive (e.g., .tar.gz,
\&.zip), the language only applies to files with source\-code
extensions.
Use \(enregister\-ext to register non\-standard source\-code extensions.
.PP
If not specified, the programming language is based on the file
extension.
The language must be specified if standard input is used.
The program will skip a file if there is no file extension or the file
extension is not in the standard list.
This allows you to run \f[CR]srcml\f[R] on a project directory with
source and non\-source files, where \f[CR]srcml\f[R] only parses files
with supported extensions.
.TP
\f[CR]\-\-register\-ext\f[R] \f[I]extension\f[R]=\f[I]language\f[R]
Set the file \f[I]extension\f[R] map to a given \f[I]language\f[R].
Note that the extensions do not contain the period character `.', e.g.,
\f[CR]\-\-register\-ext \(dqh=C++\(dq\f[R].
A common use is C++ files that use the .h extension for header files.
By default, these are processed as C source\-code files.
This option can be used to override this behavior.
The \f[I]language\f[R] NONE disables the \f[I]extension\f[R], e.g.,
\f[CR]\-\-register\-ext \(dqpy=NONE\(dq\f[R] skips all .py files.
.TP
\f[CR]\-\-src\-encoding\f[R]=\f[I]encoding\f[R]
Use the \f[I]encoding\f[R] when processing the input source\-code file.
The default is to try to automatically determine this when possible,
i.e., ISO\-8859\-1 is assumed unless a UTF\-8 character is detected.
Encodings include \(lqUTF\-16\(rq, \(lqISO\-10646\-UCS\-2\(rq, and
\(lqISO\-8859\-1\(rq.
On UNIX platforms, a full list of encodings can be obtained using the
command \f[CR]iconv \-l\f[R].
.TP
\f[CR]\-\-eol\f[R]=\f[I]eol\f[R]
Use the \f[I]eol\f[R] for the output of the source code.
Allowable values are the default \f[CR]auto\f[R], `UNIX' or linefeed
\f[CR]lf\f[R], carriage return \f[CR]cr\f[R], and `Windows' or carriage
return, linefeed \f[CR]crlf\f[R].
In most cases, the default \f[CR]auto\f[R] is sufficient.
.TP
\f[CR]\-r\f[R], \f[CR]\-\-archive\f[R]
Create a srcML archive, which can contain multiple files in the srcML
format.
Default when provided with more than one file or a directory as input.
.PP
The following options control how and when the output format is srcML.
In most cases, the output will be in the proper format, but these allow
you to specify.
.TP
\f[CR]\-X\f[R],\f[CR]\-\-output\-srcml\f[R]
Output srcML as complete and valid XML.
The default when the input is source code or files containing source
code.
.TP
\f[CR]\-output\-srcml\-outer\f[R]
Output the inner (inside the unit tag) of the srcML.
This does not include namespaces or attributes on the archive root
element and is technically invalid XML.
.TP
\f[CR]\-output\-srcml\-inner\f[R]
Output the XML inside of the srcML unit element.
This is not valid XML as it contains no namespace declarations and does
not necessarily have a single root element.
.SS Examples
.IP
.EX
$ srcml \-\-text=\(dqa;\(dq \-l C++ \-\-output\-srcml\-outer
a;
.EE
.IP
.EX
$ srcml \-\-text=\(dqa;\(dq \-l C++ \-\-output\-srcml\-inner
a;
.EE
.SH MARKUP OPTIONS
Optional line and column attributes indicate the position of an element
in the original source code.
Both the line and column start at 1.
The column position is based on the tab settings with a default tab size
8.
Other tab sizes can be set using the option \f[CR]\-\-tabs\f[R].
.TP
\f[CR]\-\-position\f[R]
Insert attributes for the start (line and column) and end (line and
column) of an element in the start tag.
Off by default.
These attributes have a default prefix of \(lqpos\(rq in the namespace
\(lqhttp://www.srcML.org/srcML/position\(rq, e.g.,
\f[CR]\f[R]
.TP
\f[CR]\-\-tabs\f[R]=\f[I]tabsize\f[R]
Set the tab size.
The default is 8.
This option automatically turns on the option \f[CR]\-\-position\f[R].
.TP
\f[CR]\-\-expand\-tabs\f[R]
Expand tabs to spaces on input.
Uses the default or option \f[CR]\-\-tabs\f[R]
.PP
This set of options allows control over how preprocessing regions are
handled, i.e., whether parsing and markup occur.
In all cases, the source is preserved.
.TP
\f[CR]\-\-cpp\f[R]
Turn on parsing and markup of preprocessor statements in non\-C/C++
languages such as Java.
Can also be enabled by defining a prefix for this cpp namespace URL,
e.g., \f[CR]\-\-xmlns:cpp=\(dqhttp://www.srcML.org/srcML/cpp\(dq\f[R].
.TP
\f[CR]\-\-cpp\-markup\-if0\f[R]
Markup #if 0 regions.
The default is to preserve the source code in these regions without any
markup.
This option indicates that the #if 0 regions should be treated as source
code and marked up accordingly.
.TP
\f[CR]\-\-cpp\-no\-markup\-else\f[R]
Only place source code in #else and #elif regions, leaving out markup.
The default is to mark up these regions.
.SH XML FORMAT
The following options control the format of the XML.
.TP
\f[CR]\-\-xml\-encoding\f[R]=\f[I]encoding\f[R]
Use the encoding for the output srcML file.
The default is UTF\-8.
Possible encodings can be obtained using the command
\f[CR]iconv \-l\f[R] on UNIX platforms.
The encoding is stored on the XML declaration.
.TP
\f[CR]\-\-no\-xml\-declaration\f[R]
Do not output the default XML declaration.
Useful when the output is to be placed inside another XML document.
.PP
The following options can be used to change the prefixes.
Each extension to the srcML markup has its own namespace.
These are indicated in the srcML document by the declaration of the
specific extension namespace.
These flags make it easier to declare and are an alternative way to turn
on options by declaring the URL for an option.
.TP
\f[CR]\-\-xmlns\f[R]=\f[I]url\f[R]
Set the \f[I]url\f[R] for the default namespace.
The predefined URL is:
.RS
\f[CR]\-\-xmlns=http://www.srcML.org/srcML/src\f[R]
.RE
.TP
\f[CR]\-\-xmlns:\f[R]\f[I]prefix\f[R]=\f[I]url\f[R]
Set the namespace prefix PREFIX for the namespace URL.
There is a set of standard URLs for the elements in srcML, each with a
predefined prefix.
The predefined URLs and prefixes are:
.RS
\f[CR]\-\-xmlns:cpp=http://www.srcML.org/srcML/cpp\f[R]
\f[CR]\-\-xmlns:pos=http://www.srcML.org/srcML/position\f[R]
.RE
.SH METADATA OPTIONS
This set of options allows view and control over various metadata in
srcML.
.SS Viewing Attributes
The following options allow viewing of various metadata stored in the
srcML document.
.TP
\f[CR]\-L\f[R], \f[CR]\-\-list\f[R]
List all the files in the srcML archive, then exit.
.TP
\f[CR]\-i\f[R], \f[CR]\-\-info\f[R]
Display most metadata, except the unit count (file count) in a srcML
archive, then exit.
.TP
\f[CR]\-I\f[R], \f[CR]\-\-full\-info\f[R]
Display most metadata, including the unit (file) count in a srcML
archive, then exit.
.TP
\f[CR]\-\-show\-language\f[R]
Display language and exit.
.TP
\f[CR]\-\-show\-url\f[R]
Display the URL of the root element and exit.
.TP
\f[CR]\-\-show\-filename\f[R]
Display the filename and exit.
.TP
\f[CR]\-\-show\-src\-version\f[R]
Display the source\-code version attribute and exit.
.TP
\f[CR]\-\-show\-timestamp\f[R]
Display the timestamp attribute and exit.
.TP
\f[CR]\-\-show\-hash\f[R]
Display the hash value and exit.
.TP
\f[CR]\-\-show\-encoding\f[R]
Display the XML encoding and exit.
.TP
\f[CR]\-\-show\-unit\-count\f[R]
Display the unit count and exit.
.TP
\f[CR]\-\-show\-prefix\f[R]=\f[I]url\f[R]
Display a prefix given by a \f[I]url\f[R] and exit.
.SS Setting Attributes
The following options allow the user to set the attributes:
.TP
\f[CR]\-f\f[R] \f[I]filename\f[R], \f[CR]\-\-filename\f[R]=\f[I]filename\f[R]
The value of the filename attribute is typically obtained from the input
filename.
This option allows you to specify a different filename for standard
input or where the filename is not contained in the input path.
.TP
\f[CR]\-\-url\f[R]=\f[I]url\f[R]
Defines the url attribute on the root element.
This is purely descriptive and has no interpretation by
\f[CR]srcml\f[R].
It is helpful to specify a directory or define the source protocol.
.TP
\f[CR]\-s\f[R] \f[I]version\f[R], \f[CR]\-\-src\-version\f[R]=\f[I]version\f[R]
Set the value of the attribute version to version.
This is a purely\-descriptive attribute, where the value has no
interpretation by \f[CR]srcml\f[R].
The attribute is applied to the root element, and in the case of a srcML
archive, it is also applied to each unit in the archive.
.TP
\f[CR]\-\-hash\f[R]
The value of the hash attribute is a SHA\-1 hash generated based on the
contents of the source\-code file.
This is enabled by default when working with srcML archives.
.TP
\f[CR]\-\-timestamp\f[R]
Set the timestamp of the output srcML file to the last modified time of
the input source\-code archive.
This is the last modified time based on the archive files.
.SS Examples
Create a srcML unit from input.cpp, using C++ parsing rules, and output
to standard out.
.IP
.EX
$ srcml input.cpp
.EE
.PP
Create a srcML unit from standard input, using C++ parsing rules, and
output to standard out.
.IP
.EX
$ echo \(dqint a;\(dq | srcml \-l C++
.EE
.PP
Create a srcML unit from the expanded text, using C++ parsing rules, and
output to standard out.
.IP
.EX
$ srcml \-\-text=\(dqint a;\(rsn\(dq \-l C++
.EE
.PP
Create a srcML archive from all files contained in the dir directory,
using their extensions to determine the markup parsing rules, and output
the number of units contained in the archive to standard out.
.IP
.EX
$ srcml dir \-\-show\-unit\-count
.EE
.PP
Create a srcML unit from input.java, using Java parsing rules as well as
C++ parsing rules for preprocessor directives.
.IP
.EX
$ srcml input.java \-\-cpp
.EE
.SH EXTRACTING SOURCE CODE
The following describe options that are only applicable when the output
is in source\-code format.
.TP
\f[CR]\-U\f[R] \f[I]n\f[R], \f[CR]\-\-unit\f[R] \f[I]n\f[R]
Extract individual \f[I]n\f[R]\-th unit from srcML archive.
.TP
\f[CR]\-S\f[R], \f[CR]\-\-output\-src\f[R]
Output source code.
This is the default when the input is in srcML.
.TP
\f[CR]\-\-to\-dir\f[R]=\f[I]directory\f[R]
Extract all files from srcML and create them in the file system at
\f[I]directory>\f[R]
.TP
\f[CR]\-Z\f[R], \f[CR]\-\-print0\f[R]
Separates each source code unit with an ASCII NULL (`\(rs0')
.SS Examples
Create a srcML archive from all files contained in the dir directory,
using their extensions to determine the markup parsing rules, and write
the resulting srcML archive to dir.xml.
.IP
.EX
$ srcml dir \-o dir.xml
.EE
.PP
Re\-create all files based on the srcML units in archive.xml, using the
current directory as the root directory.
.IP
.EX
$ srcml archive.xml \-\-to\-dir=.
.EE
.SH HEADER SOURCE FORMAT
Exporting srcML back to source code loses the attributes and namespaces
from the original conversion, e.g., the filename.
In order to preserve this information, the source output can include an
optional YAML header containing the names and values of the attributes
and namespaces on the original srcML.
.IP
.EX
\-\-\-
xmlns\f[B]:\f[R] \(dqhttp://www.srcML.org/srcML/src\(dq
language\f[B]:\f[R] \(dqC++\(dq
filename\f[B]:\f[R] \(dqmain.cpp\(dq
\-\-\-
int main() {
return 0;
}
.EE
.PP
The YAML header must include the namespace declaration for srcml, e.g.,
\f[CR]xmlns: \(dqhttp://www.srcML.org/srcML/src\(dq\f[R].
The newline after the end of the YAML header is not considered part of
the source code.
.PP
The header is automatically detected and processed on source from
standard input.
For source input from a file, the \f[CR]\-\-header\f[R] option must be
used to indicate the file contains headers.
.PP
For a srcML archive, any namespaces and and attributes on the root
\f[CR]\f[R] are distributed to YAML header of every unit.
The header also includes any custom namespaces and attributes of the
original srcML.
.PP
The use of the header requires the option \f[CR]\-\-print0\f[R] to
insert an ASCII NULL (`\(rs0'), between each file.
The \f[CR]\-\-header\f[R] option automatically turns on
\f[CR]\-\-print0\f[R].
This, along with the ASCII NULL, allows for the round trip of a srcML
archive to a single source file and back to srcML without losing any
original srcML attributes or namespaces.
.TP
\f[CR]\-H\f[R], \f[CR]\-\-header\f[R]
Adds a YAML header block to source output that contains all of the
attributes and namespaces of the original srcML.
Required for input from a file of source with headers and NULL
separators.
Not required for header source from standard input.
.SH TRANSFORMATIONS
Query the srcML using XPath, RelaxNG, and srcQl.
The queries can extract the matched code, insert a custom attribute on
the matched code, or wrap the matched code with a custom element.
Transformations using XSLT are also supported.
.TP
\f[CR]\-\-xpath=\f[R]\f[I]expression\f[R]
Query each individual unit using the XPath \f[I]expression\f[R].
Multiple XPath expression options are allowed.
.RS
The default prefix cannot be used in XPath expressions.
Element names must have a prefix, e.g., \f[CR]src\f[R], \f[CR]cpp\f[R],
etc.
Path from the root is required.
By default, the result is a srcML archive where each unit is a query
result, marked with the original filename.
As an alternative, the original srcML can be preserved with the query
results marked with an attribute, wrapped with an element, or both.
Note that the prefix and url used for the namespace must be declared
with the option \f[CR]\-\-xmlns:\f[R].
.RE
.TP
\f[CR]\-\-srcql=\f[R]\f[I]query\f[R]
Query each individual unit using the srcQL \f[I]query\f[R].
Multiple srcQL query options allowed.
.RS
Very similar results to the XPath option \f[CR]\-\-xpath\f[R].
srcQL queries are written in source\-code fragments with the ability to
match multiple instances using logical variables, e.g., all declaration
statements are \(aq$T $V;\(aq.
On the command line, demark with single quotes to avoid bash expansion.
Unification is also supported, e.g., all functions with a parameter type
that matches the return type are \(aq$T $V($T)\(aq.
This is an experimental feature and only srcQL queries without verbs are
allowed.
.RE
.TP
\f[CR]\-\-srcql\-warning\-off\f[R], \f[CR]\-F\f[R]
Turn off warning for srcql queries that have no logical variables.
.RS
The logical variables in a srcql query start with a \f[CR]$\f[R], e.g.,
\f[CR]$TYPE\f[R].
When the srcql query is passed on the command line delimited by double
quotes, the shell performs variable substitution before the srcml
program gets the command line options.
E.g., for the command \f[CR]\-\-srcql=\(dqFIND $T $V;\(dq\f[R], the
srcql query is passed to the program as \f[CR]FIND ;\f[R] if T and V
are undefined shell variables.
The key to prevent this is to delimit the query with single quotes, as
this prevents shell variable expansion.
E.g., for the command \f[CR]\-\-srcql=\(aqFIND $T $V;\(aq\f[R], the
srcql query is passed to the program as \f[CR]FIND $T $V;\f[R].
To assist the user in noticing this, if the resulting srcql query does
not have a logical variable, a warning is issued.
This option turns off the warning.
.RE
.TP
\f[CR]\-\-attribute\f[R] \f[I]prefix:name=value\f[R]
Add the attribute \f[I]prefix:name=\(lqvalue\(rq\f[R] to every Xpath
expression or srcQL query result.
.TP
\f[CR]\-\-element\f[R] \f[I]prefix:name\f[R]
Wrap every Xpath expression or srcQL query result with an element of the
form \f[I]prefix:name\f[R].
May be mixed with \f[CR]\-\-attribute\f[R].
.TP
\f[CR]\-\-relaxng\f[R]=\f[I]file\f[R]|\f[I]url\f[R]
Output units matching the RELAXNG \f[I]file\f[R] or \f[I]url\f[R].
.TP
\f[CR]\-\-xslt\f[R] \f[I]file\f[R]|\f[I]url\f[R]
Apply a transformation from an XSLT \f[I]file\f[R] or \f[I]url\f[R] to
each individual unit.
.TP
\f[CR]\-\-xslt\-param\f[R] \f[I]name\f[R]=\(lq\f[I]value\f[R]\(rq
Pass the string parameter \f[I]name\f[R] with UTF\-8 encoded string
\f[I]value\f[R] to the XSLT program
.SS Examples
Convert a.cpp to srcML and add the attribute \f[CR]q:foo=test\f[R] to
all \f[CR]src:name\f[R] elements as found by the XPath query.
Output the results to standard output.
.IP
.EX
$ srcml a.cpp \-\-xpath=\(dq//src:name\(dq \-\-attribute=\(dqq:foo=test\(dq \-\-xmlns:q=mysite.net
.EE
.PP
Execute the XPath query on archive.xml, outputting the filename
attribute of each unit in the archive to standard out.
.IP
.EX
$ srcml archive.xml \-\-xpath \(dq//src:unit/\(atfilename\(dq
.EE
.SH POSITION SUFFIX
An input source\-code filename may end with a position suffix,
converting only that part of the file:
.PP
.TS
tab(@);
l l.
T{
Input
T}@T{
Converted
T}
_
T{
\f[CR]main.cpp:191\f[R]
T}@T{
line 191
T}
T{
\f[CR]main.cpp:191:5\f[R]
T}@T{
line 191 from column 5
T}
T{
\f[CR]main.cpp:191\-222\f[R]
T}@T{
lines 191 through 222
T}
T{
\f[CR]main.cpp:191\-\f[R]
T}@T{
line 191 to the end
T}
T{
\f[CR]main.cpp:\-222\f[R]
T}@T{
the start through line 222
T}
T{
\f[CR]main.cpp:191:5\-222:12\f[R]
T}@T{
191:5 through 222:12
T}
.TE
.PP
Lines and columns start at one, and a position past an end is that end.
A zero, or a range that ends before it starts, is an error.
The suffix only applies when no file of that exact name exists, and is
not allowed on a directory, an archive, or srcML input.
.SH EXIT STATUS
\f[B]0\f[R]: Normal
.PP
\f[B]1\f[R]: General error
.PP
\f[B]2\f[R]: Internal error
.SH CAVEATS
Translation is performed based on local information with no symbol
table.
For non\-CFG languages, i.e., C/C++, and with macros this may lead to
incorrect markup.
.PP
Line endings are normalized in XML formats including srcML.
.SH BUGS
Libxml2 directly supports many encodings beyond UTF\-8, UTF\-16, and
ISO\-8859\-1 through iconv.
However, the BOM (Byte Order Mark) immediately before the XML
declaration may not be processed correctly by \f[CR]srcml\f[R] and by
other libxml2\-based tools (e.g., xmllint).
Use the LE or BE version of the encoding, e.g., UTF\-32BE, UTF\-32LE,
instead.
.PP
Report bugs at Contact us at http://www.srcml.org/support.html
.SH AUTHORS
Written by Michael L. Collard, Michael Decker, Kyle Rossi, Joshua
Behler, Drew Guarnera, Brian Bartman, and Heather Michaud.
.SH COPYRIGHT
Copyright (C) 2013\-2025 srcML, LLC.
(www.srcML.org)
.PP
The srcML Toolkit is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
.PP
The srcML Toolkit is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
.PP
You should have received a copy of the GNU General Public License along
with the srcML Toolkit; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA