#ifndef LYXLEX_PIMPL_H
#define LYXLEX_PIMPL_H
-#include <fstream>
-#include <stack>
-
#include "lyxlex.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include <boost/utility.hpp>
+
+#include <fstream>
+#include <stack>
///
-struct LyXLex::Pimpl : public noncopyable {
+struct LyXLex::Pimpl : boost::noncopyable {
///
enum {
///
LEX_MAX_BUFF = 2048
};
-
+
///
Pimpl(keyword_item * tab, int num);
///
- string const GetString() const;
+ string const getString() const;
///
void printError(string const & message) const;
///
///
void setStream(std::istream & i);
///
+ void setCommentChar(char c);
+ ///
bool next(bool esc = false);
///
int search_kw(char const * const tag) const;
///
int lex();
///
- bool EatLine();
+ bool eatLine();
///
bool nextToken();
///
std::filebuf fb__;
/// the stream that we use.
std::istream is;
- ///
+ ///
string name;
///
keyword_item * table;
///
char buff[LEX_MAX_BUFF];
///
- short status;
+ int status;
///
int lineno;
///
string pushTok;
+ ///
+ char commentChar;
private:
///
void verifyTable();