Mercurial > projects > dil
comparison trunk/src/dil/Identifier.d @ 505:3bb94ba21490
Refactored a great amount of code.
Changed many declaration types from Token* to Identifier*.
Fix in parseStructInitializer(): append null to idents in else body.
Fixed class Parameter and parseParameterList().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 12 Dec 2007 02:25:42 +0100 |
parents | 4e14cd1b24da |
children | 4d50267f59c9 |
comparison
equal
deleted
inserted
replaced
504:9076c4cea2a4 | 505:3bb94ba21490 |
---|---|
12 { | 12 { |
13 string str; | 13 string str; |
14 TOK type; | 14 TOK type; |
15 ID identID; | 15 ID identID; |
16 | 16 |
17 static Identifier* opCall(string str, TOK type, ID identID = ID.Null) | 17 static Identifier* opCall(string str, TOK type) |
18 { | |
19 auto id = new Identifier; | |
20 id.str = str; | |
21 id.type = type; | |
22 return id; | |
23 } | |
24 | |
25 static Identifier* opCall(string str, TOK type, ID identID) | |
18 { | 26 { |
19 auto id = new Identifier; | 27 auto id = new Identifier; |
20 id.str = str; | 28 id.str = str; |
21 id.type = type; | 29 id.type = type; |
22 id.identID = identID; | 30 id.identID = identID; |