Generating documentation during compilation of simple programs

University essay from KTH/Skolan för elektroteknik och datavetenskap (EECS)

Author: Jarl Silvén; [2019]

Keywords: ;

Abstract: This thesis investigates if automatic generation of documentation might be possible, and attempts to create a tool that performs this through symbolic execution. It parses and analyses a subgroup of C code, with only integers, if-else and basic operations allowed, and attempts to create comments about the code that would aid programmers in understanding said code. One of the obstacles found was the difficulty in efficiently storing variable information. The solution for this was found, as well as improving the format on comments generated. Finally, a new strategy is presented for dealing with while-loops in the future. While not all obstacles were circumvented, the experiment produced documentation different than source code and can be deemed worthy of more attention in the future.

  AT THIS PAGE YOU CAN DOWNLOAD THE WHOLE ESSAY. (follow the link to the next page)