Jump to content

Source code generation

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CharlesGillingham (talk | contribs) at 05:50, 26 August 2007 (Merge suggestion). 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.

IDEs such as Microsoft Visual Studio have 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