Date of Award


Document Type

Thesis (Undergraduate)


Department of Computer Science

First Advisor

Tom Cormen


This paper presents our design and implementation of program transformation for C++ that will be used in the context of a thought-guided debugging system. The program uses a lexical analyzer written in Flex and a grammar written in Bison that work in conjunction to scan the inputted C++ code for function definitions and class definitions. The code is then transformed to produce trace information for each defined function, while the original functionality of the code is left untouched. We also implement two additional data structures that are used for information storage during the course of the program.


Originally posted in the Dartmouth College Computer Science Technical Report Series, number TR2001-395.