From 6060a3682c077d7b329ec9171abdacbf1b383ec7 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Thu, 29 Nov 2018 00:56:25 +0100 Subject: [PATCH] liblangutil: adds Scanner.charStream() accessor --- liblangutil/Scanner.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liblangutil/Scanner.h b/liblangutil/Scanner.h index d01e71e2f..9c29edfd4 100644 --- a/liblangutil/Scanner.h +++ b/liblangutil/Scanner.h @@ -94,6 +94,8 @@ public: std::string source() const { return m_source.source(); } + CharStream const& charStream() const noexcept { return m_source; } + /// Resets the scanner as if newly constructed with _source and _sourceName as input. void reset(CharStream _source, std::string _sourceName); /// Resets scanner to the start of input.