changeset 147:060b6eb16db9

Parsing for-loops to some extend.
author Anders Johnsen <skabet@gmail.com>
date Mon, 21 Jul 2008 19:17:56 +0200
parents 8c09fdaa724e
children 6ec686d9c87d 6c5a3c0bb4fb
files sema/Scope.d tests/parser/extern_1.d tests/parser/for_1.d
diffstat 3 files changed, 21 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sema/Scope.d	Mon Jul 21 18:16:50 2008 +0200
+++ b/sema/Scope.d	Mon Jul 21 19:17:56 2008 +0200
@@ -4,8 +4,7 @@
 
 import lexer.Token,
        ast.Module,
-       ast.Decl,
-       ast.Exp;
+       ast.Decl;
 
 public 
 import sema.DType,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/parser/extern_1.d	Mon Jul 21 19:17:56 2008 +0200
@@ -0,0 +1,12 @@
+
+extern (D):
+
+void foo()
+{
+}
+
+extern (C):
+
+void boo()
+{
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/parser/for_1.d	Mon Jul 21 19:17:56 2008 +0200
@@ -0,0 +1,8 @@
+
+int main()
+{
+    for(int i = 0; i < 5; i = i + 1)
+    {
+    }
+    return 0;
+}