I love the simplicity of the main function:<p><pre><code> rewriteTypes(cfg, prog)
rewriteSyntax(cfg, prog)
rewriteLen(cfg, prog)
fixGoTypes(cfg, prog)
renameDecls(cfg, prog)
exportDecls(cfg, prog)
writeGoFiles(cfg, prog)
</code></pre>
<a href="https://github.com/rsc/c2go/blob/f6c077dd7192b90f4a7ad0a4b8f4fa5b2649899b/main.go#L62-L76" rel="nofollow">https://github.com/rsc/c2go/blob/f6c077dd7192b90f4a7ad0a4b8f...</a>