TRACS - Teaching Resource for Annotating Code Samples

Using TRACS Online

Step 1 - Import File

Upload the file you want to annotate by clicking on the "Import" button and navigating to the location of your file. TRACS will automatically add some program unit annotations to the file before displaying it on screen.

Step 2 - Program unit annotations

There are three kinds of program units:

When the file is imported, TRACS assumes that every line is an individual command.

To add your own annotations, just click and highlight the code then click the appropriate button.

Step 3 - Static Control Flow

To add static control flow arrows, click and drag from one range to another.

Step 4 - Dynamic Control Flow

The dynamic control flow layer consists of three parts:

The files area starts out with three standard files: stdin, stdout and stderr. The others start out with no entries.

To add an entry to any of the three sections, click on the Add button. Fill in the values, and note down which step step the operation happened on. You can edit the names of any of the files of