Mercurial > projects > dil
diff trunk/src/dil/parser/Parser.d @ 755:90668b83ae5e
Introduced new module dil.SourceText and class SourceText.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 13 Feb 2008 20:21:25 +0100 |
parents | 40a52ea29e3b |
children | 9c47f377ca0b |
line wrap: on
line diff
--- a/trunk/src/dil/parser/Parser.d Wed Feb 13 17:10:55 2008 +0100 +++ b/trunk/src/dil/parser/Parser.d Wed Feb 13 20:21:25 2008 +0100 @@ -16,6 +16,7 @@ import dil.Information; import dil.Enums; import dil.CompilerInfo; +import dil.SourceText; import common; /++ @@ -47,13 +48,12 @@ Construct a Parser object. Params: text = the UTF-8 source code. - filePath = the path to the source code; used for error messages. infoMan = used for collecting error messages. +/ - this(char[] srcText, string filePath, InfoManager infoMan = null) + this(SourceText srcText, InfoManager infoMan = null) { this.infoMan = infoMan; - lexer = new Lexer(srcText, filePath, infoMan); + lexer = new Lexer(srcText, infoMan); } /// Moves to the first token.