comparison trunk/src/dil/lexer/Lexer.d @ 737:f88b5285b86b

Implemented DDocEmitter. Fixed quite a few bugs.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 09 Feb 2008 02:00:20 +0100
parents b6c6baa41267
children fc8f0e61bc42
comparison
equal deleted inserted replaced
736:2eee29aaa357 737:f88b5285b86b
11 import dil.Information; 11 import dil.Information;
12 import dil.Messages; 12 import dil.Messages;
13 import dil.HtmlEntities; 13 import dil.HtmlEntities;
14 import dil.CompilerInfo; 14 import dil.CompilerInfo;
15 import dil.Unicode; 15 import dil.Unicode;
16 import common;
17
16 import tango.stdc.stdlib : strtof, strtod, strtold; 18 import tango.stdc.stdlib : strtof, strtod, strtold;
17 import tango.stdc.errno : errno, ERANGE; 19 import tango.stdc.errno : errno, ERANGE;
18 import tango.stdc.time : time_t, time, ctime; 20 import tango.stdc.time : time_t, time, ctime;
19 import tango.stdc.string : strlen; 21 import tango.stdc.string : strlen;
20 import common;
21 22
22 public import dil.lexer.Funcs; 23 public import dil.lexer.Funcs;
23 24
24 /++ 25 /++
25 The Lexer analyzes the characters of a source text and 26 The Lexer analyzes the characters of a source text and
2370 error(errorAtColumn, mid); 2371 error(errorAtColumn, mid);
2371 } 2372 }
2372 2373
2373 /++ 2374 /++
2374 Insert an empty dummy token before t. 2375 Insert an empty dummy token before t.
2376
2375 Useful in the parsing phase for representing a node in the AST 2377 Useful in the parsing phase for representing a node in the AST
2376 that doesn't consume an actual token from the source text. 2378 that doesn't consume an actual token from the source text.
2377 +/ 2379 +/
2378 Token* insertEmptyTokenBefore(Token* t) 2380 Token* insertEmptyTokenBefore(Token* t)
2379 { 2381 {