Mercurial > projects > dil
diff src/dil/lexer/IdTable.d @ 820:1d06b4aed7cf
Revised code in the first pass.
Added code to handle anonymous unions and structs. Hope the idea will work.
Added type to class Aggregate and isAnonymous to some other Symbol classes.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 14 Mar 2008 15:42:08 +0100 |
parents | 372fa4fbbb1d |
children |
line wrap: on
line diff
--- a/src/dil/lexer/IdTable.d Thu Mar 13 18:59:54 2008 +0100 +++ b/src/dil/lexer/IdTable.d Fri Mar 14 15:42:08 2008 +0100 @@ -148,6 +148,24 @@ return genAnonymousID("__anonenum"); } + /// Generates an identifier for an anonymous class. + Identifier* genAnonClassID() + { + return genAnonymousID("__anonclass"); + } + + /// Generates an identifier for an anonymous struct. + Identifier* genAnonStructID() + { + return genAnonymousID("__anonstruct"); + } + + /// Generates an identifier for an anonymous union. + Identifier* genAnonUnionID() + { + return genAnonymousID("__anonunion"); + } + /// Generates an identifier for a module which has got no valid name. Identifier* genModuleID() {