comparison ast/Decl.d @ 126:c3b24e7e8cf8

Carius changes to the parser. Parsing attributes, lexing many keywords(not all yet).
author Anders Johnsen <skabet@gmail.com>
date Tue, 27 May 2008 10:32:31 +0200
parents 189c049cbfcc
children ed815b31479b
comparison
equal deleted inserted replaced
125:d604152de1eb 126:c3b24e7e8cf8
7 7
8 import tango.io.Stdout; 8 import tango.io.Stdout;
9 9
10 import sema.Scope, 10 import sema.Scope,
11 sema.DType, 11 sema.DType,
12 basic.SmallArray; 12 basic.SmallArray,
13 basic.Attribute;
13 14
14 enum DeclType 15 enum DeclType
15 { 16 {
16 VarDecl, 17 VarDecl,
17 ImportDecl, 18 ImportDecl,
32 33
33 DType type() { return null; } 34 DType type() { return null; }
34 35
35 DeclType declType; 36 DeclType declType;
36 Scope env; 37 Scope env;
38 Attribute att;
37 } 39 }
38 40
39 class VarDecl : Decl 41 class VarDecl : Decl
40 { 42 {
41 this(Identifier type, Identifier identifier, 43 this(Identifier type, Identifier identifier,