internal TokenContext() { wss_ = new WhiteSpaceState(this); nls_ = new NewLineState(this); pcs_ = new PunctuationState(this); ans_ = new AlphaNumState(this); slc_ = new SingleLineCommentState(this); mlc_ = new MultiLineCommentState(this); squ_ = new SingleQuoteState(this); dqu_ = new DoubleQuoteState(this); currentState_ = wss_; }
internal TokenContext() { ws_ = new WhiteSpaceState(this); ps_ = new PunctState(this); as_ = new AlphaState(this); bs_ = new InitialState(this); ccs_ = new CCommentState(this); cppcs_ = new CppCommentState(this); dcsps_ = new DoubleCharSpecialPunctState(this); scsp_ = new SingleCharSpecialPunctState(this); dqs_ = new DoubleQuoteState(this); sqs_ = new SingleQuoteState(this); ns_ = new NewlineState(this); // Initail state is BaseSate. currentState_ = bs_; }