|
@@ -38,6 +38,11 @@ namespace master_lexer_internal {
|
|
|
class InputSource {
|
|
|
public:
|
|
|
/// \brief Returned by getChar() when end of stream is reached.
|
|
|
+ ///
|
|
|
+ /// \note C++ allows a static const class member of an integral type to
|
|
|
+ /// be used without explicit definition as long as its address isn't
|
|
|
+ /// required. But, since this is a public member variable and we cannot
|
|
|
+ /// assume how it's used, we give a definition in the implementation.
|
|
|
static const int END_OF_STREAM = -1;
|
|
|
|
|
|
/// \brief Exception thrown when ungetChar() is made to go before
|