diff lexer/Lexer.d @ 92:771ac63898e2 new_gen

A few better parser errors plus renaming most of the sema classes to match that they do now. Some have changes a lot.
author Anders Johnsen <skabet@gmail.com>
date Mon, 05 May 2008 18:44:20 +0200
parents 1a24e61eb104
children 857f0d530789
line wrap: on
line diff
--- a/lexer/Lexer.d	Mon May 05 17:07:16 2008 +0200
+++ b/lexer/Lexer.d	Mon May 05 18:44:20 2008 +0200
@@ -356,7 +356,9 @@
         CharType c = charTable[current];
 
         if(c == CharType.INVALID)
-            messages.report(InvalidSymbol, Loc(), 1).arg(Integer.toString(cast(int)current));
+            messages.report(InvalidSymbol, Loc())
+                .arg(Integer.toString(cast(int)current))
+                .fatal(ExitLevel.Lexer);
 
         return c;