Take me to your Xbox to play Fortnite today
This commit is contained in:
parent
dda03107b1
commit
fded48d2a4
30
parser.cpp
30
parser.cpp
@ -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) {}
|
||||
};
|
Loading…
Reference in New Issue
Block a user