Expressions logging
This commit is contained in:
@@ -11,7 +11,7 @@ Expression(ExpressionKind::BLOCK, ValueType::NONE) {
|
||||
valueType = resultStatementExpression->getExpression()->getValueType();
|
||||
statements.pop_back();
|
||||
} else {
|
||||
resultStatementExpression = make_shared<StatementExpression>(ExpressionLiteral::NONE);
|
||||
resultStatementExpression = make_shared<StatementExpression>(make_shared<ExpressionLiteral>());
|
||||
}
|
||||
statementBlock = make_shared<StatementBlock>(statements);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include "ExpressionLiteral.h"
|
||||
|
||||
shared_ptr<ExpressionLiteral> ExpressionLiteral::NONE;
|
||||
|
||||
ExpressionLiteral::ExpressionLiteral():
|
||||
Expression(ExpressionKind::LITERAL, ValueType::NONE) { }
|
||||
|
||||
|
||||
@@ -6,12 +6,10 @@ private:
|
||||
int32_t sint32Value;
|
||||
float real32Value;
|
||||
|
||||
ExpressionLiteral();
|
||||
|
||||
|
||||
public:
|
||||
static shared_ptr<ExpressionLiteral> NONE;
|
||||
|
||||
ExpressionLiteral(shared_ptr<Token> token);
|
||||
ExpressionLiteral();
|
||||
bool getBoolValue();
|
||||
int32_t getSint32Value();
|
||||
float getReal32Value();
|
||||
|
||||
Reference in New Issue
Block a user