Retro68/Rez/RezLexer.h

33 lines
480 B
C
Raw Normal View History

2014-10-05 21:52:34 +00:00
#ifndef REZLEXER_H
#define REZLEXER_H
#include <memory>
class RezSymbol;
class RezLexer
{
struct Priv;
std::unique_ptr<Priv> pImpl;
std::string curFile;
class WaveToken;
bool atEnd();
WaveToken nextWave();
WaveToken peekWave();
public:
RezLexer(std::string filename);
2014-10-16 00:29:12 +00:00
RezLexer(std::string filename, const std::string& data);
2014-10-05 21:52:34 +00:00
~RezLexer();
RezSymbol nextToken();
void addDefine(std::string str);
void addIncludePath(std::string path);
2014-10-05 21:52:34 +00:00
};
#endif // REZLEXER_H