aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
Diffstat (limited to 'build/parser')
-rw-r--r--build/parser7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/parser b/build/parser
index 53fc83c..2e399c9 100644
--- a/build/parser
+++ b/build/parser
@@ -67,6 +67,13 @@ namespace build
token_type
peek ();
+ const token&
+ peeked () const
+ {
+ assert (peeked_);
+ return peek_;
+ }
+
// Diagnostics.
//
private: