comparison trunk/src/dil/Scope.d @ 486:bd176bc73e43

Fixed a few things in the Parser. Refactored some code that used parseArguments() to using parseExpressionList(). Added calls to set() and tidied up the code of the Parser a bit. Fixed parsing DotIdentifier in parseAsmPrimaryExpression(). Added charLiteral member to class CharExpression. Added class InformationManager. Added member infoMan to class Scope.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 01 Dec 2007 18:22:56 +0100
parents e6c759e151cd
children 47be6bfe39cd
comparison
equal deleted inserted replaced
485:ea8c7459f1c4 486:bd176bc73e43
2 Author: Aziz Köksal 2 Author: Aziz Köksal
3 License: GPL3 3 License: GPL3
4 +/ 4 +/
5 module dil.Scope; 5 module dil.Scope;
6 import dil.Symbol; 6 import dil.Symbol;
7 import dil.Information;
7 import common; 8 import common;
8 9
9 class Scope 10 class Scope
10 { 11 {
11 Scope parent; /// The surrounding scope. 12 Scope parent; /// The surrounding scope.
13 InformationManager infoMan; /// Collects errors reported during the semantic phase.
12 14
13 this() 15 this()
14 { 16 {
15 } 17 }
16 18
17 /++ 19 /++
18 Find an identifier in this scope. 20 Find an identifier in this scope.
19 +/ 21 +/
20 Symbol find(char[] ident) 22 Symbol find(char[] ident)
21 { 23 {
22 24 return null;
23 } 25 }
24 26
25 /++ 27 /++
26 Add a symbol to this scope. 28 Add a symbol to this scope.
27 +/ 29 +/