Jump to content

Source code generation

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quuxplusone (talk | contribs) at 08:05, 6 March 2007 (add some more info, partly merged from Code generation (compiler)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Source code generation is the act of generating source code basing on an ontological model such as a template and is accomplished with a programming tool such as a template processor or an IDE. These tools allow the generation of source code through any of various means.

The simplest form of source code generator is a macro processor, such as the C preprocessor, which replaces patterns in source code according to relatively simple rules.

Present in IDEs such as Microsoft Visual Studio are more advanced forms of source code generation, with which the programmer can interactively select and customize "snippets" of source code. Program "wizards", which allow the programmer to design graphical user interfaces interactively while the compiler invisibly generates the corresponding source code, are another common form of source code generation.

See also