4.3. Tanglers

A tangler is an object that is designed to process source code in some programming language for which the tangler is specialised. Tanglers are generally selected by the @select() command in the source. Output to a tangler is disabled by most documentation commands, so the system reverts to generating documentation.

Tanglers can be stacked. Typically, test code or header code will be embedded in files containing definitions.

Interscript comes with specialised tanglers for, several languages. The list below shows the currently implemented special features of these tanglers.

data
No special features.
C
Tracks source with #linedirectives. Associated string and comment tanglers. Parses identifiers (badly).
C++
Tracks source with #line directives. Associated string and comment tanglers. Parses identifiers (badly).
python
Tracks source with #line directives. Associated comment tangler. Parses identifiers properly.
perl
Tracks source with #line directives. Parses and processes Plain Old Documentation constructions.
java
Associated string and comment tanglers.
interscript
No special features.