Mercurial > projects > dang
annotate ast/Module.d @ 136:2be29b296081
Lots of changes:
- Parsing classes and interfaces
- Fixed some seg faults in sema
- Supporting "private" to some extend
- And a lot of other small fixes
author | johnsen@johnsen-laptop |
---|---|
date | Fri, 11 Jul 2008 21:47:57 +0200 |
parents | ed815b31479b |
children | 927ae00bd9d2 |
rev | line source |
---|---|
95 | 1 module ast.Module; |
2 | |
129 | 3 import sema.Scope, |
4 sema.Symbol; | |
95 | 5 |
6 import ast.Decl; | |
7 | |
8 class Module | |
9 { | |
10 this(char[] moduleName) | |
11 { | |
12 this.moduleName = moduleName; | |
13 } | |
14 | |
15 void addDecl(Decl decl) | |
16 { | |
17 decls ~= decl; | |
18 } | |
19 | |
20 Decl[] decls; | |
21 char[] moduleName; | |
22 Scope env; | |
129 | 23 Symbol symbol; |
136 | 24 bool outputModule = true; |
95 | 25 } |
129 | 26 |