Mercurial > projects > dil
diff trunk/src/main.d @ 305:df237b3b5f09
- Added class Declarations.
- Changed many methods to return Declarations instead of Declaration[]. Changed members of classes accordingly.
author | aziz |
---|---|
date | Tue, 14 Aug 2007 12:18:01 +0000 |
parents | bc1112f7933d |
children | 9c866aadcb5b |
line wrap: on
line diff
--- a/trunk/src/main.d Tue Aug 14 11:03:04 2007 +0000 +++ b/trunk/src/main.d Tue Aug 14 12:18:01 2007 +0000 @@ -29,7 +29,7 @@ auto srctext = cast(char[]) std.file.read(args[1]); auto parser = new Parser(srctext, args[1]); parser.start(); - auto decls = parser.parseModule(); + auto root = parser.parseModule(); void print(Node[] decls, char[] indent) { @@ -40,7 +40,7 @@ print(decl.children, indent ~ " "); } } -print(decls, ""); +print(root.children, ""); foreach (error; parser.errors) { writefln(`%s(%d)P: %s`, parser.lx.fileName, error.loc, error.getMsg);