diff trunk/src/dil/Messages.d @ 390:4d36eea1bbc9

Refactored Lexer.scan(). Illegal characters are not ignored anymore. They are reported as errors. Added a new member 'ws' to Token. When a token is scanned the lexer sets ws to the leading whitespace or leaves it at null when no whitespace was found. Added Illegal to enum TOK and IllegalCharacter to enum MID. Added localized messages for MID.IllegalCharacter. Adapted code of cmd.Generate to make use of Token.ws.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 12 Sep 2007 21:03:41 +0200
parents c4bfceab7246
children 33b566df6af4
line wrap: on
line diff
--- a/trunk/src/dil/Messages.d	Wed Sep 12 18:18:29 2007 +0200
+++ b/trunk/src/dil/Messages.d	Wed Sep 12 21:03:41 2007 +0200
@@ -10,6 +10,7 @@
 enum MID
 {
   // Lexer messages:
+  IllegalCharacter,
   InvalidUnicodeCharacter,
   InvalidUTF8Sequence,
   // ''