Mercurial > projects > dang
comparison dang/compiler.d @ 195:4e1a7265d620
Made a BuildTypes pass, to give all exp's a type.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 29 Jul 2008 15:50:24 +0200 |
parents | 08f68d684047 |
children |
comparison
equal
deleted
inserted
replaced
194:08f68d684047 | 195:4e1a7265d620 |
---|---|
25 | 25 |
26 import sema.Visitor, | 26 import sema.Visitor, |
27 sema.AstAction, | 27 sema.AstAction, |
28 sema.BuildScopes, | 28 sema.BuildScopes, |
29 sema.BuildSymbols, | 29 sema.BuildSymbols, |
30 sema.BuildTypes, | |
30 sema.CheckScopes, | 31 sema.CheckScopes, |
31 sema.CheckTypes, | 32 sema.CheckTypes, |
32 sema.LiteralInterpreter, | 33 sema.LiteralInterpreter, |
33 sema.VC, | 34 sema.VC, |
34 sema.ObjectOriented; | 35 sema.ObjectOriented; |
318 (new BuildScopes).visit(modules); | 319 (new BuildScopes).visit(modules); |
319 (new BuildSymbols).visit(modules); | 320 (new BuildSymbols).visit(modules); |
320 StopWatch watch2; | 321 StopWatch watch2; |
321 watch.start; | 322 watch.start; |
322 watch2.start; | 323 watch2.start; |
324 | |
325 (new BuildTypes(messages)).visit(modules); | |
326 | |
323 (new CheckScopes(messages)).visit(modules); | 327 (new CheckScopes(messages)).visit(modules); |
324 messages.checkErrors; | 328 messages.checkErrors; |
325 auto scope_check = watch2.stop; | 329 auto scope_check = watch2.stop; |
326 | 330 |
327 watch2.start; | 331 watch2.start; |