Some basic tokens

This commit is contained in:
Rafał Grodziński
2025-05-27 14:25:29 +09:00
parent 45387b7638
commit 838dbbeb03
7 changed files with 73 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
#ifndef TOKEN_H
#define TOKEN_H
#include <iostream>
class Token {
public:
enum Kind {
@@ -8,6 +10,13 @@ public:
real,
eof
};
private:
Kind kind;
public:
Token(Kind kind);
std::string toString();
};
#endif