Retro68/Rez/RezLexer.h

34 lines
498 B
C
Raw Normal View History

2014-10-05 23:52:34 +02:00
#ifndef REZLEXER_H
#define REZLEXER_H
#include <memory>
2015-01-16 16:37:19 +01:00
#include <string>
2014-10-05 23:52:34 +02: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 02:29:12 +02:00
RezLexer(std::string filename, const std::string& data);
2014-10-05 23:52:34 +02:00
~RezLexer();
RezSymbol nextToken();
void addDefine(std::string str);
void addIncludePath(std::string path);
2014-10-05 23:52:34 +02:00
};
#endif // REZLEXER_H