Take me to your Xbox to play Fortnite today

This commit is contained in:
ItzzCode 2022-10-24 23:26:31 -04:00
parent dda03107b1
commit fded48d2a4

View File

@ -1 +1,31 @@
#include "global.h"
// base class
class ExprAST {
public:
virtual ~ExprAST() {}
};
// class for double
class DoubleExprAST : public ExprAST {
double Val;
public:
DoubleExprAST(double Val) : Val(Val) {}
};
// class for integer
class IntegerExprAST : public ExprAST {
long Val;
public:
IntegerExprAST(long Val) : Val(Val) {}
};
// class for variable
class VariableExprAST : public ExprAST {
std::string Name;
public:
VariableExprAST(const std::string &Name) : Name(Name) {}
};