@@ -14,9 +14,9 @@ class ParseException : Exception { const LexPosition pos; - this( const LexPosition pos, string msg, string file="", int line=0, Throwable next=null ) + this( const LexPosition pos, string msg, string file=null, size_t line=0, Throwable next=null ) { super(sprintf!"[%s] %s"(pos, msg), file, line, next); this.pos = pos; } } private auto createException(Lexer)(Lexer lex, string msg) @@ -27,9 +27,9 @@ auto parseString(S, T...)(S str, T fn_ln_cn) { return parserFromString(str, fn_ln_cn).parse(); } auto parseFile(S, T...)(S filename, T ln_cn) - { return parserFromString(filename, ln_cn).parse(); } + { return parserFromFile(filename, ln_cn).parse(); } /// Named Constructor of Parser private auto parserFromLexer(Lexer)(Lexer lex)