diff dmd/lexer.c @ 717:a26b0c5d5942

Merged DMD 1.036. Improved comments a little in the runtime source code.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 22 Oct 2008 17:06:17 +0200
parents 25a32766ed57
children 661384d6a936
line wrap: on
line diff
--- a/dmd/lexer.c	Wed Oct 22 15:35:46 2008 +0200
+++ b/dmd/lexer.c	Wed Oct 22 17:06:17 2008 +0200
@@ -394,6 +394,15 @@
     return t;
 }
 
+/***********************
+ * Look ahead at next token's value.
+ */
+
+TOK Lexer::peekNext()
+{
+    return peek(&token)->value;
+}
+
 /*********************************
  * tk is on the opening (.
  * Look ahead and return token that is past the closing ).