src/Lexer.cc

changeset 89
029a330a9bef
parent 88
5def6ff8b466
child 99
44c0c7f31ae8
--- 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

mercurial