comparison trunk/src/dil/Parser.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 8af5c7e2f722
children 6057113f9a44
comparison
equal deleted inserted replaced
421:1be8eaf4b5b0 422:ad7977fe315a
4314 if (trying) 4314 if (trying)
4315 { 4315 {
4316 ++errorCount; 4316 ++errorCount;
4317 return; 4317 return;
4318 } 4318 }
4319 4319 lx.updateErrorLoc(token.start);
4320 // if (errors.length == 10) 4320 errors ~= new Information(InfoType.Parser, mid, lx.errorLoc.clone, Format(_arguments, _argptr, GetMsg(mid)));
4321 // return;
4322 errors ~= new Information(InfoType.Parser, mid, lx.loc, Format(_arguments, _argptr, GetMsg(mid)));
4323 // writefln("(%d)P: ", lx.loc, errors[$-1].getMsg);
4324 } 4321 }
4325 } 4322 }