2 people want to do this.

Build a refactoring compiler


 

People doing this:


  • People doing this are also doing these things:

    Entries

    Refactoring compiler theory 4 years ago

    A compiler takes source, breaks it into tokens, does further analysis, and produces a tree, and a symbol table. These are further processed into actual executable.

    If you preserve all of the source code, including comments and whitespaces, you can work backwards from the syntactic tree and symbol tables to recreate the original source, losslessly. Once this step is up and running, it should be possible to directly edit the symbol table (as long as duplicates are forbidden), and make a refactoring compiler.

    The next logical step is to then allow for the refactoring of code segments into new subroutines, etc. A completed Refactoring Compiler should be able to save all the information necessary for recreating the source of a program, in the executable file.



    Refactoring compiler goal 4 years ago

    I want to write a compiler which has built-in refactoring capabilities. It would be able to operate in the standard forward mode, compiling from source to tokens and symbols, then to object to executable. The novelty would be that you could change the symbol table, and recreate properly refactored source. You’d also be able to change loop types, etc in version.




     

    I want to:
    43 Things Login