Mercurial > projects > dang
comparison src/ast/Module.d @ 211:9e9f3e7e342b default tip
Added dang folder and Module in ast.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 20:07:35 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
210:f4149d4f6896 | 211:9e9f3e7e342b |
---|---|
1 module ast.Module; | |
2 | |
3 import ast.Decl; | |
4 | |
5 class Module | |
6 { | |
7 this(char[] moduleName) | |
8 { | |
9 this.moduleName = moduleName; | |
10 } | |
11 | |
12 void addDecl(Decl decl) | |
13 { | |
14 decls ~= decl; | |
15 } | |
16 | |
17 private: | |
18 Decl[] decls; | |
19 char[] moduleName; | |
20 bool outputModule = true; | |
21 } | |
22 |