diff trunk/src/main.d @ 422:ad7977fe315a

Added support for column numbers in error messages. Moved class Location to module Information. In class Lexer: Renamed p_newl to beginLine. Added member errorLoc. Renamed fileName to filePath. Tidied up the code and reordered some methods. Renamed set_p_newl() to setLineBegin(). All other modifications are pretty much self-explanatory.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 30 Sep 2007 15:20:35 +0200
parents fcdf7ac5ad27
children e2bbc6406a14
line wrap: on
line diff
--- a/trunk/src/main.d	Sat Sep 29 14:26:14 2007 +0200
+++ b/trunk/src/main.d	Sun Sep 30 15:20:35 2007 +0200
@@ -160,6 +160,6 @@
 print(root.children, "");
 foreach (error; parser.errors)
 {
-  Stdout.format(`{0}({1})P: {2}`, parser.lx.fileName, error.loc, error.getMsg);
+  Stdout.format(`{0}({1})P: {2}`, error.filePath, error.loc, error.getMsg);
 }
 }