--- a/src/Lexer.cc Sun Feb 02 17:06:39 2014 +0200 +++ b/src/Lexer.cc Sun Feb 02 18:07:06 2014 +0200 @@ -198,7 +198,7 @@ // ============================================================================= // -void Lexer::MustGetAnyOf (const List< EToken >& toks) +void Lexer::MustGetAnyOf (const List<EToken>& toks) { if (!GetNext()) Error ("unexpected EOF"); @@ -304,3 +304,10 @@ mTokenPosition = oldpos; return result; } + +// ============================================================================= +// +String Lexer::DescribePosition() +{ + return Format ("%1 / %2", mTokenPosition - mTokens.begin(), mTokens.Size()); +} \ No newline at end of file