Mercurial > projects > dil
comparison trunk/src/dil/parser/ImportParser.d @ 680:6b3e397229c5
Renamed Statements, Declarations and EnumMember.
Statements -> CompoundStatement.
Declarations -> CompoundDeclaration.
EnumMember -> EnumMemberDeclaration.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 18 Jan 2008 23:59:41 +0100 |
parents | ff6971637f88 |
children | 7541c64fc423 |
comparison
equal
deleted
inserted
replaced
679:ff6971637f88 | 680:6b3e397229c5 |
---|---|
18 this(char[] srcText, string fileName) | 18 this(char[] srcText, string fileName) |
19 { | 19 { |
20 super(srcText, fileName); | 20 super(srcText, fileName); |
21 } | 21 } |
22 | 22 |
23 override Declarations start() | 23 override CompoundDeclaration start() |
24 { | 24 { |
25 auto decls = new Declarations; | 25 auto decls = new CompoundDeclaration; |
26 super.init(); | 26 super.init(); |
27 if (token.kind == T.Module) | 27 if (token.kind == T.Module) |
28 decls ~= parseModuleDeclaration(); | 28 decls ~= parseModuleDeclaration(); |
29 while (token.kind != T.EOF) | 29 while (token.kind != T.EOF) |
30 parseDeclarationDefinition(Protection.None); | 30 parseDeclarationDefinition(Protection.None); |