Mercurial > projects > dang
diff tools/DotPrinter.d @ 94:48bb2287c035 new_gen
Added Modules. Right now it's very simple - will grow with time and need.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 06 May 2008 16:24:14 +0200 |
parents | eb5b2c719a39 |
children |
line wrap: on
line diff
--- a/tools/DotPrinter.d Mon May 05 20:53:13 2008 +0200 +++ b/tools/DotPrinter.d Tue May 06 16:24:14 2008 +0200 @@ -3,7 +3,8 @@ import tango.io.Stdout, Int = tango.text.convert.Integer; -import ast.Decl, +import ast.Module, + ast.Decl, ast.Stmt, ast.Exp; @@ -16,10 +17,10 @@ private char[][void*] identifiers; private int current_id = 0; - void print(Decl[] decls) + void print(Module m) { Stdout("digraph {").newline; - foreach(decl ; decls) + foreach(decl ; m.decls) { printDecl(decl); }