mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-22 04:30:03 +00:00
29 lines
347 B
C
29 lines
347 B
C
|
#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);
|
||
|
~RezLexer();
|
||
|
|
||
|
RezSymbol nextToken();
|
||
|
};
|
||
|
|
||
|
#endif // REZLEXER_H
|