1 2 3 4 5 6 7 8
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Linker</title><link rel="stylesheet" href="synopsis.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="Synopsis Tutorial"><link rel="up" href="ch04.html" title="Chapter4.Processor design"><link rel="previous" href="cxx-parser.html" title="Cxx Parser"><link rel="next" href="comment-parsers.html" title="Comment Parsers"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Linker</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="cxx-parser.html">Prev</a></td><th width="60%" align="center">Chapter4.Processor design</th><td width="20%" align="right"><a accesskey="n" href="comment-parsers.html">Next</a></td></tr></table></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="linker"></a>Linker</h2></div></div><div></div></div><p>The Linker recursively traverses the AST using the Visitor
pattern, and replaces any duplicate types with their originals, and
removes duplicate declarations. References to the removed declarations
are replaced with a reference to the original. This action is largely
unncessary due to the -m flags, but can still be useful in some
situations, such as when you have nested classes defined in separate
files. It also converts AST.Modules into AST.MetaModules, which list all
the files a module is defined in.</p></div><div class="navfooter"><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="cxx-parser.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="comment-parsers.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Cxx Parser</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">Comment Parsers</td></tr></table></div></body></html>
|