The src/astclone Directory

Namespace astclone, delivered for TC-4. Clone the AST.

File: local.am (src/astclone/)

This is a Makefile configuration relative to the src/astclone/ directory. It is responsible for the integration into the libtc library with everything exported from the astclone module, and the linkage of the directory’s unit tests in the test-suite.

File: libastclone.* (src/astclone/)

The interface of the astclone module. It exports a single procedure, clone.

File: tasks.* (src/astclone/)

Tasks related to the astclone module (see: The src/task Directory).


File: cloner.* (src/astclone/)

The astclone::Cloner visitor. Duplicate an AST. This copy is purely structural: the clone is similar to the original tree, but any existing binding or type information is not preserved.


File: test-cloner.cc (src/astclone/)

Unit tests.