liblangutil: adds Scanner.charStream() accessor

This commit is contained in:
Christian Parpart 2018-11-29 00:56:25 +01:00
parent 5ec67ee477
commit 6060a3682c

View File

@ -94,6 +94,8 @@ public:
std::string source() const { return m_source.source(); } 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. /// Resets the scanner as if newly constructed with _source and _sourceName as input.
void reset(CharStream _source, std::string _sourceName); void reset(CharStream _source, std::string _sourceName);
/// Resets scanner to the start of input. /// Resets scanner to the start of input.