Implemented value assignment
This commit is contained in:
12
src/Parser/Statement/StatementAssignment.cpp
Normal file
12
src/Parser/Statement/StatementAssignment.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "StatementAssignment.h"
|
||||
|
||||
StatementAssignment::StatementAssignment(string name, shared_ptr<Expression> expression):
|
||||
Statement(StatementKind::ASSIGNMENT), name(name), expression(expression) { }
|
||||
|
||||
string StatementAssignment::getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
shared_ptr<Expression> StatementAssignment::getExpression() {
|
||||
return expression;
|
||||
}
|
||||
Reference in New Issue
Block a user