Added ValueType class

This commit is contained in:
Rafał Grodziński
2025-07-04 18:10:24 +09:00
parent ffdaf14174
commit 2a5085cb21
28 changed files with 191 additions and 181 deletions

View File

@@ -5,6 +5,8 @@
class Token;
enum class TokenKind;
class ValueType;
class Statement;
class StatementMetaExternFunction;
class StatementVariable;
@@ -24,8 +26,6 @@ class ExpressionLiteral;
class ExpressionCall;
class ExpressionBlock;
enum class ValueType;
class Error;
using namespace std;
@@ -34,6 +34,7 @@ class Logger {
private:
static string toString(shared_ptr<Token> token);
static string toString(TokenKind tokenKind);
static string toString(shared_ptr<ValueType> valueType);
static string toString(shared_ptr<Statement> statement);
static string toString(shared_ptr<StatementMetaExternFunction> statement);
@@ -54,8 +55,6 @@ private:
static string toString(shared_ptr<ExpressionCall> expression);
static string toString(shared_ptr<ExpressionBlock> expression);
static string toString(ValueType valueType);
public:
static void print(vector<shared_ptr<Token>> tokens);
static void print(vector<shared_ptr<Statement>> statements);