Browse Source

[2371] define and initialize Token for the lexer.

not actually needed in this branch, but it will clarify the idea of
how it will be used in later tasks.
JINMEI Tatuya 12 years ago
parent
commit
213e364291
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/dns/master_lexer.cc

+ 3 - 0
src/lib/dns/master_lexer.cc

@@ -54,7 +54,10 @@ typedef boost::shared_ptr<InputSource> InputSourcePtr;
 using namespace master_lexer_internal;
 
 struct MasterLexer::MasterLexerImpl {
+    MasterLexerImpl() : token_(Token::NOT_STARTED) {}
+
     std::vector<InputSourcePtr> sources_;
+    Token token_;
 };
 
 MasterLexer::MasterLexer() : impl_(new MasterLexerImpl) {