Mercurial > projects > dil
comparison trunk/src/dil/Lexer.d @ 532:50e64bab9c7a
Renamed InformationManager to InfoManager.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 17 Dec 2007 16:10:08 +0100 |
parents | f203c5248d0b |
children | d0d40bcca9c6 |
comparison
equal
deleted
inserted
replaced
531:315aeb3f7a9b | 532:50e64bab9c7a |
---|---|
33 char[] filePath; /// Path to the source text. | 33 char[] filePath; /// Path to the source text. |
34 char* p; /// Points to the current character in the source text. | 34 char* p; /// Points to the current character in the source text. |
35 char* end; /// Points one character past the end of the source text. | 35 char* end; /// Points one character past the end of the source text. |
36 | 36 |
37 // Members used for error messages: | 37 // Members used for error messages: |
38 InformationManager infoMan; | 38 InfoManager infoMan; |
39 LexerError[] errors; | 39 LexerError[] errors; |
40 /// Always points to the beginning of the current line. | 40 /// Always points to the beginning of the current line. |
41 char* lineBegin; | 41 char* lineBegin; |
42 // Token* newline; /// Current newline token. | 42 // Token* newline; /// Current newline token. |
43 uint lineNum = 1; /// Current, actual source text line number. | 43 uint lineNum = 1; /// Current, actual source text line number. |
49 Construct a Lexer object. | 49 Construct a Lexer object. |
50 Params: | 50 Params: |
51 text = the UTF-8 source code. | 51 text = the UTF-8 source code. |
52 filePath = the path to the source code; used for error messages. | 52 filePath = the path to the source code; used for error messages. |
53 +/ | 53 +/ |
54 this(string text, string filePath, InformationManager infoMan = null) | 54 this(string text, string filePath, InfoManager infoMan = null) |
55 { | 55 { |
56 this.filePath = this.errorPath = filePath; | 56 this.filePath = this.errorPath = filePath; |
57 this.infoMan = infoMan; | 57 this.infoMan = infoMan; |
58 | 58 |
59 this.text = text; | 59 this.text = text; |