Mercurial > projects > dang
comparison dang/compiler.d @ 100:5f258eaf9517 new_gen
Loading modules in. Just need to add them to the scope of the "main" Module now.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 06 May 2008 22:49:43 +0200 |
parents | 198ad05f3ace |
children | fea8d61a2451 |
comparison
equal
deleted
inserted
replaced
99:857f0d530789 | 100:5f258eaf9517 |
---|---|
21 tools.DotPrinter; | 21 tools.DotPrinter; |
22 | 22 |
23 import gen.CodeGen; | 23 import gen.CodeGen; |
24 | 24 |
25 import sema.Visitor, | 25 import sema.Visitor, |
26 sema.LoadModule, | |
26 sema.AstAction, | 27 sema.AstAction, |
27 sema.ScopeBuilder, | 28 sema.ScopeBuilder, |
28 sema.ScopeCheck, | 29 sema.ScopeCheck, |
29 sema.TypeCheck; | 30 sema.TypeCheck; |
30 | 31 |
205 messages.checkErrors(ExitLevel.Parser); | 206 messages.checkErrors(ExitLevel.Parser); |
206 | 207 |
207 StopWatch watch2; | 208 StopWatch watch2; |
208 watch.start; | 209 watch.start; |
209 watch2.start; | 210 watch2.start; |
211 Module[] mods = (new LoadModule).visit(m, src_mgr, messages); | |
210 (new ScopeBuilder).visit(m); | 212 (new ScopeBuilder).visit(m); |
211 auto scope_builder = watch2.stop; | 213 auto scope_builder = watch2.stop; |
212 watch2.start; | 214 watch2.start; |
213 (new ScopeCheck).visit(m); | 215 (new ScopeCheck).visit(m); |
214 auto scope_check = watch2.stop; | 216 auto scope_check = watch2.stop; |