• DocumentCode
    2033822
  • Title

    Preserving the documentary structure of source code in language-based transformation tools

  • Author

    Van De Vanter, M.L.

  • Author_Institution
    Sun Microsystems Labs., Palo Alto, CA
  • fYear
    2001
  • fDate
    2001
  • Firstpage
    131
  • Lastpage
    141
  • Abstract
    Language-based tools necessarily translate textual source code into grammar-based representations. During translation, tools such as compilers and analyzers are generally free to discard comments and white space, which have no impact on the code´s formal meaning. Tools that produce transformed source code for human consumption enjoy no such freedom. Comments and white space are crucial to the comprehensibility and maintainability of source code and thus to its ultimate value. However, it is not always practical or desirable for transformation tools to replicate comments and white space in their entirety. An analysis of the documentary (as opposed to linguistic) structure of source code leads to a practical strategy for preserving its comprehensibility when processed by such tools
  • Keywords
    program compilers; program interpreters; system documentation; text editing; comments; compilers; documentary structure; documentary structure preservation; formal meaning; grammar-based representations; human consumption; language-based transformation tools; practical strategy; source code; textual source code translation; transformed source code; white space; Computer languages; Data structures; Eyes; Humans; Java; Laboratories; Sun; Tree data structures; White spaces;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Source Code Analysis and Manipulation, 2001. Proceedings. First IEEE International Workshop on
  • Conference_Location
    Florence
  • Print_ISBN
    0-7695-1387-5
  • Type

    conf

  • DOI
    10.1109/SCAM.2001.972674
  • Filename
    972674