Retro68/Rez/RezLexer.h

34 lines
498 B
C
Raw Normal View History

2014-10-05 21:52:34 +00:00
#ifndef REZLEXER_H
#define REZLEXER_H
#include <memory>
2015-01-16 15:37:19 +00:00
#include <string>
2014-10-05 21:52:34 +00:00
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