Mercurial > projects > dil
diff trunk/src/SyntaxTree.d @ 275:e8de572e4d01
- Changed enum NodeType to NodeCategory.
- Fix in ctor of class Declaration: category is Declaration, not Expression.
author | aziz |
---|---|
date | Mon, 06 Aug 2007 14:00:03 +0000 |
parents | 32d354584b28 |
children | d6b2f7616ca5 |
line wrap: on
line diff
--- a/trunk/src/SyntaxTree.d Mon Aug 06 06:55:03 2007 +0000 +++ b/trunk/src/SyntaxTree.d Mon Aug 06 14:00:03 2007 +0000 @@ -5,7 +5,7 @@ module SyntaxTree; import Token; -enum NodeType +enum NodeCategory { Declaration, Statement, @@ -16,12 +16,12 @@ class Node { - NodeType nodeType; + NodeCategory category; Token* begin, end; - this(NodeType nodeType) + this(NodeCategory category) { - this.nodeType = nodeType; + this.category = category; } void setTokens(Token* begin, Token* end)