Manual:Preprocessor DOM.php

Description
This file contains functions for recursively expanding variables, parser functions, templates, and template parameters.

As an intermediate step it creates an XML DOM representation of the wikitext (see also ).

Functions called from  include:

It performs double-brace expansion, calling function braceSubstitution in Parser.php, and triple-brace expansion, calling function argSubstitution in <tvar|4>Parser.php</tt></>.
 * function preprocessToObj</tt> - preprocesses wikitext and returns a document tree, also called DOM tree. It calls:
 * function preprocessToXml</tt> - parses the wikitext with respect to double braces <tvar|1> </>, triple braces <tvar|2>  </>, and double rectangular brackets <tvar|3> ... </>, and also finds the pipes <tvar|4>|</> and the equals signs <tvar|5>=</>.  The result is the DOM tree.
 * function expand</tt> - produces the expanded wikitext from the DOM tree.

External link

 *  The MediaWiki parser, uncovered