/* Lexer.h -- simple lexer for 8-puzzle test language. -*- c++ -*- Copyright (C) 2007 Casey Marshall */ #ifndef __Lexer_h__ #define __Lexer_h__ #include #include "TokenCode.h" class Lexer : public LexerInterface { public: static void setInputString(std::string& input); static void nextToken(LexerInterface *lex); virtual NextTokenFunc getTokenFunc() const { return &Lexer::nextToken; } string tokenDesc() const; string tokenKindDesc(int tok) const; }; #endif // __Lexer_h__