comparison trunk/src/Token.d @ 30:426767b94635

- Added code for parsing the '#line' special token. - Added fileName to Lexer. - Added _uint to Token. - Added basic peek() method to Lexer.
author aziz
date Mon, 25 Jun 2007 08:37:02 +0000
parents ef83eea26bbd
children 94f09f4e988e
comparison
equal deleted inserted replaced
29:ef83eea26bbd 30:426767b94635
79 79
80 union 80 union
81 { 81 {
82 char[] str; 82 char[] str;
83 dchar chr; 83 dchar chr;
84 uint _uint;
84 float f; 85 float f;
85 double d; 86 double d;
86 } 87 }
87 88
88 string span() 89 string span()
89 { 90 {
91 assert(start && end);
90 return start[0 .. end - start]; 92 return start[0 .. end - start];
91 } 93 }
92 94
93 bool isKeyword() 95 bool isKeyword()
94 { 96 {